From 83a5d98a8399aba1a86049e6efae5cac9b03a4b8 Mon Sep 17 00:00:00 2001 From: "haowei.yao" Date: Wed, 10 Jan 2018 14:30:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B1=E4=B8=B0=E9=B2=81=E6=88=90=E5=8F=91?= =?UTF-8?q?=E8=B5=B7=E7=9A=84ECS=20SDK=E8=87=AA=E5=8A=A8=E5=8F=91=E5=B8=83?= =?UTF-8?q?,=20BUILD=5FID=3D338,=20=E7=89=88=E6=9C=AC=E5=8F=B7=EF=BC=9A?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E5=B0=8F=E7=89=88=E6=9C=AC=20=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E6=97=A5=E5=BF=97=EF=BC=9A=201,=20First=20release=20e?= =?UTF-8?q?cs=20for=20C++?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 1 + VERSION | 2 +- ecs/CMakeLists.txt | 958 ++ ecs/ChangeLog.txt | 3 + ecs/include/alibabacloud/ecs/EcsClient.h | 1809 ++++ ecs/include/alibabacloud/ecs/EcsExport.h | 32 + ecs/include/alibabacloud/ecs/EcsRequest.h | 39 + .../model/ActivateRouterInterfaceRequest.h | 59 + .../ecs/model/ActivateRouterInterfaceResult.h | 49 + .../ecs/model/AddBandwidthPackageIpsRequest.h | 68 + .../ecs/model/AddBandwidthPackageIpsResult.h | 49 + .../ecs/model/AddIpRangeRequest.h | 65 + .../alibabacloud/ecs/model/AddIpRangeResult.h | 49 + .../alibabacloud/ecs/model/AddTagsRequest.h | 92 + .../alibabacloud/ecs/model/AddTagsResult.h | 49 + .../ecs/model/AllocateEipAddressRequest.h | 68 + .../ecs/model/AllocateEipAddressResult.h | 55 + .../model/AllocatePublicIpAddressRequest.h | 65 + .../ecs/model/AllocatePublicIpAddressResult.h | 52 + .../model/ApplyAutoSnapshotPolicyRequest.h | 62 + .../ecs/model/ApplyAutoSnapshotPolicyResult.h | 49 + .../ecs/model/AssociateEipAddressRequest.h | 65 + .../ecs/model/AssociateEipAddressResult.h | 49 + .../ecs/model/AssociateHaVipRequest.h | 68 + .../ecs/model/AssociateHaVipResult.h | 49 + .../ecs/model/AttachClassicLinkVpcRequest.h | 62 + .../ecs/model/AttachClassicLinkVpcResult.h | 49 + .../ecs/model/AttachDiskRequest.h | 68 + .../alibabacloud/ecs/model/AttachDiskResult.h | 49 + .../ecs/model/AttachInstanceRamRoleRequest.h | 62 + .../ecs/model/AttachInstanceRamRoleResult.h | 68 + .../ecs/model/AttachKeyPairRequest.h | 62 + .../ecs/model/AttachKeyPairResult.h | 68 + .../ecs/model/AttachNetworkInterfaceRequest.h | 122 + .../ecs/model/AttachNetworkInterfaceResult.h | 49 + .../AuthorizeSecurityGroupEgressRequest.h | 158 + .../AuthorizeSecurityGroupEgressResult.h | 49 + .../ecs/model/AuthorizeSecurityGroupRequest.h | 158 + .../ecs/model/AuthorizeSecurityGroupResult.h | 49 + .../ecs/model/BindIpRangeRequest.h | 62 + .../ecs/model/BindIpRangeResult.h | 49 + .../ecs/model/CancelAgreementRequest.h | 113 + .../ecs/model/CancelAgreementResult.h | 49 + .../model/CancelAutoSnapshotPolicyRequest.h | 59 + .../model/CancelAutoSnapshotPolicyResult.h | 49 + .../ecs/model/CancelCopyImageRequest.h | 62 + .../ecs/model/CancelCopyImageResult.h | 49 + .../model/CancelPhysicalConnectionRequest.h | 68 + .../model/CancelPhysicalConnectionResult.h | 49 + .../ecs/model/CancelTaskRequest.h | 59 + .../alibabacloud/ecs/model/CancelTaskResult.h | 49 + .../model/CheckAutoSnapshotPolicyRequest.h | 80 + .../ecs/model/CheckAutoSnapshotPolicyResult.h | 55 + ...kDiskEnableAutoSnapshotValidationRequest.h | 59 + ...ckDiskEnableAutoSnapshotValidationResult.h | 55 + .../ecs/model/ConnectRouterInterfaceRequest.h | 59 + .../ecs/model/ConnectRouterInterfaceResult.h | 49 + .../model/ConvertNatPublicIpToEipRequest.h | 113 + .../ecs/model/ConvertNatPublicIpToEipResult.h | 49 + .../alibabacloud/ecs/model/CopyImageRequest.h | 104 + .../alibabacloud/ecs/model/CopyImageResult.h | 52 + .../model/CreateAutoSnapshotPolicyRequest.h | 68 + .../model/CreateAutoSnapshotPolicyResult.h | 52 + .../ecs/model/CreateCommandRequest.h | 134 + .../ecs/model/CreateCommandResult.h | 52 + .../ecs/model/CreateDeploymentSetRequest.h | 80 + .../ecs/model/CreateDeploymentSetResult.h | 52 + .../ecs/model/CreateDiskRequest.h | 116 + .../alibabacloud/ecs/model/CreateDiskResult.h | 52 + .../ecs/model/CreateForwardEntryRequest.h | 77 + .../ecs/model/CreateForwardEntryResult.h | 52 + .../ecs/model/CreateHaVipRequest.h | 71 + .../ecs/model/CreateHaVipResult.h | 52 + .../ecs/model/CreateHpcClusterRequest.h | 122 + .../ecs/model/CreateHpcClusterResult.h | 52 + .../ecs/model/CreateImageRequest.h | 123 + .../ecs/model/CreateImageResult.h | 52 + .../ecs/model/CreateInstanceRequest.h | 217 + .../ecs/model/CreateInstanceResult.h | 52 + .../ecs/model/CreateKeyPairRequest.h | 59 + .../ecs/model/CreateKeyPairResult.h | 58 + .../ecs/model/CreateNatGatewayRequest.h | 80 + .../ecs/model/CreateNatGatewayResult.h | 58 + .../ecs/model/CreateNetworkInterfaceRequest.h | 134 + .../ecs/model/CreateNetworkInterfaceResult.h | 52 + .../model/CreatePhysicalConnectionRequest.h | 95 + .../model/CreatePhysicalConnectionResult.h | 52 + .../ecs/model/CreateRouteEntryRequest.h | 79 + .../ecs/model/CreateRouteEntryResult.h | 49 + .../ecs/model/CreateRouterInterfaceRequest.h | 110 + .../ecs/model/CreateRouterInterfaceResult.h | 52 + .../ecs/model/CreateSecurityGroupRequest.h | 101 + .../ecs/model/CreateSecurityGroupResult.h | 52 + .../ecs/model/CreateSnapshotRequest.h | 98 + .../ecs/model/CreateSnapshotResult.h | 52 + .../ecs/model/CreateVSwitchRequest.h | 74 + .../ecs/model/CreateVSwitchResult.h | 52 + .../model/CreateVirtualBorderRouterRequest.h | 92 + .../model/CreateVirtualBorderRouterResult.h | 52 + .../alibabacloud/ecs/model/CreateVpcRequest.h | 74 + .../alibabacloud/ecs/model/CreateVpcResult.h | 58 + .../model/DeactivateRouterInterfaceRequest.h | 59 + .../model/DeactivateRouterInterfaceResult.h | 49 + .../model/DeleteAutoSnapshotPolicyRequest.h | 59 + .../model/DeleteAutoSnapshotPolicyResult.h | 49 + .../ecs/model/DeleteBandwidthPackageRequest.h | 62 + .../ecs/model/DeleteBandwidthPackageResult.h | 49 + .../ecs/model/DeleteCommandRequest.h | 119 + .../ecs/model/DeleteCommandResult.h | 49 + .../ecs/model/DeleteDeploymentSetRequest.h | 62 + .../ecs/model/DeleteDeploymentSetResult.h | 49 + .../ecs/model/DeleteDiskRequest.h | 59 + .../alibabacloud/ecs/model/DeleteDiskResult.h | 49 + .../ecs/model/DeleteForwardEntryRequest.h | 65 + .../ecs/model/DeleteForwardEntryResult.h | 49 + .../ecs/model/DeleteHaVipRequest.h | 65 + .../ecs/model/DeleteHaVipResult.h | 49 + .../ecs/model/DeleteHpcClusterRequest.h | 119 + .../ecs/model/DeleteHpcClusterResult.h | 49 + .../ecs/model/DeleteImageRequest.h | 65 + .../ecs/model/DeleteImageResult.h | 49 + .../ecs/model/DeleteInstanceRequest.h | 65 + .../ecs/model/DeleteInstanceResult.h | 49 + .../ecs/model/DeleteKeyPairsRequest.h | 59 + .../ecs/model/DeleteKeyPairsResult.h | 49 + .../ecs/model/DeleteNatGatewayRequest.h | 62 + .../ecs/model/DeleteNatGatewayResult.h | 49 + .../ecs/model/DeleteNetworkInterfaceRequest.h | 119 + .../ecs/model/DeleteNetworkInterfaceResult.h | 49 + .../model/DeletePhysicalConnectionRequest.h | 68 + .../model/DeletePhysicalConnectionResult.h | 49 + .../ecs/model/DeleteRecycleBinRequest.h | 62 + .../ecs/model/DeleteRecycleBinResult.h | 49 + .../ecs/model/DeleteRouteEntryRequest.h | 73 + .../ecs/model/DeleteRouteEntryResult.h | 49 + .../ecs/model/DeleteRouterInterfaceRequest.h | 68 + .../ecs/model/DeleteRouterInterfaceResult.h | 49 + .../ecs/model/DeleteSecurityGroupRequest.h | 62 + .../ecs/model/DeleteSecurityGroupResult.h | 49 + .../ecs/model/DeleteSnapshotRequest.h | 62 + .../ecs/model/DeleteSnapshotResult.h | 49 + .../ecs/model/DeleteVSwitchRequest.h | 59 + .../ecs/model/DeleteVSwitchResult.h | 49 + .../model/DeleteVirtualBorderRouterRequest.h | 68 + .../model/DeleteVirtualBorderRouterResult.h | 49 + .../alibabacloud/ecs/model/DeleteVpcRequest.h | 59 + .../alibabacloud/ecs/model/DeleteVpcResult.h | 49 + .../ecs/model/DescribeAccessPointsRequest.h | 73 + .../ecs/model/DescribeAccessPointsResult.h | 72 + .../DescribeAutoSnapshotPolicyExRequest.h | 68 + .../DescribeAutoSnapshotPolicyExResult.h | 74 + .../model/DescribeAutoSnapshotPolicyRequest.h | 56 + .../model/DescribeAutoSnapshotPolicyResult.h | 74 + .../model/DescribeBandwidthPackagesRequest.h | 71 + .../model/DescribeBandwidthPackagesResult.h | 83 + .../DescribeClassicLinkInstancesRequest.h | 68 + .../DescribeClassicLinkInstancesResult.h | 66 + .../ecs/model/DescribeClustersRequest.h | 59 + .../ecs/model/DescribeClustersResult.h | 56 + .../ecs/model/DescribeCommandsRequest.h | 134 + .../ecs/model/DescribeCommandsResult.h | 71 + .../DescribeDeploymentSetTopologyRequest.h | 74 + .../DescribeDeploymentSetTopologyResult.h | 75 + .../ecs/model/DescribeDeploymentSetsRequest.h | 83 + .../ecs/model/DescribeDeploymentSetsResult.h | 75 + .../model/DescribeDiskMonitorDataRequest.h | 68 + .../ecs/model/DescribeDiskMonitorDataResult.h | 68 + .../model/DescribeDisksFullStatusRequest.h | 143 + .../ecs/model/DescribeDisksFullStatusResult.h | 89 + .../ecs/model/DescribeDisksRequest.h | 170 + .../ecs/model/DescribeDisksResult.h | 113 + .../ecs/model/DescribeEipAddressesRequest.h | 98 + .../ecs/model/DescribeEipAddressesResult.h | 81 + .../ecs/model/DescribeEipMonitorDataRequest.h | 68 + .../ecs/model/DescribeEipMonitorDataResult.h | 61 + .../DescribeForwardTableEntriesRequest.h | 71 + .../model/DescribeForwardTableEntriesResult.h | 72 + .../ecs/model/DescribeHaVipsRequest.h | 73 + .../ecs/model/DescribeHaVipsResult.h | 75 + .../ecs/model/DescribeHpcClustersRequest.h | 125 + .../ecs/model/DescribeHpcClustersResult.h | 67 + .../DescribeImageSharePermissionRequest.h | 68 + .../DescribeImageSharePermissionResult.h | 78 + ...DescribeImageSupportInstanceTypesRequest.h | 59 + .../DescribeImageSupportInstanceTypesResult.h | 65 + .../ecs/model/DescribeImagesRequest.h | 146 + .../ecs/model/DescribeImagesResult.h | 104 + .../model/DescribeInstanceAttributeRequest.h | 59 + .../model/DescribeInstanceAttributeResult.h | 154 + ...escribeInstanceAutoRenewAttributeRequest.h | 62 + ...DescribeInstanceAutoRenewAttributeResult.h | 60 + .../DescribeInstanceHistoryEventsRequest.h | 146 + .../DescribeInstanceHistoryEventsResult.h | 74 + .../DescribeInstanceMonitorDataRequest.h | 68 + .../model/DescribeInstanceMonitorDataResult.h | 70 + ...DescribeInstancePhysicalAttributeRequest.h | 59 + .../DescribeInstancePhysicalAttributeResult.h | 61 + .../model/DescribeInstanceRamRoleRequest.h | 68 + .../ecs/model/DescribeInstanceRamRoleResult.h | 63 + .../ecs/model/DescribeInstanceStatusRequest.h | 71 + .../ecs/model/DescribeInstanceStatusResult.h | 66 + .../DescribeInstanceTypeFamiliesRequest.h | 62 + .../DescribeInstanceTypeFamiliesResult.h | 57 + .../ecs/model/DescribeInstanceTypesRequest.h | 59 + .../ecs/model/DescribeInstanceTypesResult.h | 66 + .../model/DescribeInstanceVncPasswdRequest.h | 62 + .../model/DescribeInstanceVncPasswdResult.h | 52 + .../ecs/model/DescribeInstanceVncUrlRequest.h | 62 + .../ecs/model/DescribeInstanceVncUrlResult.h | 52 + .../DescribeInstancesFullStatusRequest.h | 149 + .../model/DescribeInstancesFullStatusResult.h | 96 + .../ecs/model/DescribeInstancesRequest.h | 194 + .../ecs/model/DescribeInstancesResult.h | 144 + .../DescribeIntranetAttributeKbRequest.h | 59 + .../model/DescribeIntranetAttributeKbResult.h | 64 + .../model/DescribeInvocationResultsRequest.h | 134 + .../model/DescribeInvocationResultsResult.h | 69 + .../ecs/model/DescribeInvocationsRequest.h | 143 + .../ecs/model/DescribeInvocationsResult.h | 77 + .../ecs/model/DescribeIpRangesRequest.h | 71 + .../ecs/model/DescribeIpRangesResult.h | 72 + .../ecs/model/DescribeKeyPairsRequest.h | 68 + .../ecs/model/DescribeKeyPairsResult.h | 66 + .../ecs/model/DescribeLimitationRequest.h | 59 + .../ecs/model/DescribeLimitationResult.h | 55 + .../ecs/model/DescribeNatGatewaysRequest.h | 71 + .../ecs/model/DescribeNatGatewaysResult.h | 76 + .../model/DescribeNetworkInterfacesRequest.h | 143 + .../model/DescribeNetworkInterfacesResult.h | 95 + .../DescribeNewProjectEipMonitorDataRequest.h | 68 + .../DescribeNewProjectEipMonitorDataResult.h | 61 + .../DescribePhysicalConnectionsRequest.h | 79 + .../model/DescribePhysicalConnectionsResult.h | 82 + .../ecs/model/DescribePriceRequest.h | 119 + .../ecs/model/DescribePriceResult.h | 69 + .../DescribeRecommendInstanceTypeRequest.h | 80 + .../DescribeRecommendInstanceTypeResult.h | 74 + .../ecs/model/DescribeRecycleBinRequest.h | 71 + .../ecs/model/DescribeRecycleBinResult.h | 69 + .../ecs/model/DescribeRegionsRequest.h | 62 + .../ecs/model/DescribeRegionsResult.h | 58 + .../ecs/model/DescribeRenewalPriceRequest.h | 71 + .../ecs/model/DescribeRenewalPriceResult.h | 69 + .../ecs/model/DescribeResourceByTagsRequest.h | 95 + .../ecs/model/DescribeResourceByTagsResult.h | 67 + .../ecs/model/DescribeRouteTablesRequest.h | 77 + .../ecs/model/DescribeRouteTablesResult.h | 86 + .../model/DescribeRouterInterfacesRequest.h | 70 + .../model/DescribeRouterInterfacesResult.h | 89 + .../DescribeSecurityGroupAttributeRequest.h | 68 + .../DescribeSecurityGroupAttributeResult.h | 89 + .../DescribeSecurityGroupReferencesRequest.h | 62 + .../DescribeSecurityGroupReferencesResult.h | 62 + .../ecs/model/DescribeSecurityGroupsRequest.h | 119 + .../ecs/model/DescribeSecurityGroupsResult.h | 80 + .../ecs/model/DescribeSnapshotLinksRequest.h | 74 + .../ecs/model/DescribeSnapshotLinksResult.h | 73 + .../DescribeSnapshotMonitorDataRequest.h | 68 + .../model/DescribeSnapshotMonitorDataResult.h | 57 + .../model/DescribeSnapshotPackageRequest.h | 65 + .../ecs/model/DescribeSnapshotPackageResult.h | 68 + .../ecs/model/DescribeSnapshotsRequest.h | 140 + .../ecs/model/DescribeSnapshotsResult.h | 84 + .../ecs/model/DescribeSnapshotsUsageRequest.h | 116 + .../ecs/model/DescribeSnapshotsUsageResult.h | 55 + .../model/DescribeSpotPriceHistoryRequest.h | 140 + .../model/DescribeSpotPriceHistoryResult.h | 68 + .../ecs/model/DescribeTagKeysRequest.h | 68 + .../ecs/model/DescribeTagKeysResult.h | 61 + .../ecs/model/DescribeTagsRequest.h | 98 + .../ecs/model/DescribeTagsResult.h | 76 + .../ecs/model/DescribeTaskAttributeRequest.h | 59 + .../ecs/model/DescribeTaskAttributeResult.h | 97 + .../ecs/model/DescribeTasksRequest.h | 80 + .../ecs/model/DescribeTasksResult.h | 73 + .../DescribeUserBusinessBehaviorRequest.h | 116 + .../DescribeUserBusinessBehaviorResult.h | 52 + .../ecs/model/DescribeUserDataRequest.h | 59 + .../ecs/model/DescribeUserDataResult.h | 58 + .../ecs/model/DescribeVRoutersRequest.h | 68 + .../ecs/model/DescribeVRoutersResult.h | 71 + .../ecs/model/DescribeVSwitchesRequest.h | 77 + .../ecs/model/DescribeVSwitchesResult.h | 74 + ...orderRoutersForPhysicalConnectionRequest.h | 73 + ...BorderRoutersForPhysicalConnectionResult.h | 72 + .../DescribeVirtualBorderRoutersRequest.h | 70 + .../DescribeVirtualBorderRoutersResult.h | 84 + .../ecs/model/DescribeVpcsRequest.h | 71 + .../ecs/model/DescribeVpcsResult.h | 75 + .../ecs/model/DescribeZonesRequest.h | 68 + .../ecs/model/DescribeZonesResult.h | 72 + .../ecs/model/DetachClassicLinkVpcRequest.h | 62 + .../ecs/model/DetachClassicLinkVpcResult.h | 49 + .../ecs/model/DetachDiskRequest.h | 62 + .../alibabacloud/ecs/model/DetachDiskResult.h | 49 + .../ecs/model/DetachInstanceRamRoleRequest.h | 62 + .../ecs/model/DetachInstanceRamRoleResult.h | 74 + .../ecs/model/DetachKeyPairRequest.h | 62 + .../ecs/model/DetachKeyPairResult.h | 68 + .../ecs/model/DetachNetworkInterfaceRequest.h | 122 + .../ecs/model/DetachNetworkInterfaceResult.h | 49 + .../ecs/model/EipFillParamsRequest.h | 65 + .../ecs/model/EipFillParamsResult.h | 64 + .../ecs/model/EipFillProductRequest.h | 65 + .../ecs/model/EipFillProductResult.h | 64 + .../ecs/model/EipNotifyPaidRequest.h | 65 + .../ecs/model/EipNotifyPaidResult.h | 64 + .../model/EnablePhysicalConnectionRequest.h | 68 + .../model/EnablePhysicalConnectionResult.h | 49 + .../ecs/model/ExportImageRequest.h | 71 + .../ecs/model/ExportImageResult.h | 55 + .../ecs/model/ImportImageRequest.h | 86 + .../ecs/model/ImportImageResult.h | 58 + .../ecs/model/ImportKeyPairRequest.h | 62 + .../ecs/model/ImportKeyPairResult.h | 55 + .../ecs/model/InvokeCommandRequest.h | 128 + .../ecs/model/InvokeCommandResult.h | 52 + .../ecs/model/JoinResourceGroupRequest.h | 68 + .../ecs/model/JoinResourceGroupResult.h | 49 + .../ecs/model/JoinSecurityGroupRequest.h | 62 + .../ecs/model/JoinSecurityGroupResult.h | 49 + .../ecs/model/LeaveSecurityGroupRequest.h | 62 + .../ecs/model/LeaveSecurityGroupResult.h | 49 + .../model/ModifyAutoSnapshotPolicyExRequest.h | 71 + .../model/ModifyAutoSnapshotPolicyExResult.h | 49 + .../model/ModifyAutoSnapshotPolicyRequest.h | 80 + .../model/ModifyAutoSnapshotPolicyResult.h | 49 + .../model/ModifyBandwidthPackageSpecRequest.h | 65 + .../model/ModifyBandwidthPackageSpecResult.h | 49 + .../ecs/model/ModifyCommandRequest.h | 134 + .../ecs/model/ModifyCommandResult.h | 49 + .../ModifyDeploymentSetAttributeRequest.h | 68 + .../ModifyDeploymentSetAttributeResult.h | 49 + .../ecs/model/ModifyDiskAttributeRequest.h | 74 + .../ecs/model/ModifyDiskAttributeResult.h | 49 + .../ecs/model/ModifyDiskChargeTypeRequest.h | 71 + .../ecs/model/ModifyDiskChargeTypeResult.h | 52 + .../model/ModifyEipAddressAttributeRequest.h | 62 + .../model/ModifyEipAddressAttributeResult.h | 49 + .../ecs/model/ModifyForwardEntryRequest.h | 80 + .../ecs/model/ModifyForwardEntryResult.h | 49 + .../ecs/model/ModifyHaVipAttributeRequest.h | 68 + .../ecs/model/ModifyHaVipAttributeResult.h | 49 + .../model/ModifyHpcClusterAttributeRequest.h | 125 + .../model/ModifyHpcClusterAttributeResult.h | 49 + .../ecs/model/ModifyImageAttributeRequest.h | 68 + .../ecs/model/ModifyImageAttributeResult.h | 49 + .../ModifyImageShareGroupPermissionRequest.h | 68 + .../ModifyImageShareGroupPermissionResult.h | 49 + .../model/ModifyImageSharePermissionRequest.h | 122 + .../model/ModifyImageSharePermissionResult.h | 49 + .../model/ModifyInstanceAttributeRequest.h | 77 + .../ecs/model/ModifyInstanceAttributeResult.h | 49 + .../ModifyInstanceAutoReleaseTimeRequest.h | 65 + .../ModifyInstanceAutoReleaseTimeResult.h | 49 + .../ModifyInstanceAutoRenewAttributeRequest.h | 71 + .../ModifyInstanceAutoRenewAttributeResult.h | 49 + .../model/ModifyInstanceChargeTypeRequest.h | 80 + .../model/ModifyInstanceChargeTypeResult.h | 52 + .../model/ModifyInstanceNetworkSpecRequest.h | 83 + .../model/ModifyInstanceNetworkSpecResult.h | 52 + .../ecs/model/ModifyInstanceSpecRequest.h | 89 + .../ecs/model/ModifyInstanceSpecResult.h | 49 + .../model/ModifyInstanceVncPasswdRequest.h | 65 + .../ecs/model/ModifyInstanceVncPasswdResult.h | 49 + .../model/ModifyInstanceVpcAttributeRequest.h | 65 + .../model/ModifyInstanceVpcAttributeResult.h | 49 + .../model/ModifyIntranetBandwidthKbRequest.h | 65 + .../model/ModifyIntranetBandwidthKbResult.h | 49 + .../ModifyNetworkInterfaceAttributeRequest.h | 128 + .../ModifyNetworkInterfaceAttributeResult.h | 49 + ...ModifyPhysicalConnectionAttributeRequest.h | 92 + .../ModifyPhysicalConnectionAttributeResult.h | 49 + .../model/ModifyPrepayInstanceSpecRequest.h | 71 + .../model/ModifyPrepayInstanceSpecResult.h | 52 + .../ModifyRouterInterfaceAttributeRequest.h | 83 + .../ModifyRouterInterfaceAttributeResult.h | 49 + .../model/ModifyRouterInterfaceSpecRequest.h | 71 + .../model/ModifyRouterInterfaceSpecResult.h | 52 + .../ModifySecurityGroupAttributeRequest.h | 68 + .../ModifySecurityGroupAttributeResult.h | 49 + .../ModifySecurityGroupEgressRuleRequest.h | 158 + .../ModifySecurityGroupEgressRuleResult.h | 49 + .../model/ModifySecurityGroupPolicyRequest.h | 68 + .../model/ModifySecurityGroupPolicyResult.h | 49 + .../model/ModifySecurityGroupRuleRequest.h | 158 + .../ecs/model/ModifySecurityGroupRuleResult.h | 49 + .../model/ModifySnapshotAttributeRequest.h | 65 + .../ecs/model/ModifySnapshotAttributeResult.h | 49 + .../model/ModifyUserBusinessBehaviorRequest.h | 119 + .../model/ModifyUserBusinessBehaviorResult.h | 49 + .../ecs/model/ModifyVRouterAttributeRequest.h | 65 + .../ecs/model/ModifyVRouterAttributeResult.h | 49 + .../ecs/model/ModifyVSwitchAttributeRequest.h | 65 + .../ecs/model/ModifyVSwitchAttributeResult.h | 49 + ...odifyVirtualBorderRouterAttributeRequest.h | 89 + ...ModifyVirtualBorderRouterAttributeResult.h | 49 + .../ecs/model/ModifyVpcAttributeRequest.h | 68 + .../ecs/model/ModifyVpcAttributeResult.h | 49 + .../ecs/model/ReActivateInstancesRequest.h | 62 + .../ecs/model/ReActivateInstancesResult.h | 49 + .../ecs/model/ReInitDiskRequest.h | 71 + .../alibabacloud/ecs/model/ReInitDiskResult.h | 49 + .../ecs/model/RebootInstanceRequest.h | 62 + .../ecs/model/RebootInstanceResult.h | 49 + .../model/RecoverVirtualBorderRouterRequest.h | 68 + .../model/RecoverVirtualBorderRouterResult.h | 49 + .../ecs/model/ReleaseEipAddressRequest.h | 59 + .../ecs/model/ReleaseEipAddressResult.h | 49 + .../ecs/model/ReleasePublicIpAddressRequest.h | 62 + .../ecs/model/ReleasePublicIpAddressResult.h | 49 + .../model/RemoveBandwidthPackageIpsRequest.h | 68 + .../model/RemoveBandwidthPackageIpsResult.h | 49 + .../ecs/model/RemoveTagsRequest.h | 92 + .../alibabacloud/ecs/model/RemoveTagsResult.h | 49 + .../ecs/model/RenewInstanceRequest.h | 68 + .../ecs/model/RenewInstanceResult.h | 49 + .../ecs/model/ReplaceSystemDiskRequest.h | 80 + .../ecs/model/ReplaceSystemDiskResult.h | 52 + .../alibabacloud/ecs/model/ResetDiskRequest.h | 62 + .../alibabacloud/ecs/model/ResetDiskResult.h | 49 + .../ecs/model/ResizeDiskRequest.h | 65 + .../alibabacloud/ecs/model/ResizeDiskResult.h | 49 + .../model/RevokeSecurityGroupEgressRequest.h | 158 + .../model/RevokeSecurityGroupEgressResult.h | 49 + .../ecs/model/RevokeSecurityGroupRequest.h | 158 + .../ecs/model/RevokeSecurityGroupResult.h | 49 + .../ecs/model/RunInstancesRequest.h | 226 + .../ecs/model/RunInstancesResult.h | 52 + .../ecs/model/SignAgreementRequest.h | 113 + .../ecs/model/SignAgreementResult.h | 49 + .../ecs/model/StartInstanceRequest.h | 62 + .../ecs/model/StartInstanceResult.h | 49 + .../ecs/model/StopInstanceRequest.h | 68 + .../ecs/model/StopInstanceResult.h | 49 + .../ecs/model/StopInvocationRequest.h | 122 + .../ecs/model/StopInvocationResult.h | 49 + .../TerminatePhysicalConnectionRequest.h | 68 + .../model/TerminatePhysicalConnectionResult.h | 49 + .../TerminateVirtualBorderRouterRequest.h | 68 + .../TerminateVirtualBorderRouterResult.h | 49 + .../ecs/model/UnassociateEipAddressRequest.h | 65 + .../ecs/model/UnassociateEipAddressResult.h | 49 + .../ecs/model/UnassociateHaVipRequest.h | 71 + .../ecs/model/UnassociateHaVipResult.h | 49 + .../ecs/model/UnbindIpRangeRequest.h | 62 + .../ecs/model/UnbindIpRangeResult.h | 49 + ecs/src/EcsClient.cc | 7981 +++++++++++++++++ ecs/src/EcsRequest.cc | 27 + .../model/ActivateRouterInterfaceRequest.cc | 83 + .../model/ActivateRouterInterfaceResult.cc | 45 + .../model/AddBandwidthPackageIpsRequest.cc | 116 + ecs/src/model/AddBandwidthPackageIpsResult.cc | 45 + ecs/src/model/AddIpRangeRequest.cc | 105 + ecs/src/model/AddIpRangeResult.cc | 45 + ecs/src/model/AddTagsRequest.cc | 204 + ecs/src/model/AddTagsResult.cc | 45 + ecs/src/model/AllocateEipAddressRequest.cc | 116 + ecs/src/model/AllocateEipAddressResult.cc | 67 + .../model/AllocatePublicIpAddressRequest.cc | 105 + .../model/AllocatePublicIpAddressResult.cc | 56 + .../model/ApplyAutoSnapshotPolicyRequest.cc | 94 + .../model/ApplyAutoSnapshotPolicyResult.cc | 45 + ecs/src/model/AssociateEipAddressRequest.cc | 105 + ecs/src/model/AssociateEipAddressResult.cc | 45 + ecs/src/model/AssociateHaVipRequest.cc | 116 + ecs/src/model/AssociateHaVipResult.cc | 45 + ecs/src/model/AttachClassicLinkVpcRequest.cc | 94 + ecs/src/model/AttachClassicLinkVpcResult.cc | 45 + ecs/src/model/AttachDiskRequest.cc | 116 + ecs/src/model/AttachDiskResult.cc | 45 + ecs/src/model/AttachInstanceRamRoleRequest.cc | 94 + ecs/src/model/AttachInstanceRamRoleResult.cc | 88 + ecs/src/model/AttachKeyPairRequest.cc | 94 + ecs/src/model/AttachKeyPairResult.cc | 88 + .../model/AttachNetworkInterfaceRequest.cc | 314 + ecs/src/model/AttachNetworkInterfaceResult.cc | 45 + .../AuthorizeSecurityGroupEgressRequest.cc | 446 + .../AuthorizeSecurityGroupEgressResult.cc | 45 + .../model/AuthorizeSecurityGroupRequest.cc | 446 + ecs/src/model/AuthorizeSecurityGroupResult.cc | 45 + ecs/src/model/BindIpRangeRequest.cc | 94 + ecs/src/model/BindIpRangeResult.cc | 45 + ecs/src/model/CancelAgreementRequest.cc | 281 + ecs/src/model/CancelAgreementResult.cc | 45 + .../model/CancelAutoSnapshotPolicyRequest.cc | 83 + .../model/CancelAutoSnapshotPolicyResult.cc | 45 + ecs/src/model/CancelCopyImageRequest.cc | 94 + ecs/src/model/CancelCopyImageResult.cc | 45 + .../model/CancelPhysicalConnectionRequest.cc | 116 + .../model/CancelPhysicalConnectionResult.cc | 45 + ecs/src/model/CancelTaskRequest.cc | 83 + ecs/src/model/CancelTaskResult.cc | 45 + .../model/CheckAutoSnapshotPolicyRequest.cc | 160 + .../model/CheckAutoSnapshotPolicyResult.cc | 67 + ...DiskEnableAutoSnapshotValidationRequest.cc | 83 + ...kDiskEnableAutoSnapshotValidationResult.cc | 67 + .../model/ConnectRouterInterfaceRequest.cc | 83 + ecs/src/model/ConnectRouterInterfaceResult.cc | 45 + .../model/ConvertNatPublicIpToEipRequest.cc | 281 + .../model/ConvertNatPublicIpToEipResult.cc | 45 + ecs/src/model/CopyImageRequest.cc | 248 + ecs/src/model/CopyImageResult.cc | 56 + .../model/CreateAutoSnapshotPolicyRequest.cc | 116 + .../model/CreateAutoSnapshotPolicyResult.cc | 56 + ecs/src/model/CreateCommandRequest.cc | 358 + ecs/src/model/CreateCommandResult.cc | 56 + ecs/src/model/CreateDeploymentSetRequest.cc | 160 + ecs/src/model/CreateDeploymentSetResult.cc | 56 + ecs/src/model/CreateDiskRequest.cc | 292 + ecs/src/model/CreateDiskResult.cc | 56 + ecs/src/model/CreateForwardEntryRequest.cc | 149 + ecs/src/model/CreateForwardEntryResult.cc | 56 + ecs/src/model/CreateHaVipRequest.cc | 127 + ecs/src/model/CreateHaVipResult.cc | 56 + ecs/src/model/CreateHpcClusterRequest.cc | 314 + ecs/src/model/CreateHpcClusterResult.cc | 56 + ecs/src/model/CreateImageRequest.cc | 300 + ecs/src/model/CreateImageResult.cc | 56 + ecs/src/model/CreateInstanceRequest.cc | 634 ++ ecs/src/model/CreateInstanceResult.cc | 56 + ecs/src/model/CreateKeyPairRequest.cc | 83 + ecs/src/model/CreateKeyPairResult.cc | 78 + ecs/src/model/CreateNatGatewayRequest.cc | 145 + ecs/src/model/CreateNatGatewayResult.cc | 82 + .../model/CreateNetworkInterfaceRequest.cc | 358 + ecs/src/model/CreateNetworkInterfaceResult.cc | 56 + .../model/CreatePhysicalConnectionRequest.cc | 215 + .../model/CreatePhysicalConnectionResult.cc | 56 + ecs/src/model/CreateRouteEntryRequest.cc | 144 + ecs/src/model/CreateRouteEntryResult.cc | 45 + ecs/src/model/CreateRouterInterfaceRequest.cc | 270 + ecs/src/model/CreateRouterInterfaceResult.cc | 56 + ecs/src/model/CreateSecurityGroupRequest.cc | 237 + ecs/src/model/CreateSecurityGroupResult.cc | 56 + ecs/src/model/CreateSnapshotRequest.cc | 226 + ecs/src/model/CreateSnapshotResult.cc | 56 + ecs/src/model/CreateVSwitchRequest.cc | 138 + ecs/src/model/CreateVSwitchResult.cc | 56 + .../model/CreateVirtualBorderRouterRequest.cc | 204 + .../model/CreateVirtualBorderRouterResult.cc | 56 + ecs/src/model/CreateVpcRequest.cc | 138 + ecs/src/model/CreateVpcResult.cc | 78 + .../model/DeactivateRouterInterfaceRequest.cc | 83 + .../model/DeactivateRouterInterfaceResult.cc | 45 + .../model/DeleteAutoSnapshotPolicyRequest.cc | 83 + .../model/DeleteAutoSnapshotPolicyResult.cc | 45 + .../model/DeleteBandwidthPackageRequest.cc | 94 + ecs/src/model/DeleteBandwidthPackageResult.cc | 45 + ecs/src/model/DeleteCommandRequest.cc | 303 + ecs/src/model/DeleteCommandResult.cc | 45 + ecs/src/model/DeleteDeploymentSetRequest.cc | 94 + ecs/src/model/DeleteDeploymentSetResult.cc | 45 + ecs/src/model/DeleteDiskRequest.cc | 83 + ecs/src/model/DeleteDiskResult.cc | 45 + ecs/src/model/DeleteForwardEntryRequest.cc | 105 + ecs/src/model/DeleteForwardEntryResult.cc | 45 + ecs/src/model/DeleteHaVipRequest.cc | 105 + ecs/src/model/DeleteHaVipResult.cc | 45 + ecs/src/model/DeleteHpcClusterRequest.cc | 303 + ecs/src/model/DeleteHpcClusterResult.cc | 45 + ecs/src/model/DeleteImageRequest.cc | 105 + ecs/src/model/DeleteImageResult.cc | 45 + ecs/src/model/DeleteInstanceRequest.cc | 105 + ecs/src/model/DeleteInstanceResult.cc | 45 + ecs/src/model/DeleteKeyPairsRequest.cc | 83 + ecs/src/model/DeleteKeyPairsResult.cc | 45 + ecs/src/model/DeleteNatGatewayRequest.cc | 94 + ecs/src/model/DeleteNatGatewayResult.cc | 45 + .../model/DeleteNetworkInterfaceRequest.cc | 303 + ecs/src/model/DeleteNetworkInterfaceResult.cc | 45 + .../model/DeletePhysicalConnectionRequest.cc | 116 + .../model/DeletePhysicalConnectionResult.cc | 45 + ecs/src/model/DeleteRecycleBinRequest.cc | 94 + ecs/src/model/DeleteRecycleBinResult.cc | 45 + ecs/src/model/DeleteRouteEntryRequest.cc | 122 + ecs/src/model/DeleteRouteEntryResult.cc | 45 + ecs/src/model/DeleteRouterInterfaceRequest.cc | 116 + ecs/src/model/DeleteRouterInterfaceResult.cc | 45 + ecs/src/model/DeleteSecurityGroupRequest.cc | 94 + ecs/src/model/DeleteSecurityGroupResult.cc | 45 + ecs/src/model/DeleteSnapshotRequest.cc | 94 + ecs/src/model/DeleteSnapshotResult.cc | 45 + ecs/src/model/DeleteVSwitchRequest.cc | 83 + ecs/src/model/DeleteVSwitchResult.cc | 45 + .../model/DeleteVirtualBorderRouterRequest.cc | 116 + .../model/DeleteVirtualBorderRouterResult.cc | 45 + ecs/src/model/DeleteVpcRequest.cc | 83 + ecs/src/model/DeleteVpcResult.cc | 45 + ecs/src/model/DescribeAccessPointsRequest.cc | 122 + ecs/src/model/DescribeAccessPointsResult.cc | 92 + .../DescribeAutoSnapshotPolicyExRequest.cc | 116 + .../DescribeAutoSnapshotPolicyExResult.cc | 94 + .../DescribeAutoSnapshotPolicyRequest.cc | 72 + .../model/DescribeAutoSnapshotPolicyResult.cc | 78 + .../model/DescribeBandwidthPackagesRequest.cc | 127 + .../model/DescribeBandwidthPackagesResult.cc | 105 + .../DescribeClassicLinkInstancesRequest.cc | 116 + .../DescribeClassicLinkInstancesResult.cc | 86 + ecs/src/model/DescribeClustersRequest.cc | 83 + ecs/src/model/DescribeClustersResult.cc | 52 + ecs/src/model/DescribeCommandsRequest.cc | 358 + ecs/src/model/DescribeCommandsResult.cc | 91 + .../DescribeDeploymentSetTopologyRequest.cc | 138 + .../DescribeDeploymentSetTopologyResult.cc | 79 + .../model/DescribeDeploymentSetsRequest.cc | 171 + ecs/src/model/DescribeDeploymentSetsResult.cc | 103 + .../model/DescribeDiskMonitorDataRequest.cc | 116 + .../model/DescribeDiskMonitorDataResult.cc | 72 + .../model/DescribeDisksFullStatusRequest.cc | 393 + .../model/DescribeDisksFullStatusResult.cc | 117 + ecs/src/model/DescribeDisksRequest.cc | 491 + ecs/src/model/DescribeDisksResult.cc | 139 + ecs/src/model/DescribeEipAddressesRequest.cc | 226 + ecs/src/model/DescribeEipAddressesResult.cc | 103 + .../model/DescribeEipMonitorDataRequest.cc | 116 + ecs/src/model/DescribeEipMonitorDataResult.cc | 57 + .../DescribeForwardTableEntriesRequest.cc | 127 + .../DescribeForwardTableEntriesResult.cc | 92 + ecs/src/model/DescribeHaVipsRequest.cc | 122 + ecs/src/model/DescribeHaVipsResult.cc | 99 + ecs/src/model/DescribeHpcClustersRequest.cc | 325 + ecs/src/model/DescribeHpcClustersResult.cc | 87 + .../DescribeImageSharePermissionRequest.cc | 116 + .../DescribeImageSharePermissionResult.cc | 114 + ...escribeImageSupportInstanceTypesRequest.cc | 83 + ...DescribeImageSupportInstanceTypesResult.cc | 77 + ecs/src/model/DescribeImagesRequest.cc | 402 + ecs/src/model/DescribeImagesResult.cc | 136 + .../model/DescribeInstanceAttributeRequest.cc | 83 + .../model/DescribeInstanceAttributeResult.cc | 366 + ...scribeInstanceAutoRenewAttributeRequest.cc | 94 + ...escribeInstanceAutoRenewAttributeResult.cc | 56 + .../DescribeInstanceHistoryEventsRequest.cc | 403 + .../DescribeInstanceHistoryEventsResult.cc | 96 + .../DescribeInstanceMonitorDataRequest.cc | 116 + .../DescribeInstanceMonitorDataResult.cc | 66 + ...escribeInstancePhysicalAttributeRequest.cc | 83 + ...DescribeInstancePhysicalAttributeResult.cc | 89 + .../model/DescribeInstanceRamRoleRequest.cc | 116 + .../model/DescribeInstanceRamRoleResult.cc | 75 + .../model/DescribeInstanceStatusRequest.cc | 127 + ecs/src/model/DescribeInstanceStatusResult.cc | 86 + .../DescribeInstanceTypeFamiliesRequest.cc | 94 + .../DescribeInstanceTypeFamiliesResult.cc | 53 + ecs/src/model/DescribeInstanceTypesRequest.cc | 83 + ecs/src/model/DescribeInstanceTypesResult.cc | 62 + .../model/DescribeInstanceVncPasswdRequest.cc | 94 + .../model/DescribeInstanceVncPasswdResult.cc | 56 + .../model/DescribeInstanceVncUrlRequest.cc | 94 + ecs/src/model/DescribeInstanceVncUrlResult.cc | 56 + .../DescribeInstancesFullStatusRequest.cc | 415 + .../DescribeInstancesFullStatusResult.cc | 126 + ecs/src/model/DescribeInstancesRequest.cc | 578 ++ ecs/src/model/DescribeInstancesResult.cc | 184 + .../DescribeIntranetAttributeKbRequest.cc | 83 + .../DescribeIntranetAttributeKbResult.cc | 100 + .../model/DescribeInvocationResultsRequest.cc | 358 + .../model/DescribeInvocationResultsResult.cc | 67 + ecs/src/model/DescribeInvocationsRequest.cc | 391 + ecs/src/model/DescribeInvocationsResult.cc | 99 + ecs/src/model/DescribeIpRangesRequest.cc | 127 + ecs/src/model/DescribeIpRangesResult.cc | 108 + ecs/src/model/DescribeKeyPairsRequest.cc | 116 + ecs/src/model/DescribeKeyPairsResult.cc | 86 + ecs/src/model/DescribeLimitationRequest.cc | 83 + ecs/src/model/DescribeLimitationResult.cc | 67 + ecs/src/model/DescribeNatGatewaysRequest.cc | 127 + ecs/src/model/DescribeNatGatewaysResult.cc | 100 + .../model/DescribeNetworkInterfacesRequest.cc | 392 + .../model/DescribeNetworkInterfacesResult.cc | 123 + ...DescribeNewProjectEipMonitorDataRequest.cc | 116 + .../DescribeNewProjectEipMonitorDataResult.cc | 57 + .../DescribePhysicalConnectionsRequest.cc | 144 + .../DescribePhysicalConnectionsResult.cc | 102 + ecs/src/model/DescribePriceRequest.cc | 303 + ecs/src/model/DescribePriceResult.cc | 69 + .../DescribeRecommendInstanceTypeRequest.cc | 160 + .../DescribeRecommendInstanceTypeResult.cc | 76 + ecs/src/model/DescribeRecycleBinRequest.cc | 127 + ecs/src/model/DescribeRecycleBinResult.cc | 75 + ecs/src/model/DescribeRegionsRequest.cc | 94 + ecs/src/model/DescribeRegionsResult.cc | 54 + ecs/src/model/DescribeRenewalPriceRequest.cc | 127 + ecs/src/model/DescribeRenewalPriceResult.cc | 69 + .../model/DescribeResourceByTagsRequest.cc | 215 + ecs/src/model/DescribeResourceByTagsResult.cc | 87 + ecs/src/model/DescribeRouteTablesRequest.cc | 149 + ecs/src/model/DescribeRouteTablesResult.cc | 110 + .../model/DescribeRouterInterfacesRequest.cc | 111 + .../model/DescribeRouterInterfacesResult.cc | 109 + .../DescribeSecurityGroupAttributeRequest.cc | 116 + .../DescribeSecurityGroupAttributeResult.cc | 133 + .../DescribeSecurityGroupReferencesRequest.cc | 95 + .../DescribeSecurityGroupReferencesResult.cc | 60 + .../model/DescribeSecurityGroupsRequest.cc | 303 + ecs/src/model/DescribeSecurityGroupsResult.cc | 110 + ecs/src/model/DescribeSnapshotLinksRequest.cc | 138 + ecs/src/model/DescribeSnapshotLinksResult.cc | 93 + .../DescribeSnapshotMonitorDataRequest.cc | 116 + .../DescribeSnapshotMonitorDataResult.cc | 53 + .../model/DescribeSnapshotPackageRequest.cc | 105 + .../model/DescribeSnapshotPackageResult.cc | 88 + ecs/src/model/DescribeSnapshotsRequest.cc | 380 + ecs/src/model/DescribeSnapshotsResult.cc | 106 + .../model/DescribeSnapshotsUsageRequest.cc | 292 + ecs/src/model/DescribeSnapshotsUsageResult.cc | 67 + .../model/DescribeSpotPriceHistoryRequest.cc | 380 + .../model/DescribeSpotPriceHistoryResult.cc | 80 + ecs/src/model/DescribeTagKeysRequest.cc | 116 + ecs/src/model/DescribeTagKeysResult.cc | 91 + ecs/src/model/DescribeTagsRequest.cc | 226 + ecs/src/model/DescribeTagsResult.cc | 98 + ecs/src/model/DescribeTaskAttributeRequest.cc | 83 + ecs/src/model/DescribeTaskAttributeResult.cc | 183 + ecs/src/model/DescribeTasksRequest.cc | 160 + ecs/src/model/DescribeTasksResult.cc | 101 + .../DescribeUserBusinessBehaviorRequest.cc | 292 + .../DescribeUserBusinessBehaviorResult.cc | 56 + ecs/src/model/DescribeUserDataRequest.cc | 83 + ecs/src/model/DescribeUserDataResult.cc | 78 + ecs/src/model/DescribeVRoutersRequest.cc | 116 + ecs/src/model/DescribeVRoutersResult.cc | 93 + ecs/src/model/DescribeVSwitchesRequest.cc | 149 + ecs/src/model/DescribeVSwitchesResult.cc | 94 + ...rderRoutersForPhysicalConnectionRequest.cc | 122 + ...orderRoutersForPhysicalConnectionResult.cc | 92 + .../DescribeVirtualBorderRoutersRequest.cc | 111 + .../DescribeVirtualBorderRoutersResult.cc | 104 + ecs/src/model/DescribeVpcsRequest.cc | 127 + ecs/src/model/DescribeVpcsResult.cc | 99 + ecs/src/model/DescribeZonesRequest.cc | 116 + ecs/src/model/DescribeZonesResult.cc | 90 + ecs/src/model/DetachClassicLinkVpcRequest.cc | 94 + ecs/src/model/DetachClassicLinkVpcResult.cc | 45 + ecs/src/model/DetachDiskRequest.cc | 94 + ecs/src/model/DetachDiskResult.cc | 45 + ecs/src/model/DetachInstanceRamRoleRequest.cc | 94 + ecs/src/model/DetachInstanceRamRoleResult.cc | 96 + ecs/src/model/DetachKeyPairRequest.cc | 94 + ecs/src/model/DetachKeyPairResult.cc | 88 + .../model/DetachNetworkInterfaceRequest.cc | 314 + ecs/src/model/DetachNetworkInterfaceResult.cc | 45 + ecs/src/model/EipFillParamsRequest.cc | 105 + ecs/src/model/EipFillParamsResult.cc | 100 + ecs/src/model/EipFillProductRequest.cc | 105 + ecs/src/model/EipFillProductResult.cc | 100 + ecs/src/model/EipNotifyPaidRequest.cc | 105 + ecs/src/model/EipNotifyPaidResult.cc | 100 + .../model/EnablePhysicalConnectionRequest.cc | 116 + .../model/EnablePhysicalConnectionResult.cc | 45 + ecs/src/model/ExportImageRequest.cc | 127 + ecs/src/model/ExportImageResult.cc | 67 + ecs/src/model/ImportImageRequest.cc | 159 + ecs/src/model/ImportImageResult.cc | 78 + ecs/src/model/ImportKeyPairRequest.cc | 94 + ecs/src/model/ImportKeyPairResult.cc | 67 + ecs/src/model/InvokeCommandRequest.cc | 337 + ecs/src/model/InvokeCommandResult.cc | 56 + ecs/src/model/JoinResourceGroupRequest.cc | 116 + ecs/src/model/JoinResourceGroupResult.cc | 45 + ecs/src/model/JoinSecurityGroupRequest.cc | 94 + ecs/src/model/JoinSecurityGroupResult.cc | 45 + ecs/src/model/LeaveSecurityGroupRequest.cc | 94 + ecs/src/model/LeaveSecurityGroupResult.cc | 45 + .../ModifyAutoSnapshotPolicyExRequest.cc | 127 + .../model/ModifyAutoSnapshotPolicyExResult.cc | 45 + .../model/ModifyAutoSnapshotPolicyRequest.cc | 160 + .../model/ModifyAutoSnapshotPolicyResult.cc | 45 + .../ModifyBandwidthPackageSpecRequest.cc | 105 + .../model/ModifyBandwidthPackageSpecResult.cc | 45 + ecs/src/model/ModifyCommandRequest.cc | 358 + ecs/src/model/ModifyCommandResult.cc | 45 + .../ModifyDeploymentSetAttributeRequest.cc | 116 + .../ModifyDeploymentSetAttributeResult.cc | 45 + ecs/src/model/ModifyDiskAttributeRequest.cc | 138 + ecs/src/model/ModifyDiskAttributeResult.cc | 45 + ecs/src/model/ModifyDiskChargeTypeRequest.cc | 127 + ecs/src/model/ModifyDiskChargeTypeResult.cc | 56 + .../model/ModifyEipAddressAttributeRequest.cc | 94 + .../model/ModifyEipAddressAttributeResult.cc | 45 + ecs/src/model/ModifyForwardEntryRequest.cc | 160 + ecs/src/model/ModifyForwardEntryResult.cc | 45 + ecs/src/model/ModifyHaVipAttributeRequest.cc | 116 + ecs/src/model/ModifyHaVipAttributeResult.cc | 45 + .../model/ModifyHpcClusterAttributeRequest.cc | 325 + .../model/ModifyHpcClusterAttributeResult.cc | 45 + ecs/src/model/ModifyImageAttributeRequest.cc | 116 + ecs/src/model/ModifyImageAttributeResult.cc | 45 + .../ModifyImageShareGroupPermissionRequest.cc | 116 + .../ModifyImageShareGroupPermissionResult.cc | 45 + .../ModifyImageSharePermissionRequest.cc | 314 + .../model/ModifyImageSharePermissionResult.cc | 45 + .../model/ModifyInstanceAttributeRequest.cc | 149 + .../model/ModifyInstanceAttributeResult.cc | 45 + .../ModifyInstanceAutoReleaseTimeRequest.cc | 105 + .../ModifyInstanceAutoReleaseTimeResult.cc | 45 + ...ModifyInstanceAutoRenewAttributeRequest.cc | 127 + .../ModifyInstanceAutoRenewAttributeResult.cc | 45 + .../model/ModifyInstanceChargeTypeRequest.cc | 160 + .../model/ModifyInstanceChargeTypeResult.cc | 56 + .../model/ModifyInstanceNetworkSpecRequest.cc | 171 + .../model/ModifyInstanceNetworkSpecResult.cc | 56 + ecs/src/model/ModifyInstanceSpecRequest.cc | 193 + ecs/src/model/ModifyInstanceSpecResult.cc | 45 + .../model/ModifyInstanceVncPasswdRequest.cc | 105 + .../model/ModifyInstanceVncPasswdResult.cc | 45 + .../ModifyInstanceVpcAttributeRequest.cc | 105 + .../model/ModifyInstanceVpcAttributeResult.cc | 45 + .../model/ModifyIntranetBandwidthKbRequest.cc | 105 + .../model/ModifyIntranetBandwidthKbResult.cc | 45 + .../ModifyNetworkInterfaceAttributeRequest.cc | 337 + .../ModifyNetworkInterfaceAttributeResult.cc | 45 + ...odifyPhysicalConnectionAttributeRequest.cc | 204 + ...ModifyPhysicalConnectionAttributeResult.cc | 45 + .../model/ModifyPrepayInstanceSpecRequest.cc | 127 + .../model/ModifyPrepayInstanceSpecResult.cc | 56 + .../ModifyRouterInterfaceAttributeRequest.cc | 171 + .../ModifyRouterInterfaceAttributeResult.cc | 45 + .../model/ModifyRouterInterfaceSpecRequest.cc | 127 + .../model/ModifyRouterInterfaceSpecResult.cc | 56 + .../ModifySecurityGroupAttributeRequest.cc | 116 + .../ModifySecurityGroupAttributeResult.cc | 45 + .../ModifySecurityGroupEgressRuleRequest.cc | 446 + .../ModifySecurityGroupEgressRuleResult.cc | 45 + .../model/ModifySecurityGroupPolicyRequest.cc | 116 + .../model/ModifySecurityGroupPolicyResult.cc | 45 + .../model/ModifySecurityGroupRuleRequest.cc | 446 + .../model/ModifySecurityGroupRuleResult.cc | 45 + .../model/ModifySnapshotAttributeRequest.cc | 105 + .../model/ModifySnapshotAttributeResult.cc | 45 + .../ModifyUserBusinessBehaviorRequest.cc | 303 + .../model/ModifyUserBusinessBehaviorResult.cc | 45 + .../model/ModifyVRouterAttributeRequest.cc | 105 + ecs/src/model/ModifyVRouterAttributeResult.cc | 45 + .../model/ModifyVSwitchAttributeRequest.cc | 105 + ecs/src/model/ModifyVSwitchAttributeResult.cc | 45 + ...difyVirtualBorderRouterAttributeRequest.cc | 193 + ...odifyVirtualBorderRouterAttributeResult.cc | 45 + ecs/src/model/ModifyVpcAttributeRequest.cc | 116 + ecs/src/model/ModifyVpcAttributeResult.cc | 45 + ecs/src/model/ReActivateInstancesRequest.cc | 94 + ecs/src/model/ReActivateInstancesResult.cc | 45 + ecs/src/model/ReInitDiskRequest.cc | 127 + ecs/src/model/ReInitDiskResult.cc | 45 + ecs/src/model/RebootInstanceRequest.cc | 94 + ecs/src/model/RebootInstanceResult.cc | 45 + .../RecoverVirtualBorderRouterRequest.cc | 116 + .../model/RecoverVirtualBorderRouterResult.cc | 45 + ecs/src/model/ReleaseEipAddressRequest.cc | 83 + ecs/src/model/ReleaseEipAddressResult.cc | 45 + .../model/ReleasePublicIpAddressRequest.cc | 94 + ecs/src/model/ReleasePublicIpAddressResult.cc | 45 + .../model/RemoveBandwidthPackageIpsRequest.cc | 117 + .../model/RemoveBandwidthPackageIpsResult.cc | 45 + ecs/src/model/RemoveTagsRequest.cc | 204 + ecs/src/model/RemoveTagsResult.cc | 45 + ecs/src/model/RenewInstanceRequest.cc | 116 + ecs/src/model/RenewInstanceResult.cc | 45 + ecs/src/model/ReplaceSystemDiskRequest.cc | 160 + ecs/src/model/ReplaceSystemDiskResult.cc | 56 + ecs/src/model/ResetDiskRequest.cc | 94 + ecs/src/model/ResetDiskResult.cc | 45 + ecs/src/model/ResizeDiskRequest.cc | 105 + ecs/src/model/ResizeDiskResult.cc | 45 + .../model/RevokeSecurityGroupEgressRequest.cc | 446 + .../model/RevokeSecurityGroupEgressResult.cc | 45 + ecs/src/model/RevokeSecurityGroupRequest.cc | 446 + ecs/src/model/RevokeSecurityGroupResult.cc | 45 + ecs/src/model/RunInstancesRequest.cc | 637 ++ ecs/src/model/RunInstancesResult.cc | 58 + ecs/src/model/SignAgreementRequest.cc | 281 + ecs/src/model/SignAgreementResult.cc | 45 + ecs/src/model/StartInstanceRequest.cc | 94 + ecs/src/model/StartInstanceResult.cc | 45 + ecs/src/model/StopInstanceRequest.cc | 116 + ecs/src/model/StopInstanceResult.cc | 45 + ecs/src/model/StopInvocationRequest.cc | 315 + ecs/src/model/StopInvocationResult.cc | 45 + .../TerminatePhysicalConnectionRequest.cc | 116 + .../TerminatePhysicalConnectionResult.cc | 45 + .../TerminateVirtualBorderRouterRequest.cc | 116 + .../TerminateVirtualBorderRouterResult.cc | 45 + ecs/src/model/UnassociateEipAddressRequest.cc | 105 + ecs/src/model/UnassociateEipAddressResult.cc | 45 + ecs/src/model/UnassociateHaVipRequest.cc | 127 + ecs/src/model/UnassociateHaVipResult.cc | 45 + ecs/src/model/UnbindIpRangeRequest.cc | 94 + ecs/src/model/UnbindIpRangeResult.cc | 45 + 889 files changed, 94214 insertions(+), 1 deletion(-) create mode 100644 ecs/CMakeLists.txt create mode 100644 ecs/ChangeLog.txt create mode 100644 ecs/include/alibabacloud/ecs/EcsClient.h create mode 100644 ecs/include/alibabacloud/ecs/EcsExport.h create mode 100644 ecs/include/alibabacloud/ecs/EcsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/AddIpRangeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/AddIpRangeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/AddTagsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/AddTagsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/AllocateEipAddressRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/AllocateEipAddressResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/AssociateEipAddressRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/AssociateEipAddressResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/AssociateHaVipRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/AssociateHaVipResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/AttachDiskRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/AttachDiskResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/AttachKeyPairRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/AttachKeyPairResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/BindIpRangeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/BindIpRangeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CancelAgreementRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CancelAgreementResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CancelCopyImageRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CancelCopyImageResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CancelTaskRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CancelTaskResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CopyImageRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CopyImageResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateCommandRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateCommandResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateDeploymentSetRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateDeploymentSetResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateDiskRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateDiskResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateForwardEntryRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateForwardEntryResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateHaVipRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateHaVipResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateHpcClusterRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateHpcClusterResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateImageRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateImageResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateInstanceRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateInstanceResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateKeyPairRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateKeyPairResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateNatGatewayRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateNatGatewayResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateRouteEntryRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateRouteEntryResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateSecurityGroupRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateSecurityGroupResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateSnapshotRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateSnapshotResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateVSwitchRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateVSwitchResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateVpcRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/CreateVpcResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteCommandRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteCommandResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteDiskRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteDiskResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteForwardEntryRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteForwardEntryResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteHaVipRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteHaVipResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteHpcClusterRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteHpcClusterResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteImageRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteImageResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteInstanceRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteInstanceResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteKeyPairsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteKeyPairsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteNatGatewayRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteNatGatewayResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteRecycleBinRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteRecycleBinResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteRouteEntryRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteRouteEntryResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteSnapshotRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteSnapshotResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteVSwitchRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteVSwitchResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteVpcRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DeleteVpcResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeAccessPointsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeAccessPointsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeClustersRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeClustersResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeCommandsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeCommandsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetTopologyRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetTopologyResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeDisksRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeDisksResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeEipAddressesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeEipAddressesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeHaVipsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeHaVipsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeHpcClustersRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeHpcClustersResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeImagesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeImagesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstancesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInstancesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeIntranetAttributeKbRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeIntranetAttributeKbResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeInvocationsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeIpRangesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeIpRangesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeKeyPairsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeKeyPairsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeLimitationRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeLimitationResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribePriceRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribePriceResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeRecycleBinRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeRecycleBinResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeRegionsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeRegionsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeRouteTablesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeRouteTablesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSnapshotsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSnapshotsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeTagKeysRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeTagKeysResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeTagsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeTagsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeTasksRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeTasksResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeUserDataRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeUserDataResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeVRoutersRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeVRoutersResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeVSwitchesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeVSwitchesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeVpcsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeVpcsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeZonesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DescribeZonesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DetachDiskRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DetachDiskResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DetachKeyPairRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DetachKeyPairResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/EipFillParamsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/EipFillParamsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/EipFillProductRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/EipFillProductResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/EipNotifyPaidRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/EipNotifyPaidResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ExportImageRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ExportImageResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ImportImageRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ImportImageResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ImportKeyPairRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ImportKeyPairResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/InvokeCommandRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/InvokeCommandResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/JoinResourceGroupRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/JoinResourceGroupResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/JoinSecurityGroupRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/JoinSecurityGroupResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyCommandRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyCommandResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyForwardEntryRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyForwardEntryResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyImageAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyImageAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ReActivateInstancesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ReActivateInstancesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ReInitDiskRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ReInitDiskResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/RebootInstanceRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/RebootInstanceResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ReleaseEipAddressRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ReleaseEipAddressResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/RemoveTagsRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/RemoveTagsResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/RenewInstanceRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/RenewInstanceResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ResetDiskRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ResetDiskResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/ResizeDiskRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/ResizeDiskResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/RunInstancesResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/SignAgreementRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/SignAgreementResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/StartInstanceRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/StartInstanceResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/StopInstanceRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/StopInstanceResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/StopInvocationRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/StopInvocationResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/UnassociateEipAddressRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/UnassociateEipAddressResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/UnassociateHaVipRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/UnassociateHaVipResult.h create mode 100644 ecs/include/alibabacloud/ecs/model/UnbindIpRangeRequest.h create mode 100644 ecs/include/alibabacloud/ecs/model/UnbindIpRangeResult.h create mode 100644 ecs/src/EcsClient.cc create mode 100644 ecs/src/EcsRequest.cc create mode 100644 ecs/src/model/ActivateRouterInterfaceRequest.cc create mode 100644 ecs/src/model/ActivateRouterInterfaceResult.cc create mode 100644 ecs/src/model/AddBandwidthPackageIpsRequest.cc create mode 100644 ecs/src/model/AddBandwidthPackageIpsResult.cc create mode 100644 ecs/src/model/AddIpRangeRequest.cc create mode 100644 ecs/src/model/AddIpRangeResult.cc create mode 100644 ecs/src/model/AddTagsRequest.cc create mode 100644 ecs/src/model/AddTagsResult.cc create mode 100644 ecs/src/model/AllocateEipAddressRequest.cc create mode 100644 ecs/src/model/AllocateEipAddressResult.cc create mode 100644 ecs/src/model/AllocatePublicIpAddressRequest.cc create mode 100644 ecs/src/model/AllocatePublicIpAddressResult.cc create mode 100644 ecs/src/model/ApplyAutoSnapshotPolicyRequest.cc create mode 100644 ecs/src/model/ApplyAutoSnapshotPolicyResult.cc create mode 100644 ecs/src/model/AssociateEipAddressRequest.cc create mode 100644 ecs/src/model/AssociateEipAddressResult.cc create mode 100644 ecs/src/model/AssociateHaVipRequest.cc create mode 100644 ecs/src/model/AssociateHaVipResult.cc create mode 100644 ecs/src/model/AttachClassicLinkVpcRequest.cc create mode 100644 ecs/src/model/AttachClassicLinkVpcResult.cc create mode 100644 ecs/src/model/AttachDiskRequest.cc create mode 100644 ecs/src/model/AttachDiskResult.cc create mode 100644 ecs/src/model/AttachInstanceRamRoleRequest.cc create mode 100644 ecs/src/model/AttachInstanceRamRoleResult.cc create mode 100644 ecs/src/model/AttachKeyPairRequest.cc create mode 100644 ecs/src/model/AttachKeyPairResult.cc create mode 100644 ecs/src/model/AttachNetworkInterfaceRequest.cc create mode 100644 ecs/src/model/AttachNetworkInterfaceResult.cc create mode 100644 ecs/src/model/AuthorizeSecurityGroupEgressRequest.cc create mode 100644 ecs/src/model/AuthorizeSecurityGroupEgressResult.cc create mode 100644 ecs/src/model/AuthorizeSecurityGroupRequest.cc create mode 100644 ecs/src/model/AuthorizeSecurityGroupResult.cc create mode 100644 ecs/src/model/BindIpRangeRequest.cc create mode 100644 ecs/src/model/BindIpRangeResult.cc create mode 100644 ecs/src/model/CancelAgreementRequest.cc create mode 100644 ecs/src/model/CancelAgreementResult.cc create mode 100644 ecs/src/model/CancelAutoSnapshotPolicyRequest.cc create mode 100644 ecs/src/model/CancelAutoSnapshotPolicyResult.cc create mode 100644 ecs/src/model/CancelCopyImageRequest.cc create mode 100644 ecs/src/model/CancelCopyImageResult.cc create mode 100644 ecs/src/model/CancelPhysicalConnectionRequest.cc create mode 100644 ecs/src/model/CancelPhysicalConnectionResult.cc create mode 100644 ecs/src/model/CancelTaskRequest.cc create mode 100644 ecs/src/model/CancelTaskResult.cc create mode 100644 ecs/src/model/CheckAutoSnapshotPolicyRequest.cc create mode 100644 ecs/src/model/CheckAutoSnapshotPolicyResult.cc create mode 100644 ecs/src/model/CheckDiskEnableAutoSnapshotValidationRequest.cc create mode 100644 ecs/src/model/CheckDiskEnableAutoSnapshotValidationResult.cc create mode 100644 ecs/src/model/ConnectRouterInterfaceRequest.cc create mode 100644 ecs/src/model/ConnectRouterInterfaceResult.cc create mode 100644 ecs/src/model/ConvertNatPublicIpToEipRequest.cc create mode 100644 ecs/src/model/ConvertNatPublicIpToEipResult.cc create mode 100644 ecs/src/model/CopyImageRequest.cc create mode 100644 ecs/src/model/CopyImageResult.cc create mode 100644 ecs/src/model/CreateAutoSnapshotPolicyRequest.cc create mode 100644 ecs/src/model/CreateAutoSnapshotPolicyResult.cc create mode 100644 ecs/src/model/CreateCommandRequest.cc create mode 100644 ecs/src/model/CreateCommandResult.cc create mode 100644 ecs/src/model/CreateDeploymentSetRequest.cc create mode 100644 ecs/src/model/CreateDeploymentSetResult.cc create mode 100644 ecs/src/model/CreateDiskRequest.cc create mode 100644 ecs/src/model/CreateDiskResult.cc create mode 100644 ecs/src/model/CreateForwardEntryRequest.cc create mode 100644 ecs/src/model/CreateForwardEntryResult.cc create mode 100644 ecs/src/model/CreateHaVipRequest.cc create mode 100644 ecs/src/model/CreateHaVipResult.cc create mode 100644 ecs/src/model/CreateHpcClusterRequest.cc create mode 100644 ecs/src/model/CreateHpcClusterResult.cc create mode 100644 ecs/src/model/CreateImageRequest.cc create mode 100644 ecs/src/model/CreateImageResult.cc create mode 100644 ecs/src/model/CreateInstanceRequest.cc create mode 100644 ecs/src/model/CreateInstanceResult.cc create mode 100644 ecs/src/model/CreateKeyPairRequest.cc create mode 100644 ecs/src/model/CreateKeyPairResult.cc create mode 100644 ecs/src/model/CreateNatGatewayRequest.cc create mode 100644 ecs/src/model/CreateNatGatewayResult.cc create mode 100644 ecs/src/model/CreateNetworkInterfaceRequest.cc create mode 100644 ecs/src/model/CreateNetworkInterfaceResult.cc create mode 100644 ecs/src/model/CreatePhysicalConnectionRequest.cc create mode 100644 ecs/src/model/CreatePhysicalConnectionResult.cc create mode 100644 ecs/src/model/CreateRouteEntryRequest.cc create mode 100644 ecs/src/model/CreateRouteEntryResult.cc create mode 100644 ecs/src/model/CreateRouterInterfaceRequest.cc create mode 100644 ecs/src/model/CreateRouterInterfaceResult.cc create mode 100644 ecs/src/model/CreateSecurityGroupRequest.cc create mode 100644 ecs/src/model/CreateSecurityGroupResult.cc create mode 100644 ecs/src/model/CreateSnapshotRequest.cc create mode 100644 ecs/src/model/CreateSnapshotResult.cc create mode 100644 ecs/src/model/CreateVSwitchRequest.cc create mode 100644 ecs/src/model/CreateVSwitchResult.cc create mode 100644 ecs/src/model/CreateVirtualBorderRouterRequest.cc create mode 100644 ecs/src/model/CreateVirtualBorderRouterResult.cc create mode 100644 ecs/src/model/CreateVpcRequest.cc create mode 100644 ecs/src/model/CreateVpcResult.cc create mode 100644 ecs/src/model/DeactivateRouterInterfaceRequest.cc create mode 100644 ecs/src/model/DeactivateRouterInterfaceResult.cc create mode 100644 ecs/src/model/DeleteAutoSnapshotPolicyRequest.cc create mode 100644 ecs/src/model/DeleteAutoSnapshotPolicyResult.cc create mode 100644 ecs/src/model/DeleteBandwidthPackageRequest.cc create mode 100644 ecs/src/model/DeleteBandwidthPackageResult.cc create mode 100644 ecs/src/model/DeleteCommandRequest.cc create mode 100644 ecs/src/model/DeleteCommandResult.cc create mode 100644 ecs/src/model/DeleteDeploymentSetRequest.cc create mode 100644 ecs/src/model/DeleteDeploymentSetResult.cc create mode 100644 ecs/src/model/DeleteDiskRequest.cc create mode 100644 ecs/src/model/DeleteDiskResult.cc create mode 100644 ecs/src/model/DeleteForwardEntryRequest.cc create mode 100644 ecs/src/model/DeleteForwardEntryResult.cc create mode 100644 ecs/src/model/DeleteHaVipRequest.cc create mode 100644 ecs/src/model/DeleteHaVipResult.cc create mode 100644 ecs/src/model/DeleteHpcClusterRequest.cc create mode 100644 ecs/src/model/DeleteHpcClusterResult.cc create mode 100644 ecs/src/model/DeleteImageRequest.cc create mode 100644 ecs/src/model/DeleteImageResult.cc create mode 100644 ecs/src/model/DeleteInstanceRequest.cc create mode 100644 ecs/src/model/DeleteInstanceResult.cc create mode 100644 ecs/src/model/DeleteKeyPairsRequest.cc create mode 100644 ecs/src/model/DeleteKeyPairsResult.cc create mode 100644 ecs/src/model/DeleteNatGatewayRequest.cc create mode 100644 ecs/src/model/DeleteNatGatewayResult.cc create mode 100644 ecs/src/model/DeleteNetworkInterfaceRequest.cc create mode 100644 ecs/src/model/DeleteNetworkInterfaceResult.cc create mode 100644 ecs/src/model/DeletePhysicalConnectionRequest.cc create mode 100644 ecs/src/model/DeletePhysicalConnectionResult.cc create mode 100644 ecs/src/model/DeleteRecycleBinRequest.cc create mode 100644 ecs/src/model/DeleteRecycleBinResult.cc create mode 100644 ecs/src/model/DeleteRouteEntryRequest.cc create mode 100644 ecs/src/model/DeleteRouteEntryResult.cc create mode 100644 ecs/src/model/DeleteRouterInterfaceRequest.cc create mode 100644 ecs/src/model/DeleteRouterInterfaceResult.cc create mode 100644 ecs/src/model/DeleteSecurityGroupRequest.cc create mode 100644 ecs/src/model/DeleteSecurityGroupResult.cc create mode 100644 ecs/src/model/DeleteSnapshotRequest.cc create mode 100644 ecs/src/model/DeleteSnapshotResult.cc create mode 100644 ecs/src/model/DeleteVSwitchRequest.cc create mode 100644 ecs/src/model/DeleteVSwitchResult.cc create mode 100644 ecs/src/model/DeleteVirtualBorderRouterRequest.cc create mode 100644 ecs/src/model/DeleteVirtualBorderRouterResult.cc create mode 100644 ecs/src/model/DeleteVpcRequest.cc create mode 100644 ecs/src/model/DeleteVpcResult.cc create mode 100644 ecs/src/model/DescribeAccessPointsRequest.cc create mode 100644 ecs/src/model/DescribeAccessPointsResult.cc create mode 100644 ecs/src/model/DescribeAutoSnapshotPolicyExRequest.cc create mode 100644 ecs/src/model/DescribeAutoSnapshotPolicyExResult.cc create mode 100644 ecs/src/model/DescribeAutoSnapshotPolicyRequest.cc create mode 100644 ecs/src/model/DescribeAutoSnapshotPolicyResult.cc create mode 100644 ecs/src/model/DescribeBandwidthPackagesRequest.cc create mode 100644 ecs/src/model/DescribeBandwidthPackagesResult.cc create mode 100644 ecs/src/model/DescribeClassicLinkInstancesRequest.cc create mode 100644 ecs/src/model/DescribeClassicLinkInstancesResult.cc create mode 100644 ecs/src/model/DescribeClustersRequest.cc create mode 100644 ecs/src/model/DescribeClustersResult.cc create mode 100644 ecs/src/model/DescribeCommandsRequest.cc create mode 100644 ecs/src/model/DescribeCommandsResult.cc create mode 100644 ecs/src/model/DescribeDeploymentSetTopologyRequest.cc create mode 100644 ecs/src/model/DescribeDeploymentSetTopologyResult.cc create mode 100644 ecs/src/model/DescribeDeploymentSetsRequest.cc create mode 100644 ecs/src/model/DescribeDeploymentSetsResult.cc create mode 100644 ecs/src/model/DescribeDiskMonitorDataRequest.cc create mode 100644 ecs/src/model/DescribeDiskMonitorDataResult.cc create mode 100644 ecs/src/model/DescribeDisksFullStatusRequest.cc create mode 100644 ecs/src/model/DescribeDisksFullStatusResult.cc create mode 100644 ecs/src/model/DescribeDisksRequest.cc create mode 100644 ecs/src/model/DescribeDisksResult.cc create mode 100644 ecs/src/model/DescribeEipAddressesRequest.cc create mode 100644 ecs/src/model/DescribeEipAddressesResult.cc create mode 100644 ecs/src/model/DescribeEipMonitorDataRequest.cc create mode 100644 ecs/src/model/DescribeEipMonitorDataResult.cc create mode 100644 ecs/src/model/DescribeForwardTableEntriesRequest.cc create mode 100644 ecs/src/model/DescribeForwardTableEntriesResult.cc create mode 100644 ecs/src/model/DescribeHaVipsRequest.cc create mode 100644 ecs/src/model/DescribeHaVipsResult.cc create mode 100644 ecs/src/model/DescribeHpcClustersRequest.cc create mode 100644 ecs/src/model/DescribeHpcClustersResult.cc create mode 100644 ecs/src/model/DescribeImageSharePermissionRequest.cc create mode 100644 ecs/src/model/DescribeImageSharePermissionResult.cc create mode 100644 ecs/src/model/DescribeImageSupportInstanceTypesRequest.cc create mode 100644 ecs/src/model/DescribeImageSupportInstanceTypesResult.cc create mode 100644 ecs/src/model/DescribeImagesRequest.cc create mode 100644 ecs/src/model/DescribeImagesResult.cc create mode 100644 ecs/src/model/DescribeInstanceAttributeRequest.cc create mode 100644 ecs/src/model/DescribeInstanceAttributeResult.cc create mode 100644 ecs/src/model/DescribeInstanceAutoRenewAttributeRequest.cc create mode 100644 ecs/src/model/DescribeInstanceAutoRenewAttributeResult.cc create mode 100644 ecs/src/model/DescribeInstanceHistoryEventsRequest.cc create mode 100644 ecs/src/model/DescribeInstanceHistoryEventsResult.cc create mode 100644 ecs/src/model/DescribeInstanceMonitorDataRequest.cc create mode 100644 ecs/src/model/DescribeInstanceMonitorDataResult.cc create mode 100644 ecs/src/model/DescribeInstancePhysicalAttributeRequest.cc create mode 100644 ecs/src/model/DescribeInstancePhysicalAttributeResult.cc create mode 100644 ecs/src/model/DescribeInstanceRamRoleRequest.cc create mode 100644 ecs/src/model/DescribeInstanceRamRoleResult.cc create mode 100644 ecs/src/model/DescribeInstanceStatusRequest.cc create mode 100644 ecs/src/model/DescribeInstanceStatusResult.cc create mode 100644 ecs/src/model/DescribeInstanceTypeFamiliesRequest.cc create mode 100644 ecs/src/model/DescribeInstanceTypeFamiliesResult.cc create mode 100644 ecs/src/model/DescribeInstanceTypesRequest.cc create mode 100644 ecs/src/model/DescribeInstanceTypesResult.cc create mode 100644 ecs/src/model/DescribeInstanceVncPasswdRequest.cc create mode 100644 ecs/src/model/DescribeInstanceVncPasswdResult.cc create mode 100644 ecs/src/model/DescribeInstanceVncUrlRequest.cc create mode 100644 ecs/src/model/DescribeInstanceVncUrlResult.cc create mode 100644 ecs/src/model/DescribeInstancesFullStatusRequest.cc create mode 100644 ecs/src/model/DescribeInstancesFullStatusResult.cc create mode 100644 ecs/src/model/DescribeInstancesRequest.cc create mode 100644 ecs/src/model/DescribeInstancesResult.cc create mode 100644 ecs/src/model/DescribeIntranetAttributeKbRequest.cc create mode 100644 ecs/src/model/DescribeIntranetAttributeKbResult.cc create mode 100644 ecs/src/model/DescribeInvocationResultsRequest.cc create mode 100644 ecs/src/model/DescribeInvocationResultsResult.cc create mode 100644 ecs/src/model/DescribeInvocationsRequest.cc create mode 100644 ecs/src/model/DescribeInvocationsResult.cc create mode 100644 ecs/src/model/DescribeIpRangesRequest.cc create mode 100644 ecs/src/model/DescribeIpRangesResult.cc create mode 100644 ecs/src/model/DescribeKeyPairsRequest.cc create mode 100644 ecs/src/model/DescribeKeyPairsResult.cc create mode 100644 ecs/src/model/DescribeLimitationRequest.cc create mode 100644 ecs/src/model/DescribeLimitationResult.cc create mode 100644 ecs/src/model/DescribeNatGatewaysRequest.cc create mode 100644 ecs/src/model/DescribeNatGatewaysResult.cc create mode 100644 ecs/src/model/DescribeNetworkInterfacesRequest.cc create mode 100644 ecs/src/model/DescribeNetworkInterfacesResult.cc create mode 100644 ecs/src/model/DescribeNewProjectEipMonitorDataRequest.cc create mode 100644 ecs/src/model/DescribeNewProjectEipMonitorDataResult.cc create mode 100644 ecs/src/model/DescribePhysicalConnectionsRequest.cc create mode 100644 ecs/src/model/DescribePhysicalConnectionsResult.cc create mode 100644 ecs/src/model/DescribePriceRequest.cc create mode 100644 ecs/src/model/DescribePriceResult.cc create mode 100644 ecs/src/model/DescribeRecommendInstanceTypeRequest.cc create mode 100644 ecs/src/model/DescribeRecommendInstanceTypeResult.cc create mode 100644 ecs/src/model/DescribeRecycleBinRequest.cc create mode 100644 ecs/src/model/DescribeRecycleBinResult.cc create mode 100644 ecs/src/model/DescribeRegionsRequest.cc create mode 100644 ecs/src/model/DescribeRegionsResult.cc create mode 100644 ecs/src/model/DescribeRenewalPriceRequest.cc create mode 100644 ecs/src/model/DescribeRenewalPriceResult.cc create mode 100644 ecs/src/model/DescribeResourceByTagsRequest.cc create mode 100644 ecs/src/model/DescribeResourceByTagsResult.cc create mode 100644 ecs/src/model/DescribeRouteTablesRequest.cc create mode 100644 ecs/src/model/DescribeRouteTablesResult.cc create mode 100644 ecs/src/model/DescribeRouterInterfacesRequest.cc create mode 100644 ecs/src/model/DescribeRouterInterfacesResult.cc create mode 100644 ecs/src/model/DescribeSecurityGroupAttributeRequest.cc create mode 100644 ecs/src/model/DescribeSecurityGroupAttributeResult.cc create mode 100644 ecs/src/model/DescribeSecurityGroupReferencesRequest.cc create mode 100644 ecs/src/model/DescribeSecurityGroupReferencesResult.cc create mode 100644 ecs/src/model/DescribeSecurityGroupsRequest.cc create mode 100644 ecs/src/model/DescribeSecurityGroupsResult.cc create mode 100644 ecs/src/model/DescribeSnapshotLinksRequest.cc create mode 100644 ecs/src/model/DescribeSnapshotLinksResult.cc create mode 100644 ecs/src/model/DescribeSnapshotMonitorDataRequest.cc create mode 100644 ecs/src/model/DescribeSnapshotMonitorDataResult.cc create mode 100644 ecs/src/model/DescribeSnapshotPackageRequest.cc create mode 100644 ecs/src/model/DescribeSnapshotPackageResult.cc create mode 100644 ecs/src/model/DescribeSnapshotsRequest.cc create mode 100644 ecs/src/model/DescribeSnapshotsResult.cc create mode 100644 ecs/src/model/DescribeSnapshotsUsageRequest.cc create mode 100644 ecs/src/model/DescribeSnapshotsUsageResult.cc create mode 100644 ecs/src/model/DescribeSpotPriceHistoryRequest.cc create mode 100644 ecs/src/model/DescribeSpotPriceHistoryResult.cc create mode 100644 ecs/src/model/DescribeTagKeysRequest.cc create mode 100644 ecs/src/model/DescribeTagKeysResult.cc create mode 100644 ecs/src/model/DescribeTagsRequest.cc create mode 100644 ecs/src/model/DescribeTagsResult.cc create mode 100644 ecs/src/model/DescribeTaskAttributeRequest.cc create mode 100644 ecs/src/model/DescribeTaskAttributeResult.cc create mode 100644 ecs/src/model/DescribeTasksRequest.cc create mode 100644 ecs/src/model/DescribeTasksResult.cc create mode 100644 ecs/src/model/DescribeUserBusinessBehaviorRequest.cc create mode 100644 ecs/src/model/DescribeUserBusinessBehaviorResult.cc create mode 100644 ecs/src/model/DescribeUserDataRequest.cc create mode 100644 ecs/src/model/DescribeUserDataResult.cc create mode 100644 ecs/src/model/DescribeVRoutersRequest.cc create mode 100644 ecs/src/model/DescribeVRoutersResult.cc create mode 100644 ecs/src/model/DescribeVSwitchesRequest.cc create mode 100644 ecs/src/model/DescribeVSwitchesResult.cc create mode 100644 ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc create mode 100644 ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc create mode 100644 ecs/src/model/DescribeVirtualBorderRoutersRequest.cc create mode 100644 ecs/src/model/DescribeVirtualBorderRoutersResult.cc create mode 100644 ecs/src/model/DescribeVpcsRequest.cc create mode 100644 ecs/src/model/DescribeVpcsResult.cc create mode 100644 ecs/src/model/DescribeZonesRequest.cc create mode 100644 ecs/src/model/DescribeZonesResult.cc create mode 100644 ecs/src/model/DetachClassicLinkVpcRequest.cc create mode 100644 ecs/src/model/DetachClassicLinkVpcResult.cc create mode 100644 ecs/src/model/DetachDiskRequest.cc create mode 100644 ecs/src/model/DetachDiskResult.cc create mode 100644 ecs/src/model/DetachInstanceRamRoleRequest.cc create mode 100644 ecs/src/model/DetachInstanceRamRoleResult.cc create mode 100644 ecs/src/model/DetachKeyPairRequest.cc create mode 100644 ecs/src/model/DetachKeyPairResult.cc create mode 100644 ecs/src/model/DetachNetworkInterfaceRequest.cc create mode 100644 ecs/src/model/DetachNetworkInterfaceResult.cc create mode 100644 ecs/src/model/EipFillParamsRequest.cc create mode 100644 ecs/src/model/EipFillParamsResult.cc create mode 100644 ecs/src/model/EipFillProductRequest.cc create mode 100644 ecs/src/model/EipFillProductResult.cc create mode 100644 ecs/src/model/EipNotifyPaidRequest.cc create mode 100644 ecs/src/model/EipNotifyPaidResult.cc create mode 100644 ecs/src/model/EnablePhysicalConnectionRequest.cc create mode 100644 ecs/src/model/EnablePhysicalConnectionResult.cc create mode 100644 ecs/src/model/ExportImageRequest.cc create mode 100644 ecs/src/model/ExportImageResult.cc create mode 100644 ecs/src/model/ImportImageRequest.cc create mode 100644 ecs/src/model/ImportImageResult.cc create mode 100644 ecs/src/model/ImportKeyPairRequest.cc create mode 100644 ecs/src/model/ImportKeyPairResult.cc create mode 100644 ecs/src/model/InvokeCommandRequest.cc create mode 100644 ecs/src/model/InvokeCommandResult.cc create mode 100644 ecs/src/model/JoinResourceGroupRequest.cc create mode 100644 ecs/src/model/JoinResourceGroupResult.cc create mode 100644 ecs/src/model/JoinSecurityGroupRequest.cc create mode 100644 ecs/src/model/JoinSecurityGroupResult.cc create mode 100644 ecs/src/model/LeaveSecurityGroupRequest.cc create mode 100644 ecs/src/model/LeaveSecurityGroupResult.cc create mode 100644 ecs/src/model/ModifyAutoSnapshotPolicyExRequest.cc create mode 100644 ecs/src/model/ModifyAutoSnapshotPolicyExResult.cc create mode 100644 ecs/src/model/ModifyAutoSnapshotPolicyRequest.cc create mode 100644 ecs/src/model/ModifyAutoSnapshotPolicyResult.cc create mode 100644 ecs/src/model/ModifyBandwidthPackageSpecRequest.cc create mode 100644 ecs/src/model/ModifyBandwidthPackageSpecResult.cc create mode 100644 ecs/src/model/ModifyCommandRequest.cc create mode 100644 ecs/src/model/ModifyCommandResult.cc create mode 100644 ecs/src/model/ModifyDeploymentSetAttributeRequest.cc create mode 100644 ecs/src/model/ModifyDeploymentSetAttributeResult.cc create mode 100644 ecs/src/model/ModifyDiskAttributeRequest.cc create mode 100644 ecs/src/model/ModifyDiskAttributeResult.cc create mode 100644 ecs/src/model/ModifyDiskChargeTypeRequest.cc create mode 100644 ecs/src/model/ModifyDiskChargeTypeResult.cc create mode 100644 ecs/src/model/ModifyEipAddressAttributeRequest.cc create mode 100644 ecs/src/model/ModifyEipAddressAttributeResult.cc create mode 100644 ecs/src/model/ModifyForwardEntryRequest.cc create mode 100644 ecs/src/model/ModifyForwardEntryResult.cc create mode 100644 ecs/src/model/ModifyHaVipAttributeRequest.cc create mode 100644 ecs/src/model/ModifyHaVipAttributeResult.cc create mode 100644 ecs/src/model/ModifyHpcClusterAttributeRequest.cc create mode 100644 ecs/src/model/ModifyHpcClusterAttributeResult.cc create mode 100644 ecs/src/model/ModifyImageAttributeRequest.cc create mode 100644 ecs/src/model/ModifyImageAttributeResult.cc create mode 100644 ecs/src/model/ModifyImageShareGroupPermissionRequest.cc create mode 100644 ecs/src/model/ModifyImageShareGroupPermissionResult.cc create mode 100644 ecs/src/model/ModifyImageSharePermissionRequest.cc create mode 100644 ecs/src/model/ModifyImageSharePermissionResult.cc create mode 100644 ecs/src/model/ModifyInstanceAttributeRequest.cc create mode 100644 ecs/src/model/ModifyInstanceAttributeResult.cc create mode 100644 ecs/src/model/ModifyInstanceAutoReleaseTimeRequest.cc create mode 100644 ecs/src/model/ModifyInstanceAutoReleaseTimeResult.cc create mode 100644 ecs/src/model/ModifyInstanceAutoRenewAttributeRequest.cc create mode 100644 ecs/src/model/ModifyInstanceAutoRenewAttributeResult.cc create mode 100644 ecs/src/model/ModifyInstanceChargeTypeRequest.cc create mode 100644 ecs/src/model/ModifyInstanceChargeTypeResult.cc create mode 100644 ecs/src/model/ModifyInstanceNetworkSpecRequest.cc create mode 100644 ecs/src/model/ModifyInstanceNetworkSpecResult.cc create mode 100644 ecs/src/model/ModifyInstanceSpecRequest.cc create mode 100644 ecs/src/model/ModifyInstanceSpecResult.cc create mode 100644 ecs/src/model/ModifyInstanceVncPasswdRequest.cc create mode 100644 ecs/src/model/ModifyInstanceVncPasswdResult.cc create mode 100644 ecs/src/model/ModifyInstanceVpcAttributeRequest.cc create mode 100644 ecs/src/model/ModifyInstanceVpcAttributeResult.cc create mode 100644 ecs/src/model/ModifyIntranetBandwidthKbRequest.cc create mode 100644 ecs/src/model/ModifyIntranetBandwidthKbResult.cc create mode 100644 ecs/src/model/ModifyNetworkInterfaceAttributeRequest.cc create mode 100644 ecs/src/model/ModifyNetworkInterfaceAttributeResult.cc create mode 100644 ecs/src/model/ModifyPhysicalConnectionAttributeRequest.cc create mode 100644 ecs/src/model/ModifyPhysicalConnectionAttributeResult.cc create mode 100644 ecs/src/model/ModifyPrepayInstanceSpecRequest.cc create mode 100644 ecs/src/model/ModifyPrepayInstanceSpecResult.cc create mode 100644 ecs/src/model/ModifyRouterInterfaceAttributeRequest.cc create mode 100644 ecs/src/model/ModifyRouterInterfaceAttributeResult.cc create mode 100644 ecs/src/model/ModifyRouterInterfaceSpecRequest.cc create mode 100644 ecs/src/model/ModifyRouterInterfaceSpecResult.cc create mode 100644 ecs/src/model/ModifySecurityGroupAttributeRequest.cc create mode 100644 ecs/src/model/ModifySecurityGroupAttributeResult.cc create mode 100644 ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc create mode 100644 ecs/src/model/ModifySecurityGroupEgressRuleResult.cc create mode 100644 ecs/src/model/ModifySecurityGroupPolicyRequest.cc create mode 100644 ecs/src/model/ModifySecurityGroupPolicyResult.cc create mode 100644 ecs/src/model/ModifySecurityGroupRuleRequest.cc create mode 100644 ecs/src/model/ModifySecurityGroupRuleResult.cc create mode 100644 ecs/src/model/ModifySnapshotAttributeRequest.cc create mode 100644 ecs/src/model/ModifySnapshotAttributeResult.cc create mode 100644 ecs/src/model/ModifyUserBusinessBehaviorRequest.cc create mode 100644 ecs/src/model/ModifyUserBusinessBehaviorResult.cc create mode 100644 ecs/src/model/ModifyVRouterAttributeRequest.cc create mode 100644 ecs/src/model/ModifyVRouterAttributeResult.cc create mode 100644 ecs/src/model/ModifyVSwitchAttributeRequest.cc create mode 100644 ecs/src/model/ModifyVSwitchAttributeResult.cc create mode 100644 ecs/src/model/ModifyVirtualBorderRouterAttributeRequest.cc create mode 100644 ecs/src/model/ModifyVirtualBorderRouterAttributeResult.cc create mode 100644 ecs/src/model/ModifyVpcAttributeRequest.cc create mode 100644 ecs/src/model/ModifyVpcAttributeResult.cc create mode 100644 ecs/src/model/ReActivateInstancesRequest.cc create mode 100644 ecs/src/model/ReActivateInstancesResult.cc create mode 100644 ecs/src/model/ReInitDiskRequest.cc create mode 100644 ecs/src/model/ReInitDiskResult.cc create mode 100644 ecs/src/model/RebootInstanceRequest.cc create mode 100644 ecs/src/model/RebootInstanceResult.cc create mode 100644 ecs/src/model/RecoverVirtualBorderRouterRequest.cc create mode 100644 ecs/src/model/RecoverVirtualBorderRouterResult.cc create mode 100644 ecs/src/model/ReleaseEipAddressRequest.cc create mode 100644 ecs/src/model/ReleaseEipAddressResult.cc create mode 100644 ecs/src/model/ReleasePublicIpAddressRequest.cc create mode 100644 ecs/src/model/ReleasePublicIpAddressResult.cc create mode 100644 ecs/src/model/RemoveBandwidthPackageIpsRequest.cc create mode 100644 ecs/src/model/RemoveBandwidthPackageIpsResult.cc create mode 100644 ecs/src/model/RemoveTagsRequest.cc create mode 100644 ecs/src/model/RemoveTagsResult.cc create mode 100644 ecs/src/model/RenewInstanceRequest.cc create mode 100644 ecs/src/model/RenewInstanceResult.cc create mode 100644 ecs/src/model/ReplaceSystemDiskRequest.cc create mode 100644 ecs/src/model/ReplaceSystemDiskResult.cc create mode 100644 ecs/src/model/ResetDiskRequest.cc create mode 100644 ecs/src/model/ResetDiskResult.cc create mode 100644 ecs/src/model/ResizeDiskRequest.cc create mode 100644 ecs/src/model/ResizeDiskResult.cc create mode 100644 ecs/src/model/RevokeSecurityGroupEgressRequest.cc create mode 100644 ecs/src/model/RevokeSecurityGroupEgressResult.cc create mode 100644 ecs/src/model/RevokeSecurityGroupRequest.cc create mode 100644 ecs/src/model/RevokeSecurityGroupResult.cc create mode 100644 ecs/src/model/RunInstancesRequest.cc create mode 100644 ecs/src/model/RunInstancesResult.cc create mode 100644 ecs/src/model/SignAgreementRequest.cc create mode 100644 ecs/src/model/SignAgreementResult.cc create mode 100644 ecs/src/model/StartInstanceRequest.cc create mode 100644 ecs/src/model/StartInstanceResult.cc create mode 100644 ecs/src/model/StopInstanceRequest.cc create mode 100644 ecs/src/model/StopInstanceResult.cc create mode 100644 ecs/src/model/StopInvocationRequest.cc create mode 100644 ecs/src/model/StopInvocationResult.cc create mode 100644 ecs/src/model/TerminatePhysicalConnectionRequest.cc create mode 100644 ecs/src/model/TerminatePhysicalConnectionResult.cc create mode 100644 ecs/src/model/TerminateVirtualBorderRouterRequest.cc create mode 100644 ecs/src/model/TerminateVirtualBorderRouterResult.cc create mode 100644 ecs/src/model/UnassociateEipAddressRequest.cc create mode 100644 ecs/src/model/UnassociateEipAddressResult.cc create mode 100644 ecs/src/model/UnassociateHaVipRequest.cc create mode 100644 ecs/src/model/UnassociateHaVipResult.cc create mode 100644 ecs/src/model/UnbindIpRangeRequest.cc create mode 100644 ecs/src/model/UnbindIpRangeResult.cc diff --git a/CMakeLists.txt b/CMakeLists.txt index 625e09f01..0a82b7d33 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,3 +50,4 @@ if(BUILD_TESTS) enable_testing() add_subdirectory(core-tests) endif() +add_subdirectory(ecs) \ No newline at end of file diff --git a/VERSION b/VERSION index afaf360d3..7f207341d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.0 \ No newline at end of file +1.0.1 \ No newline at end of file diff --git a/ecs/CMakeLists.txt b/ecs/CMakeLists.txt new file mode 100644 index 000000000..888e85a18 --- /dev/null +++ b/ecs/CMakeLists.txt @@ -0,0 +1,958 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) +set(ecs_public_header + include/alibabacloud/ecs/model/ModifySnapshotAttributeRequest.h + include/alibabacloud/ecs/model/ModifySnapshotAttributeResult.h + include/alibabacloud/ecs/model/JoinSecurityGroupRequest.h + include/alibabacloud/ecs/model/JoinSecurityGroupResult.h + include/alibabacloud/ecs/model/DescribeSnapshotsRequest.h + include/alibabacloud/ecs/model/DescribeSnapshotsResult.h + include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecRequest.h + include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecResult.h + include/alibabacloud/ecs/model/ModifyInstanceVncPasswdRequest.h + include/alibabacloud/ecs/model/ModifyInstanceVncPasswdResult.h + include/alibabacloud/ecs/model/CreateNatGatewayRequest.h + include/alibabacloud/ecs/model/CreateNatGatewayResult.h + include/alibabacloud/ecs/model/AttachDiskRequest.h + include/alibabacloud/ecs/model/AttachDiskResult.h + include/alibabacloud/ecs/model/ReInitDiskRequest.h + include/alibabacloud/ecs/model/ReInitDiskResult.h + include/alibabacloud/ecs/model/CreateHaVipRequest.h + include/alibabacloud/ecs/model/CreateHaVipResult.h + include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyRequest.h + include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyResult.h + include/alibabacloud/ecs/model/AssociateEipAddressRequest.h + include/alibabacloud/ecs/model/AssociateEipAddressResult.h + include/alibabacloud/ecs/model/DescribeEipAddressesRequest.h + include/alibabacloud/ecs/model/DescribeEipAddressesResult.h + include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h + include/alibabacloud/ecs/model/RevokeSecurityGroupEgressResult.h + include/alibabacloud/ecs/model/ActivateRouterInterfaceRequest.h + include/alibabacloud/ecs/model/ActivateRouterInterfaceResult.h + include/alibabacloud/ecs/model/DescribeSpotPriceHistoryRequest.h + include/alibabacloud/ecs/model/DescribeSpotPriceHistoryResult.h + include/alibabacloud/ecs/model/TerminateVirtualBorderRouterRequest.h + include/alibabacloud/ecs/model/TerminateVirtualBorderRouterResult.h + include/alibabacloud/ecs/model/StopInstanceRequest.h + include/alibabacloud/ecs/model/StopInstanceResult.h + include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsRequest.h + include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsResult.h + include/alibabacloud/ecs/model/DeletePhysicalConnectionRequest.h + include/alibabacloud/ecs/model/DeletePhysicalConnectionResult.h + include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h + include/alibabacloud/ecs/model/RevokeSecurityGroupResult.h + include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyRequest.h + include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyResult.h + include/alibabacloud/ecs/model/DescribeTaskAttributeRequest.h + include/alibabacloud/ecs/model/DescribeTaskAttributeResult.h + include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h + include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyResult.h + include/alibabacloud/ecs/model/ReActivateInstancesRequest.h + include/alibabacloud/ecs/model/ReActivateInstancesResult.h + include/alibabacloud/ecs/model/DescribeForwardTableEntriesRequest.h + include/alibabacloud/ecs/model/DescribeForwardTableEntriesResult.h + include/alibabacloud/ecs/model/DescribeInstancesRequest.h + include/alibabacloud/ecs/model/DescribeInstancesResult.h + include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesRequest.h + include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesResult.h + include/alibabacloud/ecs/model/DeleteRouterInterfaceRequest.h + include/alibabacloud/ecs/model/DeleteRouterInterfaceResult.h + include/alibabacloud/ecs/model/DetachInstanceRamRoleRequest.h + include/alibabacloud/ecs/model/DetachInstanceRamRoleResult.h + include/alibabacloud/ecs/model/AllocatePublicIpAddressRequest.h + include/alibabacloud/ecs/model/AllocatePublicIpAddressResult.h + include/alibabacloud/ecs/model/DescribeEipMonitorDataRequest.h + include/alibabacloud/ecs/model/DescribeEipMonitorDataResult.h + include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyRequest.h + include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyResult.h + include/alibabacloud/ecs/model/DescribeDisksFullStatusRequest.h + include/alibabacloud/ecs/model/DescribeDisksFullStatusResult.h + include/alibabacloud/ecs/model/DeleteNetworkInterfaceRequest.h + include/alibabacloud/ecs/model/DeleteNetworkInterfaceResult.h + include/alibabacloud/ecs/model/ModifyInstanceSpecRequest.h + include/alibabacloud/ecs/model/ModifyInstanceSpecResult.h + include/alibabacloud/ecs/model/DeleteSnapshotRequest.h + include/alibabacloud/ecs/model/DeleteSnapshotResult.h + include/alibabacloud/ecs/model/DeleteKeyPairsRequest.h + include/alibabacloud/ecs/model/DeleteKeyPairsResult.h + include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h + include/alibabacloud/ecs/model/AuthorizeSecurityGroupResult.h + include/alibabacloud/ecs/model/DeleteSecurityGroupRequest.h + include/alibabacloud/ecs/model/DeleteSecurityGroupResult.h + include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataRequest.h + include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataResult.h + include/alibabacloud/ecs/model/ConnectRouterInterfaceRequest.h + include/alibabacloud/ecs/model/ConnectRouterInterfaceResult.h + include/alibabacloud/ecs/model/AddIpRangeRequest.h + include/alibabacloud/ecs/model/AddIpRangeResult.h + include/alibabacloud/ecs/model/CancelTaskRequest.h + include/alibabacloud/ecs/model/CancelTaskResult.h + include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeRequest.h + include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeResult.h + include/alibabacloud/ecs/model/ModifyCommandRequest.h + include/alibabacloud/ecs/model/ModifyCommandResult.h + include/alibabacloud/ecs/model/ModifyVSwitchAttributeRequest.h + include/alibabacloud/ecs/model/ModifyVSwitchAttributeResult.h + include/alibabacloud/ecs/model/ModifyInstanceAttributeRequest.h + include/alibabacloud/ecs/model/ModifyInstanceAttributeResult.h + include/alibabacloud/ecs/model/DeleteHaVipRequest.h + include/alibabacloud/ecs/model/DeleteHaVipResult.h + include/alibabacloud/ecs/model/DescribeSecurityGroupsRequest.h + include/alibabacloud/ecs/model/DescribeSecurityGroupsResult.h + include/alibabacloud/ecs/model/ResizeDiskRequest.h + include/alibabacloud/ecs/model/ResizeDiskResult.h + include/alibabacloud/ecs/model/CreateRouteEntryRequest.h + include/alibabacloud/ecs/model/CreateRouteEntryResult.h + include/alibabacloud/ecs/model/DescribeInvocationsRequest.h + include/alibabacloud/ecs/model/DescribeInvocationsResult.h + include/alibabacloud/ecs/model/AttachKeyPairRequest.h + include/alibabacloud/ecs/model/AttachKeyPairResult.h + include/alibabacloud/ecs/model/CreateRouterInterfaceRequest.h + include/alibabacloud/ecs/model/CreateRouterInterfaceResult.h + include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationRequest.h + include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationResult.h + include/alibabacloud/ecs/model/RunInstancesRequest.h + include/alibabacloud/ecs/model/RunInstancesResult.h + include/alibabacloud/ecs/model/StopInvocationRequest.h + include/alibabacloud/ecs/model/StopInvocationResult.h + include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecRequest.h + include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecResult.h + include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h + include/alibabacloud/ecs/model/ModifyDiskAttributeResult.h + include/alibabacloud/ecs/model/CreateVSwitchRequest.h + include/alibabacloud/ecs/model/CreateVSwitchResult.h + include/alibabacloud/ecs/model/ModifyEipAddressAttributeRequest.h + include/alibabacloud/ecs/model/ModifyEipAddressAttributeResult.h + include/alibabacloud/ecs/model/RemoveTagsRequest.h + include/alibabacloud/ecs/model/RemoveTagsResult.h + include/alibabacloud/ecs/model/ModifySecurityGroupAttributeRequest.h + include/alibabacloud/ecs/model/ModifySecurityGroupAttributeResult.h + include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeRequest.h + include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeResult.h + include/alibabacloud/ecs/model/DeleteNatGatewayRequest.h + include/alibabacloud/ecs/model/DeleteNatGatewayResult.h + include/alibabacloud/ecs/model/DescribeZonesRequest.h + include/alibabacloud/ecs/model/DescribeZonesResult.h + include/alibabacloud/ecs/model/DeactivateRouterInterfaceRequest.h + include/alibabacloud/ecs/model/DeactivateRouterInterfaceResult.h + include/alibabacloud/ecs/model/DescribeAccessPointsRequest.h + include/alibabacloud/ecs/model/DescribeAccessPointsResult.h + include/alibabacloud/ecs/model/CreateCommandRequest.h + include/alibabacloud/ecs/model/CreateCommandResult.h + include/alibabacloud/ecs/model/DescribeInstancesFullStatusRequest.h + include/alibabacloud/ecs/model/DescribeInstancesFullStatusResult.h + include/alibabacloud/ecs/model/ReleaseEipAddressRequest.h + include/alibabacloud/ecs/model/ReleaseEipAddressResult.h + include/alibabacloud/ecs/model/DetachClassicLinkVpcRequest.h + include/alibabacloud/ecs/model/DetachClassicLinkVpcResult.h + include/alibabacloud/ecs/model/DescribeVSwitchesRequest.h + include/alibabacloud/ecs/model/DescribeVSwitchesResult.h + include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecRequest.h + include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecResult.h + include/alibabacloud/ecs/model/DescribeVpcsRequest.h + include/alibabacloud/ecs/model/DescribeVpcsResult.h + include/alibabacloud/ecs/model/ExportImageRequest.h + include/alibabacloud/ecs/model/ExportImageResult.h + include/alibabacloud/ecs/model/DescribeDiskMonitorDataRequest.h + include/alibabacloud/ecs/model/DescribeDiskMonitorDataResult.h + include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeRequest.h + include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeResult.h + include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeRequest.h + include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeResult.h + include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h + include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h + include/alibabacloud/ecs/model/CreateDiskRequest.h + include/alibabacloud/ecs/model/CreateDiskResult.h + include/alibabacloud/ecs/model/StartInstanceRequest.h + include/alibabacloud/ecs/model/StartInstanceResult.h + include/alibabacloud/ecs/model/DescribeInstanceTypesRequest.h + include/alibabacloud/ecs/model/DescribeInstanceTypesResult.h + include/alibabacloud/ecs/model/DescribeSnapshotPackageRequest.h + include/alibabacloud/ecs/model/DescribeSnapshotPackageResult.h + include/alibabacloud/ecs/model/RebootInstanceRequest.h + include/alibabacloud/ecs/model/RebootInstanceResult.h + include/alibabacloud/ecs/model/BindIpRangeRequest.h + include/alibabacloud/ecs/model/BindIpRangeResult.h + include/alibabacloud/ecs/model/InvokeCommandRequest.h + include/alibabacloud/ecs/model/InvokeCommandResult.h + include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorRequest.h + include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorResult.h + include/alibabacloud/ecs/model/DeleteForwardEntryRequest.h + include/alibabacloud/ecs/model/DeleteForwardEntryResult.h + include/alibabacloud/ecs/model/DescribeHpcClustersRequest.h + include/alibabacloud/ecs/model/DescribeHpcClustersResult.h + include/alibabacloud/ecs/model/CancelAgreementRequest.h + include/alibabacloud/ecs/model/CancelAgreementResult.h + include/alibabacloud/ecs/model/ModifyInstanceChargeTypeRequest.h + include/alibabacloud/ecs/model/ModifyInstanceChargeTypeResult.h + include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeRequest.h + include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeResult.h + include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersRequest.h + include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersResult.h + include/alibabacloud/ecs/model/ModifyHpcClusterAttributeRequest.h + include/alibabacloud/ecs/model/ModifyHpcClusterAttributeResult.h + include/alibabacloud/ecs/model/DescribeLimitationRequest.h + include/alibabacloud/ecs/model/DescribeLimitationResult.h + include/alibabacloud/ecs/model/DescribePriceRequest.h + include/alibabacloud/ecs/model/DescribePriceResult.h + include/alibabacloud/ecs/model/DeleteDeploymentSetRequest.h + include/alibabacloud/ecs/model/DeleteDeploymentSetResult.h + include/alibabacloud/ecs/model/DescribeDeploymentSetTopologyRequest.h + include/alibabacloud/ecs/model/DescribeDeploymentSetTopologyResult.h + include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeRequest.h + include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeResult.h + include/alibabacloud/ecs/model/AddTagsRequest.h + include/alibabacloud/ecs/model/AddTagsResult.h + include/alibabacloud/ecs/model/CreateHpcClusterRequest.h + include/alibabacloud/ecs/model/CreateHpcClusterResult.h + include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorRequest.h + include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorResult.h + include/alibabacloud/ecs/model/DescribeCommandsRequest.h + include/alibabacloud/ecs/model/DescribeCommandsResult.h + include/alibabacloud/ecs/model/DeleteImageRequest.h + include/alibabacloud/ecs/model/DeleteImageResult.h + include/alibabacloud/ecs/model/DescribeDisksRequest.h + include/alibabacloud/ecs/model/DescribeDisksResult.h + include/alibabacloud/ecs/model/DeleteVpcRequest.h + include/alibabacloud/ecs/model/DeleteVpcResult.h + include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesRequest.h + include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesResult.h + include/alibabacloud/ecs/model/DeleteCommandRequest.h + include/alibabacloud/ecs/model/DeleteCommandResult.h + include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h + include/alibabacloud/ecs/model/ReplaceSystemDiskResult.h + include/alibabacloud/ecs/model/DeleteVSwitchRequest.h + include/alibabacloud/ecs/model/DeleteVSwitchResult.h + include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionRequest.h + include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionResult.h + include/alibabacloud/ecs/model/DescribeInstanceVncUrlRequest.h + include/alibabacloud/ecs/model/DescribeInstanceVncUrlResult.h + include/alibabacloud/ecs/model/RecoverVirtualBorderRouterRequest.h + include/alibabacloud/ecs/model/RecoverVirtualBorderRouterResult.h + include/alibabacloud/ecs/model/DescribeResourceByTagsRequest.h + include/alibabacloud/ecs/model/DescribeResourceByTagsResult.h + include/alibabacloud/ecs/model/DescribeClustersRequest.h + include/alibabacloud/ecs/model/DescribeClustersResult.h + include/alibabacloud/ecs/model/DescribeTagsRequest.h + include/alibabacloud/ecs/model/DescribeTagsResult.h + include/alibabacloud/ecs/model/DeleteBandwidthPackageRequest.h + include/alibabacloud/ecs/model/DeleteBandwidthPackageResult.h + include/alibabacloud/ecs/model/DescribeImagesRequest.h + include/alibabacloud/ecs/model/DescribeImagesResult.h + include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h + include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressResult.h + include/alibabacloud/ecs/model/SignAgreementRequest.h + include/alibabacloud/ecs/model/SignAgreementResult.h + include/alibabacloud/ecs/model/ImportImageRequest.h + include/alibabacloud/ecs/model/ImportImageResult.h + include/alibabacloud/ecs/model/ModifyForwardEntryRequest.h + include/alibabacloud/ecs/model/ModifyForwardEntryResult.h + include/alibabacloud/ecs/model/RenewInstanceRequest.h + include/alibabacloud/ecs/model/RenewInstanceResult.h + include/alibabacloud/ecs/model/CreateVpcRequest.h + include/alibabacloud/ecs/model/CreateVpcResult.h + include/alibabacloud/ecs/model/CopyImageRequest.h + include/alibabacloud/ecs/model/CopyImageResult.h + include/alibabacloud/ecs/model/DescribeInstanceMonitorDataRequest.h + include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.h + include/alibabacloud/ecs/model/UnassociateEipAddressRequest.h + include/alibabacloud/ecs/model/UnassociateEipAddressResult.h + include/alibabacloud/ecs/model/CreateSnapshotRequest.h + include/alibabacloud/ecs/model/CreateSnapshotResult.h + include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeRequest.h + include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeResult.h + include/alibabacloud/ecs/model/DetachKeyPairRequest.h + include/alibabacloud/ecs/model/DetachKeyPairResult.h + include/alibabacloud/ecs/model/DescribeTasksRequest.h + include/alibabacloud/ecs/model/DescribeTasksResult.h + include/alibabacloud/ecs/model/LeaveSecurityGroupRequest.h + include/alibabacloud/ecs/model/LeaveSecurityGroupResult.h + include/alibabacloud/ecs/model/DescribeRenewalPriceRequest.h + include/alibabacloud/ecs/model/DescribeRenewalPriceResult.h + include/alibabacloud/ecs/model/DescribeInstanceVncPasswdRequest.h + include/alibabacloud/ecs/model/DescribeInstanceVncPasswdResult.h + include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeRequest.h + include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeResult.h + include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h + include/alibabacloud/ecs/model/ModifySecurityGroupRuleResult.h + include/alibabacloud/ecs/model/ImportKeyPairRequest.h + include/alibabacloud/ecs/model/ImportKeyPairResult.h + include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataRequest.h + include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataResult.h + include/alibabacloud/ecs/model/UnbindIpRangeRequest.h + include/alibabacloud/ecs/model/UnbindIpRangeResult.h + include/alibabacloud/ecs/model/DeleteRecycleBinRequest.h + include/alibabacloud/ecs/model/DeleteRecycleBinResult.h + include/alibabacloud/ecs/model/DescribeInstanceRamRoleRequest.h + include/alibabacloud/ecs/model/DescribeInstanceRamRoleResult.h + include/alibabacloud/ecs/model/CreateImageRequest.h + include/alibabacloud/ecs/model/CreateImageResult.h + include/alibabacloud/ecs/model/DescribeHaVipsRequest.h + include/alibabacloud/ecs/model/DescribeHaVipsResult.h + include/alibabacloud/ecs/model/DescribeInstanceAttributeRequest.h + include/alibabacloud/ecs/model/DescribeInstanceAttributeResult.h + include/alibabacloud/ecs/model/DetachDiskRequest.h + include/alibabacloud/ecs/model/DetachDiskResult.h + include/alibabacloud/ecs/model/ModifyImageAttributeRequest.h + include/alibabacloud/ecs/model/ModifyImageAttributeResult.h + include/alibabacloud/ecs/model/AddBandwidthPackageIpsRequest.h + include/alibabacloud/ecs/model/AddBandwidthPackageIpsResult.h + include/alibabacloud/ecs/model/DescribeInstanceStatusRequest.h + include/alibabacloud/ecs/model/DescribeInstanceStatusResult.h + include/alibabacloud/ecs/model/DescribeNatGatewaysRequest.h + include/alibabacloud/ecs/model/DescribeNatGatewaysResult.h + include/alibabacloud/ecs/model/DeleteHpcClusterRequest.h + include/alibabacloud/ecs/model/DeleteHpcClusterResult.h + include/alibabacloud/ecs/model/ResetDiskRequest.h + include/alibabacloud/ecs/model/ResetDiskResult.h + include/alibabacloud/ecs/model/ModifyDiskChargeTypeRequest.h + include/alibabacloud/ecs/model/ModifyDiskChargeTypeResult.h + include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbRequest.h + include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbResult.h + include/alibabacloud/ecs/model/DescribeBandwidthPackagesRequest.h + include/alibabacloud/ecs/model/DescribeBandwidthPackagesResult.h + include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyRequest.h + include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyResult.h + include/alibabacloud/ecs/model/CreateSecurityGroupRequest.h + include/alibabacloud/ecs/model/CreateSecurityGroupResult.h + include/alibabacloud/ecs/model/DescribeSnapshotLinksRequest.h + include/alibabacloud/ecs/model/DescribeSnapshotLinksResult.h + include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h + include/alibabacloud/ecs/model/DescribeInvocationResultsResult.h + include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeRequest.h + include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeResult.h + include/alibabacloud/ecs/model/DescribeTagKeysRequest.h + include/alibabacloud/ecs/model/DescribeTagKeysResult.h + include/alibabacloud/ecs/model/DeleteInstanceRequest.h + include/alibabacloud/ecs/model/DeleteInstanceResult.h + include/alibabacloud/ecs/model/DescribeIntranetAttributeKbRequest.h + include/alibabacloud/ecs/model/DescribeIntranetAttributeKbResult.h + include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsRequest.h + include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsResult.h + include/alibabacloud/ecs/model/ModifyVpcAttributeRequest.h + include/alibabacloud/ecs/model/ModifyVpcAttributeResult.h + include/alibabacloud/ecs/model/DescribeSnapshotsUsageRequest.h + include/alibabacloud/ecs/model/DescribeSnapshotsUsageResult.h + include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyRequest.h + include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyResult.h + include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h + include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleResult.h + include/alibabacloud/ecs/model/CreateInstanceRequest.h + include/alibabacloud/ecs/model/CreateInstanceResult.h + include/alibabacloud/ecs/model/EnablePhysicalConnectionRequest.h + include/alibabacloud/ecs/model/EnablePhysicalConnectionResult.h + include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesRequest.h + include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesResult.h + include/alibabacloud/ecs/model/CreateForwardEntryRequest.h + include/alibabacloud/ecs/model/CreateForwardEntryResult.h + include/alibabacloud/ecs/model/DescribeRouterInterfacesRequest.h + include/alibabacloud/ecs/model/DescribeRouterInterfacesResult.h + include/alibabacloud/ecs/model/EipNotifyPaidRequest.h + include/alibabacloud/ecs/model/EipNotifyPaidResult.h + include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h + include/alibabacloud/ecs/model/ReleasePublicIpAddressResult.h + include/alibabacloud/ecs/model/CreateVirtualBorderRouterRequest.h + include/alibabacloud/ecs/model/CreateVirtualBorderRouterResult.h + include/alibabacloud/ecs/model/EipFillParamsRequest.h + include/alibabacloud/ecs/model/EipFillParamsResult.h + include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h + include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecResult.h + include/alibabacloud/ecs/model/EipFillProductRequest.h + include/alibabacloud/ecs/model/EipFillProductResult.h + include/alibabacloud/ecs/model/DescribeRouteTablesRequest.h + include/alibabacloud/ecs/model/DescribeRouteTablesResult.h + include/alibabacloud/ecs/model/DescribeUserDataRequest.h + include/alibabacloud/ecs/model/DescribeUserDataResult.h + include/alibabacloud/ecs/model/JoinResourceGroupRequest.h + include/alibabacloud/ecs/model/JoinResourceGroupResult.h + include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExRequest.h + include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExResult.h + include/alibabacloud/ecs/model/CreatePhysicalConnectionRequest.h + include/alibabacloud/ecs/model/CreatePhysicalConnectionResult.h + include/alibabacloud/ecs/model/DescribeKeyPairsRequest.h + include/alibabacloud/ecs/model/DescribeKeyPairsResult.h + include/alibabacloud/ecs/model/ModifySecurityGroupPolicyRequest.h + include/alibabacloud/ecs/model/ModifySecurityGroupPolicyResult.h + include/alibabacloud/ecs/model/AssociateHaVipRequest.h + include/alibabacloud/ecs/model/AssociateHaVipResult.h + include/alibabacloud/ecs/model/ConvertNatPublicIpToEipRequest.h + include/alibabacloud/ecs/model/ConvertNatPublicIpToEipResult.h + include/alibabacloud/ecs/model/DeleteRouteEntryRequest.h + include/alibabacloud/ecs/model/DeleteRouteEntryResult.h + include/alibabacloud/ecs/model/DeleteVirtualBorderRouterRequest.h + include/alibabacloud/ecs/model/DeleteVirtualBorderRouterResult.h + include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeRequest.h + include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeResult.h + include/alibabacloud/ecs/model/TerminatePhysicalConnectionRequest.h + include/alibabacloud/ecs/model/TerminatePhysicalConnectionResult.h + include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h + include/alibabacloud/ecs/model/AttachNetworkInterfaceResult.h + include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeRequest.h + include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h + include/alibabacloud/ecs/model/ModifyImageSharePermissionRequest.h + include/alibabacloud/ecs/model/ModifyImageSharePermissionResult.h + include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExRequest.h + include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExResult.h + include/alibabacloud/ecs/model/DescribeImageSharePermissionRequest.h + include/alibabacloud/ecs/model/DescribeImageSharePermissionResult.h + include/alibabacloud/ecs/model/CancelCopyImageRequest.h + include/alibabacloud/ecs/model/CancelCopyImageResult.h + include/alibabacloud/ecs/model/CreateDeploymentSetRequest.h + include/alibabacloud/ecs/model/CreateDeploymentSetResult.h + include/alibabacloud/ecs/model/DescribeRegionsRequest.h + include/alibabacloud/ecs/model/DescribeRegionsResult.h + include/alibabacloud/ecs/model/DescribeClassicLinkInstancesRequest.h + include/alibabacloud/ecs/model/DescribeClassicLinkInstancesResult.h + include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyRequest.h + include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyResult.h + include/alibabacloud/ecs/model/DescribePhysicalConnectionsRequest.h + include/alibabacloud/ecs/model/DescribePhysicalConnectionsResult.h + include/alibabacloud/ecs/model/DescribeRecycleBinRequest.h + include/alibabacloud/ecs/model/DescribeRecycleBinResult.h + include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h + include/alibabacloud/ecs/model/CreateNetworkInterfaceResult.h + include/alibabacloud/ecs/model/DescribeIpRangesRequest.h + include/alibabacloud/ecs/model/DescribeIpRangesResult.h + include/alibabacloud/ecs/model/CancelPhysicalConnectionRequest.h + include/alibabacloud/ecs/model/CancelPhysicalConnectionResult.h + include/alibabacloud/ecs/model/DescribeVRoutersRequest.h + include/alibabacloud/ecs/model/DescribeVRoutersResult.h + include/alibabacloud/ecs/model/DescribeNetworkInterfacesRequest.h + include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h + include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeRequest.h + include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeResult.h + include/alibabacloud/ecs/model/DetachNetworkInterfaceRequest.h + include/alibabacloud/ecs/model/DetachNetworkInterfaceResult.h + include/alibabacloud/ecs/model/AllocateEipAddressRequest.h + include/alibabacloud/ecs/model/AllocateEipAddressResult.h + include/alibabacloud/ecs/model/DeleteDiskRequest.h + include/alibabacloud/ecs/model/DeleteDiskResult.h + include/alibabacloud/ecs/model/UnassociateHaVipRequest.h + include/alibabacloud/ecs/model/UnassociateHaVipResult.h + include/alibabacloud/ecs/model/ModifyHaVipAttributeRequest.h + include/alibabacloud/ecs/model/ModifyHaVipAttributeResult.h + include/alibabacloud/ecs/model/CreateKeyPairRequest.h + include/alibabacloud/ecs/model/CreateKeyPairResult.h + include/alibabacloud/ecs/model/AttachClassicLinkVpcRequest.h + include/alibabacloud/ecs/model/AttachClassicLinkVpcResult.h + include/alibabacloud/ecs/model/DescribeDeploymentSetsRequest.h + include/alibabacloud/ecs/model/DescribeDeploymentSetsResult.h + include/alibabacloud/ecs/model/AttachInstanceRamRoleRequest.h + include/alibabacloud/ecs/model/AttachInstanceRamRoleResult.h + include/alibabacloud/ecs/model/ModifyVRouterAttributeRequest.h + include/alibabacloud/ecs/model/ModifyVRouterAttributeResult.h + include/alibabacloud/ecs/EcsClient.h + include/alibabacloud/ecs/EcsExport.h + include/alibabacloud/ecs/EcsRequest.h + ) + +set(ecs_src + src/model/ModifySnapshotAttributeRequest.cc + src/model/ModifySnapshotAttributeResult.cc + src/model/JoinSecurityGroupRequest.cc + src/model/JoinSecurityGroupResult.cc + src/model/DescribeSnapshotsRequest.cc + src/model/DescribeSnapshotsResult.cc + src/model/ModifyBandwidthPackageSpecRequest.cc + src/model/ModifyBandwidthPackageSpecResult.cc + src/model/ModifyInstanceVncPasswdRequest.cc + src/model/ModifyInstanceVncPasswdResult.cc + src/model/CreateNatGatewayRequest.cc + src/model/CreateNatGatewayResult.cc + src/model/AttachDiskRequest.cc + src/model/AttachDiskResult.cc + src/model/ReInitDiskRequest.cc + src/model/ReInitDiskResult.cc + src/model/CreateHaVipRequest.cc + src/model/CreateHaVipResult.cc + src/model/ModifyAutoSnapshotPolicyRequest.cc + src/model/ModifyAutoSnapshotPolicyResult.cc + src/model/AssociateEipAddressRequest.cc + src/model/AssociateEipAddressResult.cc + src/model/DescribeEipAddressesRequest.cc + src/model/DescribeEipAddressesResult.cc + src/model/RevokeSecurityGroupEgressRequest.cc + src/model/RevokeSecurityGroupEgressResult.cc + src/model/ActivateRouterInterfaceRequest.cc + src/model/ActivateRouterInterfaceResult.cc + src/model/DescribeSpotPriceHistoryRequest.cc + src/model/DescribeSpotPriceHistoryResult.cc + src/model/TerminateVirtualBorderRouterRequest.cc + src/model/TerminateVirtualBorderRouterResult.cc + src/model/StopInstanceRequest.cc + src/model/StopInstanceResult.cc + src/model/DescribeInstanceHistoryEventsRequest.cc + src/model/DescribeInstanceHistoryEventsResult.cc + src/model/DeletePhysicalConnectionRequest.cc + src/model/DeletePhysicalConnectionResult.cc + src/model/RevokeSecurityGroupRequest.cc + src/model/RevokeSecurityGroupResult.cc + src/model/CheckAutoSnapshotPolicyRequest.cc + src/model/CheckAutoSnapshotPolicyResult.cc + src/model/DescribeTaskAttributeRequest.cc + src/model/DescribeTaskAttributeResult.cc + src/model/CreateAutoSnapshotPolicyRequest.cc + src/model/CreateAutoSnapshotPolicyResult.cc + src/model/ReActivateInstancesRequest.cc + src/model/ReActivateInstancesResult.cc + src/model/DescribeForwardTableEntriesRequest.cc + src/model/DescribeForwardTableEntriesResult.cc + src/model/DescribeInstancesRequest.cc + src/model/DescribeInstancesResult.cc + src/model/DescribeSecurityGroupReferencesRequest.cc + src/model/DescribeSecurityGroupReferencesResult.cc + src/model/DeleteRouterInterfaceRequest.cc + src/model/DeleteRouterInterfaceResult.cc + src/model/DetachInstanceRamRoleRequest.cc + src/model/DetachInstanceRamRoleResult.cc + src/model/AllocatePublicIpAddressRequest.cc + src/model/AllocatePublicIpAddressResult.cc + src/model/DescribeEipMonitorDataRequest.cc + src/model/DescribeEipMonitorDataResult.cc + src/model/CancelAutoSnapshotPolicyRequest.cc + src/model/CancelAutoSnapshotPolicyResult.cc + src/model/DescribeDisksFullStatusRequest.cc + src/model/DescribeDisksFullStatusResult.cc + src/model/DeleteNetworkInterfaceRequest.cc + src/model/DeleteNetworkInterfaceResult.cc + src/model/ModifyInstanceSpecRequest.cc + src/model/ModifyInstanceSpecResult.cc + src/model/DeleteSnapshotRequest.cc + src/model/DeleteSnapshotResult.cc + src/model/DeleteKeyPairsRequest.cc + src/model/DeleteKeyPairsResult.cc + src/model/AuthorizeSecurityGroupRequest.cc + src/model/AuthorizeSecurityGroupResult.cc + src/model/DeleteSecurityGroupRequest.cc + src/model/DeleteSecurityGroupResult.cc + src/model/DescribeSnapshotMonitorDataRequest.cc + src/model/DescribeSnapshotMonitorDataResult.cc + src/model/ConnectRouterInterfaceRequest.cc + src/model/ConnectRouterInterfaceResult.cc + src/model/AddIpRangeRequest.cc + src/model/AddIpRangeResult.cc + src/model/CancelTaskRequest.cc + src/model/CancelTaskResult.cc + src/model/ModifyPhysicalConnectionAttributeRequest.cc + src/model/ModifyPhysicalConnectionAttributeResult.cc + src/model/ModifyCommandRequest.cc + src/model/ModifyCommandResult.cc + src/model/ModifyVSwitchAttributeRequest.cc + src/model/ModifyVSwitchAttributeResult.cc + src/model/ModifyInstanceAttributeRequest.cc + src/model/ModifyInstanceAttributeResult.cc + src/model/DeleteHaVipRequest.cc + src/model/DeleteHaVipResult.cc + src/model/DescribeSecurityGroupsRequest.cc + src/model/DescribeSecurityGroupsResult.cc + src/model/ResizeDiskRequest.cc + src/model/ResizeDiskResult.cc + src/model/CreateRouteEntryRequest.cc + src/model/CreateRouteEntryResult.cc + src/model/DescribeInvocationsRequest.cc + src/model/DescribeInvocationsResult.cc + src/model/AttachKeyPairRequest.cc + src/model/AttachKeyPairResult.cc + src/model/CreateRouterInterfaceRequest.cc + src/model/CreateRouterInterfaceResult.cc + src/model/CheckDiskEnableAutoSnapshotValidationRequest.cc + src/model/CheckDiskEnableAutoSnapshotValidationResult.cc + src/model/RunInstancesRequest.cc + src/model/RunInstancesResult.cc + src/model/StopInvocationRequest.cc + src/model/StopInvocationResult.cc + src/model/ModifyInstanceNetworkSpecRequest.cc + src/model/ModifyInstanceNetworkSpecResult.cc + src/model/ModifyDiskAttributeRequest.cc + src/model/ModifyDiskAttributeResult.cc + src/model/CreateVSwitchRequest.cc + src/model/CreateVSwitchResult.cc + src/model/ModifyEipAddressAttributeRequest.cc + src/model/ModifyEipAddressAttributeResult.cc + src/model/RemoveTagsRequest.cc + src/model/RemoveTagsResult.cc + src/model/ModifySecurityGroupAttributeRequest.cc + src/model/ModifySecurityGroupAttributeResult.cc + src/model/ModifyInstanceAutoReleaseTimeRequest.cc + src/model/ModifyInstanceAutoReleaseTimeResult.cc + src/model/DeleteNatGatewayRequest.cc + src/model/DeleteNatGatewayResult.cc + src/model/DescribeZonesRequest.cc + src/model/DescribeZonesResult.cc + src/model/DeactivateRouterInterfaceRequest.cc + src/model/DeactivateRouterInterfaceResult.cc + src/model/DescribeAccessPointsRequest.cc + src/model/DescribeAccessPointsResult.cc + src/model/CreateCommandRequest.cc + src/model/CreateCommandResult.cc + src/model/DescribeInstancesFullStatusRequest.cc + src/model/DescribeInstancesFullStatusResult.cc + src/model/ReleaseEipAddressRequest.cc + src/model/ReleaseEipAddressResult.cc + src/model/DetachClassicLinkVpcRequest.cc + src/model/DetachClassicLinkVpcResult.cc + src/model/DescribeVSwitchesRequest.cc + src/model/DescribeVSwitchesResult.cc + src/model/ModifyRouterInterfaceSpecRequest.cc + src/model/ModifyRouterInterfaceSpecResult.cc + src/model/DescribeVpcsRequest.cc + src/model/DescribeVpcsResult.cc + src/model/ExportImageRequest.cc + src/model/ExportImageResult.cc + src/model/DescribeDiskMonitorDataRequest.cc + src/model/DescribeDiskMonitorDataResult.cc + src/model/ModifyDeploymentSetAttributeRequest.cc + src/model/ModifyDeploymentSetAttributeResult.cc + src/model/ModifyRouterInterfaceAttributeRequest.cc + src/model/ModifyRouterInterfaceAttributeResult.cc + src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc + src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc + src/model/CreateDiskRequest.cc + src/model/CreateDiskResult.cc + src/model/StartInstanceRequest.cc + src/model/StartInstanceResult.cc + src/model/DescribeInstanceTypesRequest.cc + src/model/DescribeInstanceTypesResult.cc + src/model/DescribeSnapshotPackageRequest.cc + src/model/DescribeSnapshotPackageResult.cc + src/model/RebootInstanceRequest.cc + src/model/RebootInstanceResult.cc + src/model/BindIpRangeRequest.cc + src/model/BindIpRangeResult.cc + src/model/InvokeCommandRequest.cc + src/model/InvokeCommandResult.cc + src/model/ModifyUserBusinessBehaviorRequest.cc + src/model/ModifyUserBusinessBehaviorResult.cc + src/model/DeleteForwardEntryRequest.cc + src/model/DeleteForwardEntryResult.cc + src/model/DescribeHpcClustersRequest.cc + src/model/DescribeHpcClustersResult.cc + src/model/CancelAgreementRequest.cc + src/model/CancelAgreementResult.cc + src/model/ModifyInstanceChargeTypeRequest.cc + src/model/ModifyInstanceChargeTypeResult.cc + src/model/ModifyInstanceAutoRenewAttributeRequest.cc + src/model/ModifyInstanceAutoRenewAttributeResult.cc + src/model/DescribeVirtualBorderRoutersRequest.cc + src/model/DescribeVirtualBorderRoutersResult.cc + src/model/ModifyHpcClusterAttributeRequest.cc + src/model/ModifyHpcClusterAttributeResult.cc + src/model/DescribeLimitationRequest.cc + src/model/DescribeLimitationResult.cc + src/model/DescribePriceRequest.cc + src/model/DescribePriceResult.cc + src/model/DeleteDeploymentSetRequest.cc + src/model/DeleteDeploymentSetResult.cc + src/model/DescribeDeploymentSetTopologyRequest.cc + src/model/DescribeDeploymentSetTopologyResult.cc + src/model/ModifyInstanceVpcAttributeRequest.cc + src/model/ModifyInstanceVpcAttributeResult.cc + src/model/AddTagsRequest.cc + src/model/AddTagsResult.cc + src/model/CreateHpcClusterRequest.cc + src/model/CreateHpcClusterResult.cc + src/model/DescribeUserBusinessBehaviorRequest.cc + src/model/DescribeUserBusinessBehaviorResult.cc + src/model/DescribeCommandsRequest.cc + src/model/DescribeCommandsResult.cc + src/model/DeleteImageRequest.cc + src/model/DeleteImageResult.cc + src/model/DescribeDisksRequest.cc + src/model/DescribeDisksResult.cc + src/model/DeleteVpcRequest.cc + src/model/DeleteVpcResult.cc + src/model/DescribeImageSupportInstanceTypesRequest.cc + src/model/DescribeImageSupportInstanceTypesResult.cc + src/model/DeleteCommandRequest.cc + src/model/DeleteCommandResult.cc + src/model/ReplaceSystemDiskRequest.cc + src/model/ReplaceSystemDiskResult.cc + src/model/DeleteVSwitchRequest.cc + src/model/DeleteVSwitchResult.cc + src/model/ModifyImageShareGroupPermissionRequest.cc + src/model/ModifyImageShareGroupPermissionResult.cc + src/model/DescribeInstanceVncUrlRequest.cc + src/model/DescribeInstanceVncUrlResult.cc + src/model/RecoverVirtualBorderRouterRequest.cc + src/model/RecoverVirtualBorderRouterResult.cc + src/model/DescribeResourceByTagsRequest.cc + src/model/DescribeResourceByTagsResult.cc + src/model/DescribeClustersRequest.cc + src/model/DescribeClustersResult.cc + src/model/DescribeTagsRequest.cc + src/model/DescribeTagsResult.cc + src/model/DeleteBandwidthPackageRequest.cc + src/model/DeleteBandwidthPackageResult.cc + src/model/DescribeImagesRequest.cc + src/model/DescribeImagesResult.cc + src/model/AuthorizeSecurityGroupEgressRequest.cc + src/model/AuthorizeSecurityGroupEgressResult.cc + src/model/SignAgreementRequest.cc + src/model/SignAgreementResult.cc + src/model/ImportImageRequest.cc + src/model/ImportImageResult.cc + src/model/ModifyForwardEntryRequest.cc + src/model/ModifyForwardEntryResult.cc + src/model/RenewInstanceRequest.cc + src/model/RenewInstanceResult.cc + src/model/CreateVpcRequest.cc + src/model/CreateVpcResult.cc + src/model/CopyImageRequest.cc + src/model/CopyImageResult.cc + src/model/DescribeInstanceMonitorDataRequest.cc + src/model/DescribeInstanceMonitorDataResult.cc + src/model/UnassociateEipAddressRequest.cc + src/model/UnassociateEipAddressResult.cc + src/model/CreateSnapshotRequest.cc + src/model/CreateSnapshotResult.cc + src/model/ModifyVirtualBorderRouterAttributeRequest.cc + src/model/ModifyVirtualBorderRouterAttributeResult.cc + src/model/DetachKeyPairRequest.cc + src/model/DetachKeyPairResult.cc + src/model/DescribeTasksRequest.cc + src/model/DescribeTasksResult.cc + src/model/LeaveSecurityGroupRequest.cc + src/model/LeaveSecurityGroupResult.cc + src/model/DescribeRenewalPriceRequest.cc + src/model/DescribeRenewalPriceResult.cc + src/model/DescribeInstanceVncPasswdRequest.cc + src/model/DescribeInstanceVncPasswdResult.cc + src/model/DescribeInstanceAutoRenewAttributeRequest.cc + src/model/DescribeInstanceAutoRenewAttributeResult.cc + src/model/ModifySecurityGroupRuleRequest.cc + src/model/ModifySecurityGroupRuleResult.cc + src/model/ImportKeyPairRequest.cc + src/model/ImportKeyPairResult.cc + src/model/DescribeNewProjectEipMonitorDataRequest.cc + src/model/DescribeNewProjectEipMonitorDataResult.cc + src/model/UnbindIpRangeRequest.cc + src/model/UnbindIpRangeResult.cc + src/model/DeleteRecycleBinRequest.cc + src/model/DeleteRecycleBinResult.cc + src/model/DescribeInstanceRamRoleRequest.cc + src/model/DescribeInstanceRamRoleResult.cc + src/model/CreateImageRequest.cc + src/model/CreateImageResult.cc + src/model/DescribeHaVipsRequest.cc + src/model/DescribeHaVipsResult.cc + src/model/DescribeInstanceAttributeRequest.cc + src/model/DescribeInstanceAttributeResult.cc + src/model/DetachDiskRequest.cc + src/model/DetachDiskResult.cc + src/model/ModifyImageAttributeRequest.cc + src/model/ModifyImageAttributeResult.cc + src/model/AddBandwidthPackageIpsRequest.cc + src/model/AddBandwidthPackageIpsResult.cc + src/model/DescribeInstanceStatusRequest.cc + src/model/DescribeInstanceStatusResult.cc + src/model/DescribeNatGatewaysRequest.cc + src/model/DescribeNatGatewaysResult.cc + src/model/DeleteHpcClusterRequest.cc + src/model/DeleteHpcClusterResult.cc + src/model/ResetDiskRequest.cc + src/model/ResetDiskResult.cc + src/model/ModifyDiskChargeTypeRequest.cc + src/model/ModifyDiskChargeTypeResult.cc + src/model/ModifyIntranetBandwidthKbRequest.cc + src/model/ModifyIntranetBandwidthKbResult.cc + src/model/DescribeBandwidthPackagesRequest.cc + src/model/DescribeBandwidthPackagesResult.cc + src/model/ApplyAutoSnapshotPolicyRequest.cc + src/model/ApplyAutoSnapshotPolicyResult.cc + src/model/CreateSecurityGroupRequest.cc + src/model/CreateSecurityGroupResult.cc + src/model/DescribeSnapshotLinksRequest.cc + src/model/DescribeSnapshotLinksResult.cc + src/model/DescribeInvocationResultsRequest.cc + src/model/DescribeInvocationResultsResult.cc + src/model/DescribeRecommendInstanceTypeRequest.cc + src/model/DescribeRecommendInstanceTypeResult.cc + src/model/DescribeTagKeysRequest.cc + src/model/DescribeTagKeysResult.cc + src/model/DeleteInstanceRequest.cc + src/model/DeleteInstanceResult.cc + src/model/DescribeIntranetAttributeKbRequest.cc + src/model/DescribeIntranetAttributeKbResult.cc + src/model/RemoveBandwidthPackageIpsRequest.cc + src/model/RemoveBandwidthPackageIpsResult.cc + src/model/ModifyVpcAttributeRequest.cc + src/model/ModifyVpcAttributeResult.cc + src/model/DescribeSnapshotsUsageRequest.cc + src/model/DescribeSnapshotsUsageResult.cc + src/model/DeleteAutoSnapshotPolicyRequest.cc + src/model/DeleteAutoSnapshotPolicyResult.cc + src/model/ModifySecurityGroupEgressRuleRequest.cc + src/model/ModifySecurityGroupEgressRuleResult.cc + src/model/CreateInstanceRequest.cc + src/model/CreateInstanceResult.cc + src/model/EnablePhysicalConnectionRequest.cc + src/model/EnablePhysicalConnectionResult.cc + src/model/DescribeInstanceTypeFamiliesRequest.cc + src/model/DescribeInstanceTypeFamiliesResult.cc + src/model/CreateForwardEntryRequest.cc + src/model/CreateForwardEntryResult.cc + src/model/DescribeRouterInterfacesRequest.cc + src/model/DescribeRouterInterfacesResult.cc + src/model/EipNotifyPaidRequest.cc + src/model/EipNotifyPaidResult.cc + src/model/ReleasePublicIpAddressRequest.cc + src/model/ReleasePublicIpAddressResult.cc + src/model/CreateVirtualBorderRouterRequest.cc + src/model/CreateVirtualBorderRouterResult.cc + src/model/EipFillParamsRequest.cc + src/model/EipFillParamsResult.cc + src/model/ModifyPrepayInstanceSpecRequest.cc + src/model/ModifyPrepayInstanceSpecResult.cc + src/model/EipFillProductRequest.cc + src/model/EipFillProductResult.cc + src/model/DescribeRouteTablesRequest.cc + src/model/DescribeRouteTablesResult.cc + src/model/DescribeUserDataRequest.cc + src/model/DescribeUserDataResult.cc + src/model/JoinResourceGroupRequest.cc + src/model/JoinResourceGroupResult.cc + src/model/ModifyAutoSnapshotPolicyExRequest.cc + src/model/ModifyAutoSnapshotPolicyExResult.cc + src/model/CreatePhysicalConnectionRequest.cc + src/model/CreatePhysicalConnectionResult.cc + src/model/DescribeKeyPairsRequest.cc + src/model/DescribeKeyPairsResult.cc + src/model/ModifySecurityGroupPolicyRequest.cc + src/model/ModifySecurityGroupPolicyResult.cc + src/model/AssociateHaVipRequest.cc + src/model/AssociateHaVipResult.cc + src/model/ConvertNatPublicIpToEipRequest.cc + src/model/ConvertNatPublicIpToEipResult.cc + src/model/DeleteRouteEntryRequest.cc + src/model/DeleteRouteEntryResult.cc + src/model/DeleteVirtualBorderRouterRequest.cc + src/model/DeleteVirtualBorderRouterResult.cc + src/model/DescribeInstancePhysicalAttributeRequest.cc + src/model/DescribeInstancePhysicalAttributeResult.cc + src/model/TerminatePhysicalConnectionRequest.cc + src/model/TerminatePhysicalConnectionResult.cc + src/model/AttachNetworkInterfaceRequest.cc + src/model/AttachNetworkInterfaceResult.cc + src/model/DescribeSecurityGroupAttributeRequest.cc + src/model/DescribeSecurityGroupAttributeResult.cc + src/model/ModifyImageSharePermissionRequest.cc + src/model/ModifyImageSharePermissionResult.cc + src/model/DescribeAutoSnapshotPolicyExRequest.cc + src/model/DescribeAutoSnapshotPolicyExResult.cc + src/model/DescribeImageSharePermissionRequest.cc + src/model/DescribeImageSharePermissionResult.cc + src/model/CancelCopyImageRequest.cc + src/model/CancelCopyImageResult.cc + src/model/CreateDeploymentSetRequest.cc + src/model/CreateDeploymentSetResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/DescribeClassicLinkInstancesRequest.cc + src/model/DescribeClassicLinkInstancesResult.cc + src/model/DescribeAutoSnapshotPolicyRequest.cc + src/model/DescribeAutoSnapshotPolicyResult.cc + src/model/DescribePhysicalConnectionsRequest.cc + src/model/DescribePhysicalConnectionsResult.cc + src/model/DescribeRecycleBinRequest.cc + src/model/DescribeRecycleBinResult.cc + src/model/CreateNetworkInterfaceRequest.cc + src/model/CreateNetworkInterfaceResult.cc + src/model/DescribeIpRangesRequest.cc + src/model/DescribeIpRangesResult.cc + src/model/CancelPhysicalConnectionRequest.cc + src/model/CancelPhysicalConnectionResult.cc + src/model/DescribeVRoutersRequest.cc + src/model/DescribeVRoutersResult.cc + src/model/DescribeNetworkInterfacesRequest.cc + src/model/DescribeNetworkInterfacesResult.cc + src/model/ModifyNetworkInterfaceAttributeRequest.cc + src/model/ModifyNetworkInterfaceAttributeResult.cc + src/model/DetachNetworkInterfaceRequest.cc + src/model/DetachNetworkInterfaceResult.cc + src/model/AllocateEipAddressRequest.cc + src/model/AllocateEipAddressResult.cc + src/model/DeleteDiskRequest.cc + src/model/DeleteDiskResult.cc + src/model/UnassociateHaVipRequest.cc + src/model/UnassociateHaVipResult.cc + src/model/ModifyHaVipAttributeRequest.cc + src/model/ModifyHaVipAttributeResult.cc + src/model/CreateKeyPairRequest.cc + src/model/CreateKeyPairResult.cc + src/model/AttachClassicLinkVpcRequest.cc + src/model/AttachClassicLinkVpcResult.cc + src/model/DescribeDeploymentSetsRequest.cc + src/model/DescribeDeploymentSetsResult.cc + src/model/AttachInstanceRamRoleRequest.cc + src/model/AttachInstanceRamRoleResult.cc + src/model/ModifyVRouterAttributeRequest.cc + src/model/ModifyVRouterAttributeResult.cc + src/EcsClient.cc + src/EcsRequest.cc + ) + +add_library(ecs ${LIB_TYPE} ${ecs_public_header} ${ecs_src}) + +set_target_properties(ecs + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}ecs + PUBLIC_HEADER "${ecs_public_header}" + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(ecs + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_ECS_LIBRARY) +endif() + +target_include_directories(ecs + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(ecs + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(ecs + jsoncpp) + target_include_directories(ecs + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(ecs + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(ecs + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(ecs + PRIVATE /usr/include/jsoncpp) + target_link_libraries(ecs + jsoncpp) +endif() + +install(TARGETS ecs + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ecs + ) diff --git a/ecs/ChangeLog.txt b/ecs/ChangeLog.txt new file mode 100644 index 000000000..f273a2a5a --- /dev/null +++ b/ecs/ChangeLog.txt @@ -0,0 +1,3 @@ +2018-01-10 Version: 升级小版本 +1, First release ecs for C++ + diff --git a/ecs/include/alibabacloud/ecs/EcsClient.h b/ecs/include/alibabacloud/ecs/EcsClient.h new file mode 100644 index 000000000..4fce0a5b1 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/EcsClient.h @@ -0,0 +1,1809 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_ECSCLIENT_H_ +#define ALIBABACLOUD_ECS_ECSCLIENT_H_ + +#include +#include +#include +#include +#include "EcsExport.h" +#include "model/ModifySnapshotAttributeRequest.h" +#include "model/ModifySnapshotAttributeResult.h" +#include "model/JoinSecurityGroupRequest.h" +#include "model/JoinSecurityGroupResult.h" +#include "model/DescribeSnapshotsRequest.h" +#include "model/DescribeSnapshotsResult.h" +#include "model/ModifyBandwidthPackageSpecRequest.h" +#include "model/ModifyBandwidthPackageSpecResult.h" +#include "model/ModifyInstanceVncPasswdRequest.h" +#include "model/ModifyInstanceVncPasswdResult.h" +#include "model/CreateNatGatewayRequest.h" +#include "model/CreateNatGatewayResult.h" +#include "model/AttachDiskRequest.h" +#include "model/AttachDiskResult.h" +#include "model/ReInitDiskRequest.h" +#include "model/ReInitDiskResult.h" +#include "model/CreateHaVipRequest.h" +#include "model/CreateHaVipResult.h" +#include "model/ModifyAutoSnapshotPolicyRequest.h" +#include "model/ModifyAutoSnapshotPolicyResult.h" +#include "model/AssociateEipAddressRequest.h" +#include "model/AssociateEipAddressResult.h" +#include "model/DescribeEipAddressesRequest.h" +#include "model/DescribeEipAddressesResult.h" +#include "model/RevokeSecurityGroupEgressRequest.h" +#include "model/RevokeSecurityGroupEgressResult.h" +#include "model/ActivateRouterInterfaceRequest.h" +#include "model/ActivateRouterInterfaceResult.h" +#include "model/DescribeSpotPriceHistoryRequest.h" +#include "model/DescribeSpotPriceHistoryResult.h" +#include "model/TerminateVirtualBorderRouterRequest.h" +#include "model/TerminateVirtualBorderRouterResult.h" +#include "model/StopInstanceRequest.h" +#include "model/StopInstanceResult.h" +#include "model/DescribeInstanceHistoryEventsRequest.h" +#include "model/DescribeInstanceHistoryEventsResult.h" +#include "model/DeletePhysicalConnectionRequest.h" +#include "model/DeletePhysicalConnectionResult.h" +#include "model/RevokeSecurityGroupRequest.h" +#include "model/RevokeSecurityGroupResult.h" +#include "model/CheckAutoSnapshotPolicyRequest.h" +#include "model/CheckAutoSnapshotPolicyResult.h" +#include "model/DescribeTaskAttributeRequest.h" +#include "model/DescribeTaskAttributeResult.h" +#include "model/CreateAutoSnapshotPolicyRequest.h" +#include "model/CreateAutoSnapshotPolicyResult.h" +#include "model/ReActivateInstancesRequest.h" +#include "model/ReActivateInstancesResult.h" +#include "model/DescribeForwardTableEntriesRequest.h" +#include "model/DescribeForwardTableEntriesResult.h" +#include "model/DescribeInstancesRequest.h" +#include "model/DescribeInstancesResult.h" +#include "model/DescribeSecurityGroupReferencesRequest.h" +#include "model/DescribeSecurityGroupReferencesResult.h" +#include "model/DeleteRouterInterfaceRequest.h" +#include "model/DeleteRouterInterfaceResult.h" +#include "model/DetachInstanceRamRoleRequest.h" +#include "model/DetachInstanceRamRoleResult.h" +#include "model/AllocatePublicIpAddressRequest.h" +#include "model/AllocatePublicIpAddressResult.h" +#include "model/DescribeEipMonitorDataRequest.h" +#include "model/DescribeEipMonitorDataResult.h" +#include "model/CancelAutoSnapshotPolicyRequest.h" +#include "model/CancelAutoSnapshotPolicyResult.h" +#include "model/DescribeDisksFullStatusRequest.h" +#include "model/DescribeDisksFullStatusResult.h" +#include "model/DeleteNetworkInterfaceRequest.h" +#include "model/DeleteNetworkInterfaceResult.h" +#include "model/ModifyInstanceSpecRequest.h" +#include "model/ModifyInstanceSpecResult.h" +#include "model/DeleteSnapshotRequest.h" +#include "model/DeleteSnapshotResult.h" +#include "model/DeleteKeyPairsRequest.h" +#include "model/DeleteKeyPairsResult.h" +#include "model/AuthorizeSecurityGroupRequest.h" +#include "model/AuthorizeSecurityGroupResult.h" +#include "model/DeleteSecurityGroupRequest.h" +#include "model/DeleteSecurityGroupResult.h" +#include "model/DescribeSnapshotMonitorDataRequest.h" +#include "model/DescribeSnapshotMonitorDataResult.h" +#include "model/ConnectRouterInterfaceRequest.h" +#include "model/ConnectRouterInterfaceResult.h" +#include "model/AddIpRangeRequest.h" +#include "model/AddIpRangeResult.h" +#include "model/CancelTaskRequest.h" +#include "model/CancelTaskResult.h" +#include "model/ModifyPhysicalConnectionAttributeRequest.h" +#include "model/ModifyPhysicalConnectionAttributeResult.h" +#include "model/ModifyCommandRequest.h" +#include "model/ModifyCommandResult.h" +#include "model/ModifyVSwitchAttributeRequest.h" +#include "model/ModifyVSwitchAttributeResult.h" +#include "model/ModifyInstanceAttributeRequest.h" +#include "model/ModifyInstanceAttributeResult.h" +#include "model/DeleteHaVipRequest.h" +#include "model/DeleteHaVipResult.h" +#include "model/DescribeSecurityGroupsRequest.h" +#include "model/DescribeSecurityGroupsResult.h" +#include "model/ResizeDiskRequest.h" +#include "model/ResizeDiskResult.h" +#include "model/CreateRouteEntryRequest.h" +#include "model/CreateRouteEntryResult.h" +#include "model/DescribeInvocationsRequest.h" +#include "model/DescribeInvocationsResult.h" +#include "model/AttachKeyPairRequest.h" +#include "model/AttachKeyPairResult.h" +#include "model/CreateRouterInterfaceRequest.h" +#include "model/CreateRouterInterfaceResult.h" +#include "model/CheckDiskEnableAutoSnapshotValidationRequest.h" +#include "model/CheckDiskEnableAutoSnapshotValidationResult.h" +#include "model/RunInstancesRequest.h" +#include "model/RunInstancesResult.h" +#include "model/StopInvocationRequest.h" +#include "model/StopInvocationResult.h" +#include "model/ModifyInstanceNetworkSpecRequest.h" +#include "model/ModifyInstanceNetworkSpecResult.h" +#include "model/ModifyDiskAttributeRequest.h" +#include "model/ModifyDiskAttributeResult.h" +#include "model/CreateVSwitchRequest.h" +#include "model/CreateVSwitchResult.h" +#include "model/ModifyEipAddressAttributeRequest.h" +#include "model/ModifyEipAddressAttributeResult.h" +#include "model/RemoveTagsRequest.h" +#include "model/RemoveTagsResult.h" +#include "model/ModifySecurityGroupAttributeRequest.h" +#include "model/ModifySecurityGroupAttributeResult.h" +#include "model/ModifyInstanceAutoReleaseTimeRequest.h" +#include "model/ModifyInstanceAutoReleaseTimeResult.h" +#include "model/DeleteNatGatewayRequest.h" +#include "model/DeleteNatGatewayResult.h" +#include "model/DescribeZonesRequest.h" +#include "model/DescribeZonesResult.h" +#include "model/DeactivateRouterInterfaceRequest.h" +#include "model/DeactivateRouterInterfaceResult.h" +#include "model/DescribeAccessPointsRequest.h" +#include "model/DescribeAccessPointsResult.h" +#include "model/CreateCommandRequest.h" +#include "model/CreateCommandResult.h" +#include "model/DescribeInstancesFullStatusRequest.h" +#include "model/DescribeInstancesFullStatusResult.h" +#include "model/ReleaseEipAddressRequest.h" +#include "model/ReleaseEipAddressResult.h" +#include "model/DetachClassicLinkVpcRequest.h" +#include "model/DetachClassicLinkVpcResult.h" +#include "model/DescribeVSwitchesRequest.h" +#include "model/DescribeVSwitchesResult.h" +#include "model/ModifyRouterInterfaceSpecRequest.h" +#include "model/ModifyRouterInterfaceSpecResult.h" +#include "model/DescribeVpcsRequest.h" +#include "model/DescribeVpcsResult.h" +#include "model/ExportImageRequest.h" +#include "model/ExportImageResult.h" +#include "model/DescribeDiskMonitorDataRequest.h" +#include "model/DescribeDiskMonitorDataResult.h" +#include "model/ModifyDeploymentSetAttributeRequest.h" +#include "model/ModifyDeploymentSetAttributeResult.h" +#include "model/ModifyRouterInterfaceAttributeRequest.h" +#include "model/ModifyRouterInterfaceAttributeResult.h" +#include "model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h" +#include "model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h" +#include "model/CreateDiskRequest.h" +#include "model/CreateDiskResult.h" +#include "model/StartInstanceRequest.h" +#include "model/StartInstanceResult.h" +#include "model/DescribeInstanceTypesRequest.h" +#include "model/DescribeInstanceTypesResult.h" +#include "model/DescribeSnapshotPackageRequest.h" +#include "model/DescribeSnapshotPackageResult.h" +#include "model/RebootInstanceRequest.h" +#include "model/RebootInstanceResult.h" +#include "model/BindIpRangeRequest.h" +#include "model/BindIpRangeResult.h" +#include "model/InvokeCommandRequest.h" +#include "model/InvokeCommandResult.h" +#include "model/ModifyUserBusinessBehaviorRequest.h" +#include "model/ModifyUserBusinessBehaviorResult.h" +#include "model/DeleteForwardEntryRequest.h" +#include "model/DeleteForwardEntryResult.h" +#include "model/DescribeHpcClustersRequest.h" +#include "model/DescribeHpcClustersResult.h" +#include "model/CancelAgreementRequest.h" +#include "model/CancelAgreementResult.h" +#include "model/ModifyInstanceChargeTypeRequest.h" +#include "model/ModifyInstanceChargeTypeResult.h" +#include "model/ModifyInstanceAutoRenewAttributeRequest.h" +#include "model/ModifyInstanceAutoRenewAttributeResult.h" +#include "model/DescribeVirtualBorderRoutersRequest.h" +#include "model/DescribeVirtualBorderRoutersResult.h" +#include "model/ModifyHpcClusterAttributeRequest.h" +#include "model/ModifyHpcClusterAttributeResult.h" +#include "model/DescribeLimitationRequest.h" +#include "model/DescribeLimitationResult.h" +#include "model/DescribePriceRequest.h" +#include "model/DescribePriceResult.h" +#include "model/DeleteDeploymentSetRequest.h" +#include "model/DeleteDeploymentSetResult.h" +#include "model/DescribeDeploymentSetTopologyRequest.h" +#include "model/DescribeDeploymentSetTopologyResult.h" +#include "model/ModifyInstanceVpcAttributeRequest.h" +#include "model/ModifyInstanceVpcAttributeResult.h" +#include "model/AddTagsRequest.h" +#include "model/AddTagsResult.h" +#include "model/CreateHpcClusterRequest.h" +#include "model/CreateHpcClusterResult.h" +#include "model/DescribeUserBusinessBehaviorRequest.h" +#include "model/DescribeUserBusinessBehaviorResult.h" +#include "model/DescribeCommandsRequest.h" +#include "model/DescribeCommandsResult.h" +#include "model/DeleteImageRequest.h" +#include "model/DeleteImageResult.h" +#include "model/DescribeDisksRequest.h" +#include "model/DescribeDisksResult.h" +#include "model/DeleteVpcRequest.h" +#include "model/DeleteVpcResult.h" +#include "model/DescribeImageSupportInstanceTypesRequest.h" +#include "model/DescribeImageSupportInstanceTypesResult.h" +#include "model/DeleteCommandRequest.h" +#include "model/DeleteCommandResult.h" +#include "model/ReplaceSystemDiskRequest.h" +#include "model/ReplaceSystemDiskResult.h" +#include "model/DeleteVSwitchRequest.h" +#include "model/DeleteVSwitchResult.h" +#include "model/ModifyImageShareGroupPermissionRequest.h" +#include "model/ModifyImageShareGroupPermissionResult.h" +#include "model/DescribeInstanceVncUrlRequest.h" +#include "model/DescribeInstanceVncUrlResult.h" +#include "model/RecoverVirtualBorderRouterRequest.h" +#include "model/RecoverVirtualBorderRouterResult.h" +#include "model/DescribeResourceByTagsRequest.h" +#include "model/DescribeResourceByTagsResult.h" +#include "model/DescribeClustersRequest.h" +#include "model/DescribeClustersResult.h" +#include "model/DescribeTagsRequest.h" +#include "model/DescribeTagsResult.h" +#include "model/DeleteBandwidthPackageRequest.h" +#include "model/DeleteBandwidthPackageResult.h" +#include "model/DescribeImagesRequest.h" +#include "model/DescribeImagesResult.h" +#include "model/AuthorizeSecurityGroupEgressRequest.h" +#include "model/AuthorizeSecurityGroupEgressResult.h" +#include "model/SignAgreementRequest.h" +#include "model/SignAgreementResult.h" +#include "model/ImportImageRequest.h" +#include "model/ImportImageResult.h" +#include "model/ModifyForwardEntryRequest.h" +#include "model/ModifyForwardEntryResult.h" +#include "model/RenewInstanceRequest.h" +#include "model/RenewInstanceResult.h" +#include "model/CreateVpcRequest.h" +#include "model/CreateVpcResult.h" +#include "model/CopyImageRequest.h" +#include "model/CopyImageResult.h" +#include "model/DescribeInstanceMonitorDataRequest.h" +#include "model/DescribeInstanceMonitorDataResult.h" +#include "model/UnassociateEipAddressRequest.h" +#include "model/UnassociateEipAddressResult.h" +#include "model/CreateSnapshotRequest.h" +#include "model/CreateSnapshotResult.h" +#include "model/ModifyVirtualBorderRouterAttributeRequest.h" +#include "model/ModifyVirtualBorderRouterAttributeResult.h" +#include "model/DetachKeyPairRequest.h" +#include "model/DetachKeyPairResult.h" +#include "model/DescribeTasksRequest.h" +#include "model/DescribeTasksResult.h" +#include "model/LeaveSecurityGroupRequest.h" +#include "model/LeaveSecurityGroupResult.h" +#include "model/DescribeRenewalPriceRequest.h" +#include "model/DescribeRenewalPriceResult.h" +#include "model/DescribeInstanceVncPasswdRequest.h" +#include "model/DescribeInstanceVncPasswdResult.h" +#include "model/DescribeInstanceAutoRenewAttributeRequest.h" +#include "model/DescribeInstanceAutoRenewAttributeResult.h" +#include "model/ModifySecurityGroupRuleRequest.h" +#include "model/ModifySecurityGroupRuleResult.h" +#include "model/ImportKeyPairRequest.h" +#include "model/ImportKeyPairResult.h" +#include "model/DescribeNewProjectEipMonitorDataRequest.h" +#include "model/DescribeNewProjectEipMonitorDataResult.h" +#include "model/UnbindIpRangeRequest.h" +#include "model/UnbindIpRangeResult.h" +#include "model/DeleteRecycleBinRequest.h" +#include "model/DeleteRecycleBinResult.h" +#include "model/DescribeInstanceRamRoleRequest.h" +#include "model/DescribeInstanceRamRoleResult.h" +#include "model/CreateImageRequest.h" +#include "model/CreateImageResult.h" +#include "model/DescribeHaVipsRequest.h" +#include "model/DescribeHaVipsResult.h" +#include "model/DescribeInstanceAttributeRequest.h" +#include "model/DescribeInstanceAttributeResult.h" +#include "model/DetachDiskRequest.h" +#include "model/DetachDiskResult.h" +#include "model/ModifyImageAttributeRequest.h" +#include "model/ModifyImageAttributeResult.h" +#include "model/AddBandwidthPackageIpsRequest.h" +#include "model/AddBandwidthPackageIpsResult.h" +#include "model/DescribeInstanceStatusRequest.h" +#include "model/DescribeInstanceStatusResult.h" +#include "model/DescribeNatGatewaysRequest.h" +#include "model/DescribeNatGatewaysResult.h" +#include "model/DeleteHpcClusterRequest.h" +#include "model/DeleteHpcClusterResult.h" +#include "model/ResetDiskRequest.h" +#include "model/ResetDiskResult.h" +#include "model/ModifyDiskChargeTypeRequest.h" +#include "model/ModifyDiskChargeTypeResult.h" +#include "model/ModifyIntranetBandwidthKbRequest.h" +#include "model/ModifyIntranetBandwidthKbResult.h" +#include "model/DescribeBandwidthPackagesRequest.h" +#include "model/DescribeBandwidthPackagesResult.h" +#include "model/ApplyAutoSnapshotPolicyRequest.h" +#include "model/ApplyAutoSnapshotPolicyResult.h" +#include "model/CreateSecurityGroupRequest.h" +#include "model/CreateSecurityGroupResult.h" +#include "model/DescribeSnapshotLinksRequest.h" +#include "model/DescribeSnapshotLinksResult.h" +#include "model/DescribeInvocationResultsRequest.h" +#include "model/DescribeInvocationResultsResult.h" +#include "model/DescribeRecommendInstanceTypeRequest.h" +#include "model/DescribeRecommendInstanceTypeResult.h" +#include "model/DescribeTagKeysRequest.h" +#include "model/DescribeTagKeysResult.h" +#include "model/DeleteInstanceRequest.h" +#include "model/DeleteInstanceResult.h" +#include "model/DescribeIntranetAttributeKbRequest.h" +#include "model/DescribeIntranetAttributeKbResult.h" +#include "model/RemoveBandwidthPackageIpsRequest.h" +#include "model/RemoveBandwidthPackageIpsResult.h" +#include "model/ModifyVpcAttributeRequest.h" +#include "model/ModifyVpcAttributeResult.h" +#include "model/DescribeSnapshotsUsageRequest.h" +#include "model/DescribeSnapshotsUsageResult.h" +#include "model/DeleteAutoSnapshotPolicyRequest.h" +#include "model/DeleteAutoSnapshotPolicyResult.h" +#include "model/ModifySecurityGroupEgressRuleRequest.h" +#include "model/ModifySecurityGroupEgressRuleResult.h" +#include "model/CreateInstanceRequest.h" +#include "model/CreateInstanceResult.h" +#include "model/EnablePhysicalConnectionRequest.h" +#include "model/EnablePhysicalConnectionResult.h" +#include "model/DescribeInstanceTypeFamiliesRequest.h" +#include "model/DescribeInstanceTypeFamiliesResult.h" +#include "model/CreateForwardEntryRequest.h" +#include "model/CreateForwardEntryResult.h" +#include "model/DescribeRouterInterfacesRequest.h" +#include "model/DescribeRouterInterfacesResult.h" +#include "model/EipNotifyPaidRequest.h" +#include "model/EipNotifyPaidResult.h" +#include "model/ReleasePublicIpAddressRequest.h" +#include "model/ReleasePublicIpAddressResult.h" +#include "model/CreateVirtualBorderRouterRequest.h" +#include "model/CreateVirtualBorderRouterResult.h" +#include "model/EipFillParamsRequest.h" +#include "model/EipFillParamsResult.h" +#include "model/ModifyPrepayInstanceSpecRequest.h" +#include "model/ModifyPrepayInstanceSpecResult.h" +#include "model/EipFillProductRequest.h" +#include "model/EipFillProductResult.h" +#include "model/DescribeRouteTablesRequest.h" +#include "model/DescribeRouteTablesResult.h" +#include "model/DescribeUserDataRequest.h" +#include "model/DescribeUserDataResult.h" +#include "model/JoinResourceGroupRequest.h" +#include "model/JoinResourceGroupResult.h" +#include "model/ModifyAutoSnapshotPolicyExRequest.h" +#include "model/ModifyAutoSnapshotPolicyExResult.h" +#include "model/CreatePhysicalConnectionRequest.h" +#include "model/CreatePhysicalConnectionResult.h" +#include "model/DescribeKeyPairsRequest.h" +#include "model/DescribeKeyPairsResult.h" +#include "model/ModifySecurityGroupPolicyRequest.h" +#include "model/ModifySecurityGroupPolicyResult.h" +#include "model/AssociateHaVipRequest.h" +#include "model/AssociateHaVipResult.h" +#include "model/ConvertNatPublicIpToEipRequest.h" +#include "model/ConvertNatPublicIpToEipResult.h" +#include "model/DeleteRouteEntryRequest.h" +#include "model/DeleteRouteEntryResult.h" +#include "model/DeleteVirtualBorderRouterRequest.h" +#include "model/DeleteVirtualBorderRouterResult.h" +#include "model/DescribeInstancePhysicalAttributeRequest.h" +#include "model/DescribeInstancePhysicalAttributeResult.h" +#include "model/TerminatePhysicalConnectionRequest.h" +#include "model/TerminatePhysicalConnectionResult.h" +#include "model/AttachNetworkInterfaceRequest.h" +#include "model/AttachNetworkInterfaceResult.h" +#include "model/DescribeSecurityGroupAttributeRequest.h" +#include "model/DescribeSecurityGroupAttributeResult.h" +#include "model/ModifyImageSharePermissionRequest.h" +#include "model/ModifyImageSharePermissionResult.h" +#include "model/DescribeAutoSnapshotPolicyExRequest.h" +#include "model/DescribeAutoSnapshotPolicyExResult.h" +#include "model/DescribeImageSharePermissionRequest.h" +#include "model/DescribeImageSharePermissionResult.h" +#include "model/CancelCopyImageRequest.h" +#include "model/CancelCopyImageResult.h" +#include "model/CreateDeploymentSetRequest.h" +#include "model/CreateDeploymentSetResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/DescribeClassicLinkInstancesRequest.h" +#include "model/DescribeClassicLinkInstancesResult.h" +#include "model/DescribeAutoSnapshotPolicyRequest.h" +#include "model/DescribeAutoSnapshotPolicyResult.h" +#include "model/DescribePhysicalConnectionsRequest.h" +#include "model/DescribePhysicalConnectionsResult.h" +#include "model/DescribeRecycleBinRequest.h" +#include "model/DescribeRecycleBinResult.h" +#include "model/CreateNetworkInterfaceRequest.h" +#include "model/CreateNetworkInterfaceResult.h" +#include "model/DescribeIpRangesRequest.h" +#include "model/DescribeIpRangesResult.h" +#include "model/CancelPhysicalConnectionRequest.h" +#include "model/CancelPhysicalConnectionResult.h" +#include "model/DescribeVRoutersRequest.h" +#include "model/DescribeVRoutersResult.h" +#include "model/DescribeNetworkInterfacesRequest.h" +#include "model/DescribeNetworkInterfacesResult.h" +#include "model/ModifyNetworkInterfaceAttributeRequest.h" +#include "model/ModifyNetworkInterfaceAttributeResult.h" +#include "model/DetachNetworkInterfaceRequest.h" +#include "model/DetachNetworkInterfaceResult.h" +#include "model/AllocateEipAddressRequest.h" +#include "model/AllocateEipAddressResult.h" +#include "model/DeleteDiskRequest.h" +#include "model/DeleteDiskResult.h" +#include "model/UnassociateHaVipRequest.h" +#include "model/UnassociateHaVipResult.h" +#include "model/ModifyHaVipAttributeRequest.h" +#include "model/ModifyHaVipAttributeResult.h" +#include "model/CreateKeyPairRequest.h" +#include "model/CreateKeyPairResult.h" +#include "model/AttachClassicLinkVpcRequest.h" +#include "model/AttachClassicLinkVpcResult.h" +#include "model/DescribeDeploymentSetsRequest.h" +#include "model/DescribeDeploymentSetsResult.h" +#include "model/AttachInstanceRamRoleRequest.h" +#include "model/AttachInstanceRamRoleResult.h" +#include "model/ModifyVRouterAttributeRequest.h" +#include "model/ModifyVRouterAttributeResult.h" + + +namespace AlibabaCloud +{ + namespace Ecs + { + class ALIBABACLOUD_ECS_EXPORT EcsClient : public RpcServiceClient + { + public: + typedef Outcome ModifySnapshotAttributeOutcome; + typedef std::future ModifySnapshotAttributeOutcomeCallable; + typedef std::function&)> ModifySnapshotAttributeAsyncHandler; + typedef Outcome JoinSecurityGroupOutcome; + typedef std::future JoinSecurityGroupOutcomeCallable; + typedef std::function&)> JoinSecurityGroupAsyncHandler; + typedef Outcome DescribeSnapshotsOutcome; + typedef std::future DescribeSnapshotsOutcomeCallable; + typedef std::function&)> DescribeSnapshotsAsyncHandler; + typedef Outcome ModifyBandwidthPackageSpecOutcome; + typedef std::future ModifyBandwidthPackageSpecOutcomeCallable; + typedef std::function&)> ModifyBandwidthPackageSpecAsyncHandler; + typedef Outcome ModifyInstanceVncPasswdOutcome; + typedef std::future ModifyInstanceVncPasswdOutcomeCallable; + typedef std::function&)> ModifyInstanceVncPasswdAsyncHandler; + typedef Outcome CreateNatGatewayOutcome; + typedef std::future CreateNatGatewayOutcomeCallable; + typedef std::function&)> CreateNatGatewayAsyncHandler; + typedef Outcome AttachDiskOutcome; + typedef std::future AttachDiskOutcomeCallable; + typedef std::function&)> AttachDiskAsyncHandler; + typedef Outcome ReInitDiskOutcome; + typedef std::future ReInitDiskOutcomeCallable; + typedef std::function&)> ReInitDiskAsyncHandler; + typedef Outcome CreateHaVipOutcome; + typedef std::future CreateHaVipOutcomeCallable; + typedef std::function&)> CreateHaVipAsyncHandler; + typedef Outcome ModifyAutoSnapshotPolicyOutcome; + typedef std::future ModifyAutoSnapshotPolicyOutcomeCallable; + typedef std::function&)> ModifyAutoSnapshotPolicyAsyncHandler; + typedef Outcome AssociateEipAddressOutcome; + typedef std::future AssociateEipAddressOutcomeCallable; + typedef std::function&)> AssociateEipAddressAsyncHandler; + typedef Outcome DescribeEipAddressesOutcome; + typedef std::future DescribeEipAddressesOutcomeCallable; + typedef std::function&)> DescribeEipAddressesAsyncHandler; + typedef Outcome RevokeSecurityGroupEgressOutcome; + typedef std::future RevokeSecurityGroupEgressOutcomeCallable; + typedef std::function&)> RevokeSecurityGroupEgressAsyncHandler; + typedef Outcome ActivateRouterInterfaceOutcome; + typedef std::future ActivateRouterInterfaceOutcomeCallable; + typedef std::function&)> ActivateRouterInterfaceAsyncHandler; + typedef Outcome DescribeSpotPriceHistoryOutcome; + typedef std::future DescribeSpotPriceHistoryOutcomeCallable; + typedef std::function&)> DescribeSpotPriceHistoryAsyncHandler; + typedef Outcome TerminateVirtualBorderRouterOutcome; + typedef std::future TerminateVirtualBorderRouterOutcomeCallable; + typedef std::function&)> TerminateVirtualBorderRouterAsyncHandler; + typedef Outcome StopInstanceOutcome; + typedef std::future StopInstanceOutcomeCallable; + typedef std::function&)> StopInstanceAsyncHandler; + typedef Outcome DescribeInstanceHistoryEventsOutcome; + typedef std::future DescribeInstanceHistoryEventsOutcomeCallable; + typedef std::function&)> DescribeInstanceHistoryEventsAsyncHandler; + typedef Outcome DeletePhysicalConnectionOutcome; + typedef std::future DeletePhysicalConnectionOutcomeCallable; + typedef std::function&)> DeletePhysicalConnectionAsyncHandler; + typedef Outcome RevokeSecurityGroupOutcome; + typedef std::future RevokeSecurityGroupOutcomeCallable; + typedef std::function&)> RevokeSecurityGroupAsyncHandler; + typedef Outcome CheckAutoSnapshotPolicyOutcome; + typedef std::future CheckAutoSnapshotPolicyOutcomeCallable; + typedef std::function&)> CheckAutoSnapshotPolicyAsyncHandler; + typedef Outcome DescribeTaskAttributeOutcome; + typedef std::future DescribeTaskAttributeOutcomeCallable; + typedef std::function&)> DescribeTaskAttributeAsyncHandler; + typedef Outcome CreateAutoSnapshotPolicyOutcome; + typedef std::future CreateAutoSnapshotPolicyOutcomeCallable; + typedef std::function&)> CreateAutoSnapshotPolicyAsyncHandler; + typedef Outcome ReActivateInstancesOutcome; + typedef std::future ReActivateInstancesOutcomeCallable; + typedef std::function&)> ReActivateInstancesAsyncHandler; + typedef Outcome DescribeForwardTableEntriesOutcome; + typedef std::future DescribeForwardTableEntriesOutcomeCallable; + typedef std::function&)> DescribeForwardTableEntriesAsyncHandler; + typedef Outcome DescribeInstancesOutcome; + typedef std::future DescribeInstancesOutcomeCallable; + typedef std::function&)> DescribeInstancesAsyncHandler; + typedef Outcome DescribeSecurityGroupReferencesOutcome; + typedef std::future DescribeSecurityGroupReferencesOutcomeCallable; + typedef std::function&)> DescribeSecurityGroupReferencesAsyncHandler; + typedef Outcome DeleteRouterInterfaceOutcome; + typedef std::future DeleteRouterInterfaceOutcomeCallable; + typedef std::function&)> DeleteRouterInterfaceAsyncHandler; + typedef Outcome DetachInstanceRamRoleOutcome; + typedef std::future DetachInstanceRamRoleOutcomeCallable; + typedef std::function&)> DetachInstanceRamRoleAsyncHandler; + typedef Outcome AllocatePublicIpAddressOutcome; + typedef std::future AllocatePublicIpAddressOutcomeCallable; + typedef std::function&)> AllocatePublicIpAddressAsyncHandler; + typedef Outcome DescribeEipMonitorDataOutcome; + typedef std::future DescribeEipMonitorDataOutcomeCallable; + typedef std::function&)> DescribeEipMonitorDataAsyncHandler; + typedef Outcome CancelAutoSnapshotPolicyOutcome; + typedef std::future CancelAutoSnapshotPolicyOutcomeCallable; + typedef std::function&)> CancelAutoSnapshotPolicyAsyncHandler; + typedef Outcome DescribeDisksFullStatusOutcome; + typedef std::future DescribeDisksFullStatusOutcomeCallable; + typedef std::function&)> DescribeDisksFullStatusAsyncHandler; + typedef Outcome DeleteNetworkInterfaceOutcome; + typedef std::future DeleteNetworkInterfaceOutcomeCallable; + typedef std::function&)> DeleteNetworkInterfaceAsyncHandler; + typedef Outcome ModifyInstanceSpecOutcome; + typedef std::future ModifyInstanceSpecOutcomeCallable; + typedef std::function&)> ModifyInstanceSpecAsyncHandler; + typedef Outcome DeleteSnapshotOutcome; + typedef std::future DeleteSnapshotOutcomeCallable; + typedef std::function&)> DeleteSnapshotAsyncHandler; + typedef Outcome DeleteKeyPairsOutcome; + typedef std::future DeleteKeyPairsOutcomeCallable; + typedef std::function&)> DeleteKeyPairsAsyncHandler; + typedef Outcome AuthorizeSecurityGroupOutcome; + typedef std::future AuthorizeSecurityGroupOutcomeCallable; + typedef std::function&)> AuthorizeSecurityGroupAsyncHandler; + typedef Outcome DeleteSecurityGroupOutcome; + typedef std::future DeleteSecurityGroupOutcomeCallable; + typedef std::function&)> DeleteSecurityGroupAsyncHandler; + typedef Outcome DescribeSnapshotMonitorDataOutcome; + typedef std::future DescribeSnapshotMonitorDataOutcomeCallable; + typedef std::function&)> DescribeSnapshotMonitorDataAsyncHandler; + typedef Outcome ConnectRouterInterfaceOutcome; + typedef std::future ConnectRouterInterfaceOutcomeCallable; + typedef std::function&)> ConnectRouterInterfaceAsyncHandler; + typedef Outcome AddIpRangeOutcome; + typedef std::future AddIpRangeOutcomeCallable; + typedef std::function&)> AddIpRangeAsyncHandler; + typedef Outcome CancelTaskOutcome; + typedef std::future CancelTaskOutcomeCallable; + typedef std::function&)> CancelTaskAsyncHandler; + typedef Outcome ModifyPhysicalConnectionAttributeOutcome; + typedef std::future ModifyPhysicalConnectionAttributeOutcomeCallable; + typedef std::function&)> ModifyPhysicalConnectionAttributeAsyncHandler; + typedef Outcome ModifyCommandOutcome; + typedef std::future ModifyCommandOutcomeCallable; + typedef std::function&)> ModifyCommandAsyncHandler; + typedef Outcome ModifyVSwitchAttributeOutcome; + typedef std::future ModifyVSwitchAttributeOutcomeCallable; + typedef std::function&)> ModifyVSwitchAttributeAsyncHandler; + typedef Outcome ModifyInstanceAttributeOutcome; + typedef std::future ModifyInstanceAttributeOutcomeCallable; + typedef std::function&)> ModifyInstanceAttributeAsyncHandler; + typedef Outcome DeleteHaVipOutcome; + typedef std::future DeleteHaVipOutcomeCallable; + typedef std::function&)> DeleteHaVipAsyncHandler; + typedef Outcome DescribeSecurityGroupsOutcome; + typedef std::future DescribeSecurityGroupsOutcomeCallable; + typedef std::function&)> DescribeSecurityGroupsAsyncHandler; + typedef Outcome ResizeDiskOutcome; + typedef std::future ResizeDiskOutcomeCallable; + typedef std::function&)> ResizeDiskAsyncHandler; + typedef Outcome CreateRouteEntryOutcome; + typedef std::future CreateRouteEntryOutcomeCallable; + typedef std::function&)> CreateRouteEntryAsyncHandler; + typedef Outcome DescribeInvocationsOutcome; + typedef std::future DescribeInvocationsOutcomeCallable; + typedef std::function&)> DescribeInvocationsAsyncHandler; + typedef Outcome AttachKeyPairOutcome; + typedef std::future AttachKeyPairOutcomeCallable; + typedef std::function&)> AttachKeyPairAsyncHandler; + typedef Outcome CreateRouterInterfaceOutcome; + typedef std::future CreateRouterInterfaceOutcomeCallable; + typedef std::function&)> CreateRouterInterfaceAsyncHandler; + typedef Outcome CheckDiskEnableAutoSnapshotValidationOutcome; + typedef std::future CheckDiskEnableAutoSnapshotValidationOutcomeCallable; + typedef std::function&)> CheckDiskEnableAutoSnapshotValidationAsyncHandler; + typedef Outcome RunInstancesOutcome; + typedef std::future RunInstancesOutcomeCallable; + typedef std::function&)> RunInstancesAsyncHandler; + typedef Outcome StopInvocationOutcome; + typedef std::future StopInvocationOutcomeCallable; + typedef std::function&)> StopInvocationAsyncHandler; + typedef Outcome ModifyInstanceNetworkSpecOutcome; + typedef std::future ModifyInstanceNetworkSpecOutcomeCallable; + typedef std::function&)> ModifyInstanceNetworkSpecAsyncHandler; + typedef Outcome ModifyDiskAttributeOutcome; + typedef std::future ModifyDiskAttributeOutcomeCallable; + typedef std::function&)> ModifyDiskAttributeAsyncHandler; + typedef Outcome CreateVSwitchOutcome; + typedef std::future CreateVSwitchOutcomeCallable; + typedef std::function&)> CreateVSwitchAsyncHandler; + typedef Outcome ModifyEipAddressAttributeOutcome; + typedef std::future ModifyEipAddressAttributeOutcomeCallable; + typedef std::function&)> ModifyEipAddressAttributeAsyncHandler; + typedef Outcome RemoveTagsOutcome; + typedef std::future RemoveTagsOutcomeCallable; + typedef std::function&)> RemoveTagsAsyncHandler; + typedef Outcome ModifySecurityGroupAttributeOutcome; + typedef std::future ModifySecurityGroupAttributeOutcomeCallable; + typedef std::function&)> ModifySecurityGroupAttributeAsyncHandler; + typedef Outcome ModifyInstanceAutoReleaseTimeOutcome; + typedef std::future ModifyInstanceAutoReleaseTimeOutcomeCallable; + typedef std::function&)> ModifyInstanceAutoReleaseTimeAsyncHandler; + typedef Outcome DeleteNatGatewayOutcome; + typedef std::future DeleteNatGatewayOutcomeCallable; + typedef std::function&)> DeleteNatGatewayAsyncHandler; + typedef Outcome DescribeZonesOutcome; + typedef std::future DescribeZonesOutcomeCallable; + typedef std::function&)> DescribeZonesAsyncHandler; + typedef Outcome DeactivateRouterInterfaceOutcome; + typedef std::future DeactivateRouterInterfaceOutcomeCallable; + typedef std::function&)> DeactivateRouterInterfaceAsyncHandler; + typedef Outcome DescribeAccessPointsOutcome; + typedef std::future DescribeAccessPointsOutcomeCallable; + typedef std::function&)> DescribeAccessPointsAsyncHandler; + typedef Outcome CreateCommandOutcome; + typedef std::future CreateCommandOutcomeCallable; + typedef std::function&)> CreateCommandAsyncHandler; + typedef Outcome DescribeInstancesFullStatusOutcome; + typedef std::future DescribeInstancesFullStatusOutcomeCallable; + typedef std::function&)> DescribeInstancesFullStatusAsyncHandler; + typedef Outcome ReleaseEipAddressOutcome; + typedef std::future ReleaseEipAddressOutcomeCallable; + typedef std::function&)> ReleaseEipAddressAsyncHandler; + typedef Outcome DetachClassicLinkVpcOutcome; + typedef std::future DetachClassicLinkVpcOutcomeCallable; + typedef std::function&)> DetachClassicLinkVpcAsyncHandler; + typedef Outcome DescribeVSwitchesOutcome; + typedef std::future DescribeVSwitchesOutcomeCallable; + typedef std::function&)> DescribeVSwitchesAsyncHandler; + typedef Outcome ModifyRouterInterfaceSpecOutcome; + typedef std::future ModifyRouterInterfaceSpecOutcomeCallable; + typedef std::function&)> ModifyRouterInterfaceSpecAsyncHandler; + typedef Outcome DescribeVpcsOutcome; + typedef std::future DescribeVpcsOutcomeCallable; + typedef std::function&)> DescribeVpcsAsyncHandler; + typedef Outcome ExportImageOutcome; + typedef std::future ExportImageOutcomeCallable; + typedef std::function&)> ExportImageAsyncHandler; + typedef Outcome DescribeDiskMonitorDataOutcome; + typedef std::future DescribeDiskMonitorDataOutcomeCallable; + typedef std::function&)> DescribeDiskMonitorDataAsyncHandler; + typedef Outcome ModifyDeploymentSetAttributeOutcome; + typedef std::future ModifyDeploymentSetAttributeOutcomeCallable; + typedef std::function&)> ModifyDeploymentSetAttributeAsyncHandler; + typedef Outcome ModifyRouterInterfaceAttributeOutcome; + typedef std::future ModifyRouterInterfaceAttributeOutcomeCallable; + typedef std::function&)> ModifyRouterInterfaceAttributeAsyncHandler; + typedef Outcome DescribeVirtualBorderRoutersForPhysicalConnectionOutcome; + typedef std::future DescribeVirtualBorderRoutersForPhysicalConnectionOutcomeCallable; + typedef std::function&)> DescribeVirtualBorderRoutersForPhysicalConnectionAsyncHandler; + typedef Outcome CreateDiskOutcome; + typedef std::future CreateDiskOutcomeCallable; + typedef std::function&)> CreateDiskAsyncHandler; + typedef Outcome StartInstanceOutcome; + typedef std::future StartInstanceOutcomeCallable; + typedef std::function&)> StartInstanceAsyncHandler; + typedef Outcome DescribeInstanceTypesOutcome; + typedef std::future DescribeInstanceTypesOutcomeCallable; + typedef std::function&)> DescribeInstanceTypesAsyncHandler; + typedef Outcome DescribeSnapshotPackageOutcome; + typedef std::future DescribeSnapshotPackageOutcomeCallable; + typedef std::function&)> DescribeSnapshotPackageAsyncHandler; + typedef Outcome RebootInstanceOutcome; + typedef std::future RebootInstanceOutcomeCallable; + typedef std::function&)> RebootInstanceAsyncHandler; + typedef Outcome BindIpRangeOutcome; + typedef std::future BindIpRangeOutcomeCallable; + typedef std::function&)> BindIpRangeAsyncHandler; + typedef Outcome InvokeCommandOutcome; + typedef std::future InvokeCommandOutcomeCallable; + typedef std::function&)> InvokeCommandAsyncHandler; + typedef Outcome ModifyUserBusinessBehaviorOutcome; + typedef std::future ModifyUserBusinessBehaviorOutcomeCallable; + typedef std::function&)> ModifyUserBusinessBehaviorAsyncHandler; + typedef Outcome DeleteForwardEntryOutcome; + typedef std::future DeleteForwardEntryOutcomeCallable; + typedef std::function&)> DeleteForwardEntryAsyncHandler; + typedef Outcome DescribeHpcClustersOutcome; + typedef std::future DescribeHpcClustersOutcomeCallable; + typedef std::function&)> DescribeHpcClustersAsyncHandler; + typedef Outcome CancelAgreementOutcome; + typedef std::future CancelAgreementOutcomeCallable; + typedef std::function&)> CancelAgreementAsyncHandler; + typedef Outcome ModifyInstanceChargeTypeOutcome; + typedef std::future ModifyInstanceChargeTypeOutcomeCallable; + typedef std::function&)> ModifyInstanceChargeTypeAsyncHandler; + typedef Outcome ModifyInstanceAutoRenewAttributeOutcome; + typedef std::future ModifyInstanceAutoRenewAttributeOutcomeCallable; + typedef std::function&)> ModifyInstanceAutoRenewAttributeAsyncHandler; + typedef Outcome DescribeVirtualBorderRoutersOutcome; + typedef std::future DescribeVirtualBorderRoutersOutcomeCallable; + typedef std::function&)> DescribeVirtualBorderRoutersAsyncHandler; + typedef Outcome ModifyHpcClusterAttributeOutcome; + typedef std::future ModifyHpcClusterAttributeOutcomeCallable; + typedef std::function&)> ModifyHpcClusterAttributeAsyncHandler; + typedef Outcome DescribeLimitationOutcome; + typedef std::future DescribeLimitationOutcomeCallable; + typedef std::function&)> DescribeLimitationAsyncHandler; + typedef Outcome DescribePriceOutcome; + typedef std::future DescribePriceOutcomeCallable; + typedef std::function&)> DescribePriceAsyncHandler; + typedef Outcome DeleteDeploymentSetOutcome; + typedef std::future DeleteDeploymentSetOutcomeCallable; + typedef std::function&)> DeleteDeploymentSetAsyncHandler; + typedef Outcome DescribeDeploymentSetTopologyOutcome; + typedef std::future DescribeDeploymentSetTopologyOutcomeCallable; + typedef std::function&)> DescribeDeploymentSetTopologyAsyncHandler; + typedef Outcome ModifyInstanceVpcAttributeOutcome; + typedef std::future ModifyInstanceVpcAttributeOutcomeCallable; + typedef std::function&)> ModifyInstanceVpcAttributeAsyncHandler; + typedef Outcome AddTagsOutcome; + typedef std::future AddTagsOutcomeCallable; + typedef std::function&)> AddTagsAsyncHandler; + typedef Outcome CreateHpcClusterOutcome; + typedef std::future CreateHpcClusterOutcomeCallable; + typedef std::function&)> CreateHpcClusterAsyncHandler; + typedef Outcome DescribeUserBusinessBehaviorOutcome; + typedef std::future DescribeUserBusinessBehaviorOutcomeCallable; + typedef std::function&)> DescribeUserBusinessBehaviorAsyncHandler; + typedef Outcome DescribeCommandsOutcome; + typedef std::future DescribeCommandsOutcomeCallable; + typedef std::function&)> DescribeCommandsAsyncHandler; + typedef Outcome DeleteImageOutcome; + typedef std::future DeleteImageOutcomeCallable; + typedef std::function&)> DeleteImageAsyncHandler; + typedef Outcome DescribeDisksOutcome; + typedef std::future DescribeDisksOutcomeCallable; + typedef std::function&)> DescribeDisksAsyncHandler; + typedef Outcome DeleteVpcOutcome; + typedef std::future DeleteVpcOutcomeCallable; + typedef std::function&)> DeleteVpcAsyncHandler; + typedef Outcome DescribeImageSupportInstanceTypesOutcome; + typedef std::future DescribeImageSupportInstanceTypesOutcomeCallable; + typedef std::function&)> DescribeImageSupportInstanceTypesAsyncHandler; + typedef Outcome DeleteCommandOutcome; + typedef std::future DeleteCommandOutcomeCallable; + typedef std::function&)> DeleteCommandAsyncHandler; + typedef Outcome ReplaceSystemDiskOutcome; + typedef std::future ReplaceSystemDiskOutcomeCallable; + typedef std::function&)> ReplaceSystemDiskAsyncHandler; + typedef Outcome DeleteVSwitchOutcome; + typedef std::future DeleteVSwitchOutcomeCallable; + typedef std::function&)> DeleteVSwitchAsyncHandler; + typedef Outcome ModifyImageShareGroupPermissionOutcome; + typedef std::future ModifyImageShareGroupPermissionOutcomeCallable; + typedef std::function&)> ModifyImageShareGroupPermissionAsyncHandler; + typedef Outcome DescribeInstanceVncUrlOutcome; + typedef std::future DescribeInstanceVncUrlOutcomeCallable; + typedef std::function&)> DescribeInstanceVncUrlAsyncHandler; + typedef Outcome RecoverVirtualBorderRouterOutcome; + typedef std::future RecoverVirtualBorderRouterOutcomeCallable; + typedef std::function&)> RecoverVirtualBorderRouterAsyncHandler; + typedef Outcome DescribeResourceByTagsOutcome; + typedef std::future DescribeResourceByTagsOutcomeCallable; + typedef std::function&)> DescribeResourceByTagsAsyncHandler; + typedef Outcome DescribeClustersOutcome; + typedef std::future DescribeClustersOutcomeCallable; + typedef std::function&)> DescribeClustersAsyncHandler; + typedef Outcome DescribeTagsOutcome; + typedef std::future DescribeTagsOutcomeCallable; + typedef std::function&)> DescribeTagsAsyncHandler; + typedef Outcome DeleteBandwidthPackageOutcome; + typedef std::future DeleteBandwidthPackageOutcomeCallable; + typedef std::function&)> DeleteBandwidthPackageAsyncHandler; + typedef Outcome DescribeImagesOutcome; + typedef std::future DescribeImagesOutcomeCallable; + typedef std::function&)> DescribeImagesAsyncHandler; + typedef Outcome AuthorizeSecurityGroupEgressOutcome; + typedef std::future AuthorizeSecurityGroupEgressOutcomeCallable; + typedef std::function&)> AuthorizeSecurityGroupEgressAsyncHandler; + typedef Outcome SignAgreementOutcome; + typedef std::future SignAgreementOutcomeCallable; + typedef std::function&)> SignAgreementAsyncHandler; + typedef Outcome ImportImageOutcome; + typedef std::future ImportImageOutcomeCallable; + typedef std::function&)> ImportImageAsyncHandler; + typedef Outcome ModifyForwardEntryOutcome; + typedef std::future ModifyForwardEntryOutcomeCallable; + typedef std::function&)> ModifyForwardEntryAsyncHandler; + typedef Outcome RenewInstanceOutcome; + typedef std::future RenewInstanceOutcomeCallable; + typedef std::function&)> RenewInstanceAsyncHandler; + typedef Outcome CreateVpcOutcome; + typedef std::future CreateVpcOutcomeCallable; + typedef std::function&)> CreateVpcAsyncHandler; + typedef Outcome CopyImageOutcome; + typedef std::future CopyImageOutcomeCallable; + typedef std::function&)> CopyImageAsyncHandler; + typedef Outcome DescribeInstanceMonitorDataOutcome; + typedef std::future DescribeInstanceMonitorDataOutcomeCallable; + typedef std::function&)> DescribeInstanceMonitorDataAsyncHandler; + typedef Outcome UnassociateEipAddressOutcome; + typedef std::future UnassociateEipAddressOutcomeCallable; + typedef std::function&)> UnassociateEipAddressAsyncHandler; + typedef Outcome CreateSnapshotOutcome; + typedef std::future CreateSnapshotOutcomeCallable; + typedef std::function&)> CreateSnapshotAsyncHandler; + typedef Outcome ModifyVirtualBorderRouterAttributeOutcome; + typedef std::future ModifyVirtualBorderRouterAttributeOutcomeCallable; + typedef std::function&)> ModifyVirtualBorderRouterAttributeAsyncHandler; + typedef Outcome DetachKeyPairOutcome; + typedef std::future DetachKeyPairOutcomeCallable; + typedef std::function&)> DetachKeyPairAsyncHandler; + typedef Outcome DescribeTasksOutcome; + typedef std::future DescribeTasksOutcomeCallable; + typedef std::function&)> DescribeTasksAsyncHandler; + typedef Outcome LeaveSecurityGroupOutcome; + typedef std::future LeaveSecurityGroupOutcomeCallable; + typedef std::function&)> LeaveSecurityGroupAsyncHandler; + typedef Outcome DescribeRenewalPriceOutcome; + typedef std::future DescribeRenewalPriceOutcomeCallable; + typedef std::function&)> DescribeRenewalPriceAsyncHandler; + typedef Outcome DescribeInstanceVncPasswdOutcome; + typedef std::future DescribeInstanceVncPasswdOutcomeCallable; + typedef std::function&)> DescribeInstanceVncPasswdAsyncHandler; + typedef Outcome DescribeInstanceAutoRenewAttributeOutcome; + typedef std::future DescribeInstanceAutoRenewAttributeOutcomeCallable; + typedef std::function&)> DescribeInstanceAutoRenewAttributeAsyncHandler; + typedef Outcome ModifySecurityGroupRuleOutcome; + typedef std::future ModifySecurityGroupRuleOutcomeCallable; + typedef std::function&)> ModifySecurityGroupRuleAsyncHandler; + typedef Outcome ImportKeyPairOutcome; + typedef std::future ImportKeyPairOutcomeCallable; + typedef std::function&)> ImportKeyPairAsyncHandler; + typedef Outcome DescribeNewProjectEipMonitorDataOutcome; + typedef std::future DescribeNewProjectEipMonitorDataOutcomeCallable; + typedef std::function&)> DescribeNewProjectEipMonitorDataAsyncHandler; + typedef Outcome UnbindIpRangeOutcome; + typedef std::future UnbindIpRangeOutcomeCallable; + typedef std::function&)> UnbindIpRangeAsyncHandler; + typedef Outcome DeleteRecycleBinOutcome; + typedef std::future DeleteRecycleBinOutcomeCallable; + typedef std::function&)> DeleteRecycleBinAsyncHandler; + typedef Outcome DescribeInstanceRamRoleOutcome; + typedef std::future DescribeInstanceRamRoleOutcomeCallable; + typedef std::function&)> DescribeInstanceRamRoleAsyncHandler; + typedef Outcome CreateImageOutcome; + typedef std::future CreateImageOutcomeCallable; + typedef std::function&)> CreateImageAsyncHandler; + typedef Outcome DescribeHaVipsOutcome; + typedef std::future DescribeHaVipsOutcomeCallable; + typedef std::function&)> DescribeHaVipsAsyncHandler; + typedef Outcome DescribeInstanceAttributeOutcome; + typedef std::future DescribeInstanceAttributeOutcomeCallable; + typedef std::function&)> DescribeInstanceAttributeAsyncHandler; + typedef Outcome DetachDiskOutcome; + typedef std::future DetachDiskOutcomeCallable; + typedef std::function&)> DetachDiskAsyncHandler; + typedef Outcome ModifyImageAttributeOutcome; + typedef std::future ModifyImageAttributeOutcomeCallable; + typedef std::function&)> ModifyImageAttributeAsyncHandler; + typedef Outcome AddBandwidthPackageIpsOutcome; + typedef std::future AddBandwidthPackageIpsOutcomeCallable; + typedef std::function&)> AddBandwidthPackageIpsAsyncHandler; + typedef Outcome DescribeInstanceStatusOutcome; + typedef std::future DescribeInstanceStatusOutcomeCallable; + typedef std::function&)> DescribeInstanceStatusAsyncHandler; + typedef Outcome DescribeNatGatewaysOutcome; + typedef std::future DescribeNatGatewaysOutcomeCallable; + typedef std::function&)> DescribeNatGatewaysAsyncHandler; + typedef Outcome DeleteHpcClusterOutcome; + typedef std::future DeleteHpcClusterOutcomeCallable; + typedef std::function&)> DeleteHpcClusterAsyncHandler; + typedef Outcome ResetDiskOutcome; + typedef std::future ResetDiskOutcomeCallable; + typedef std::function&)> ResetDiskAsyncHandler; + typedef Outcome ModifyDiskChargeTypeOutcome; + typedef std::future ModifyDiskChargeTypeOutcomeCallable; + typedef std::function&)> ModifyDiskChargeTypeAsyncHandler; + typedef Outcome ModifyIntranetBandwidthKbOutcome; + typedef std::future ModifyIntranetBandwidthKbOutcomeCallable; + typedef std::function&)> ModifyIntranetBandwidthKbAsyncHandler; + typedef Outcome DescribeBandwidthPackagesOutcome; + typedef std::future DescribeBandwidthPackagesOutcomeCallable; + typedef std::function&)> DescribeBandwidthPackagesAsyncHandler; + typedef Outcome ApplyAutoSnapshotPolicyOutcome; + typedef std::future ApplyAutoSnapshotPolicyOutcomeCallable; + typedef std::function&)> ApplyAutoSnapshotPolicyAsyncHandler; + typedef Outcome CreateSecurityGroupOutcome; + typedef std::future CreateSecurityGroupOutcomeCallable; + typedef std::function&)> CreateSecurityGroupAsyncHandler; + typedef Outcome DescribeSnapshotLinksOutcome; + typedef std::future DescribeSnapshotLinksOutcomeCallable; + typedef std::function&)> DescribeSnapshotLinksAsyncHandler; + typedef Outcome DescribeInvocationResultsOutcome; + typedef std::future DescribeInvocationResultsOutcomeCallable; + typedef std::function&)> DescribeInvocationResultsAsyncHandler; + typedef Outcome DescribeRecommendInstanceTypeOutcome; + typedef std::future DescribeRecommendInstanceTypeOutcomeCallable; + typedef std::function&)> DescribeRecommendInstanceTypeAsyncHandler; + typedef Outcome DescribeTagKeysOutcome; + typedef std::future DescribeTagKeysOutcomeCallable; + typedef std::function&)> DescribeTagKeysAsyncHandler; + typedef Outcome DeleteInstanceOutcome; + typedef std::future DeleteInstanceOutcomeCallable; + typedef std::function&)> DeleteInstanceAsyncHandler; + typedef Outcome DescribeIntranetAttributeKbOutcome; + typedef std::future DescribeIntranetAttributeKbOutcomeCallable; + typedef std::function&)> DescribeIntranetAttributeKbAsyncHandler; + typedef Outcome RemoveBandwidthPackageIpsOutcome; + typedef std::future RemoveBandwidthPackageIpsOutcomeCallable; + typedef std::function&)> RemoveBandwidthPackageIpsAsyncHandler; + typedef Outcome ModifyVpcAttributeOutcome; + typedef std::future ModifyVpcAttributeOutcomeCallable; + typedef std::function&)> ModifyVpcAttributeAsyncHandler; + typedef Outcome DescribeSnapshotsUsageOutcome; + typedef std::future DescribeSnapshotsUsageOutcomeCallable; + typedef std::function&)> DescribeSnapshotsUsageAsyncHandler; + typedef Outcome DeleteAutoSnapshotPolicyOutcome; + typedef std::future DeleteAutoSnapshotPolicyOutcomeCallable; + typedef std::function&)> DeleteAutoSnapshotPolicyAsyncHandler; + typedef Outcome ModifySecurityGroupEgressRuleOutcome; + typedef std::future ModifySecurityGroupEgressRuleOutcomeCallable; + typedef std::function&)> ModifySecurityGroupEgressRuleAsyncHandler; + typedef Outcome CreateInstanceOutcome; + typedef std::future CreateInstanceOutcomeCallable; + typedef std::function&)> CreateInstanceAsyncHandler; + typedef Outcome EnablePhysicalConnectionOutcome; + typedef std::future EnablePhysicalConnectionOutcomeCallable; + typedef std::function&)> EnablePhysicalConnectionAsyncHandler; + typedef Outcome DescribeInstanceTypeFamiliesOutcome; + typedef std::future DescribeInstanceTypeFamiliesOutcomeCallable; + typedef std::function&)> DescribeInstanceTypeFamiliesAsyncHandler; + typedef Outcome CreateForwardEntryOutcome; + typedef std::future CreateForwardEntryOutcomeCallable; + typedef std::function&)> CreateForwardEntryAsyncHandler; + typedef Outcome DescribeRouterInterfacesOutcome; + typedef std::future DescribeRouterInterfacesOutcomeCallable; + typedef std::function&)> DescribeRouterInterfacesAsyncHandler; + typedef Outcome EipNotifyPaidOutcome; + typedef std::future EipNotifyPaidOutcomeCallable; + typedef std::function&)> EipNotifyPaidAsyncHandler; + typedef Outcome ReleasePublicIpAddressOutcome; + typedef std::future ReleasePublicIpAddressOutcomeCallable; + typedef std::function&)> ReleasePublicIpAddressAsyncHandler; + typedef Outcome CreateVirtualBorderRouterOutcome; + typedef std::future CreateVirtualBorderRouterOutcomeCallable; + typedef std::function&)> CreateVirtualBorderRouterAsyncHandler; + typedef Outcome EipFillParamsOutcome; + typedef std::future EipFillParamsOutcomeCallable; + typedef std::function&)> EipFillParamsAsyncHandler; + typedef Outcome ModifyPrepayInstanceSpecOutcome; + typedef std::future ModifyPrepayInstanceSpecOutcomeCallable; + typedef std::function&)> ModifyPrepayInstanceSpecAsyncHandler; + typedef Outcome EipFillProductOutcome; + typedef std::future EipFillProductOutcomeCallable; + typedef std::function&)> EipFillProductAsyncHandler; + typedef Outcome DescribeRouteTablesOutcome; + typedef std::future DescribeRouteTablesOutcomeCallable; + typedef std::function&)> DescribeRouteTablesAsyncHandler; + typedef Outcome DescribeUserDataOutcome; + typedef std::future DescribeUserDataOutcomeCallable; + typedef std::function&)> DescribeUserDataAsyncHandler; + typedef Outcome JoinResourceGroupOutcome; + typedef std::future JoinResourceGroupOutcomeCallable; + typedef std::function&)> JoinResourceGroupAsyncHandler; + typedef Outcome ModifyAutoSnapshotPolicyExOutcome; + typedef std::future ModifyAutoSnapshotPolicyExOutcomeCallable; + typedef std::function&)> ModifyAutoSnapshotPolicyExAsyncHandler; + typedef Outcome CreatePhysicalConnectionOutcome; + typedef std::future CreatePhysicalConnectionOutcomeCallable; + typedef std::function&)> CreatePhysicalConnectionAsyncHandler; + typedef Outcome DescribeKeyPairsOutcome; + typedef std::future DescribeKeyPairsOutcomeCallable; + typedef std::function&)> DescribeKeyPairsAsyncHandler; + typedef Outcome ModifySecurityGroupPolicyOutcome; + typedef std::future ModifySecurityGroupPolicyOutcomeCallable; + typedef std::function&)> ModifySecurityGroupPolicyAsyncHandler; + typedef Outcome AssociateHaVipOutcome; + typedef std::future AssociateHaVipOutcomeCallable; + typedef std::function&)> AssociateHaVipAsyncHandler; + typedef Outcome ConvertNatPublicIpToEipOutcome; + typedef std::future ConvertNatPublicIpToEipOutcomeCallable; + typedef std::function&)> ConvertNatPublicIpToEipAsyncHandler; + typedef Outcome DeleteRouteEntryOutcome; + typedef std::future DeleteRouteEntryOutcomeCallable; + typedef std::function&)> DeleteRouteEntryAsyncHandler; + typedef Outcome DeleteVirtualBorderRouterOutcome; + typedef std::future DeleteVirtualBorderRouterOutcomeCallable; + typedef std::function&)> DeleteVirtualBorderRouterAsyncHandler; + typedef Outcome DescribeInstancePhysicalAttributeOutcome; + typedef std::future DescribeInstancePhysicalAttributeOutcomeCallable; + typedef std::function&)> DescribeInstancePhysicalAttributeAsyncHandler; + typedef Outcome TerminatePhysicalConnectionOutcome; + typedef std::future TerminatePhysicalConnectionOutcomeCallable; + typedef std::function&)> TerminatePhysicalConnectionAsyncHandler; + typedef Outcome AttachNetworkInterfaceOutcome; + typedef std::future AttachNetworkInterfaceOutcomeCallable; + typedef std::function&)> AttachNetworkInterfaceAsyncHandler; + typedef Outcome DescribeSecurityGroupAttributeOutcome; + typedef std::future DescribeSecurityGroupAttributeOutcomeCallable; + typedef std::function&)> DescribeSecurityGroupAttributeAsyncHandler; + typedef Outcome ModifyImageSharePermissionOutcome; + typedef std::future ModifyImageSharePermissionOutcomeCallable; + typedef std::function&)> ModifyImageSharePermissionAsyncHandler; + typedef Outcome DescribeAutoSnapshotPolicyExOutcome; + typedef std::future DescribeAutoSnapshotPolicyExOutcomeCallable; + typedef std::function&)> DescribeAutoSnapshotPolicyExAsyncHandler; + typedef Outcome DescribeImageSharePermissionOutcome; + typedef std::future DescribeImageSharePermissionOutcomeCallable; + typedef std::function&)> DescribeImageSharePermissionAsyncHandler; + typedef Outcome CancelCopyImageOutcome; + typedef std::future CancelCopyImageOutcomeCallable; + typedef std::function&)> CancelCopyImageAsyncHandler; + typedef Outcome CreateDeploymentSetOutcome; + typedef std::future CreateDeploymentSetOutcomeCallable; + typedef std::function&)> CreateDeploymentSetAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DescribeClassicLinkInstancesOutcome; + typedef std::future DescribeClassicLinkInstancesOutcomeCallable; + typedef std::function&)> DescribeClassicLinkInstancesAsyncHandler; + typedef Outcome DescribeAutoSnapshotPolicyOutcome; + typedef std::future DescribeAutoSnapshotPolicyOutcomeCallable; + typedef std::function&)> DescribeAutoSnapshotPolicyAsyncHandler; + typedef Outcome DescribePhysicalConnectionsOutcome; + typedef std::future DescribePhysicalConnectionsOutcomeCallable; + typedef std::function&)> DescribePhysicalConnectionsAsyncHandler; + typedef Outcome DescribeRecycleBinOutcome; + typedef std::future DescribeRecycleBinOutcomeCallable; + typedef std::function&)> DescribeRecycleBinAsyncHandler; + typedef Outcome CreateNetworkInterfaceOutcome; + typedef std::future CreateNetworkInterfaceOutcomeCallable; + typedef std::function&)> CreateNetworkInterfaceAsyncHandler; + typedef Outcome DescribeIpRangesOutcome; + typedef std::future DescribeIpRangesOutcomeCallable; + typedef std::function&)> DescribeIpRangesAsyncHandler; + typedef Outcome CancelPhysicalConnectionOutcome; + typedef std::future CancelPhysicalConnectionOutcomeCallable; + typedef std::function&)> CancelPhysicalConnectionAsyncHandler; + typedef Outcome DescribeVRoutersOutcome; + typedef std::future DescribeVRoutersOutcomeCallable; + typedef std::function&)> DescribeVRoutersAsyncHandler; + typedef Outcome DescribeNetworkInterfacesOutcome; + typedef std::future DescribeNetworkInterfacesOutcomeCallable; + typedef std::function&)> DescribeNetworkInterfacesAsyncHandler; + typedef Outcome ModifyNetworkInterfaceAttributeOutcome; + typedef std::future ModifyNetworkInterfaceAttributeOutcomeCallable; + typedef std::function&)> ModifyNetworkInterfaceAttributeAsyncHandler; + typedef Outcome DetachNetworkInterfaceOutcome; + typedef std::future DetachNetworkInterfaceOutcomeCallable; + typedef std::function&)> DetachNetworkInterfaceAsyncHandler; + typedef Outcome AllocateEipAddressOutcome; + typedef std::future AllocateEipAddressOutcomeCallable; + typedef std::function&)> AllocateEipAddressAsyncHandler; + typedef Outcome DeleteDiskOutcome; + typedef std::future DeleteDiskOutcomeCallable; + typedef std::function&)> DeleteDiskAsyncHandler; + typedef Outcome UnassociateHaVipOutcome; + typedef std::future UnassociateHaVipOutcomeCallable; + typedef std::function&)> UnassociateHaVipAsyncHandler; + typedef Outcome ModifyHaVipAttributeOutcome; + typedef std::future ModifyHaVipAttributeOutcomeCallable; + typedef std::function&)> ModifyHaVipAttributeAsyncHandler; + typedef Outcome CreateKeyPairOutcome; + typedef std::future CreateKeyPairOutcomeCallable; + typedef std::function&)> CreateKeyPairAsyncHandler; + typedef Outcome AttachClassicLinkVpcOutcome; + typedef std::future AttachClassicLinkVpcOutcomeCallable; + typedef std::function&)> AttachClassicLinkVpcAsyncHandler; + typedef Outcome DescribeDeploymentSetsOutcome; + typedef std::future DescribeDeploymentSetsOutcomeCallable; + typedef std::function&)> DescribeDeploymentSetsAsyncHandler; + typedef Outcome AttachInstanceRamRoleOutcome; + typedef std::future AttachInstanceRamRoleOutcomeCallable; + typedef std::function&)> AttachInstanceRamRoleAsyncHandler; + typedef Outcome ModifyVRouterAttributeOutcome; + typedef std::future ModifyVRouterAttributeOutcomeCallable; + typedef std::function&)> ModifyVRouterAttributeAsyncHandler; + + + EcsClient(const Credentials &credentials, const ClientConfiguration &configuration); + EcsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + EcsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~EcsClient(); + + ModifySnapshotAttributeOutcome modifySnapshotAttribute(const Model::ModifySnapshotAttributeRequest &request)const; + void modifySnapshotAttributeAsync(const Model::ModifySnapshotAttributeRequest& request, const ModifySnapshotAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySnapshotAttributeOutcomeCallable modifySnapshotAttributeCallable(const Model::ModifySnapshotAttributeRequest& request) const; + JoinSecurityGroupOutcome joinSecurityGroup(const Model::JoinSecurityGroupRequest &request)const; + void joinSecurityGroupAsync(const Model::JoinSecurityGroupRequest& request, const JoinSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + JoinSecurityGroupOutcomeCallable joinSecurityGroupCallable(const Model::JoinSecurityGroupRequest& request) const; + DescribeSnapshotsOutcome describeSnapshots(const Model::DescribeSnapshotsRequest &request)const; + void describeSnapshotsAsync(const Model::DescribeSnapshotsRequest& request, const DescribeSnapshotsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSnapshotsOutcomeCallable describeSnapshotsCallable(const Model::DescribeSnapshotsRequest& request) const; + ModifyBandwidthPackageSpecOutcome modifyBandwidthPackageSpec(const Model::ModifyBandwidthPackageSpecRequest &request)const; + void modifyBandwidthPackageSpecAsync(const Model::ModifyBandwidthPackageSpecRequest& request, const ModifyBandwidthPackageSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyBandwidthPackageSpecOutcomeCallable modifyBandwidthPackageSpecCallable(const Model::ModifyBandwidthPackageSpecRequest& request) const; + ModifyInstanceVncPasswdOutcome modifyInstanceVncPasswd(const Model::ModifyInstanceVncPasswdRequest &request)const; + void modifyInstanceVncPasswdAsync(const Model::ModifyInstanceVncPasswdRequest& request, const ModifyInstanceVncPasswdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceVncPasswdOutcomeCallable modifyInstanceVncPasswdCallable(const Model::ModifyInstanceVncPasswdRequest& request) const; + CreateNatGatewayOutcome createNatGateway(const Model::CreateNatGatewayRequest &request)const; + void createNatGatewayAsync(const Model::CreateNatGatewayRequest& request, const CreateNatGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNatGatewayOutcomeCallable createNatGatewayCallable(const Model::CreateNatGatewayRequest& request) const; + AttachDiskOutcome attachDisk(const Model::AttachDiskRequest &request)const; + void attachDiskAsync(const Model::AttachDiskRequest& request, const AttachDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachDiskOutcomeCallable attachDiskCallable(const Model::AttachDiskRequest& request) const; + ReInitDiskOutcome reInitDisk(const Model::ReInitDiskRequest &request)const; + void reInitDiskAsync(const Model::ReInitDiskRequest& request, const ReInitDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReInitDiskOutcomeCallable reInitDiskCallable(const Model::ReInitDiskRequest& request) const; + CreateHaVipOutcome createHaVip(const Model::CreateHaVipRequest &request)const; + void createHaVipAsync(const Model::CreateHaVipRequest& request, const CreateHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateHaVipOutcomeCallable createHaVipCallable(const Model::CreateHaVipRequest& request) const; + ModifyAutoSnapshotPolicyOutcome modifyAutoSnapshotPolicy(const Model::ModifyAutoSnapshotPolicyRequest &request)const; + void modifyAutoSnapshotPolicyAsync(const Model::ModifyAutoSnapshotPolicyRequest& request, const ModifyAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAutoSnapshotPolicyOutcomeCallable modifyAutoSnapshotPolicyCallable(const Model::ModifyAutoSnapshotPolicyRequest& request) const; + AssociateEipAddressOutcome associateEipAddress(const Model::AssociateEipAddressRequest &request)const; + void associateEipAddressAsync(const Model::AssociateEipAddressRequest& request, const AssociateEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateEipAddressOutcomeCallable associateEipAddressCallable(const Model::AssociateEipAddressRequest& request) const; + DescribeEipAddressesOutcome describeEipAddresses(const Model::DescribeEipAddressesRequest &request)const; + void describeEipAddressesAsync(const Model::DescribeEipAddressesRequest& request, const DescribeEipAddressesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEipAddressesOutcomeCallable describeEipAddressesCallable(const Model::DescribeEipAddressesRequest& request) const; + RevokeSecurityGroupEgressOutcome revokeSecurityGroupEgress(const Model::RevokeSecurityGroupEgressRequest &request)const; + void revokeSecurityGroupEgressAsync(const Model::RevokeSecurityGroupEgressRequest& request, const RevokeSecurityGroupEgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevokeSecurityGroupEgressOutcomeCallable revokeSecurityGroupEgressCallable(const Model::RevokeSecurityGroupEgressRequest& request) const; + ActivateRouterInterfaceOutcome activateRouterInterface(const Model::ActivateRouterInterfaceRequest &request)const; + void activateRouterInterfaceAsync(const Model::ActivateRouterInterfaceRequest& request, const ActivateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ActivateRouterInterfaceOutcomeCallable activateRouterInterfaceCallable(const Model::ActivateRouterInterfaceRequest& request) const; + DescribeSpotPriceHistoryOutcome describeSpotPriceHistory(const Model::DescribeSpotPriceHistoryRequest &request)const; + void describeSpotPriceHistoryAsync(const Model::DescribeSpotPriceHistoryRequest& request, const DescribeSpotPriceHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSpotPriceHistoryOutcomeCallable describeSpotPriceHistoryCallable(const Model::DescribeSpotPriceHistoryRequest& request) const; + TerminateVirtualBorderRouterOutcome terminateVirtualBorderRouter(const Model::TerminateVirtualBorderRouterRequest &request)const; + void terminateVirtualBorderRouterAsync(const Model::TerminateVirtualBorderRouterRequest& request, const TerminateVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TerminateVirtualBorderRouterOutcomeCallable terminateVirtualBorderRouterCallable(const Model::TerminateVirtualBorderRouterRequest& request) const; + StopInstanceOutcome stopInstance(const Model::StopInstanceRequest &request)const; + void stopInstanceAsync(const Model::StopInstanceRequest& request, const StopInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopInstanceOutcomeCallable stopInstanceCallable(const Model::StopInstanceRequest& request) const; + DescribeInstanceHistoryEventsOutcome describeInstanceHistoryEvents(const Model::DescribeInstanceHistoryEventsRequest &request)const; + void describeInstanceHistoryEventsAsync(const Model::DescribeInstanceHistoryEventsRequest& request, const DescribeInstanceHistoryEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceHistoryEventsOutcomeCallable describeInstanceHistoryEventsCallable(const Model::DescribeInstanceHistoryEventsRequest& 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; + RevokeSecurityGroupOutcome revokeSecurityGroup(const Model::RevokeSecurityGroupRequest &request)const; + void revokeSecurityGroupAsync(const Model::RevokeSecurityGroupRequest& request, const RevokeSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevokeSecurityGroupOutcomeCallable revokeSecurityGroupCallable(const Model::RevokeSecurityGroupRequest& request) const; + CheckAutoSnapshotPolicyOutcome checkAutoSnapshotPolicy(const Model::CheckAutoSnapshotPolicyRequest &request)const; + void checkAutoSnapshotPolicyAsync(const Model::CheckAutoSnapshotPolicyRequest& request, const CheckAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckAutoSnapshotPolicyOutcomeCallable checkAutoSnapshotPolicyCallable(const Model::CheckAutoSnapshotPolicyRequest& request) const; + DescribeTaskAttributeOutcome describeTaskAttribute(const Model::DescribeTaskAttributeRequest &request)const; + void describeTaskAttributeAsync(const Model::DescribeTaskAttributeRequest& request, const DescribeTaskAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTaskAttributeOutcomeCallable describeTaskAttributeCallable(const Model::DescribeTaskAttributeRequest& request) const; + CreateAutoSnapshotPolicyOutcome createAutoSnapshotPolicy(const Model::CreateAutoSnapshotPolicyRequest &request)const; + void createAutoSnapshotPolicyAsync(const Model::CreateAutoSnapshotPolicyRequest& request, const CreateAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAutoSnapshotPolicyOutcomeCallable createAutoSnapshotPolicyCallable(const Model::CreateAutoSnapshotPolicyRequest& request) const; + ReActivateInstancesOutcome reActivateInstances(const Model::ReActivateInstancesRequest &request)const; + void reActivateInstancesAsync(const Model::ReActivateInstancesRequest& request, const ReActivateInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReActivateInstancesOutcomeCallable reActivateInstancesCallable(const Model::ReActivateInstancesRequest& request) const; + DescribeForwardTableEntriesOutcome describeForwardTableEntries(const Model::DescribeForwardTableEntriesRequest &request)const; + void describeForwardTableEntriesAsync(const Model::DescribeForwardTableEntriesRequest& request, const DescribeForwardTableEntriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeForwardTableEntriesOutcomeCallable describeForwardTableEntriesCallable(const Model::DescribeForwardTableEntriesRequest& request) const; + DescribeInstancesOutcome describeInstances(const Model::DescribeInstancesRequest &request)const; + void describeInstancesAsync(const Model::DescribeInstancesRequest& request, const DescribeInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstancesOutcomeCallable describeInstancesCallable(const Model::DescribeInstancesRequest& request) const; + DescribeSecurityGroupReferencesOutcome describeSecurityGroupReferences(const Model::DescribeSecurityGroupReferencesRequest &request)const; + void describeSecurityGroupReferencesAsync(const Model::DescribeSecurityGroupReferencesRequest& request, const DescribeSecurityGroupReferencesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSecurityGroupReferencesOutcomeCallable describeSecurityGroupReferencesCallable(const Model::DescribeSecurityGroupReferencesRequest& request) const; + DeleteRouterInterfaceOutcome deleteRouterInterface(const Model::DeleteRouterInterfaceRequest &request)const; + void deleteRouterInterfaceAsync(const Model::DeleteRouterInterfaceRequest& request, const DeleteRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRouterInterfaceOutcomeCallable deleteRouterInterfaceCallable(const Model::DeleteRouterInterfaceRequest& request) const; + DetachInstanceRamRoleOutcome detachInstanceRamRole(const Model::DetachInstanceRamRoleRequest &request)const; + void detachInstanceRamRoleAsync(const Model::DetachInstanceRamRoleRequest& request, const DetachInstanceRamRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachInstanceRamRoleOutcomeCallable detachInstanceRamRoleCallable(const Model::DetachInstanceRamRoleRequest& request) const; + AllocatePublicIpAddressOutcome allocatePublicIpAddress(const Model::AllocatePublicIpAddressRequest &request)const; + void allocatePublicIpAddressAsync(const Model::AllocatePublicIpAddressRequest& request, const AllocatePublicIpAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocatePublicIpAddressOutcomeCallable allocatePublicIpAddressCallable(const Model::AllocatePublicIpAddressRequest& request) const; + DescribeEipMonitorDataOutcome describeEipMonitorData(const Model::DescribeEipMonitorDataRequest &request)const; + void describeEipMonitorDataAsync(const Model::DescribeEipMonitorDataRequest& request, const DescribeEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEipMonitorDataOutcomeCallable describeEipMonitorDataCallable(const Model::DescribeEipMonitorDataRequest& request) const; + CancelAutoSnapshotPolicyOutcome cancelAutoSnapshotPolicy(const Model::CancelAutoSnapshotPolicyRequest &request)const; + void cancelAutoSnapshotPolicyAsync(const Model::CancelAutoSnapshotPolicyRequest& request, const CancelAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelAutoSnapshotPolicyOutcomeCallable cancelAutoSnapshotPolicyCallable(const Model::CancelAutoSnapshotPolicyRequest& request) const; + DescribeDisksFullStatusOutcome describeDisksFullStatus(const Model::DescribeDisksFullStatusRequest &request)const; + void describeDisksFullStatusAsync(const Model::DescribeDisksFullStatusRequest& request, const DescribeDisksFullStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDisksFullStatusOutcomeCallable describeDisksFullStatusCallable(const Model::DescribeDisksFullStatusRequest& request) const; + DeleteNetworkInterfaceOutcome deleteNetworkInterface(const Model::DeleteNetworkInterfaceRequest &request)const; + void deleteNetworkInterfaceAsync(const Model::DeleteNetworkInterfaceRequest& request, const DeleteNetworkInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNetworkInterfaceOutcomeCallable deleteNetworkInterfaceCallable(const Model::DeleteNetworkInterfaceRequest& request) const; + ModifyInstanceSpecOutcome modifyInstanceSpec(const Model::ModifyInstanceSpecRequest &request)const; + void modifyInstanceSpecAsync(const Model::ModifyInstanceSpecRequest& request, const ModifyInstanceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceSpecOutcomeCallable modifyInstanceSpecCallable(const Model::ModifyInstanceSpecRequest& request) const; + DeleteSnapshotOutcome deleteSnapshot(const Model::DeleteSnapshotRequest &request)const; + void deleteSnapshotAsync(const Model::DeleteSnapshotRequest& request, const DeleteSnapshotAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSnapshotOutcomeCallable deleteSnapshotCallable(const Model::DeleteSnapshotRequest& request) const; + DeleteKeyPairsOutcome deleteKeyPairs(const Model::DeleteKeyPairsRequest &request)const; + void deleteKeyPairsAsync(const Model::DeleteKeyPairsRequest& request, const DeleteKeyPairsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteKeyPairsOutcomeCallable deleteKeyPairsCallable(const Model::DeleteKeyPairsRequest& request) const; + AuthorizeSecurityGroupOutcome authorizeSecurityGroup(const Model::AuthorizeSecurityGroupRequest &request)const; + void authorizeSecurityGroupAsync(const Model::AuthorizeSecurityGroupRequest& request, const AuthorizeSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AuthorizeSecurityGroupOutcomeCallable authorizeSecurityGroupCallable(const Model::AuthorizeSecurityGroupRequest& request) const; + DeleteSecurityGroupOutcome deleteSecurityGroup(const Model::DeleteSecurityGroupRequest &request)const; + void deleteSecurityGroupAsync(const Model::DeleteSecurityGroupRequest& request, const DeleteSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSecurityGroupOutcomeCallable deleteSecurityGroupCallable(const Model::DeleteSecurityGroupRequest& request) const; + DescribeSnapshotMonitorDataOutcome describeSnapshotMonitorData(const Model::DescribeSnapshotMonitorDataRequest &request)const; + void describeSnapshotMonitorDataAsync(const Model::DescribeSnapshotMonitorDataRequest& request, const DescribeSnapshotMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSnapshotMonitorDataOutcomeCallable describeSnapshotMonitorDataCallable(const Model::DescribeSnapshotMonitorDataRequest& request) const; + ConnectRouterInterfaceOutcome connectRouterInterface(const Model::ConnectRouterInterfaceRequest &request)const; + void connectRouterInterfaceAsync(const Model::ConnectRouterInterfaceRequest& request, const ConnectRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ConnectRouterInterfaceOutcomeCallable connectRouterInterfaceCallable(const Model::ConnectRouterInterfaceRequest& request) const; + AddIpRangeOutcome addIpRange(const Model::AddIpRangeRequest &request)const; + void addIpRangeAsync(const Model::AddIpRangeRequest& request, const AddIpRangeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddIpRangeOutcomeCallable addIpRangeCallable(const Model::AddIpRangeRequest& request) const; + CancelTaskOutcome cancelTask(const Model::CancelTaskRequest &request)const; + void cancelTaskAsync(const Model::CancelTaskRequest& request, const CancelTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelTaskOutcomeCallable cancelTaskCallable(const Model::CancelTaskRequest& request) const; + ModifyPhysicalConnectionAttributeOutcome modifyPhysicalConnectionAttribute(const Model::ModifyPhysicalConnectionAttributeRequest &request)const; + void modifyPhysicalConnectionAttributeAsync(const Model::ModifyPhysicalConnectionAttributeRequest& request, const ModifyPhysicalConnectionAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyPhysicalConnectionAttributeOutcomeCallable modifyPhysicalConnectionAttributeCallable(const Model::ModifyPhysicalConnectionAttributeRequest& request) const; + ModifyCommandOutcome modifyCommand(const Model::ModifyCommandRequest &request)const; + void modifyCommandAsync(const Model::ModifyCommandRequest& request, const ModifyCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCommandOutcomeCallable modifyCommandCallable(const Model::ModifyCommandRequest& request) const; + ModifyVSwitchAttributeOutcome modifyVSwitchAttribute(const Model::ModifyVSwitchAttributeRequest &request)const; + void modifyVSwitchAttributeAsync(const Model::ModifyVSwitchAttributeRequest& request, const ModifyVSwitchAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVSwitchAttributeOutcomeCallable modifyVSwitchAttributeCallable(const Model::ModifyVSwitchAttributeRequest& request) const; + ModifyInstanceAttributeOutcome modifyInstanceAttribute(const Model::ModifyInstanceAttributeRequest &request)const; + void modifyInstanceAttributeAsync(const Model::ModifyInstanceAttributeRequest& request, const ModifyInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceAttributeOutcomeCallable modifyInstanceAttributeCallable(const Model::ModifyInstanceAttributeRequest& request) const; + DeleteHaVipOutcome deleteHaVip(const Model::DeleteHaVipRequest &request)const; + void deleteHaVipAsync(const Model::DeleteHaVipRequest& request, const DeleteHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteHaVipOutcomeCallable deleteHaVipCallable(const Model::DeleteHaVipRequest& request) const; + DescribeSecurityGroupsOutcome describeSecurityGroups(const Model::DescribeSecurityGroupsRequest &request)const; + void describeSecurityGroupsAsync(const Model::DescribeSecurityGroupsRequest& request, const DescribeSecurityGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSecurityGroupsOutcomeCallable describeSecurityGroupsCallable(const Model::DescribeSecurityGroupsRequest& request) const; + ResizeDiskOutcome resizeDisk(const Model::ResizeDiskRequest &request)const; + void resizeDiskAsync(const Model::ResizeDiskRequest& request, const ResizeDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResizeDiskOutcomeCallable resizeDiskCallable(const Model::ResizeDiskRequest& 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; + DescribeInvocationsOutcome describeInvocations(const Model::DescribeInvocationsRequest &request)const; + void describeInvocationsAsync(const Model::DescribeInvocationsRequest& request, const DescribeInvocationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInvocationsOutcomeCallable describeInvocationsCallable(const Model::DescribeInvocationsRequest& request) const; + AttachKeyPairOutcome attachKeyPair(const Model::AttachKeyPairRequest &request)const; + void attachKeyPairAsync(const Model::AttachKeyPairRequest& request, const AttachKeyPairAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachKeyPairOutcomeCallable attachKeyPairCallable(const Model::AttachKeyPairRequest& request) const; + CreateRouterInterfaceOutcome createRouterInterface(const Model::CreateRouterInterfaceRequest &request)const; + void createRouterInterfaceAsync(const Model::CreateRouterInterfaceRequest& request, const CreateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRouterInterfaceOutcomeCallable createRouterInterfaceCallable(const Model::CreateRouterInterfaceRequest& request) const; + CheckDiskEnableAutoSnapshotValidationOutcome checkDiskEnableAutoSnapshotValidation(const Model::CheckDiskEnableAutoSnapshotValidationRequest &request)const; + void checkDiskEnableAutoSnapshotValidationAsync(const Model::CheckDiskEnableAutoSnapshotValidationRequest& request, const CheckDiskEnableAutoSnapshotValidationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckDiskEnableAutoSnapshotValidationOutcomeCallable checkDiskEnableAutoSnapshotValidationCallable(const Model::CheckDiskEnableAutoSnapshotValidationRequest& request) const; + RunInstancesOutcome runInstances(const Model::RunInstancesRequest &request)const; + void runInstancesAsync(const Model::RunInstancesRequest& request, const RunInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RunInstancesOutcomeCallable runInstancesCallable(const Model::RunInstancesRequest& request) const; + StopInvocationOutcome stopInvocation(const Model::StopInvocationRequest &request)const; + void stopInvocationAsync(const Model::StopInvocationRequest& request, const StopInvocationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopInvocationOutcomeCallable stopInvocationCallable(const Model::StopInvocationRequest& request) const; + ModifyInstanceNetworkSpecOutcome modifyInstanceNetworkSpec(const Model::ModifyInstanceNetworkSpecRequest &request)const; + void modifyInstanceNetworkSpecAsync(const Model::ModifyInstanceNetworkSpecRequest& request, const ModifyInstanceNetworkSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceNetworkSpecOutcomeCallable modifyInstanceNetworkSpecCallable(const Model::ModifyInstanceNetworkSpecRequest& request) const; + ModifyDiskAttributeOutcome modifyDiskAttribute(const Model::ModifyDiskAttributeRequest &request)const; + void modifyDiskAttributeAsync(const Model::ModifyDiskAttributeRequest& request, const ModifyDiskAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDiskAttributeOutcomeCallable modifyDiskAttributeCallable(const Model::ModifyDiskAttributeRequest& request) const; + CreateVSwitchOutcome createVSwitch(const Model::CreateVSwitchRequest &request)const; + void createVSwitchAsync(const Model::CreateVSwitchRequest& request, const CreateVSwitchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVSwitchOutcomeCallable createVSwitchCallable(const Model::CreateVSwitchRequest& request) const; + ModifyEipAddressAttributeOutcome modifyEipAddressAttribute(const Model::ModifyEipAddressAttributeRequest &request)const; + void modifyEipAddressAttributeAsync(const Model::ModifyEipAddressAttributeRequest& request, const ModifyEipAddressAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyEipAddressAttributeOutcomeCallable modifyEipAddressAttributeCallable(const Model::ModifyEipAddressAttributeRequest& request) const; + RemoveTagsOutcome removeTags(const Model::RemoveTagsRequest &request)const; + void removeTagsAsync(const Model::RemoveTagsRequest& request, const RemoveTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveTagsOutcomeCallable removeTagsCallable(const Model::RemoveTagsRequest& request) const; + ModifySecurityGroupAttributeOutcome modifySecurityGroupAttribute(const Model::ModifySecurityGroupAttributeRequest &request)const; + void modifySecurityGroupAttributeAsync(const Model::ModifySecurityGroupAttributeRequest& request, const ModifySecurityGroupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySecurityGroupAttributeOutcomeCallable modifySecurityGroupAttributeCallable(const Model::ModifySecurityGroupAttributeRequest& request) const; + ModifyInstanceAutoReleaseTimeOutcome modifyInstanceAutoReleaseTime(const Model::ModifyInstanceAutoReleaseTimeRequest &request)const; + void modifyInstanceAutoReleaseTimeAsync(const Model::ModifyInstanceAutoReleaseTimeRequest& request, const ModifyInstanceAutoReleaseTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceAutoReleaseTimeOutcomeCallable modifyInstanceAutoReleaseTimeCallable(const Model::ModifyInstanceAutoReleaseTimeRequest& request) const; + DeleteNatGatewayOutcome deleteNatGateway(const Model::DeleteNatGatewayRequest &request)const; + void deleteNatGatewayAsync(const Model::DeleteNatGatewayRequest& request, const DeleteNatGatewayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNatGatewayOutcomeCallable deleteNatGatewayCallable(const Model::DeleteNatGatewayRequest& request) const; + DescribeZonesOutcome describeZones(const Model::DescribeZonesRequest &request)const; + void describeZonesAsync(const Model::DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const; + DeactivateRouterInterfaceOutcome deactivateRouterInterface(const Model::DeactivateRouterInterfaceRequest &request)const; + void deactivateRouterInterfaceAsync(const Model::DeactivateRouterInterfaceRequest& request, const DeactivateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeactivateRouterInterfaceOutcomeCallable deactivateRouterInterfaceCallable(const Model::DeactivateRouterInterfaceRequest& request) const; + DescribeAccessPointsOutcome describeAccessPoints(const Model::DescribeAccessPointsRequest &request)const; + void describeAccessPointsAsync(const Model::DescribeAccessPointsRequest& request, const DescribeAccessPointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccessPointsOutcomeCallable describeAccessPointsCallable(const Model::DescribeAccessPointsRequest& request) const; + CreateCommandOutcome createCommand(const Model::CreateCommandRequest &request)const; + void createCommandAsync(const Model::CreateCommandRequest& request, const CreateCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCommandOutcomeCallable createCommandCallable(const Model::CreateCommandRequest& request) const; + DescribeInstancesFullStatusOutcome describeInstancesFullStatus(const Model::DescribeInstancesFullStatusRequest &request)const; + void describeInstancesFullStatusAsync(const Model::DescribeInstancesFullStatusRequest& request, const DescribeInstancesFullStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstancesFullStatusOutcomeCallable describeInstancesFullStatusCallable(const Model::DescribeInstancesFullStatusRequest& request) const; + ReleaseEipAddressOutcome releaseEipAddress(const Model::ReleaseEipAddressRequest &request)const; + void releaseEipAddressAsync(const Model::ReleaseEipAddressRequest& request, const ReleaseEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseEipAddressOutcomeCallable releaseEipAddressCallable(const Model::ReleaseEipAddressRequest& request) const; + DetachClassicLinkVpcOutcome detachClassicLinkVpc(const Model::DetachClassicLinkVpcRequest &request)const; + void detachClassicLinkVpcAsync(const Model::DetachClassicLinkVpcRequest& request, const DetachClassicLinkVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachClassicLinkVpcOutcomeCallable detachClassicLinkVpcCallable(const Model::DetachClassicLinkVpcRequest& request) const; + DescribeVSwitchesOutcome describeVSwitches(const Model::DescribeVSwitchesRequest &request)const; + void describeVSwitchesAsync(const Model::DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVSwitchesOutcomeCallable describeVSwitchesCallable(const Model::DescribeVSwitchesRequest& request) const; + ModifyRouterInterfaceSpecOutcome modifyRouterInterfaceSpec(const Model::ModifyRouterInterfaceSpecRequest &request)const; + void modifyRouterInterfaceSpecAsync(const Model::ModifyRouterInterfaceSpecRequest& request, const ModifyRouterInterfaceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRouterInterfaceSpecOutcomeCallable modifyRouterInterfaceSpecCallable(const Model::ModifyRouterInterfaceSpecRequest& request) const; + DescribeVpcsOutcome describeVpcs(const Model::DescribeVpcsRequest &request)const; + void describeVpcsAsync(const Model::DescribeVpcsRequest& request, const DescribeVpcsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpcsOutcomeCallable describeVpcsCallable(const Model::DescribeVpcsRequest& request) const; + ExportImageOutcome exportImage(const Model::ExportImageRequest &request)const; + void exportImageAsync(const Model::ExportImageRequest& request, const ExportImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExportImageOutcomeCallable exportImageCallable(const Model::ExportImageRequest& request) const; + DescribeDiskMonitorDataOutcome describeDiskMonitorData(const Model::DescribeDiskMonitorDataRequest &request)const; + void describeDiskMonitorDataAsync(const Model::DescribeDiskMonitorDataRequest& request, const DescribeDiskMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDiskMonitorDataOutcomeCallable describeDiskMonitorDataCallable(const Model::DescribeDiskMonitorDataRequest& request) const; + ModifyDeploymentSetAttributeOutcome modifyDeploymentSetAttribute(const Model::ModifyDeploymentSetAttributeRequest &request)const; + void modifyDeploymentSetAttributeAsync(const Model::ModifyDeploymentSetAttributeRequest& request, const ModifyDeploymentSetAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDeploymentSetAttributeOutcomeCallable modifyDeploymentSetAttributeCallable(const Model::ModifyDeploymentSetAttributeRequest& request) const; + ModifyRouterInterfaceAttributeOutcome modifyRouterInterfaceAttribute(const Model::ModifyRouterInterfaceAttributeRequest &request)const; + void modifyRouterInterfaceAttributeAsync(const Model::ModifyRouterInterfaceAttributeRequest& request, const ModifyRouterInterfaceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyRouterInterfaceAttributeOutcomeCallable modifyRouterInterfaceAttributeCallable(const Model::ModifyRouterInterfaceAttributeRequest& request) const; + DescribeVirtualBorderRoutersForPhysicalConnectionOutcome describeVirtualBorderRoutersForPhysicalConnection(const Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest &request)const; + void describeVirtualBorderRoutersForPhysicalConnectionAsync(const Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest& request, const DescribeVirtualBorderRoutersForPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVirtualBorderRoutersForPhysicalConnectionOutcomeCallable describeVirtualBorderRoutersForPhysicalConnectionCallable(const Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest& request) const; + CreateDiskOutcome createDisk(const Model::CreateDiskRequest &request)const; + void createDiskAsync(const Model::CreateDiskRequest& request, const CreateDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDiskOutcomeCallable createDiskCallable(const Model::CreateDiskRequest& request) const; + StartInstanceOutcome startInstance(const Model::StartInstanceRequest &request)const; + void startInstanceAsync(const Model::StartInstanceRequest& request, const StartInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartInstanceOutcomeCallable startInstanceCallable(const Model::StartInstanceRequest& request) const; + DescribeInstanceTypesOutcome describeInstanceTypes(const Model::DescribeInstanceTypesRequest &request)const; + void describeInstanceTypesAsync(const Model::DescribeInstanceTypesRequest& request, const DescribeInstanceTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceTypesOutcomeCallable describeInstanceTypesCallable(const Model::DescribeInstanceTypesRequest& request) const; + DescribeSnapshotPackageOutcome describeSnapshotPackage(const Model::DescribeSnapshotPackageRequest &request)const; + void describeSnapshotPackageAsync(const Model::DescribeSnapshotPackageRequest& request, const DescribeSnapshotPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSnapshotPackageOutcomeCallable describeSnapshotPackageCallable(const Model::DescribeSnapshotPackageRequest& request) const; + RebootInstanceOutcome rebootInstance(const Model::RebootInstanceRequest &request)const; + void rebootInstanceAsync(const Model::RebootInstanceRequest& request, const RebootInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RebootInstanceOutcomeCallable rebootInstanceCallable(const Model::RebootInstanceRequest& request) const; + BindIpRangeOutcome bindIpRange(const Model::BindIpRangeRequest &request)const; + void bindIpRangeAsync(const Model::BindIpRangeRequest& request, const BindIpRangeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindIpRangeOutcomeCallable bindIpRangeCallable(const Model::BindIpRangeRequest& request) const; + InvokeCommandOutcome invokeCommand(const Model::InvokeCommandRequest &request)const; + void invokeCommandAsync(const Model::InvokeCommandRequest& request, const InvokeCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InvokeCommandOutcomeCallable invokeCommandCallable(const Model::InvokeCommandRequest& request) const; + ModifyUserBusinessBehaviorOutcome modifyUserBusinessBehavior(const Model::ModifyUserBusinessBehaviorRequest &request)const; + void modifyUserBusinessBehaviorAsync(const Model::ModifyUserBusinessBehaviorRequest& request, const ModifyUserBusinessBehaviorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyUserBusinessBehaviorOutcomeCallable modifyUserBusinessBehaviorCallable(const Model::ModifyUserBusinessBehaviorRequest& 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; + DescribeHpcClustersOutcome describeHpcClusters(const Model::DescribeHpcClustersRequest &request)const; + void describeHpcClustersAsync(const Model::DescribeHpcClustersRequest& request, const DescribeHpcClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHpcClustersOutcomeCallable describeHpcClustersCallable(const Model::DescribeHpcClustersRequest& request) const; + CancelAgreementOutcome cancelAgreement(const Model::CancelAgreementRequest &request)const; + void cancelAgreementAsync(const Model::CancelAgreementRequest& request, const CancelAgreementAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelAgreementOutcomeCallable cancelAgreementCallable(const Model::CancelAgreementRequest& request) const; + ModifyInstanceChargeTypeOutcome modifyInstanceChargeType(const Model::ModifyInstanceChargeTypeRequest &request)const; + void modifyInstanceChargeTypeAsync(const Model::ModifyInstanceChargeTypeRequest& request, const ModifyInstanceChargeTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceChargeTypeOutcomeCallable modifyInstanceChargeTypeCallable(const Model::ModifyInstanceChargeTypeRequest& request) const; + ModifyInstanceAutoRenewAttributeOutcome modifyInstanceAutoRenewAttribute(const Model::ModifyInstanceAutoRenewAttributeRequest &request)const; + void modifyInstanceAutoRenewAttributeAsync(const Model::ModifyInstanceAutoRenewAttributeRequest& request, const ModifyInstanceAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceAutoRenewAttributeOutcomeCallable modifyInstanceAutoRenewAttributeCallable(const Model::ModifyInstanceAutoRenewAttributeRequest& 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; + ModifyHpcClusterAttributeOutcome modifyHpcClusterAttribute(const Model::ModifyHpcClusterAttributeRequest &request)const; + void modifyHpcClusterAttributeAsync(const Model::ModifyHpcClusterAttributeRequest& request, const ModifyHpcClusterAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyHpcClusterAttributeOutcomeCallable modifyHpcClusterAttributeCallable(const Model::ModifyHpcClusterAttributeRequest& request) const; + DescribeLimitationOutcome describeLimitation(const Model::DescribeLimitationRequest &request)const; + void describeLimitationAsync(const Model::DescribeLimitationRequest& request, const DescribeLimitationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLimitationOutcomeCallable describeLimitationCallable(const Model::DescribeLimitationRequest& request) const; + DescribePriceOutcome describePrice(const Model::DescribePriceRequest &request)const; + void describePriceAsync(const Model::DescribePriceRequest& request, const DescribePriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePriceOutcomeCallable describePriceCallable(const Model::DescribePriceRequest& request) const; + DeleteDeploymentSetOutcome deleteDeploymentSet(const Model::DeleteDeploymentSetRequest &request)const; + void deleteDeploymentSetAsync(const Model::DeleteDeploymentSetRequest& request, const DeleteDeploymentSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDeploymentSetOutcomeCallable deleteDeploymentSetCallable(const Model::DeleteDeploymentSetRequest& request) const; + DescribeDeploymentSetTopologyOutcome describeDeploymentSetTopology(const Model::DescribeDeploymentSetTopologyRequest &request)const; + void describeDeploymentSetTopologyAsync(const Model::DescribeDeploymentSetTopologyRequest& request, const DescribeDeploymentSetTopologyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDeploymentSetTopologyOutcomeCallable describeDeploymentSetTopologyCallable(const Model::DescribeDeploymentSetTopologyRequest& request) const; + ModifyInstanceVpcAttributeOutcome modifyInstanceVpcAttribute(const Model::ModifyInstanceVpcAttributeRequest &request)const; + void modifyInstanceVpcAttributeAsync(const Model::ModifyInstanceVpcAttributeRequest& request, const ModifyInstanceVpcAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceVpcAttributeOutcomeCallable modifyInstanceVpcAttributeCallable(const Model::ModifyInstanceVpcAttributeRequest& request) const; + AddTagsOutcome addTags(const Model::AddTagsRequest &request)const; + void addTagsAsync(const Model::AddTagsRequest& request, const AddTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddTagsOutcomeCallable addTagsCallable(const Model::AddTagsRequest& request) const; + CreateHpcClusterOutcome createHpcCluster(const Model::CreateHpcClusterRequest &request)const; + void createHpcClusterAsync(const Model::CreateHpcClusterRequest& request, const CreateHpcClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateHpcClusterOutcomeCallable createHpcClusterCallable(const Model::CreateHpcClusterRequest& request) const; + DescribeUserBusinessBehaviorOutcome describeUserBusinessBehavior(const Model::DescribeUserBusinessBehaviorRequest &request)const; + void describeUserBusinessBehaviorAsync(const Model::DescribeUserBusinessBehaviorRequest& request, const DescribeUserBusinessBehaviorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserBusinessBehaviorOutcomeCallable describeUserBusinessBehaviorCallable(const Model::DescribeUserBusinessBehaviorRequest& request) const; + DescribeCommandsOutcome describeCommands(const Model::DescribeCommandsRequest &request)const; + void describeCommandsAsync(const Model::DescribeCommandsRequest& request, const DescribeCommandsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCommandsOutcomeCallable describeCommandsCallable(const Model::DescribeCommandsRequest& request) const; + DeleteImageOutcome deleteImage(const Model::DeleteImageRequest &request)const; + void deleteImageAsync(const Model::DeleteImageRequest& request, const DeleteImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteImageOutcomeCallable deleteImageCallable(const Model::DeleteImageRequest& request) const; + DescribeDisksOutcome describeDisks(const Model::DescribeDisksRequest &request)const; + void describeDisksAsync(const Model::DescribeDisksRequest& request, const DescribeDisksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDisksOutcomeCallable describeDisksCallable(const Model::DescribeDisksRequest& 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; + DescribeImageSupportInstanceTypesOutcome describeImageSupportInstanceTypes(const Model::DescribeImageSupportInstanceTypesRequest &request)const; + void describeImageSupportInstanceTypesAsync(const Model::DescribeImageSupportInstanceTypesRequest& request, const DescribeImageSupportInstanceTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeImageSupportInstanceTypesOutcomeCallable describeImageSupportInstanceTypesCallable(const Model::DescribeImageSupportInstanceTypesRequest& request) const; + DeleteCommandOutcome deleteCommand(const Model::DeleteCommandRequest &request)const; + void deleteCommandAsync(const Model::DeleteCommandRequest& request, const DeleteCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCommandOutcomeCallable deleteCommandCallable(const Model::DeleteCommandRequest& request) const; + ReplaceSystemDiskOutcome replaceSystemDisk(const Model::ReplaceSystemDiskRequest &request)const; + void replaceSystemDiskAsync(const Model::ReplaceSystemDiskRequest& request, const ReplaceSystemDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReplaceSystemDiskOutcomeCallable replaceSystemDiskCallable(const Model::ReplaceSystemDiskRequest& request) const; + DeleteVSwitchOutcome deleteVSwitch(const Model::DeleteVSwitchRequest &request)const; + void deleteVSwitchAsync(const Model::DeleteVSwitchRequest& request, const DeleteVSwitchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVSwitchOutcomeCallable deleteVSwitchCallable(const Model::DeleteVSwitchRequest& request) const; + ModifyImageShareGroupPermissionOutcome modifyImageShareGroupPermission(const Model::ModifyImageShareGroupPermissionRequest &request)const; + void modifyImageShareGroupPermissionAsync(const Model::ModifyImageShareGroupPermissionRequest& request, const ModifyImageShareGroupPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyImageShareGroupPermissionOutcomeCallable modifyImageShareGroupPermissionCallable(const Model::ModifyImageShareGroupPermissionRequest& request) const; + DescribeInstanceVncUrlOutcome describeInstanceVncUrl(const Model::DescribeInstanceVncUrlRequest &request)const; + void describeInstanceVncUrlAsync(const Model::DescribeInstanceVncUrlRequest& request, const DescribeInstanceVncUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceVncUrlOutcomeCallable describeInstanceVncUrlCallable(const Model::DescribeInstanceVncUrlRequest& 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; + DescribeResourceByTagsOutcome describeResourceByTags(const Model::DescribeResourceByTagsRequest &request)const; + void describeResourceByTagsAsync(const Model::DescribeResourceByTagsRequest& request, const DescribeResourceByTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeResourceByTagsOutcomeCallable describeResourceByTagsCallable(const Model::DescribeResourceByTagsRequest& request) const; + DescribeClustersOutcome describeClusters(const Model::DescribeClustersRequest &request)const; + void describeClustersAsync(const Model::DescribeClustersRequest& request, const DescribeClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClustersOutcomeCallable describeClustersCallable(const Model::DescribeClustersRequest& 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; + DeleteBandwidthPackageOutcome deleteBandwidthPackage(const Model::DeleteBandwidthPackageRequest &request)const; + void deleteBandwidthPackageAsync(const Model::DeleteBandwidthPackageRequest& request, const DeleteBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBandwidthPackageOutcomeCallable deleteBandwidthPackageCallable(const Model::DeleteBandwidthPackageRequest& request) const; + DescribeImagesOutcome describeImages(const Model::DescribeImagesRequest &request)const; + void describeImagesAsync(const Model::DescribeImagesRequest& request, const DescribeImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeImagesOutcomeCallable describeImagesCallable(const Model::DescribeImagesRequest& request) const; + AuthorizeSecurityGroupEgressOutcome authorizeSecurityGroupEgress(const Model::AuthorizeSecurityGroupEgressRequest &request)const; + void authorizeSecurityGroupEgressAsync(const Model::AuthorizeSecurityGroupEgressRequest& request, const AuthorizeSecurityGroupEgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AuthorizeSecurityGroupEgressOutcomeCallable authorizeSecurityGroupEgressCallable(const Model::AuthorizeSecurityGroupEgressRequest& request) const; + SignAgreementOutcome signAgreement(const Model::SignAgreementRequest &request)const; + void signAgreementAsync(const Model::SignAgreementRequest& request, const SignAgreementAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SignAgreementOutcomeCallable signAgreementCallable(const Model::SignAgreementRequest& request) const; + ImportImageOutcome importImage(const Model::ImportImageRequest &request)const; + void importImageAsync(const Model::ImportImageRequest& request, const ImportImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ImportImageOutcomeCallable importImageCallable(const Model::ImportImageRequest& request) const; + ModifyForwardEntryOutcome modifyForwardEntry(const Model::ModifyForwardEntryRequest &request)const; + void modifyForwardEntryAsync(const Model::ModifyForwardEntryRequest& request, const ModifyForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyForwardEntryOutcomeCallable modifyForwardEntryCallable(const Model::ModifyForwardEntryRequest& request) const; + 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; + 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; + CopyImageOutcome copyImage(const Model::CopyImageRequest &request)const; + void copyImageAsync(const Model::CopyImageRequest& request, const CopyImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CopyImageOutcomeCallable copyImageCallable(const Model::CopyImageRequest& request) const; + DescribeInstanceMonitorDataOutcome describeInstanceMonitorData(const Model::DescribeInstanceMonitorDataRequest &request)const; + void describeInstanceMonitorDataAsync(const Model::DescribeInstanceMonitorDataRequest& request, const DescribeInstanceMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceMonitorDataOutcomeCallable describeInstanceMonitorDataCallable(const Model::DescribeInstanceMonitorDataRequest& request) const; + UnassociateEipAddressOutcome unassociateEipAddress(const Model::UnassociateEipAddressRequest &request)const; + void unassociateEipAddressAsync(const Model::UnassociateEipAddressRequest& request, const UnassociateEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnassociateEipAddressOutcomeCallable unassociateEipAddressCallable(const Model::UnassociateEipAddressRequest& request) const; + CreateSnapshotOutcome createSnapshot(const Model::CreateSnapshotRequest &request)const; + void createSnapshotAsync(const Model::CreateSnapshotRequest& request, const CreateSnapshotAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSnapshotOutcomeCallable createSnapshotCallable(const Model::CreateSnapshotRequest& 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; + DetachKeyPairOutcome detachKeyPair(const Model::DetachKeyPairRequest &request)const; + void detachKeyPairAsync(const Model::DetachKeyPairRequest& request, const DetachKeyPairAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachKeyPairOutcomeCallable detachKeyPairCallable(const Model::DetachKeyPairRequest& request) const; + DescribeTasksOutcome describeTasks(const Model::DescribeTasksRequest &request)const; + void describeTasksAsync(const Model::DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTasksOutcomeCallable describeTasksCallable(const Model::DescribeTasksRequest& request) const; + LeaveSecurityGroupOutcome leaveSecurityGroup(const Model::LeaveSecurityGroupRequest &request)const; + void leaveSecurityGroupAsync(const Model::LeaveSecurityGroupRequest& request, const LeaveSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LeaveSecurityGroupOutcomeCallable leaveSecurityGroupCallable(const Model::LeaveSecurityGroupRequest& request) const; + DescribeRenewalPriceOutcome describeRenewalPrice(const Model::DescribeRenewalPriceRequest &request)const; + void describeRenewalPriceAsync(const Model::DescribeRenewalPriceRequest& request, const DescribeRenewalPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRenewalPriceOutcomeCallable describeRenewalPriceCallable(const Model::DescribeRenewalPriceRequest& request) const; + DescribeInstanceVncPasswdOutcome describeInstanceVncPasswd(const Model::DescribeInstanceVncPasswdRequest &request)const; + void describeInstanceVncPasswdAsync(const Model::DescribeInstanceVncPasswdRequest& request, const DescribeInstanceVncPasswdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceVncPasswdOutcomeCallable describeInstanceVncPasswdCallable(const Model::DescribeInstanceVncPasswdRequest& 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; + ModifySecurityGroupRuleOutcome modifySecurityGroupRule(const Model::ModifySecurityGroupRuleRequest &request)const; + void modifySecurityGroupRuleAsync(const Model::ModifySecurityGroupRuleRequest& request, const ModifySecurityGroupRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySecurityGroupRuleOutcomeCallable modifySecurityGroupRuleCallable(const Model::ModifySecurityGroupRuleRequest& request) const; + ImportKeyPairOutcome importKeyPair(const Model::ImportKeyPairRequest &request)const; + void importKeyPairAsync(const Model::ImportKeyPairRequest& request, const ImportKeyPairAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ImportKeyPairOutcomeCallable importKeyPairCallable(const Model::ImportKeyPairRequest& 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; + UnbindIpRangeOutcome unbindIpRange(const Model::UnbindIpRangeRequest &request)const; + void unbindIpRangeAsync(const Model::UnbindIpRangeRequest& request, const UnbindIpRangeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindIpRangeOutcomeCallable unbindIpRangeCallable(const Model::UnbindIpRangeRequest& request) const; + DeleteRecycleBinOutcome deleteRecycleBin(const Model::DeleteRecycleBinRequest &request)const; + void deleteRecycleBinAsync(const Model::DeleteRecycleBinRequest& request, const DeleteRecycleBinAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRecycleBinOutcomeCallable deleteRecycleBinCallable(const Model::DeleteRecycleBinRequest& request) const; + DescribeInstanceRamRoleOutcome describeInstanceRamRole(const Model::DescribeInstanceRamRoleRequest &request)const; + void describeInstanceRamRoleAsync(const Model::DescribeInstanceRamRoleRequest& request, const DescribeInstanceRamRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceRamRoleOutcomeCallable describeInstanceRamRoleCallable(const Model::DescribeInstanceRamRoleRequest& request) const; + CreateImageOutcome createImage(const Model::CreateImageRequest &request)const; + void createImageAsync(const Model::CreateImageRequest& request, const CreateImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateImageOutcomeCallable createImageCallable(const Model::CreateImageRequest& request) const; + DescribeHaVipsOutcome describeHaVips(const Model::DescribeHaVipsRequest &request)const; + void describeHaVipsAsync(const Model::DescribeHaVipsRequest& request, const DescribeHaVipsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHaVipsOutcomeCallable describeHaVipsCallable(const Model::DescribeHaVipsRequest& request) const; + DescribeInstanceAttributeOutcome describeInstanceAttribute(const Model::DescribeInstanceAttributeRequest &request)const; + void describeInstanceAttributeAsync(const Model::DescribeInstanceAttributeRequest& request, const DescribeInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceAttributeOutcomeCallable describeInstanceAttributeCallable(const Model::DescribeInstanceAttributeRequest& request) const; + DetachDiskOutcome detachDisk(const Model::DetachDiskRequest &request)const; + void detachDiskAsync(const Model::DetachDiskRequest& request, const DetachDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachDiskOutcomeCallable detachDiskCallable(const Model::DetachDiskRequest& request) const; + ModifyImageAttributeOutcome modifyImageAttribute(const Model::ModifyImageAttributeRequest &request)const; + void modifyImageAttributeAsync(const Model::ModifyImageAttributeRequest& request, const ModifyImageAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyImageAttributeOutcomeCallable modifyImageAttributeCallable(const Model::ModifyImageAttributeRequest& request) const; + AddBandwidthPackageIpsOutcome addBandwidthPackageIps(const Model::AddBandwidthPackageIpsRequest &request)const; + void addBandwidthPackageIpsAsync(const Model::AddBandwidthPackageIpsRequest& request, const AddBandwidthPackageIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddBandwidthPackageIpsOutcomeCallable addBandwidthPackageIpsCallable(const Model::AddBandwidthPackageIpsRequest& request) const; + DescribeInstanceStatusOutcome describeInstanceStatus(const Model::DescribeInstanceStatusRequest &request)const; + void describeInstanceStatusAsync(const Model::DescribeInstanceStatusRequest& request, const DescribeInstanceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceStatusOutcomeCallable describeInstanceStatusCallable(const Model::DescribeInstanceStatusRequest& request) const; + DescribeNatGatewaysOutcome describeNatGateways(const Model::DescribeNatGatewaysRequest &request)const; + void describeNatGatewaysAsync(const Model::DescribeNatGatewaysRequest& request, const DescribeNatGatewaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNatGatewaysOutcomeCallable describeNatGatewaysCallable(const Model::DescribeNatGatewaysRequest& request) const; + DeleteHpcClusterOutcome deleteHpcCluster(const Model::DeleteHpcClusterRequest &request)const; + void deleteHpcClusterAsync(const Model::DeleteHpcClusterRequest& request, const DeleteHpcClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteHpcClusterOutcomeCallable deleteHpcClusterCallable(const Model::DeleteHpcClusterRequest& request) const; + ResetDiskOutcome resetDisk(const Model::ResetDiskRequest &request)const; + void resetDiskAsync(const Model::ResetDiskRequest& request, const ResetDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetDiskOutcomeCallable resetDiskCallable(const Model::ResetDiskRequest& request) const; + ModifyDiskChargeTypeOutcome modifyDiskChargeType(const Model::ModifyDiskChargeTypeRequest &request)const; + void modifyDiskChargeTypeAsync(const Model::ModifyDiskChargeTypeRequest& request, const ModifyDiskChargeTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDiskChargeTypeOutcomeCallable modifyDiskChargeTypeCallable(const Model::ModifyDiskChargeTypeRequest& request) const; + ModifyIntranetBandwidthKbOutcome modifyIntranetBandwidthKb(const Model::ModifyIntranetBandwidthKbRequest &request)const; + void modifyIntranetBandwidthKbAsync(const Model::ModifyIntranetBandwidthKbRequest& request, const ModifyIntranetBandwidthKbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyIntranetBandwidthKbOutcomeCallable modifyIntranetBandwidthKbCallable(const Model::ModifyIntranetBandwidthKbRequest& request) const; + DescribeBandwidthPackagesOutcome describeBandwidthPackages(const Model::DescribeBandwidthPackagesRequest &request)const; + void describeBandwidthPackagesAsync(const Model::DescribeBandwidthPackagesRequest& request, const DescribeBandwidthPackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBandwidthPackagesOutcomeCallable describeBandwidthPackagesCallable(const Model::DescribeBandwidthPackagesRequest& request) const; + ApplyAutoSnapshotPolicyOutcome applyAutoSnapshotPolicy(const Model::ApplyAutoSnapshotPolicyRequest &request)const; + void applyAutoSnapshotPolicyAsync(const Model::ApplyAutoSnapshotPolicyRequest& request, const ApplyAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ApplyAutoSnapshotPolicyOutcomeCallable applyAutoSnapshotPolicyCallable(const Model::ApplyAutoSnapshotPolicyRequest& request) const; + CreateSecurityGroupOutcome createSecurityGroup(const Model::CreateSecurityGroupRequest &request)const; + void createSecurityGroupAsync(const Model::CreateSecurityGroupRequest& request, const CreateSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSecurityGroupOutcomeCallable createSecurityGroupCallable(const Model::CreateSecurityGroupRequest& request) const; + DescribeSnapshotLinksOutcome describeSnapshotLinks(const Model::DescribeSnapshotLinksRequest &request)const; + void describeSnapshotLinksAsync(const Model::DescribeSnapshotLinksRequest& request, const DescribeSnapshotLinksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSnapshotLinksOutcomeCallable describeSnapshotLinksCallable(const Model::DescribeSnapshotLinksRequest& request) const; + DescribeInvocationResultsOutcome describeInvocationResults(const Model::DescribeInvocationResultsRequest &request)const; + void describeInvocationResultsAsync(const Model::DescribeInvocationResultsRequest& request, const DescribeInvocationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInvocationResultsOutcomeCallable describeInvocationResultsCallable(const Model::DescribeInvocationResultsRequest& request) const; + DescribeRecommendInstanceTypeOutcome describeRecommendInstanceType(const Model::DescribeRecommendInstanceTypeRequest &request)const; + void describeRecommendInstanceTypeAsync(const Model::DescribeRecommendInstanceTypeRequest& request, const DescribeRecommendInstanceTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRecommendInstanceTypeOutcomeCallable describeRecommendInstanceTypeCallable(const Model::DescribeRecommendInstanceTypeRequest& 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; + DeleteInstanceOutcome deleteInstance(const Model::DeleteInstanceRequest &request)const; + void deleteInstanceAsync(const Model::DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteInstanceOutcomeCallable deleteInstanceCallable(const Model::DeleteInstanceRequest& request) const; + DescribeIntranetAttributeKbOutcome describeIntranetAttributeKb(const Model::DescribeIntranetAttributeKbRequest &request)const; + void describeIntranetAttributeKbAsync(const Model::DescribeIntranetAttributeKbRequest& request, const DescribeIntranetAttributeKbAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIntranetAttributeKbOutcomeCallable describeIntranetAttributeKbCallable(const Model::DescribeIntranetAttributeKbRequest& request) const; + RemoveBandwidthPackageIpsOutcome removeBandwidthPackageIps(const Model::RemoveBandwidthPackageIpsRequest &request)const; + void removeBandwidthPackageIpsAsync(const Model::RemoveBandwidthPackageIpsRequest& request, const RemoveBandwidthPackageIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveBandwidthPackageIpsOutcomeCallable removeBandwidthPackageIpsCallable(const Model::RemoveBandwidthPackageIpsRequest& request) const; + ModifyVpcAttributeOutcome modifyVpcAttribute(const Model::ModifyVpcAttributeRequest &request)const; + void modifyVpcAttributeAsync(const Model::ModifyVpcAttributeRequest& request, const ModifyVpcAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVpcAttributeOutcomeCallable modifyVpcAttributeCallable(const Model::ModifyVpcAttributeRequest& request) const; + DescribeSnapshotsUsageOutcome describeSnapshotsUsage(const Model::DescribeSnapshotsUsageRequest &request)const; + void describeSnapshotsUsageAsync(const Model::DescribeSnapshotsUsageRequest& request, const DescribeSnapshotsUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSnapshotsUsageOutcomeCallable describeSnapshotsUsageCallable(const Model::DescribeSnapshotsUsageRequest& request) const; + DeleteAutoSnapshotPolicyOutcome deleteAutoSnapshotPolicy(const Model::DeleteAutoSnapshotPolicyRequest &request)const; + void deleteAutoSnapshotPolicyAsync(const Model::DeleteAutoSnapshotPolicyRequest& request, const DeleteAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAutoSnapshotPolicyOutcomeCallable deleteAutoSnapshotPolicyCallable(const Model::DeleteAutoSnapshotPolicyRequest& request) const; + ModifySecurityGroupEgressRuleOutcome modifySecurityGroupEgressRule(const Model::ModifySecurityGroupEgressRuleRequest &request)const; + void modifySecurityGroupEgressRuleAsync(const Model::ModifySecurityGroupEgressRuleRequest& request, const ModifySecurityGroupEgressRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySecurityGroupEgressRuleOutcomeCallable modifySecurityGroupEgressRuleCallable(const Model::ModifySecurityGroupEgressRuleRequest& request) const; + CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const; + void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const; + EnablePhysicalConnectionOutcome enablePhysicalConnection(const Model::EnablePhysicalConnectionRequest &request)const; + void enablePhysicalConnectionAsync(const Model::EnablePhysicalConnectionRequest& request, const EnablePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnablePhysicalConnectionOutcomeCallable enablePhysicalConnectionCallable(const Model::EnablePhysicalConnectionRequest& request) const; + DescribeInstanceTypeFamiliesOutcome describeInstanceTypeFamilies(const Model::DescribeInstanceTypeFamiliesRequest &request)const; + void describeInstanceTypeFamiliesAsync(const Model::DescribeInstanceTypeFamiliesRequest& request, const DescribeInstanceTypeFamiliesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceTypeFamiliesOutcomeCallable describeInstanceTypeFamiliesCallable(const Model::DescribeInstanceTypeFamiliesRequest& request) const; + CreateForwardEntryOutcome createForwardEntry(const Model::CreateForwardEntryRequest &request)const; + void createForwardEntryAsync(const Model::CreateForwardEntryRequest& request, const CreateForwardEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateForwardEntryOutcomeCallable createForwardEntryCallable(const Model::CreateForwardEntryRequest& request) const; + DescribeRouterInterfacesOutcome describeRouterInterfaces(const Model::DescribeRouterInterfacesRequest &request)const; + void describeRouterInterfacesAsync(const Model::DescribeRouterInterfacesRequest& request, const DescribeRouterInterfacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRouterInterfacesOutcomeCallable describeRouterInterfacesCallable(const Model::DescribeRouterInterfacesRequest& request) const; + EipNotifyPaidOutcome eipNotifyPaid(const Model::EipNotifyPaidRequest &request)const; + void eipNotifyPaidAsync(const Model::EipNotifyPaidRequest& request, const EipNotifyPaidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EipNotifyPaidOutcomeCallable eipNotifyPaidCallable(const Model::EipNotifyPaidRequest& request) const; + ReleasePublicIpAddressOutcome releasePublicIpAddress(const Model::ReleasePublicIpAddressRequest &request)const; + void releasePublicIpAddressAsync(const Model::ReleasePublicIpAddressRequest& request, const ReleasePublicIpAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleasePublicIpAddressOutcomeCallable releasePublicIpAddressCallable(const Model::ReleasePublicIpAddressRequest& 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; + EipFillParamsOutcome eipFillParams(const Model::EipFillParamsRequest &request)const; + void eipFillParamsAsync(const Model::EipFillParamsRequest& request, const EipFillParamsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EipFillParamsOutcomeCallable eipFillParamsCallable(const Model::EipFillParamsRequest& request) const; + ModifyPrepayInstanceSpecOutcome modifyPrepayInstanceSpec(const Model::ModifyPrepayInstanceSpecRequest &request)const; + void modifyPrepayInstanceSpecAsync(const Model::ModifyPrepayInstanceSpecRequest& request, const ModifyPrepayInstanceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyPrepayInstanceSpecOutcomeCallable modifyPrepayInstanceSpecCallable(const Model::ModifyPrepayInstanceSpecRequest& request) const; + EipFillProductOutcome eipFillProduct(const Model::EipFillProductRequest &request)const; + void eipFillProductAsync(const Model::EipFillProductRequest& request, const EipFillProductAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EipFillProductOutcomeCallable eipFillProductCallable(const Model::EipFillProductRequest& request) const; + DescribeRouteTablesOutcome describeRouteTables(const Model::DescribeRouteTablesRequest &request)const; + void describeRouteTablesAsync(const Model::DescribeRouteTablesRequest& request, const DescribeRouteTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRouteTablesOutcomeCallable describeRouteTablesCallable(const Model::DescribeRouteTablesRequest& request) const; + DescribeUserDataOutcome describeUserData(const Model::DescribeUserDataRequest &request)const; + void describeUserDataAsync(const Model::DescribeUserDataRequest& request, const DescribeUserDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserDataOutcomeCallable describeUserDataCallable(const Model::DescribeUserDataRequest& request) const; + JoinResourceGroupOutcome joinResourceGroup(const Model::JoinResourceGroupRequest &request)const; + void joinResourceGroupAsync(const Model::JoinResourceGroupRequest& request, const JoinResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + JoinResourceGroupOutcomeCallable joinResourceGroupCallable(const Model::JoinResourceGroupRequest& request) const; + ModifyAutoSnapshotPolicyExOutcome modifyAutoSnapshotPolicyEx(const Model::ModifyAutoSnapshotPolicyExRequest &request)const; + void modifyAutoSnapshotPolicyExAsync(const Model::ModifyAutoSnapshotPolicyExRequest& request, const ModifyAutoSnapshotPolicyExAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAutoSnapshotPolicyExOutcomeCallable modifyAutoSnapshotPolicyExCallable(const Model::ModifyAutoSnapshotPolicyExRequest& request) const; + CreatePhysicalConnectionOutcome createPhysicalConnection(const Model::CreatePhysicalConnectionRequest &request)const; + void createPhysicalConnectionAsync(const Model::CreatePhysicalConnectionRequest& request, const CreatePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePhysicalConnectionOutcomeCallable createPhysicalConnectionCallable(const Model::CreatePhysicalConnectionRequest& request) const; + DescribeKeyPairsOutcome describeKeyPairs(const Model::DescribeKeyPairsRequest &request)const; + void describeKeyPairsAsync(const Model::DescribeKeyPairsRequest& request, const DescribeKeyPairsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeKeyPairsOutcomeCallable describeKeyPairsCallable(const Model::DescribeKeyPairsRequest& request) const; + ModifySecurityGroupPolicyOutcome modifySecurityGroupPolicy(const Model::ModifySecurityGroupPolicyRequest &request)const; + void modifySecurityGroupPolicyAsync(const Model::ModifySecurityGroupPolicyRequest& request, const ModifySecurityGroupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySecurityGroupPolicyOutcomeCallable modifySecurityGroupPolicyCallable(const Model::ModifySecurityGroupPolicyRequest& request) const; + AssociateHaVipOutcome associateHaVip(const Model::AssociateHaVipRequest &request)const; + void associateHaVipAsync(const Model::AssociateHaVipRequest& request, const AssociateHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateHaVipOutcomeCallable associateHaVipCallable(const Model::AssociateHaVipRequest& request) const; + ConvertNatPublicIpToEipOutcome convertNatPublicIpToEip(const Model::ConvertNatPublicIpToEipRequest &request)const; + void convertNatPublicIpToEipAsync(const Model::ConvertNatPublicIpToEipRequest& request, const ConvertNatPublicIpToEipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ConvertNatPublicIpToEipOutcomeCallable convertNatPublicIpToEipCallable(const Model::ConvertNatPublicIpToEipRequest& request) const; + DeleteRouteEntryOutcome deleteRouteEntry(const Model::DeleteRouteEntryRequest &request)const; + void deleteRouteEntryAsync(const Model::DeleteRouteEntryRequest& request, const DeleteRouteEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRouteEntryOutcomeCallable deleteRouteEntryCallable(const Model::DeleteRouteEntryRequest& request) const; + DeleteVirtualBorderRouterOutcome deleteVirtualBorderRouter(const Model::DeleteVirtualBorderRouterRequest &request)const; + void deleteVirtualBorderRouterAsync(const Model::DeleteVirtualBorderRouterRequest& request, const DeleteVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVirtualBorderRouterOutcomeCallable deleteVirtualBorderRouterCallable(const Model::DeleteVirtualBorderRouterRequest& request) const; + DescribeInstancePhysicalAttributeOutcome describeInstancePhysicalAttribute(const Model::DescribeInstancePhysicalAttributeRequest &request)const; + void describeInstancePhysicalAttributeAsync(const Model::DescribeInstancePhysicalAttributeRequest& request, const DescribeInstancePhysicalAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstancePhysicalAttributeOutcomeCallable describeInstancePhysicalAttributeCallable(const Model::DescribeInstancePhysicalAttributeRequest& 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; + AttachNetworkInterfaceOutcome attachNetworkInterface(const Model::AttachNetworkInterfaceRequest &request)const; + void attachNetworkInterfaceAsync(const Model::AttachNetworkInterfaceRequest& request, const AttachNetworkInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachNetworkInterfaceOutcomeCallable attachNetworkInterfaceCallable(const Model::AttachNetworkInterfaceRequest& request) const; + DescribeSecurityGroupAttributeOutcome describeSecurityGroupAttribute(const Model::DescribeSecurityGroupAttributeRequest &request)const; + void describeSecurityGroupAttributeAsync(const Model::DescribeSecurityGroupAttributeRequest& request, const DescribeSecurityGroupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSecurityGroupAttributeOutcomeCallable describeSecurityGroupAttributeCallable(const Model::DescribeSecurityGroupAttributeRequest& request) const; + ModifyImageSharePermissionOutcome modifyImageSharePermission(const Model::ModifyImageSharePermissionRequest &request)const; + void modifyImageSharePermissionAsync(const Model::ModifyImageSharePermissionRequest& request, const ModifyImageSharePermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyImageSharePermissionOutcomeCallable modifyImageSharePermissionCallable(const Model::ModifyImageSharePermissionRequest& request) const; + DescribeAutoSnapshotPolicyExOutcome describeAutoSnapshotPolicyEx(const Model::DescribeAutoSnapshotPolicyExRequest &request)const; + void describeAutoSnapshotPolicyExAsync(const Model::DescribeAutoSnapshotPolicyExRequest& request, const DescribeAutoSnapshotPolicyExAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAutoSnapshotPolicyExOutcomeCallable describeAutoSnapshotPolicyExCallable(const Model::DescribeAutoSnapshotPolicyExRequest& request) const; + DescribeImageSharePermissionOutcome describeImageSharePermission(const Model::DescribeImageSharePermissionRequest &request)const; + void describeImageSharePermissionAsync(const Model::DescribeImageSharePermissionRequest& request, const DescribeImageSharePermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeImageSharePermissionOutcomeCallable describeImageSharePermissionCallable(const Model::DescribeImageSharePermissionRequest& request) const; + CancelCopyImageOutcome cancelCopyImage(const Model::CancelCopyImageRequest &request)const; + void cancelCopyImageAsync(const Model::CancelCopyImageRequest& request, const CancelCopyImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelCopyImageOutcomeCallable cancelCopyImageCallable(const Model::CancelCopyImageRequest& request) const; + CreateDeploymentSetOutcome createDeploymentSet(const Model::CreateDeploymentSetRequest &request)const; + void createDeploymentSetAsync(const Model::CreateDeploymentSetRequest& request, const CreateDeploymentSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDeploymentSetOutcomeCallable createDeploymentSetCallable(const Model::CreateDeploymentSetRequest& 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; + DescribeClassicLinkInstancesOutcome describeClassicLinkInstances(const Model::DescribeClassicLinkInstancesRequest &request)const; + void describeClassicLinkInstancesAsync(const Model::DescribeClassicLinkInstancesRequest& request, const DescribeClassicLinkInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClassicLinkInstancesOutcomeCallable describeClassicLinkInstancesCallable(const Model::DescribeClassicLinkInstancesRequest& request) const; + DescribeAutoSnapshotPolicyOutcome describeAutoSnapshotPolicy(const Model::DescribeAutoSnapshotPolicyRequest &request)const; + void describeAutoSnapshotPolicyAsync(const Model::DescribeAutoSnapshotPolicyRequest& request, const DescribeAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAutoSnapshotPolicyOutcomeCallable describeAutoSnapshotPolicyCallable(const Model::DescribeAutoSnapshotPolicyRequest& 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; + DescribeRecycleBinOutcome describeRecycleBin(const Model::DescribeRecycleBinRequest &request)const; + void describeRecycleBinAsync(const Model::DescribeRecycleBinRequest& request, const DescribeRecycleBinAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRecycleBinOutcomeCallable describeRecycleBinCallable(const Model::DescribeRecycleBinRequest& request) const; + CreateNetworkInterfaceOutcome createNetworkInterface(const Model::CreateNetworkInterfaceRequest &request)const; + void createNetworkInterfaceAsync(const Model::CreateNetworkInterfaceRequest& request, const CreateNetworkInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNetworkInterfaceOutcomeCallable createNetworkInterfaceCallable(const Model::CreateNetworkInterfaceRequest& request) const; + DescribeIpRangesOutcome describeIpRanges(const Model::DescribeIpRangesRequest &request)const; + void describeIpRangesAsync(const Model::DescribeIpRangesRequest& request, const DescribeIpRangesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIpRangesOutcomeCallable describeIpRangesCallable(const Model::DescribeIpRangesRequest& 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; + 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; + DescribeNetworkInterfacesOutcome describeNetworkInterfaces(const Model::DescribeNetworkInterfacesRequest &request)const; + void describeNetworkInterfacesAsync(const Model::DescribeNetworkInterfacesRequest& request, const DescribeNetworkInterfacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNetworkInterfacesOutcomeCallable describeNetworkInterfacesCallable(const Model::DescribeNetworkInterfacesRequest& request) const; + ModifyNetworkInterfaceAttributeOutcome modifyNetworkInterfaceAttribute(const Model::ModifyNetworkInterfaceAttributeRequest &request)const; + void modifyNetworkInterfaceAttributeAsync(const Model::ModifyNetworkInterfaceAttributeRequest& request, const ModifyNetworkInterfaceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyNetworkInterfaceAttributeOutcomeCallable modifyNetworkInterfaceAttributeCallable(const Model::ModifyNetworkInterfaceAttributeRequest& request) const; + DetachNetworkInterfaceOutcome detachNetworkInterface(const Model::DetachNetworkInterfaceRequest &request)const; + void detachNetworkInterfaceAsync(const Model::DetachNetworkInterfaceRequest& request, const DetachNetworkInterfaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachNetworkInterfaceOutcomeCallable detachNetworkInterfaceCallable(const Model::DetachNetworkInterfaceRequest& request) const; + AllocateEipAddressOutcome allocateEipAddress(const Model::AllocateEipAddressRequest &request)const; + void allocateEipAddressAsync(const Model::AllocateEipAddressRequest& request, const AllocateEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocateEipAddressOutcomeCallable allocateEipAddressCallable(const Model::AllocateEipAddressRequest& request) const; + DeleteDiskOutcome deleteDisk(const Model::DeleteDiskRequest &request)const; + void deleteDiskAsync(const Model::DeleteDiskRequest& request, const DeleteDiskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDiskOutcomeCallable deleteDiskCallable(const Model::DeleteDiskRequest& request) const; + UnassociateHaVipOutcome unassociateHaVip(const Model::UnassociateHaVipRequest &request)const; + void unassociateHaVipAsync(const Model::UnassociateHaVipRequest& request, const UnassociateHaVipAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnassociateHaVipOutcomeCallable unassociateHaVipCallable(const Model::UnassociateHaVipRequest& request) const; + ModifyHaVipAttributeOutcome modifyHaVipAttribute(const Model::ModifyHaVipAttributeRequest &request)const; + void modifyHaVipAttributeAsync(const Model::ModifyHaVipAttributeRequest& request, const ModifyHaVipAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyHaVipAttributeOutcomeCallable modifyHaVipAttributeCallable(const Model::ModifyHaVipAttributeRequest& request) const; + CreateKeyPairOutcome createKeyPair(const Model::CreateKeyPairRequest &request)const; + void createKeyPairAsync(const Model::CreateKeyPairRequest& request, const CreateKeyPairAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateKeyPairOutcomeCallable createKeyPairCallable(const Model::CreateKeyPairRequest& request) const; + AttachClassicLinkVpcOutcome attachClassicLinkVpc(const Model::AttachClassicLinkVpcRequest &request)const; + void attachClassicLinkVpcAsync(const Model::AttachClassicLinkVpcRequest& request, const AttachClassicLinkVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachClassicLinkVpcOutcomeCallable attachClassicLinkVpcCallable(const Model::AttachClassicLinkVpcRequest& request) const; + DescribeDeploymentSetsOutcome describeDeploymentSets(const Model::DescribeDeploymentSetsRequest &request)const; + void describeDeploymentSetsAsync(const Model::DescribeDeploymentSetsRequest& request, const DescribeDeploymentSetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDeploymentSetsOutcomeCallable describeDeploymentSetsCallable(const Model::DescribeDeploymentSetsRequest& request) const; + AttachInstanceRamRoleOutcome attachInstanceRamRole(const Model::AttachInstanceRamRoleRequest &request)const; + void attachInstanceRamRoleAsync(const Model::AttachInstanceRamRoleRequest& request, const AttachInstanceRamRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachInstanceRamRoleOutcomeCallable attachInstanceRamRoleCallable(const Model::AttachInstanceRamRoleRequest& request) const; + ModifyVRouterAttributeOutcome modifyVRouterAttribute(const Model::ModifyVRouterAttributeRequest &request)const; + void modifyVRouterAttributeAsync(const Model::ModifyVRouterAttributeRequest& request, const ModifyVRouterAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVRouterAttributeOutcomeCallable modifyVRouterAttributeCallable(const Model::ModifyVRouterAttributeRequest& request) const; + + private: + virtual EndpointOutcome endpoint()const override; + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_ECS_ECSCLIENT_H_ diff --git a/ecs/include/alibabacloud/ecs/EcsExport.h b/ecs/include/alibabacloud/ecs/EcsExport.h new file mode 100644 index 000000000..751efe3ab --- /dev/null +++ b/ecs/include/alibabacloud/ecs/EcsExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_ECSEXPORT_H_ +#define ALIBABACLOUD_ECS_ECSEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_ECS_LIBRARY) +# define ALIBABACLOUD_ECS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_ECS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_ECS_EXPORT +#endif + +#endif // !ALIBABACLOUD_ECS_ECSEXPORT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/EcsRequest.h b/ecs/include/alibabacloud/ecs/EcsRequest.h new file mode 100644 index 000000000..2d34c261a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/EcsRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_ECSREQUEST_H_ +#define ALIBABACLOUD_ECS_ECSREQUEST_H_ + +#include +#include "EcsExport.h" + +namespace AlibabaCloud +{ + namespace Ecs + { + class ALIBABACLOUD_ECS_EXPORT EcsRequest : public RpcServiceRequest + { + public: + explicit EcsRequest(const std::string & action); + virtual ~EcsRequest(); + + private: + + }; + } +} + +#endif // !ALIBABACLOUD_ECS_ECSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceRequest.h new file mode 100644 index 000000000..9105a0d02 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceRequest.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ActivateRouterInterfaceRequest : public EcsRequest + { + + public: + ActivateRouterInterfaceRequest(); + ~ActivateRouterInterfaceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRouterInterfaceId()const; + void setRouterInterfaceId(const std::string& routerInterfaceId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + long ownerId_; + std::string routerInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceResult.h new file mode 100644 index 000000000..c4aa29ac9 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ActivateRouterInterfaceResult : public ServiceResult + { + public: + + + ActivateRouterInterfaceResult(); + explicit ActivateRouterInterfaceResult(const std::string &payload); + ~ActivateRouterInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsRequest.h b/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsRequest.h new file mode 100644 index 000000000..cdeec2b7c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AddBandwidthPackageIpsRequest : public EcsRequest + { + + public: + AddBandwidthPackageIpsRequest(); + ~AddBandwidthPackageIpsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getIpCount()const; + void setIpCount(const std::string& ipCount); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + long ownerId_; + std::string ipCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsResult.h b/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsResult.h new file mode 100644 index 000000000..cddc1f096 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AddBandwidthPackageIpsResult : public ServiceResult + { + public: + + + AddBandwidthPackageIpsResult(); + explicit AddBandwidthPackageIpsResult(const std::string &payload); + ~AddBandwidthPackageIpsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AddIpRangeRequest.h b/ecs/include/alibabacloud/ecs/model/AddIpRangeRequest.h new file mode 100644 index 000000000..b20148e40 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AddIpRangeRequest.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_ECS_MODEL_ADDIPRANGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ADDIPRANGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AddIpRangeRequest : public EcsRequest + { + + public: + AddIpRangeRequest(); + ~AddIpRangeRequest(); + + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string ipAddress_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string zoneId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ADDIPRANGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AddIpRangeResult.h b/ecs/include/alibabacloud/ecs/model/AddIpRangeResult.h new file mode 100644 index 000000000..8cd100740 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AddIpRangeResult.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_ECS_MODEL_ADDIPRANGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ADDIPRANGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AddIpRangeResult : public ServiceResult + { + public: + + + AddIpRangeResult(); + explicit AddIpRangeResult(const std::string &payload); + ~AddIpRangeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ADDIPRANGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AddTagsRequest.h b/ecs/include/alibabacloud/ecs/model/AddTagsRequest.h new file mode 100644 index 000000000..416f90fec --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AddTagsRequest.h @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ADDTAGSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ADDTAGSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AddTagsRequest : public EcsRequest + { + + public: + AddTagsRequest(); + ~AddTagsRequest(); + + std::string getTag4Value()const; + void setTag4Value(const std::string& tag4Value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + std::string getTag2Key()const; + void setTag2Key(const std::string& tag2Key); + std::string getTag5Key()const; + void setTag5Key(const std::string& tag5Key); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getTag3Key()const; + void setTag3Key(const std::string& tag3Key); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getTag5Value()const; + void setTag5Value(const std::string& tag5Value); + std::string getTag1Key()const; + void setTag1Key(const std::string& tag1Key); + std::string getTag1Value()const; + void setTag1Value(const std::string& tag1Value); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTag2Value()const; + void setTag2Value(const std::string& tag2Value); + std::string getTag4Key()const; + void setTag4Key(const std::string& tag4Key); + std::string getTag3Value()const; + void setTag3Value(const std::string& tag3Value); + + private: + std::string tag4Value_; + long resourceOwnerId_; + std::string resourceId_; + std::string tag2Key_; + std::string tag5Key_; + std::string resourceOwnerAccount_; + std::string tag3Key_; + long ownerId_; + std::string resourceType_; + std::string tag5Value_; + std::string tag1Key_; + std::string tag1Value_; + std::string regionId_; + std::string tag2Value_; + std::string tag4Key_; + std::string tag3Value_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ADDTAGSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AddTagsResult.h b/ecs/include/alibabacloud/ecs/model/AddTagsResult.h new file mode 100644 index 000000000..fcff7e62c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AddTagsResult.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_ECS_MODEL_ADDTAGSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ADDTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AddTagsResult : public ServiceResult + { + public: + + + AddTagsResult(); + explicit AddTagsResult(const std::string &payload); + ~AddTagsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ADDTAGSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AllocateEipAddressRequest.h b/ecs/include/alibabacloud/ecs/model/AllocateEipAddressRequest.h new file mode 100644 index 000000000..fe43fc71b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AllocateEipAddressRequest.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_ECS_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AllocateEipAddressRequest : public EcsRequest + { + + public: + AllocateEipAddressRequest(); + ~AllocateEipAddressRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getBandwidth()const; + void setBandwidth(const std::string& bandwidth); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInternetChargeType()const; + void setInternetChargeType(const std::string& internetChargeType); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string bandwidth_; + std::string clientToken_; + std::string internetChargeType_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AllocateEipAddressResult.h b/ecs/include/alibabacloud/ecs/model/AllocateEipAddressResult.h new file mode 100644 index 000000000..8fb0df6ae --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AllocateEipAddressResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AllocateEipAddressResult : public ServiceResult + { + public: + + + AllocateEipAddressResult(); + explicit AllocateEipAddressResult(const std::string &payload); + ~AllocateEipAddressResult(); + std::string getAllocationId()const; + void setAllocationId(const std::string& allocationId); + std::string getEipAddress()const; + void setEipAddress(const std::string& eipAddress); + + protected: + void parse(const std::string &payload); + private: + std::string allocationId_; + std::string eipAddress_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressRequest.h b/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressRequest.h new file mode 100644 index 000000000..8a7ddd5f8 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressRequest.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_ECS_MODEL_ALLOCATEPUBLICIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AllocatePublicIpAddressRequest : public EcsRequest + { + + public: + AllocatePublicIpAddressRequest(); + ~AllocatePublicIpAddressRequest(); + + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getVlanId()const; + void setVlanId(const std::string& vlanId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string ipAddress_; + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string vlanId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressResult.h b/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressResult.h new file mode 100644 index 000000000..2c6c85207 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AllocatePublicIpAddressResult : public ServiceResult + { + public: + + + AllocatePublicIpAddressResult(); + explicit AllocatePublicIpAddressResult(const std::string &payload); + ~AllocatePublicIpAddressResult(); + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); + + protected: + void parse(const std::string &payload); + private: + std::string ipAddress_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyRequest.h new file mode 100644 index 000000000..3cf7f769b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ApplyAutoSnapshotPolicyRequest : public EcsRequest + { + + public: + ApplyAutoSnapshotPolicyRequest(); + ~ApplyAutoSnapshotPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAutoSnapshotPolicyId()const; + void setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId); + std::string getDiskIds()const; + void setDiskIds(const std::string& diskIds); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string autoSnapshotPolicyId_; + std::string diskIds_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyResult.h b/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyResult.h new file mode 100644 index 000000000..3e95b5824 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyResult.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_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ApplyAutoSnapshotPolicyResult : public ServiceResult + { + public: + + + ApplyAutoSnapshotPolicyResult(); + explicit ApplyAutoSnapshotPolicyResult(const std::string &payload); + ~ApplyAutoSnapshotPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AssociateEipAddressRequest.h b/ecs/include/alibabacloud/ecs/model/AssociateEipAddressRequest.h new file mode 100644 index 000000000..42c1fdc69 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AssociateEipAddressRequest.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_ECS_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AssociateEipAddressRequest : public EcsRequest + { + + public: + AssociateEipAddressRequest(); + ~AssociateEipAddressRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getAllocationId()const; + void setAllocationId(const std::string& allocationId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string instanceType_; + std::string allocationId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AssociateEipAddressResult.h b/ecs/include/alibabacloud/ecs/model/AssociateEipAddressResult.h new file mode 100644 index 000000000..15aa0d5dc --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AssociateEipAddressResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AssociateEipAddressResult : public ServiceResult + { + public: + + + AssociateEipAddressResult(); + explicit AssociateEipAddressResult(const std::string &payload); + ~AssociateEipAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AssociateHaVipRequest.h b/ecs/include/alibabacloud/ecs/model/AssociateHaVipRequest.h new file mode 100644 index 000000000..89fc90811 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AssociateHaVipRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AssociateHaVipRequest : public EcsRequest + { + + public: + AssociateHaVipRequest(); + ~AssociateHaVipRequest(); + + std::string getHaVipId()const; + void setHaVipId(const std::string& haVipId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string haVipId_; + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AssociateHaVipResult.h b/ecs/include/alibabacloud/ecs/model/AssociateHaVipResult.h new file mode 100644 index 000000000..10bbf4252 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AssociateHaVipResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AssociateHaVipResult : public ServiceResult + { + public: + + + AssociateHaVipResult(); + explicit AssociateHaVipResult(const std::string &payload); + ~AssociateHaVipResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcRequest.h b/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcRequest.h new file mode 100644 index 000000000..dfa2191b1 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachClassicLinkVpcRequest : public EcsRequest + { + + public: + AttachClassicLinkVpcRequest(); + ~AttachClassicLinkVpcRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string vpcId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcResult.h b/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcResult.h new file mode 100644 index 000000000..6b47ac436 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcResult.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_ECS_MODEL_ATTACHCLASSICLINKVPCRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachClassicLinkVpcResult : public ServiceResult + { + public: + + + AttachClassicLinkVpcResult(); + explicit AttachClassicLinkVpcResult(const std::string &payload); + ~AttachClassicLinkVpcResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachDiskRequest.h b/ecs/include/alibabacloud/ecs/model/AttachDiskRequest.h new file mode 100644 index 000000000..16d0e3d8c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AttachDiskRequest.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_ECS_MODEL_ATTACHDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHDISKREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachDiskRequest : public EcsRequest + { + + public: + AttachDiskRequest(); + ~AttachDiskRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDiskId()const; + void setDiskId(const std::string& diskId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDevice()const; + void setDevice(const std::string& device); + bool getDeleteWithInstance()const; + void setDeleteWithInstance(bool deleteWithInstance); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string diskId_; + long ownerId_; + std::string device_; + bool deleteWithInstance_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHDISKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachDiskResult.h b/ecs/include/alibabacloud/ecs/model/AttachDiskResult.h new file mode 100644 index 000000000..d357aee6b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AttachDiskResult.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_ECS_MODEL_ATTACHDISKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachDiskResult : public ServiceResult + { + public: + + + AttachDiskResult(); + explicit AttachDiskResult(const std::string &payload); + ~AttachDiskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHDISKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleRequest.h b/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleRequest.h new file mode 100644 index 000000000..41431a93b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachInstanceRamRoleRequest : public EcsRequest + { + + public: + AttachInstanceRamRoleRequest(); + ~AttachInstanceRamRoleRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInstanceIds()const; + void setInstanceIds(const std::string& instanceIds); + std::string getRamRoleName()const; + void setRamRoleName(const std::string& ramRoleName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string instanceIds_; + std::string ramRoleName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleResult.h b/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleResult.h new file mode 100644 index 000000000..29ce23cb1 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleResult.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_ECS_MODEL_ATTACHINSTANCERAMROLERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachInstanceRamRoleResult : public ServiceResult + { + public: + struct Result + { + std::string message; + std::string instanceId; + std::string code; + bool success; + }; + + + AttachInstanceRamRoleResult(); + explicit AttachInstanceRamRoleResult(const std::string &payload); + ~AttachInstanceRamRoleResult(); + std::vector getAttachInstanceRamRoleResults()const; + void setAttachInstanceRamRoleResults(const std::vector& attachInstanceRamRoleResults); + int getTotalCount()const; + void setTotalCount(int totalCount); + std::string getRamRoleName()const; + void setRamRoleName(const std::string& ramRoleName); + int getFailCount()const; + void setFailCount(int failCount); + + protected: + void parse(const std::string &payload); + private: + std::vector attachInstanceRamRoleResults_; + int totalCount_; + std::string ramRoleName_; + int failCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachKeyPairRequest.h b/ecs/include/alibabacloud/ecs/model/AttachKeyPairRequest.h new file mode 100644 index 000000000..c5c2626d9 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AttachKeyPairRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachKeyPairRequest : public EcsRequest + { + + public: + AttachKeyPairRequest(); + ~AttachKeyPairRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInstanceIds()const; + void setInstanceIds(const std::string& instanceIds); + std::string getKeyPairName()const; + void setKeyPairName(const std::string& keyPairName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string instanceIds_; + std::string keyPairName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachKeyPairResult.h b/ecs/include/alibabacloud/ecs/model/AttachKeyPairResult.h new file mode 100644 index 000000000..2a59c80c8 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AttachKeyPairResult.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_ECS_MODEL_ATTACHKEYPAIRRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachKeyPairResult : public ServiceResult + { + public: + struct Result + { + std::string message; + std::string instanceId; + std::string code; + std::string success; + }; + + + AttachKeyPairResult(); + explicit AttachKeyPairResult(const std::string &payload); + ~AttachKeyPairResult(); + std::string getKeyPairName()const; + void setKeyPairName(const std::string& keyPairName); + std::string getTotalCount()const; + void setTotalCount(const std::string& totalCount); + std::vector getResults()const; + void setResults(const std::vector& results); + std::string getFailCount()const; + void setFailCount(const std::string& failCount); + + protected: + void parse(const std::string &payload); + private: + std::string keyPairName_; + std::string totalCount_; + std::vector results_; + std::string failCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h new file mode 100644 index 000000000..3f70a6d0f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachNetworkInterfaceRequest : public EcsRequest + { + + public: + AttachNetworkInterfaceRequest(); + ~AttachNetworkInterfaceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getNetworkInterfaceId()const; + void setNetworkInterfaceId(const std::string& networkInterfaceId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string instanceId_; + std::string requestId_; + std::string networkInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceResult.h new file mode 100644 index 000000000..4937fefb4 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceResult.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_ECS_MODEL_ATTACHNETWORKINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AttachNetworkInterfaceResult : public ServiceResult + { + public: + + + AttachNetworkInterfaceResult(); + explicit AttachNetworkInterfaceResult(const std::string &payload); + ~AttachNetworkInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h new file mode 100644 index 000000000..3f34035e9 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h @@ -0,0 +1,158 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupEgressRequest : public EcsRequest + { + + public: + AuthorizeSecurityGroupEgressRequest(); + ~AuthorizeSecurityGroupEgressRequest(); + + std::string getNicType()const; + void setNicType(const std::string& nicType); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePortRange()const; + void setSourcePortRange(const std::string& sourcePortRange); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getPolicy()const; + void setPolicy(const std::string& policy); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPortRange()const; + void setPortRange(const std::string& portRange); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSourceCidrIp()const; + void setSourceCidrIp(const std::string& sourceCidrIp); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getDestGroupId()const; + void setDestGroupId(const std::string& destGroupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDestGroupOwnerAccount()const; + void setDestGroupOwnerAccount(const std::string& destGroupOwnerAccount); + std::string getPriority()const; + void setPriority(const std::string& priority); + std::string getDestCidrIp()const; + void setDestCidrIp(const std::string& destCidrIp); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + long getDestGroupOwnerId()const; + void setDestGroupOwnerId(long destGroupOwnerId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + std::string nicType_; + long resourceOwnerId_; + std::string sourcePortRange_; + std::string clientToken_; + long callerParentId_; + std::string securityGroupId_; + bool proxy_original_security_transport_; + std::string description_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string policy_; + std::string app_ip_; + std::string portRange_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string sourceCidrIp_; + std::string callerBid_; + std::string destGroupId_; + long ownerId_; + std::string destGroupOwnerAccount_; + std::string priority_; + std::string destCidrIp_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + long destGroupOwnerId_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressResult.h b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressResult.h new file mode 100644 index 000000000..ba212d756 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressResult.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_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupEgressResult : public ServiceResult + { + public: + + + AuthorizeSecurityGroupEgressResult(); + explicit AuthorizeSecurityGroupEgressResult(const std::string &payload); + ~AuthorizeSecurityGroupEgressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h new file mode 100644 index 000000000..ba4ee3b70 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h @@ -0,0 +1,158 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupRequest : public EcsRequest + { + + public: + AuthorizeSecurityGroupRequest(); + ~AuthorizeSecurityGroupRequest(); + + std::string getNicType()const; + void setNicType(const std::string& nicType); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePortRange()const; + void setSourcePortRange(const std::string& sourcePortRange); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + long getSourceGroupOwnerId()const; + void setSourceGroupOwnerId(long sourceGroupOwnerId); + std::string getSourceGroupOwnerAccount()const; + void setSourceGroupOwnerAccount(const std::string& sourceGroupOwnerAccount); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getPolicy()const; + void setPolicy(const std::string& policy); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPortRange()const; + void setPortRange(const std::string& portRange); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSourceCidrIp()const; + void setSourceCidrIp(const std::string& sourceCidrIp); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPriority()const; + void setPriority(const std::string& priority); + std::string getDestCidrIp()const; + void setDestCidrIp(const std::string& destCidrIp); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getSourceGroupId()const; + void setSourceGroupId(const std::string& sourceGroupId); + + private: + std::string nicType_; + long resourceOwnerId_; + std::string sourcePortRange_; + std::string clientToken_; + long callerParentId_; + std::string securityGroupId_; + bool proxy_original_security_transport_; + std::string description_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + long sourceGroupOwnerId_; + std::string sourceGroupOwnerAccount_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string policy_; + std::string app_ip_; + std::string portRange_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string sourceCidrIp_; + std::string callerBid_; + long ownerId_; + std::string priority_; + std::string destCidrIp_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string sourceGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupResult.h b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupResult.h new file mode 100644 index 000000000..5be18e12e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupResult.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_ECS_MODEL_AUTHORIZESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupResult : public ServiceResult + { + public: + + + AuthorizeSecurityGroupResult(); + explicit AuthorizeSecurityGroupResult(const std::string &payload); + ~AuthorizeSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/BindIpRangeRequest.h b/ecs/include/alibabacloud/ecs/model/BindIpRangeRequest.h new file mode 100644 index 000000000..d582ac76b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/BindIpRangeRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_BINDIPRANGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_BINDIPRANGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT BindIpRangeRequest : public EcsRequest + { + + public: + BindIpRangeRequest(); + ~BindIpRangeRequest(); + + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string ipAddress_; + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_BINDIPRANGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/BindIpRangeResult.h b/ecs/include/alibabacloud/ecs/model/BindIpRangeResult.h new file mode 100644 index 000000000..36ebd6a90 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/BindIpRangeResult.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_ECS_MODEL_BINDIPRANGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_BINDIPRANGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT BindIpRangeResult : public ServiceResult + { + public: + + + BindIpRangeResult(); + explicit BindIpRangeResult(const std::string &payload); + ~BindIpRangeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_BINDIPRANGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelAgreementRequest.h b/ecs/include/alibabacloud/ecs/model/CancelAgreementRequest.h new file mode 100644 index 000000000..916c439cd --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CancelAgreementRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELAGREEMENTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELAGREEMENTREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelAgreementRequest : public EcsRequest + { + + public: + CancelAgreementRequest(); + ~CancelAgreementRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getAgreementType()const; + void setAgreementType(const std::string& agreementType); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long callerParentId_; + std::string ownerAccount_; + bool proxy_original_security_transport_; + std::string callerBid_; + long ownerId_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string requestId_; + bool enable_; + std::string requestContent_; + std::string agreementType_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELAGREEMENTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelAgreementResult.h b/ecs/include/alibabacloud/ecs/model/CancelAgreementResult.h new file mode 100644 index 000000000..1438417d2 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CancelAgreementResult.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_ECS_MODEL_CANCELAGREEMENTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELAGREEMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelAgreementResult : public ServiceResult + { + public: + + + CancelAgreementResult(); + explicit CancelAgreementResult(const std::string &payload); + ~CancelAgreementResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELAGREEMENTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyRequest.h new file mode 100644 index 000000000..b7d9876e3 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyRequest.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_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelAutoSnapshotPolicyRequest : public EcsRequest + { + + public: + CancelAutoSnapshotPolicyRequest(); + ~CancelAutoSnapshotPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDiskIds()const; + void setDiskIds(const std::string& diskIds); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string diskIds_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyResult.h b/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyResult.h new file mode 100644 index 000000000..589566d3f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyResult.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_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelAutoSnapshotPolicyResult : public ServiceResult + { + public: + + + CancelAutoSnapshotPolicyResult(); + explicit CancelAutoSnapshotPolicyResult(const std::string &payload); + ~CancelAutoSnapshotPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelCopyImageRequest.h b/ecs/include/alibabacloud/ecs/model/CancelCopyImageRequest.h new file mode 100644 index 000000000..2f2addbc0 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CancelCopyImageRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelCopyImageRequest : public EcsRequest + { + + public: + CancelCopyImageRequest(); + ~CancelCopyImageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string imageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelCopyImageResult.h b/ecs/include/alibabacloud/ecs/model/CancelCopyImageResult.h new file mode 100644 index 000000000..8927c48d4 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CancelCopyImageResult.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_ECS_MODEL_CANCELCOPYIMAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelCopyImageResult : public ServiceResult + { + public: + + + CancelCopyImageResult(); + explicit CancelCopyImageResult(const std::string &payload); + ~CancelCopyImageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionRequest.h new file mode 100644 index 000000000..aa7ba9bfb --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionRequest.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_ECS_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelPhysicalConnectionRequest : public EcsRequest + { + + public: + CancelPhysicalConnectionRequest(); + ~CancelPhysicalConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string physicalConnectionId_; + std::string ownerAccount_; + std::string userCidr_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionResult.h b/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionResult.h new file mode 100644 index 000000000..eb2ad60a5 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelPhysicalConnectionResult : public ServiceResult + { + public: + + + CancelPhysicalConnectionResult(); + explicit CancelPhysicalConnectionResult(const std::string &payload); + ~CancelPhysicalConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelTaskRequest.h b/ecs/include/alibabacloud/ecs/model/CancelTaskRequest.h new file mode 100644 index 000000000..a9146ef60 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CancelTaskRequest.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_ECS_MODEL_CANCELTASKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELTASKREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelTaskRequest : public EcsRequest + { + + public: + CancelTaskRequest(); + ~CancelTaskRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + long ownerId_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELTASKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CancelTaskResult.h b/ecs/include/alibabacloud/ecs/model/CancelTaskResult.h new file mode 100644 index 000000000..a7511b204 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CancelTaskResult.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_ECS_MODEL_CANCELTASKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CancelTaskResult : public ServiceResult + { + public: + + + CancelTaskResult(); + explicit CancelTaskResult(const std::string &payload); + ~CancelTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELTASKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyRequest.h new file mode 100644 index 000000000..39bb6db81 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyRequest.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CHECKAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CHECKAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CheckAutoSnapshotPolicyRequest : public EcsRequest + { + + public: + CheckAutoSnapshotPolicyRequest(); + ~CheckAutoSnapshotPolicyRequest(); + + bool getDataDiskPolicyEnabled()const; + void setDataDiskPolicyEnabled(bool dataDiskPolicyEnabled); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getDataDiskPolicyRetentionDays()const; + void setDataDiskPolicyRetentionDays(int dataDiskPolicyRetentionDays); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + bool getSystemDiskPolicyRetentionLastWeek()const; + void setSystemDiskPolicyRetentionLastWeek(bool systemDiskPolicyRetentionLastWeek); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getSystemDiskPolicyTimePeriod()const; + void setSystemDiskPolicyTimePeriod(int systemDiskPolicyTimePeriod); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getDataDiskPolicyRetentionLastWeek()const; + void setDataDiskPolicyRetentionLastWeek(bool dataDiskPolicyRetentionLastWeek); + int getSystemDiskPolicyRetentionDays()const; + void setSystemDiskPolicyRetentionDays(int systemDiskPolicyRetentionDays); + int getDataDiskPolicyTimePeriod()const; + void setDataDiskPolicyTimePeriod(int dataDiskPolicyTimePeriod); + bool getSystemDiskPolicyEnabled()const; + void setSystemDiskPolicyEnabled(bool systemDiskPolicyEnabled); + + private: + bool dataDiskPolicyEnabled_; + long resourceOwnerId_; + int dataDiskPolicyRetentionDays_; + std::string resourceOwnerAccount_; + bool systemDiskPolicyRetentionLastWeek_; + std::string ownerAccount_; + int systemDiskPolicyTimePeriod_; + long ownerId_; + bool dataDiskPolicyRetentionLastWeek_; + int systemDiskPolicyRetentionDays_; + int dataDiskPolicyTimePeriod_; + bool systemDiskPolicyEnabled_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CHECKAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyResult.h b/ecs/include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyResult.h new file mode 100644 index 000000000..7e3a1ed51 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CheckAutoSnapshotPolicyResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CHECKAUTOSNAPSHOTPOLICYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CHECKAUTOSNAPSHOTPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CheckAutoSnapshotPolicyResult : public ServiceResult + { + public: + + + CheckAutoSnapshotPolicyResult(); + explicit CheckAutoSnapshotPolicyResult(const std::string &payload); + ~CheckAutoSnapshotPolicyResult(); + int getAutoSnapshotOccupation()const; + void setAutoSnapshotOccupation(int autoSnapshotOccupation); + std::string getIsPermittedModify()const; + void setIsPermittedModify(const std::string& isPermittedModify); + + protected: + void parse(const std::string &payload); + private: + int autoSnapshotOccupation_; + std::string isPermittedModify_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CHECKAUTOSNAPSHOTPOLICYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationRequest.h b/ecs/include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationRequest.h new file mode 100644 index 000000000..c5ca0e2bf --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationRequest.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_ECS_MODEL_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CheckDiskEnableAutoSnapshotValidationRequest : public EcsRequest + { + + public: + CheckDiskEnableAutoSnapshotValidationRequest(); + ~CheckDiskEnableAutoSnapshotValidationRequest(); + + 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); + std::string getDiskIds()const; + void setDiskIds(const std::string& diskIds); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string diskIds_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationResult.h b/ecs/include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationResult.h new file mode 100644 index 000000000..e99c195de --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CheckDiskEnableAutoSnapshotValidationResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CheckDiskEnableAutoSnapshotValidationResult : public ServiceResult + { + public: + + + CheckDiskEnableAutoSnapshotValidationResult(); + explicit CheckDiskEnableAutoSnapshotValidationResult(const std::string &payload); + ~CheckDiskEnableAutoSnapshotValidationResult(); + int getAutoSnapshotOccupation()const; + void setAutoSnapshotOccupation(int autoSnapshotOccupation); + std::string getIsPermitted()const; + void setIsPermitted(const std::string& isPermitted); + + protected: + void parse(const std::string &payload); + private: + int autoSnapshotOccupation_; + std::string isPermitted_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CHECKDISKENABLEAUTOSNAPSHOTVALIDATIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceRequest.h new file mode 100644 index 000000000..fd3607229 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceRequest.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ConnectRouterInterfaceRequest : public EcsRequest + { + + public: + ConnectRouterInterfaceRequest(); + ~ConnectRouterInterfaceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRouterInterfaceId()const; + void setRouterInterfaceId(const std::string& routerInterfaceId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + long ownerId_; + std::string routerInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceResult.h new file mode 100644 index 000000000..14b634c7c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ConnectRouterInterfaceResult : public ServiceResult + { + public: + + + ConnectRouterInterfaceResult(); + explicit ConnectRouterInterfaceResult(const std::string &payload); + ~ConnectRouterInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipRequest.h b/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipRequest.h new file mode 100644 index 000000000..dd2a357c8 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ConvertNatPublicIpToEipRequest : public EcsRequest + { + + public: + ConvertNatPublicIpToEipRequest(); + ~ConvertNatPublicIpToEipRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string callerBid_; + long ownerId_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + std::string accessKeyId_; + bool security_transport_; + std::string instanceId_; + std::string securityToken_; + std::string regionId_; + std::string requestId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipResult.h b/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipResult.h new file mode 100644 index 000000000..cace344e8 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipResult.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_ECS_MODEL_CONVERTNATPUBLICIPTOEIPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ConvertNatPublicIpToEipResult : public ServiceResult + { + public: + + + ConvertNatPublicIpToEipResult(); + explicit ConvertNatPublicIpToEipResult(const std::string &payload); + ~ConvertNatPublicIpToEipResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CopyImageRequest.h b/ecs/include/alibabacloud/ecs/model/CopyImageRequest.h new file mode 100644 index 000000000..eebfac4ef --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CopyImageRequest.h @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_COPYIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_COPYIMAGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CopyImageRequest : public EcsRequest + { + + public: + CopyImageRequest(); + ~CopyImageRequest(); + + std::string getTag4Value()const; + void setTag4Value(const std::string& tag4Value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getTag2Key()const; + void setTag2Key(const std::string& tag2Key); + std::string getTag5Key()const; + void setTag5Key(const std::string& tag5Key); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getDestinationImageName()const; + void setDestinationImageName(const std::string& destinationImageName); + std::string getDestinationRegionId()const; + void setDestinationRegionId(const std::string& destinationRegionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getTag3Key()const; + void setTag3Key(const std::string& tag3Key); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTag5Value()const; + void setTag5Value(const std::string& tag5Value); + std::string getTag1Key()const; + void setTag1Key(const std::string& tag1Key); + std::string getTag1Value()const; + void setTag1Value(const std::string& tag1Value); + bool getEncrypted()const; + void setEncrypted(bool encrypted); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTag2Value()const; + void setTag2Value(const std::string& tag2Value); + std::string getTag4Key()const; + void setTag4Key(const std::string& tag4Key); + std::string getDestinationDescription()const; + void setDestinationDescription(const std::string& destinationDescription); + std::string getTag3Value()const; + void setTag3Value(const std::string& tag3Value); + + private: + std::string tag4Value_; + long resourceOwnerId_; + std::string imageId_; + std::string tag2Key_; + std::string tag5Key_; + std::string resourceOwnerAccount_; + std::string destinationImageName_; + std::string destinationRegionId_; + std::string ownerAccount_; + std::string tag3Key_; + long ownerId_; + std::string tag5Value_; + std::string tag1Key_; + std::string tag1Value_; + bool encrypted_; + std::string regionId_; + std::string tag2Value_; + std::string tag4Key_; + std::string destinationDescription_; + std::string tag3Value_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_COPYIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CopyImageResult.h b/ecs/include/alibabacloud/ecs/model/CopyImageResult.h new file mode 100644 index 000000000..a5704cbc0 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CopyImageResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_COPYIMAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_COPYIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CopyImageResult : public ServiceResult + { + public: + + + CopyImageResult(); + explicit CopyImageResult(const std::string &payload); + ~CopyImageResult(); + std::string getImageId()const; + void setImageId(const std::string& imageId); + + protected: + void parse(const std::string &payload); + private: + std::string imageId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_COPYIMAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h new file mode 100644 index 000000000..52164bf97 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.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_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateAutoSnapshotPolicyRequest : public EcsRequest + { + + public: + CreateAutoSnapshotPolicyRequest(); + ~CreateAutoSnapshotPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTimePoints()const; + void setTimePoints(const std::string& timePoints); + int getRetentionDays()const; + void setRetentionDays(int retentionDays); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRepeatWeekdays()const; + void setRepeatWeekdays(const std::string& repeatWeekdays); + std::string getAutoSnapshotPolicyName()const; + void setAutoSnapshotPolicyName(const std::string& autoSnapshotPolicyName); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string timePoints_; + int retentionDays_; + long ownerId_; + std::string repeatWeekdays_; + std::string autoSnapshotPolicyName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyResult.h b/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyResult.h new file mode 100644 index 000000000..46f1776ed --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateAutoSnapshotPolicyResult : public ServiceResult + { + public: + + + CreateAutoSnapshotPolicyResult(); + explicit CreateAutoSnapshotPolicyResult(const std::string &payload); + ~CreateAutoSnapshotPolicyResult(); + std::string getAutoSnapshotPolicyId()const; + void setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId); + + protected: + void parse(const std::string &payload); + private: + std::string autoSnapshotPolicyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateCommandRequest.h b/ecs/include/alibabacloud/ecs/model/CreateCommandRequest.h new file mode 100644 index 000000000..eb4fe5200 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateCommandRequest.h @@ -0,0 +1,134 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATECOMMANDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATECOMMANDREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateCommandRequest : public EcsRequest + { + + public: + CreateCommandRequest(); + ~CreateCommandRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getWorkingDir()const; + void setWorkingDir(const std::string& workingDir); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getType()const; + void setType(const std::string& type); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getCommandContent()const; + void setCommandContent(const std::string& commandContent); + long getTimeout()const; + void setTimeout(long timeout); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getName()const; + void setName(const std::string& name); + + private: + long resourceOwnerId_; + long callerParentId_; + std::string workingDir_; + bool proxy_original_security_transport_; + std::string description_; + std::string proxy_original_source_ip_; + std::string type_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string commandContent_; + long timeout_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATECOMMANDREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateCommandResult.h b/ecs/include/alibabacloud/ecs/model/CreateCommandResult.h new file mode 100644 index 000000000..667719229 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateCommandResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATECOMMANDRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATECOMMANDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateCommandResult : public ServiceResult + { + public: + + + CreateCommandResult(); + explicit CreateCommandResult(const std::string &payload); + ~CreateCommandResult(); + std::string getCommandId()const; + void setCommandId(const std::string& commandId); + + protected: + void parse(const std::string &payload); + private: + std::string commandId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATECOMMANDRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetRequest.h b/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetRequest.h new file mode 100644 index 000000000..5d1c8a4a6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetRequest.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateDeploymentSetRequest : public EcsRequest + { + + public: + CreateDeploymentSetRequest(); + ~CreateDeploymentSetRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getDeploymentSetName()const; + void setDeploymentSetName(const std::string& deploymentSetName); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getGranularity()const; + void setGranularity(const std::string& granularity); + std::string getDomain()const; + void setDomain(const std::string& domain); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getStrategy()const; + void setStrategy(const std::string& strategy); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string description_; + std::string deploymentSetName_; + long ownerId_; + std::string regionId_; + std::string granularity_; + std::string domain_; + std::string zoneId_; + std::string strategy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetResult.h b/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetResult.h new file mode 100644 index 000000000..34d6ddead --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateDeploymentSetResult : public ServiceResult + { + public: + + + CreateDeploymentSetResult(); + explicit CreateDeploymentSetResult(const std::string &payload); + ~CreateDeploymentSetResult(); + std::string getDeploymentSetId()const; + void setDeploymentSetId(const std::string& deploymentSetId); + + protected: + void parse(const std::string &payload); + private: + std::string deploymentSetId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateDiskRequest.h b/ecs/include/alibabacloud/ecs/model/CreateDiskRequest.h new file mode 100644 index 000000000..127ba9c95 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateDiskRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEDISKREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateDiskRequest : public EcsRequest + { + + public: + CreateDiskRequest(); + ~CreateDiskRequest(); + + std::string getTag4Value()const; + void setTag4Value(const std::string& tag4Value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnapshotId()const; + void setSnapshotId(const std::string& snapshotId); + std::string getTag2Key()const; + void setTag2Key(const std::string& tag2Key); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getTag3Key()const; + void setTag3Key(const std::string& tag3Key); + std::string getDiskName()const; + void setDiskName(const std::string& diskName); + std::string getTag1Value()const; + void setTag1Value(const std::string& tag1Value); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getDiskCategory()const; + void setDiskCategory(const std::string& diskCategory); + std::string getTag3Value()const; + void setTag3Value(const std::string& tag3Value); + std::string getTag5Key()const; + void setTag5Key(const std::string& tag5Key); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTag5Value()const; + void setTag5Value(const std::string& tag5Value); + std::string getTag1Key()const; + void setTag1Key(const std::string& tag1Key); + int getSize()const; + void setSize(int size); + bool getEncrypted()const; + void setEncrypted(bool encrypted); + std::string getTag2Value()const; + void setTag2Value(const std::string& tag2Value); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getTag4Key()const; + void setTag4Key(const std::string& tag4Key); + + private: + std::string tag4Value_; + long resourceOwnerId_; + std::string snapshotId_; + std::string tag2Key_; + std::string clientToken_; + std::string description_; + std::string tag3Key_; + std::string diskName_; + std::string tag1Value_; + std::string resourceGroupId_; + std::string regionId_; + std::string diskCategory_; + std::string tag3Value_; + std::string tag5Key_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tag5Value_; + std::string tag1Key_; + int size_; + bool encrypted_; + std::string tag2Value_; + std::string zoneId_; + std::string tag4Key_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDISKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateDiskResult.h b/ecs/include/alibabacloud/ecs/model/CreateDiskResult.h new file mode 100644 index 000000000..22181a71e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateDiskResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDISKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateDiskResult : public ServiceResult + { + public: + + + CreateDiskResult(); + explicit CreateDiskResult(const std::string &payload); + ~CreateDiskResult(); + std::string getDiskId()const; + void setDiskId(const std::string& diskId); + + protected: + void parse(const std::string &payload); + private: + std::string diskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDISKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateForwardEntryRequest.h b/ecs/include/alibabacloud/ecs/model/CreateForwardEntryRequest.h new file mode 100644 index 000000000..7e8b434ef --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateForwardEntryRequest.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateForwardEntryRequest : public EcsRequest + { + + public: + CreateForwardEntryRequest(); + ~CreateForwardEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + std::string getInternalPort()const; + void setInternalPort(const std::string& internalPort); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getForwardTableId()const; + void setForwardTableId(const std::string& forwardTableId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getExternalIp()const; + void setExternalIp(const std::string& externalIp); + std::string getExternalPort()const; + void setExternalPort(const std::string& externalPort); + std::string getInternalIp()const; + void setInternalIp(const std::string& internalIp); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ipProtocol_; + std::string internalPort_; + std::string ownerAccount_; + std::string forwardTableId_; + long ownerId_; + std::string externalIp_; + std::string externalPort_; + std::string internalIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateForwardEntryResult.h b/ecs/include/alibabacloud/ecs/model/CreateForwardEntryResult.h new file mode 100644 index 000000000..77db040c7 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateForwardEntryResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateForwardEntryResult : public ServiceResult + { + public: + + + CreateForwardEntryResult(); + explicit CreateForwardEntryResult(const std::string &payload); + ~CreateForwardEntryResult(); + std::string getForwardEntryId()const; + void setForwardEntryId(const std::string& forwardEntryId); + + protected: + void parse(const std::string &payload); + private: + std::string forwardEntryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateHaVipRequest.h b/ecs/include/alibabacloud/ecs/model/CreateHaVipRequest.h new file mode 100644 index 000000000..cb1725b5f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateHaVipRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEHAVIPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEHAVIPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateHaVipRequest : public EcsRequest + { + + public: + CreateHaVipRequest(); + ~CreateHaVipRequest(); + + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string vSwitchId_; + std::string ipAddress_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEHAVIPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateHaVipResult.h b/ecs/include/alibabacloud/ecs/model/CreateHaVipResult.h new file mode 100644 index 000000000..5e94e5a58 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateHaVipResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEHAVIPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEHAVIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateHaVipResult : public ServiceResult + { + public: + + + CreateHaVipResult(); + explicit CreateHaVipResult(const std::string &payload); + ~CreateHaVipResult(); + std::string getHaVipId()const; + void setHaVipId(const std::string& haVipId); + + protected: + void parse(const std::string &payload); + private: + std::string haVipId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEHAVIPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateHpcClusterRequest.h b/ecs/include/alibabacloud/ecs/model/CreateHpcClusterRequest.h new file mode 100644 index 000000000..79589479a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateHpcClusterRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateHpcClusterRequest : public EcsRequest + { + + public: + CreateHpcClusterRequest(); + ~CreateHpcClusterRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getName()const; + void setName(const std::string& name); + + private: + long resourceOwnerId_; + std::string clientToken_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string description_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string regionId_; + std::string securityToken_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateHpcClusterResult.h b/ecs/include/alibabacloud/ecs/model/CreateHpcClusterResult.h new file mode 100644 index 000000000..007397e78 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateHpcClusterResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateHpcClusterResult : public ServiceResult + { + public: + + + CreateHpcClusterResult(); + explicit CreateHpcClusterResult(const std::string &payload); + ~CreateHpcClusterResult(); + std::string getHpcClusterId()const; + void setHpcClusterId(const std::string& hpcClusterId); + + protected: + void parse(const std::string &payload); + private: + std::string hpcClusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateImageRequest.h b/ecs/include/alibabacloud/ecs/model/CreateImageRequest.h new file mode 100644 index 000000000..b223a3b9e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateImageRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEIMAGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateImageRequest : public EcsRequest + { + struct DiskDeviceMapping + { + int size; + std::string snapshotId; + std::string device; + std::string diskType; + }; + + public: + CreateImageRequest(); + ~CreateImageRequest(); + + std::vector getDiskDeviceMapping()const; + void setDiskDeviceMapping(const std::vector& diskDeviceMapping); + std::string getTag4Value()const; + void setTag4Value(const std::string& tag4Value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnapshotId()const; + void setSnapshotId(const std::string& snapshotId); + std::string getTag2Key()const; + void setTag2Key(const std::string& tag2Key); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getTag3Key()const; + void setTag3Key(const std::string& tag3Key); + std::string getPlatform()const; + void setPlatform(const std::string& platform); + std::string getTag1Value()const; + void setTag1Value(const std::string& tag1Value); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getImageName()const; + void setImageName(const std::string& imageName); + std::string getTag3Value()const; + void setTag3Value(const std::string& tag3Value); + std::string getArchitecture()const; + void setArchitecture(const std::string& architecture); + std::string getTag5Key()const; + void setTag5Key(const std::string& tag5Key); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTag5Value()const; + void setTag5Value(const std::string& tag5Value); + std::string getTag1Key()const; + void setTag1Key(const std::string& tag1Key); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTag2Value()const; + void setTag2Value(const std::string& tag2Value); + std::string getImageVersion()const; + void setImageVersion(const std::string& imageVersion); + std::string getTag4Key()const; + void setTag4Key(const std::string& tag4Key); + + private: + std::vector diskDeviceMapping_; + std::string tag4Value_; + long resourceOwnerId_; + std::string snapshotId_; + std::string tag2Key_; + std::string clientToken_; + std::string description_; + std::string tag3Key_; + std::string platform_; + std::string tag1Value_; + std::string regionId_; + std::string imageName_; + std::string tag3Value_; + std::string architecture_; + std::string tag5Key_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tag5Value_; + std::string tag1Key_; + std::string instanceId_; + std::string tag2Value_; + std::string imageVersion_; + std::string tag4Key_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateImageResult.h b/ecs/include/alibabacloud/ecs/model/CreateImageResult.h new file mode 100644 index 000000000..0d0e7987f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateImageResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEIMAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateImageResult : public ServiceResult + { + public: + + + CreateImageResult(); + explicit CreateImageResult(const std::string &payload); + ~CreateImageResult(); + std::string getImageId()const; + void setImageId(const std::string& imageId); + + protected: + void parse(const std::string &payload); + private: + std::string imageId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEIMAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/CreateInstanceRequest.h new file mode 100644 index 000000000..b6663e0c2 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateInstanceRequest.h @@ -0,0 +1,217 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateInstanceRequest : public EcsRequest + { + struct DataDisk + { + int size; + std::string snapshotId; + std::string category; + std::string diskName; + std::string description; + std::string device; + bool deleteWithInstance; + bool encrypted; + }; + + public: + CreateInstanceRequest(); + ~CreateInstanceRequest(); + + std::string getTag4Value()const; + void setTag4Value(const std::string& tag4Value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTag2Key()const; + void setTag2Key(const std::string& tag2Key); + std::string getHpcClusterId()const; + void setHpcClusterId(const std::string& hpcClusterId); + std::string getTag3Key()const; + void setTag3Key(const std::string& tag3Key); + std::string getSecurityEnhancementStrategy()const; + void setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy); + std::string getKeyPairName()const; + void setKeyPairName(const std::string& keyPairName); + float getSpotPriceLimit()const; + void setSpotPriceLimit(float spotPriceLimit); + std::string getTag1Value()const; + void setTag1Value(const std::string& tag1Value); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getHostName()const; + void setHostName(const std::string& hostName); + std::string getPassword()const; + void setPassword(const std::string& password); + int getAutoRenewPeriod()const; + void setAutoRenewPeriod(int autoRenewPeriod); + std::string getNodeControllerId()const; + void setNodeControllerId(const std::string& nodeControllerId); + int getPeriod()const; + void setPeriod(int period); + std::string getTag5Key()const; + void setTag5Key(const std::string& tag5Key); + 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); + std::string getSpotStrategy()const; + void setSpotStrategy(const std::string& spotStrategy); + std::string getPeriodUnit()const; + void setPeriodUnit(const std::string& periodUnit); + std::string getInstanceName()const; + void setInstanceName(const std::string& instanceName); + bool getAutoRenew()const; + void setAutoRenew(bool autoRenew); + std::string getInternetChargeType()const; + void setInternetChargeType(const std::string& internetChargeType); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getTag4Key()const; + void setTag4Key(const std::string& tag4Key); + int getInternetMaxBandwidthIn()const; + void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); + bool getUseAdditionalService()const; + void setUseAdditionalService(bool useAdditionalService); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getVlanId()const; + void setVlanId(const std::string& vlanId); + std::string getIoOptimized()const; + void setIoOptimized(const std::string& ioOptimized); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + int getInternetMaxBandwidthOut()const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getSystemDiskCategory()const; + void setSystemDiskCategory(const std::string& systemDiskCategory); + std::string getUserData()const; + void setUserData(const std::string& userData); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getInstanceChargeType()const; + void setInstanceChargeType(const std::string& instanceChargeType); + std::string getTag3Value()const; + void setTag3Value(const std::string& tag3Value); + std::string getDeploymentSetId()const; + void setDeploymentSetId(const std::string& deploymentSetId); + std::string getInnerIpAddress()const; + void setInnerIpAddress(const std::string& innerIpAddress); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSystemDiskDiskName()const; + void setSystemDiskDiskName(const std::string& systemDiskDiskName); + std::string getRamRoleName()const; + void setRamRoleName(const std::string& ramRoleName); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::vector getDataDisk()const; + void setDataDisk(const std::vector& dataDisk); + std::string getTag5Value()const; + void setTag5Value(const std::string& tag5Value); + std::string getTag1Key()const; + void setTag1Key(const std::string& tag1Key); + int getSystemDiskSize()const; + void setSystemDiskSize(int systemDiskSize); + std::string getTag2Value()const; + void setTag2Value(const std::string& tag2Value); + std::string getSystemDiskDescription()const; + void setSystemDiskDescription(const std::string& systemDiskDescription); + + private: + std::string tag4Value_; + long resourceOwnerId_; + std::string tag2Key_; + std::string hpcClusterId_; + std::string tag3Key_; + std::string securityEnhancementStrategy_; + std::string keyPairName_; + float spotPriceLimit_; + std::string tag1Value_; + std::string resourceGroupId_; + std::string hostName_; + std::string password_; + int autoRenewPeriod_; + std::string nodeControllerId_; + int period_; + std::string tag5Key_; + long ownerId_; + std::string vSwitchId_; + std::string privateIpAddress_; + std::string spotStrategy_; + std::string periodUnit_; + std::string instanceName_; + bool autoRenew_; + std::string internetChargeType_; + std::string zoneId_; + std::string tag4Key_; + int internetMaxBandwidthIn_; + bool useAdditionalService_; + std::string imageId_; + std::string clientToken_; + std::string vlanId_; + std::string ioOptimized_; + std::string securityGroupId_; + int internetMaxBandwidthOut_; + std::string description_; + std::string systemDiskCategory_; + std::string userData_; + std::string regionId_; + std::string instanceType_; + std::string instanceChargeType_; + std::string tag3Value_; + std::string deploymentSetId_; + std::string innerIpAddress_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string systemDiskDiskName_; + std::string ramRoleName_; + std::string clusterId_; + std::vector dataDisk_; + std::string tag5Value_; + std::string tag1Key_; + int systemDiskSize_; + std::string tag2Value_; + std::string systemDiskDescription_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateInstanceResult.h b/ecs/include/alibabacloud/ecs/model/CreateInstanceResult.h new file mode 100644 index 000000000..09ada5c8d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateInstanceResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEINSTANCERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateInstanceResult : public ServiceResult + { + public: + + + CreateInstanceResult(); + explicit CreateInstanceResult(const std::string &payload); + ~CreateInstanceResult(); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + protected: + void parse(const std::string &payload); + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEINSTANCERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateKeyPairRequest.h b/ecs/include/alibabacloud/ecs/model/CreateKeyPairRequest.h new file mode 100644 index 000000000..7a75f1f58 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateKeyPairRequest.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_ECS_MODEL_CREATEKEYPAIRREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateKeyPairRequest : public EcsRequest + { + + public: + CreateKeyPairRequest(); + ~CreateKeyPairRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getKeyPairName()const; + void setKeyPairName(const std::string& keyPairName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string keyPairName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateKeyPairResult.h b/ecs/include/alibabacloud/ecs/model/CreateKeyPairResult.h new file mode 100644 index 000000000..02885afcd --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateKeyPairResult.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_ECS_MODEL_CREATEKEYPAIRRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateKeyPairResult : public ServiceResult + { + public: + + + CreateKeyPairResult(); + explicit CreateKeyPairResult(const std::string &payload); + ~CreateKeyPairResult(); + std::string getKeyPairFingerPrint()const; + void setKeyPairFingerPrint(const std::string& keyPairFingerPrint); + std::string getKeyPairName()const; + void setKeyPairName(const std::string& keyPairName); + std::string getPrivateKeyBody()const; + void setPrivateKeyBody(const std::string& privateKeyBody); + + protected: + void parse(const std::string &payload); + private: + std::string keyPairFingerPrint_; + std::string keyPairName_; + std::string privateKeyBody_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateNatGatewayRequest.h b/ecs/include/alibabacloud/ecs/model/CreateNatGatewayRequest.h new file mode 100644 index 000000000..4eb6dbdf5 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateNatGatewayRequest.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateNatGatewayRequest : public EcsRequest + { + struct BandwidthPackage + { + int ipCount; + int bandwidth; + std::string zone; + }; + + public: + CreateNatGatewayRequest(); + ~CreateNatGatewayRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getName()const; + void setName(const std::string& name); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::vector getBandwidthPackage()const; + void setBandwidthPackage(const std::vector& bandwidthPackage); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string vpcId_; + std::string name_; + std::string description_; + long ownerId_; + std::vector bandwidthPackage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateNatGatewayResult.h b/ecs/include/alibabacloud/ecs/model/CreateNatGatewayResult.h new file mode 100644 index 000000000..e8862540c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateNatGatewayResult.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_ECS_MODEL_CREATENATGATEWAYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateNatGatewayResult : public ServiceResult + { + public: + + + CreateNatGatewayResult(); + explicit CreateNatGatewayResult(const std::string &payload); + ~CreateNatGatewayResult(); + std::vector getForwardTableIds()const; + void setForwardTableIds(const std::vector& forwardTableIds); + std::vector getBandwidthPackageIds()const; + void setBandwidthPackageIds(const std::vector& bandwidthPackageIds); + std::string getNatGatewayId()const; + void setNatGatewayId(const std::string& natGatewayId); + + protected: + void parse(const std::string &payload); + private: + std::vector forwardTableIds_; + std::vector bandwidthPackageIds_; + std::string natGatewayId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h new file mode 100644 index 000000000..6df18c333 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h @@ -0,0 +1,134 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateNetworkInterfaceRequest : public EcsRequest + { + + public: + CreateNetworkInterfaceRequest(); + ~CreateNetworkInterfaceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + std::string getNetworkInterfaceName()const; + void setNetworkInterfaceName(const std::string& networkInterfaceName); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getPrimaryIpAddress()const; + void setPrimaryIpAddress(const std::string& primaryIpAddress); + + private: + long resourceOwnerId_; + std::string clientToken_; + long callerParentId_; + std::string securityGroupId_; + bool proxy_original_security_transport_; + std::string description_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + std::string networkInterfaceName_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string vSwitchId_; + std::string requestId_; + std::string primaryIpAddress_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceResult.h new file mode 100644 index 000000000..eaf49bffb --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateNetworkInterfaceResult : public ServiceResult + { + public: + + + CreateNetworkInterfaceResult(); + explicit CreateNetworkInterfaceResult(const std::string &payload); + ~CreateNetworkInterfaceResult(); + std::string getNetworkInterfaceId()const; + void setNetworkInterfaceId(const std::string& networkInterfaceId); + + protected: + void parse(const std::string &payload); + private: + std::string networkInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionRequest.h new file mode 100644 index 000000000..a82c3de56 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionRequest.h @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreatePhysicalConnectionRequest : public EcsRequest + { + + public: + CreatePhysicalConnectionRequest(); + ~CreatePhysicalConnectionRequest(); + + std::string getAccessPointId()const; + void setAccessPointId(const std::string& accessPointId); + std::string getRedundantPhysicalConnectionId()const; + void setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId); + std::string getPeerLocation()const; + void setPeerLocation(const std::string& peerLocation); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPortType()const; + void setPortType(const std::string& portType); + std::string getCircuitCode()const; + void setCircuitCode(const std::string& circuitCode); + int getBandwidth()const; + void setBandwidth(int bandwidth); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getType()const; + void setType(const std::string& type); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getLineOperator()const; + void setLineOperator(const std::string& lineOperator); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + + private: + std::string accessPointId_; + std::string redundantPhysicalConnectionId_; + std::string peerLocation_; + long resourceOwnerId_; + std::string portType_; + std::string circuitCode_; + int bandwidth_; + std::string clientToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string description_; + std::string type_; + long ownerId_; + std::string lineOperator_; + std::string regionId_; + std::string name_; + std::string userCidr_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionResult.h b/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionResult.h new file mode 100644 index 000000000..59bd08b40 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreatePhysicalConnectionResult : public ServiceResult + { + public: + + + CreatePhysicalConnectionResult(); + explicit CreatePhysicalConnectionResult(const std::string &payload); + ~CreatePhysicalConnectionResult(); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + + protected: + void parse(const std::string &payload); + private: + std::string physicalConnectionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateRouteEntryRequest.h b/ecs/include/alibabacloud/ecs/model/CreateRouteEntryRequest.h new file mode 100644 index 000000000..f48a05308 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateRouteEntryRequest.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_ECS_MODEL_CREATEROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateRouteEntryRequest : public EcsRequest + { + struct NextHopList + { + std::string nextHopType; + std::string nextHopId; + }; + + public: + CreateRouteEntryRequest(); + ~CreateRouteEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getDestinationCidrBlock()const; + void setDestinationCidrBlock(const std::string& destinationCidrBlock); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getNextHopId()const; + void setNextHopId(const std::string& nextHopId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getNextHopType()const; + void setNextHopType(const std::string& nextHopType); + std::vector getNextHopList()const; + void setNextHopList(const std::vector& nextHopList); + std::string getRouteTableId()const; + void setRouteTableId(const std::string& routeTableId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string destinationCidrBlock_; + std::string ownerAccount_; + std::string nextHopId_; + long ownerId_; + std::string nextHopType_; + std::vector nextHopList_; + std::string routeTableId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateRouteEntryResult.h b/ecs/include/alibabacloud/ecs/model/CreateRouteEntryResult.h new file mode 100644 index 000000000..7c5794fb1 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateRouteEntryResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateRouteEntryResult : public ServiceResult + { + public: + + + CreateRouteEntryResult(); + explicit CreateRouteEntryResult(const std::string &payload); + ~CreateRouteEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceRequest.h new file mode 100644 index 000000000..d0aa375ee --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceRequest.h @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateRouterInterfaceRequest : public EcsRequest + { + + public: + CreateRouterInterfaceRequest(); + ~CreateRouterInterfaceRequest(); + + std::string getAccessPointId()const; + void setAccessPointId(const std::string& accessPointId); + std::string getOppositeRouterId()const; + void setOppositeRouterId(const std::string& oppositeRouterId); + std::string getOppositeAccessPointId()const; + void setOppositeAccessPointId(const std::string& oppositeAccessPointId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRole()const; + void setRole(const std::string& role); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOppositeRegionId()const; + void setOppositeRegionId(const std::string& oppositeRegionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getHealthCheckTargetIp()const; + void setHealthCheckTargetIp(const std::string& healthCheckTargetIp); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSpec()const; + void setSpec(const std::string& spec); + std::string getOppositeInterfaceOwnerId()const; + void setOppositeInterfaceOwnerId(const std::string& oppositeInterfaceOwnerId); + std::string getRouterType()const; + void setRouterType(const std::string& routerType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getHealthCheckSourceIp()const; + void setHealthCheckSourceIp(const std::string& healthCheckSourceIp); + std::string getRouterId()const; + void setRouterId(const std::string& routerId); + std::string getOppositeRouterType()const; + void setOppositeRouterType(const std::string& oppositeRouterType); + std::string getName()const; + void setName(const std::string& name); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + std::string getOppositeInterfaceId()const; + void setOppositeInterfaceId(const std::string& oppositeInterfaceId); + + private: + std::string accessPointId_; + std::string oppositeRouterId_; + std::string oppositeAccessPointId_; + long resourceOwnerId_; + std::string role_; + std::string clientToken_; + std::string resourceOwnerAccount_; + std::string oppositeRegionId_; + std::string ownerAccount_; + std::string healthCheckTargetIp_; + std::string description_; + long ownerId_; + std::string spec_; + std::string oppositeInterfaceOwnerId_; + std::string routerType_; + std::string regionId_; + std::string healthCheckSourceIp_; + std::string routerId_; + std::string oppositeRouterType_; + std::string name_; + std::string userCidr_; + std::string oppositeInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceResult.h new file mode 100644 index 000000000..0b218889c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateRouterInterfaceResult : public ServiceResult + { + public: + + + CreateRouterInterfaceResult(); + explicit CreateRouterInterfaceResult(const std::string &payload); + ~CreateRouterInterfaceResult(); + std::string getRouterInterfaceId()const; + void setRouterInterfaceId(const std::string& routerInterfaceId); + + protected: + void parse(const std::string &payload); + private: + std::string routerInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupRequest.h new file mode 100644 index 000000000..e38566067 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupRequest.h @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateSecurityGroupRequest : public EcsRequest + { + + public: + CreateSecurityGroupRequest(); + ~CreateSecurityGroupRequest(); + + std::string getTag4Value()const; + void setTag4Value(const std::string& tag4Value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTag2Key()const; + void setTag2Key(const std::string& tag2Key); + std::string getTag5Key()const; + void setTag5Key(const std::string& tag5Key); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getTag3Key()const; + void setTag3Key(const std::string& tag3Key); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSecurityGroupName()const; + void setSecurityGroupName(const std::string& securityGroupName); + std::string getTag5Value()const; + void setTag5Value(const std::string& tag5Value); + std::string getTag1Key()const; + void setTag1Key(const std::string& tag1Key); + std::string getTag1Value()const; + void setTag1Value(const std::string& tag1Value); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getTag2Value()const; + void setTag2Value(const std::string& tag2Value); + std::string getTag4Key()const; + void setTag4Key(const std::string& tag4Key); + std::string getTag3Value()const; + void setTag3Value(const std::string& tag3Value); + + private: + std::string tag4Value_; + long resourceOwnerId_; + std::string tag2Key_; + std::string tag5Key_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string description_; + std::string tag3Key_; + long ownerId_; + std::string securityGroupName_; + std::string tag5Value_; + std::string tag1Key_; + std::string tag1Value_; + std::string regionId_; + std::string vpcId_; + std::string tag2Value_; + std::string tag4Key_; + std::string tag3Value_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupResult.h b/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupResult.h new file mode 100644 index 000000000..0e0bb806b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateSecurityGroupResult : public ServiceResult + { + public: + + + CreateSecurityGroupResult(); + explicit CreateSecurityGroupResult(const std::string &payload); + ~CreateSecurityGroupResult(); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + + protected: + void parse(const std::string &payload); + private: + std::string securityGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateSnapshotRequest.h b/ecs/include/alibabacloud/ecs/model/CreateSnapshotRequest.h new file mode 100644 index 000000000..403bbc33c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateSnapshotRequest.h @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateSnapshotRequest : public EcsRequest + { + + public: + CreateSnapshotRequest(); + ~CreateSnapshotRequest(); + + std::string getTag4Value()const; + void setTag4Value(const std::string& tag4Value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTag2Key()const; + void setTag2Key(const std::string& tag2Key); + std::string getTag5Key()const; + void setTag5Key(const std::string& tag5Key); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getSnapshotName()const; + void setSnapshotName(const std::string& snapshotName); + std::string getTag3Key()const; + void setTag3Key(const std::string& tag3Key); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTag5Value()const; + void setTag5Value(const std::string& tag5Value); + std::string getTag1Key()const; + void setTag1Key(const std::string& tag1Key); + std::string getTag1Value()const; + void setTag1Value(const std::string& tag1Value); + std::string getTag2Value()const; + void setTag2Value(const std::string& tag2Value); + std::string getTag4Key()const; + void setTag4Key(const std::string& tag4Key); + std::string getDiskId()const; + void setDiskId(const std::string& diskId); + std::string getTag3Value()const; + void setTag3Value(const std::string& tag3Value); + + private: + std::string tag4Value_; + long resourceOwnerId_; + std::string tag2Key_; + std::string tag5Key_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string description_; + std::string snapshotName_; + std::string tag3Key_; + long ownerId_; + std::string tag5Value_; + std::string tag1Key_; + std::string tag1Value_; + std::string tag2Value_; + std::string tag4Key_; + std::string diskId_; + std::string tag3Value_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateSnapshotResult.h b/ecs/include/alibabacloud/ecs/model/CreateSnapshotResult.h new file mode 100644 index 000000000..1b875c91d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateSnapshotResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateSnapshotResult : public ServiceResult + { + public: + + + CreateSnapshotResult(); + explicit CreateSnapshotResult(const std::string &payload); + ~CreateSnapshotResult(); + std::string getSnapshotId()const; + void setSnapshotId(const std::string& snapshotId); + + protected: + void parse(const std::string &payload); + private: + std::string snapshotId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateVSwitchRequest.h b/ecs/include/alibabacloud/ecs/model/CreateVSwitchRequest.h new file mode 100644 index 000000000..3612971fe --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateVSwitchRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateVSwitchRequest : public EcsRequest + { + + public: + CreateVSwitchRequest(); + ~CreateVSwitchRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getVSwitchName()const; + void setVSwitchName(const std::string& vSwitchName); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCidrBlock()const; + void setCidrBlock(const std::string& cidrBlock); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string vpcId_; + std::string vSwitchName_; + std::string ownerAccount_; + std::string cidrBlock_; + std::string zoneId_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateVSwitchResult.h b/ecs/include/alibabacloud/ecs/model/CreateVSwitchResult.h new file mode 100644 index 000000000..6ab23cf97 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateVSwitchResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateVSwitchResult : public ServiceResult + { + public: + + + CreateVSwitchResult(); + explicit CreateVSwitchResult(const std::string &payload); + ~CreateVSwitchResult(); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + + protected: + void parse(const std::string &payload); + private: + std::string vSwitchId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterRequest.h b/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterRequest.h new file mode 100644 index 000000000..c88179bd7 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterRequest.h @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateVirtualBorderRouterRequest : public EcsRequest + { + + public: + CreateVirtualBorderRouterRequest(); + ~CreateVirtualBorderRouterRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCircuitCode()const; + void setCircuitCode(const std::string& circuitCode); + int getVlanId()const; + void setVlanId(int vlanId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPeerGatewayIp()const; + void setPeerGatewayIp(const std::string& peerGatewayIp); + std::string getPeeringSubnetMask()const; + void setPeeringSubnetMask(const std::string& peeringSubnetMask); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + std::string getName()const; + void setName(const std::string& name); + std::string getLocalGatewayIp()const; + void setLocalGatewayIp(const std::string& localGatewayIp); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + long getVbrOwnerId()const; + void setVbrOwnerId(long vbrOwnerId); + + private: + long resourceOwnerId_; + std::string circuitCode_; + int vlanId_; + std::string clientToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + std::string peerGatewayIp_; + std::string peeringSubnetMask_; + std::string regionId_; + std::string physicalConnectionId_; + std::string name_; + std::string localGatewayIp_; + std::string userCidr_; + long vbrOwnerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterResult.h b/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterResult.h new file mode 100644 index 000000000..f3de70707 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateVirtualBorderRouterResult : public ServiceResult + { + public: + + + CreateVirtualBorderRouterResult(); + explicit CreateVirtualBorderRouterResult(const std::string &payload); + ~CreateVirtualBorderRouterResult(); + std::string getVbrId()const; + void setVbrId(const std::string& vbrId); + + protected: + void parse(const std::string &payload); + private: + std::string vbrId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateVpcRequest.h b/ecs/include/alibabacloud/ecs/model/CreateVpcRequest.h new file mode 100644 index 000000000..f3371b48b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateVpcRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVPCREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEVPCREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateVpcRequest : public EcsRequest + { + + public: + CreateVpcRequest(); + ~CreateVpcRequest(); + + std::string getVpcName()const; + void setVpcName(const std::string& vpcName); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCidrBlock()const; + void setCidrBlock(const std::string& cidrBlock); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string vpcName_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string cidrBlock_; + std::string description_; + std::string userCidr_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEVPCREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/CreateVpcResult.h b/ecs/include/alibabacloud/ecs/model/CreateVpcResult.h new file mode 100644 index 000000000..69240b3a0 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/CreateVpcResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVPCRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEVPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT CreateVpcResult : public ServiceResult + { + public: + + + CreateVpcResult(); + explicit CreateVpcResult(const std::string &payload); + ~CreateVpcResult(); + std::string getVRouterId()const; + void setVRouterId(const std::string& vRouterId); + std::string getRouteTableId()const; + void setRouteTableId(const std::string& routeTableId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + + protected: + void parse(const std::string &payload); + private: + std::string vRouterId_; + std::string routeTableId_; + std::string vpcId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEVPCRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceRequest.h new file mode 100644 index 000000000..19e8923ba --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceRequest.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeactivateRouterInterfaceRequest : public EcsRequest + { + + public: + DeactivateRouterInterfaceRequest(); + ~DeactivateRouterInterfaceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRouterInterfaceId()const; + void setRouterInterfaceId(const std::string& routerInterfaceId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + long ownerId_; + std::string routerInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceResult.h new file mode 100644 index 000000000..5c2ddaca5 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeactivateRouterInterfaceResult : public ServiceResult + { + public: + + + DeactivateRouterInterfaceResult(); + explicit DeactivateRouterInterfaceResult(const std::string &payload); + ~DeactivateRouterInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyRequest.h new file mode 100644 index 000000000..4e72c78fb --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyRequest.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_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteAutoSnapshotPolicyRequest : public EcsRequest + { + + public: + DeleteAutoSnapshotPolicyRequest(); + ~DeleteAutoSnapshotPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAutoSnapshotPolicyId()const; + void setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string autoSnapshotPolicyId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyResult.h b/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyResult.h new file mode 100644 index 000000000..a0230c244 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyResult.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_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteAutoSnapshotPolicyResult : public ServiceResult + { + public: + + + DeleteAutoSnapshotPolicyResult(); + explicit DeleteAutoSnapshotPolicyResult(const std::string &payload); + ~DeleteAutoSnapshotPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageRequest.h new file mode 100644 index 000000000..1860573d0 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteBandwidthPackageRequest : public EcsRequest + { + + public: + DeleteBandwidthPackageRequest(); + ~DeleteBandwidthPackageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageResult.h b/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageResult.h new file mode 100644 index 000000000..bdd40b688 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteBandwidthPackageResult : public ServiceResult + { + public: + + + DeleteBandwidthPackageResult(); + explicit DeleteBandwidthPackageResult(const std::string &payload); + ~DeleteBandwidthPackageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteCommandRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteCommandRequest.h new file mode 100644 index 000000000..3a87c273e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteCommandRequest.h @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETECOMMANDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETECOMMANDREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteCommandRequest : public EcsRequest + { + + public: + DeleteCommandRequest(); + ~DeleteCommandRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCommandId()const; + void setCommandId(const std::string& commandId); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string commandId_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETECOMMANDREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteCommandResult.h b/ecs/include/alibabacloud/ecs/model/DeleteCommandResult.h new file mode 100644 index 000000000..2f5b77f7e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteCommandResult.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_ECS_MODEL_DELETECOMMANDRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETECOMMANDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteCommandResult : public ServiceResult + { + public: + + + DeleteCommandResult(); + explicit DeleteCommandResult(const std::string &payload); + ~DeleteCommandResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETECOMMANDRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetRequest.h new file mode 100644 index 000000000..35d5619a4 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteDeploymentSetRequest : public EcsRequest + { + + public: + DeleteDeploymentSetRequest(); + ~DeleteDeploymentSetRequest(); + + std::string getDeploymentSetId()const; + void setDeploymentSetId(const std::string& deploymentSetId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string deploymentSetId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetResult.h b/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetResult.h new file mode 100644 index 000000000..fc6cb45e6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetResult.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_ECS_MODEL_DELETEDEPLOYMENTSETRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteDeploymentSetResult : public ServiceResult + { + public: + + + DeleteDeploymentSetResult(); + explicit DeleteDeploymentSetResult(const std::string &payload); + ~DeleteDeploymentSetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteDiskRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteDiskRequest.h new file mode 100644 index 000000000..ed026b04d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteDiskRequest.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_ECS_MODEL_DELETEDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEDISKREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteDiskRequest : public EcsRequest + { + + public: + DeleteDiskRequest(); + ~DeleteDiskRequest(); + + 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); + std::string getDiskId()const; + void setDiskId(const std::string& diskId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string diskId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDISKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteDiskResult.h b/ecs/include/alibabacloud/ecs/model/DeleteDiskResult.h new file mode 100644 index 000000000..e13c9e24d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteDiskResult.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_ECS_MODEL_DELETEDISKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteDiskResult : public ServiceResult + { + public: + + + DeleteDiskResult(); + explicit DeleteDiskResult(const std::string &payload); + ~DeleteDiskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDISKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryRequest.h new file mode 100644 index 000000000..93301e284 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteForwardEntryRequest : public EcsRequest + { + + public: + DeleteForwardEntryRequest(); + ~DeleteForwardEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getForwardEntryId()const; + void setForwardEntryId(const std::string& forwardEntryId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getForwardTableId()const; + void setForwardTableId(const std::string& forwardTableId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string forwardEntryId_; + std::string ownerAccount_; + std::string forwardTableId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryResult.h b/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryResult.h new file mode 100644 index 000000000..0760b101f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteForwardEntryResult : public ServiceResult + { + public: + + + DeleteForwardEntryResult(); + explicit DeleteForwardEntryResult(const std::string &payload); + ~DeleteForwardEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteHaVipRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteHaVipRequest.h new file mode 100644 index 000000000..844f9c8f2 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteHaVipRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEHAVIPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEHAVIPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteHaVipRequest : public EcsRequest + { + + public: + DeleteHaVipRequest(); + ~DeleteHaVipRequest(); + + std::string getHaVipId()const; + void setHaVipId(const std::string& haVipId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string haVipId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEHAVIPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteHaVipResult.h b/ecs/include/alibabacloud/ecs/model/DeleteHaVipResult.h new file mode 100644 index 000000000..859504cc3 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteHaVipResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEHAVIPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEHAVIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteHaVipResult : public ServiceResult + { + public: + + + DeleteHaVipResult(); + explicit DeleteHaVipResult(const std::string &payload); + ~DeleteHaVipResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEHAVIPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterRequest.h new file mode 100644 index 000000000..f74291fbf --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterRequest.h @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteHpcClusterRequest : public EcsRequest + { + + public: + DeleteHpcClusterRequest(); + ~DeleteHpcClusterRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getHpcClusterId()const; + void setHpcClusterId(const std::string& hpcClusterId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + std::string hpcClusterId_; + std::string clientToken_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string regionId_; + std::string securityToken_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterResult.h b/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterResult.h new file mode 100644 index 000000000..966664bfc --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterResult.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_ECS_MODEL_DELETEHPCCLUSTERRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteHpcClusterResult : public ServiceResult + { + public: + + + DeleteHpcClusterResult(); + explicit DeleteHpcClusterResult(const std::string &payload); + ~DeleteHpcClusterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteImageRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteImageRequest.h new file mode 100644 index 000000000..8ecd0785e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteImageRequest.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_ECS_MODEL_DELETEIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEIMAGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteImageRequest : public EcsRequest + { + + public: + DeleteImageRequest(); + ~DeleteImageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + bool getForce()const; + void setForce(bool force); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string imageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + bool force_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteImageResult.h b/ecs/include/alibabacloud/ecs/model/DeleteImageResult.h new file mode 100644 index 000000000..83ba7b53f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteImageResult.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_ECS_MODEL_DELETEIMAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteImageResult : public ServiceResult + { + public: + + + DeleteImageResult(); + explicit DeleteImageResult(const std::string &payload); + ~DeleteImageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEIMAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteInstanceRequest.h new file mode 100644 index 000000000..4ada5b5f6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteInstanceRequest.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_ECS_MODEL_DELETEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteInstanceRequest : public EcsRequest + { + + public: + DeleteInstanceRequest(); + ~DeleteInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + bool getTerminateSubscription()const; + void setTerminateSubscription(bool terminateSubscription); + bool getForce()const; + void setForce(bool force); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + bool terminateSubscription_; + bool force_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteInstanceResult.h b/ecs/include/alibabacloud/ecs/model/DeleteInstanceResult.h new file mode 100644 index 000000000..390ca364b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteInstanceResult.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_ECS_MODEL_DELETEINSTANCERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteInstanceResult : public ServiceResult + { + public: + + + DeleteInstanceResult(); + explicit DeleteInstanceResult(const std::string &payload); + ~DeleteInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEINSTANCERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsRequest.h new file mode 100644 index 000000000..198456cfc --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsRequest.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_ECS_MODEL_DELETEKEYPAIRSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteKeyPairsRequest : public EcsRequest + { + + public: + DeleteKeyPairsRequest(); + ~DeleteKeyPairsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getKeyPairNames()const; + void setKeyPairNames(const std::string& keyPairNames); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string keyPairNames_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsResult.h b/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsResult.h new file mode 100644 index 000000000..aa229cc7e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsResult.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_ECS_MODEL_DELETEKEYPAIRSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteKeyPairsResult : public ServiceResult + { + public: + + + DeleteKeyPairsResult(); + explicit DeleteKeyPairsResult(const std::string &payload); + ~DeleteKeyPairsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayRequest.h new file mode 100644 index 000000000..0144d1a55 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteNatGatewayRequest : public EcsRequest + { + + public: + DeleteNatGatewayRequest(); + ~DeleteNatGatewayRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getNatGatewayId()const; + void setNatGatewayId(const std::string& natGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string natGatewayId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayResult.h b/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayResult.h new file mode 100644 index 000000000..d3a64d7cf --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteNatGatewayResult : public ServiceResult + { + public: + + + DeleteNatGatewayResult(); + explicit DeleteNatGatewayResult(const std::string &payload); + ~DeleteNatGatewayResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceRequest.h new file mode 100644 index 000000000..1367c9348 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceRequest.h @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteNetworkInterfaceRequest : public EcsRequest + { + + public: + DeleteNetworkInterfaceRequest(); + ~DeleteNetworkInterfaceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getNetworkInterfaceId()const; + void setNetworkInterfaceId(const std::string& networkInterfaceId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string networkInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceResult.h new file mode 100644 index 000000000..cdc123df6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceResult.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_ECS_MODEL_DELETENETWORKINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteNetworkInterfaceResult : public ServiceResult + { + public: + + + DeleteNetworkInterfaceResult(); + explicit DeleteNetworkInterfaceResult(const std::string &payload); + ~DeleteNetworkInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionRequest.h new file mode 100644 index 000000000..f6f2e82cd --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeletePhysicalConnectionRequest : public EcsRequest + { + + public: + DeletePhysicalConnectionRequest(); + ~DeletePhysicalConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string physicalConnectionId_; + std::string ownerAccount_; + std::string userCidr_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionResult.h b/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionResult.h new file mode 100644 index 000000000..d0420f498 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeletePhysicalConnectionResult : public ServiceResult + { + public: + + + DeletePhysicalConnectionResult(); + explicit DeletePhysicalConnectionResult(const std::string &payload); + ~DeletePhysicalConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteRecycleBinRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteRecycleBinRequest.h new file mode 100644 index 000000000..178c2bc19 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteRecycleBinRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETERECYCLEBINREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETERECYCLEBINREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteRecycleBinRequest : public EcsRequest + { + + public: + DeleteRecycleBinRequest(); + ~DeleteRecycleBinRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceIds()const; + void setResourceIds(const std::string& resourceIds); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string resourceIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETERECYCLEBINREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteRecycleBinResult.h b/ecs/include/alibabacloud/ecs/model/DeleteRecycleBinResult.h new file mode 100644 index 000000000..e051fcf89 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteRecycleBinResult.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_ECS_MODEL_DELETERECYCLEBINRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETERECYCLEBINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteRecycleBinResult : public ServiceResult + { + public: + + + DeleteRecycleBinResult(); + explicit DeleteRecycleBinResult(const std::string &payload); + ~DeleteRecycleBinResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETERECYCLEBINRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryRequest.h new file mode 100644 index 000000000..1af8b504a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryRequest.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_ECS_MODEL_DELETEROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteRouteEntryRequest : public EcsRequest + { + struct NextHopList + { + std::string nextHopType; + std::string nextHopId; + }; + + public: + DeleteRouteEntryRequest(); + ~DeleteRouteEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getDestinationCidrBlock()const; + void setDestinationCidrBlock(const std::string& destinationCidrBlock); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getNextHopId()const; + void setNextHopId(const std::string& nextHopId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::vector getNextHopList()const; + void setNextHopList(const std::vector& nextHopList); + std::string getRouteTableId()const; + void setRouteTableId(const std::string& routeTableId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string destinationCidrBlock_; + std::string ownerAccount_; + std::string nextHopId_; + long ownerId_; + std::vector nextHopList_; + std::string routeTableId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryResult.h b/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryResult.h new file mode 100644 index 000000000..5ded8884e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteRouteEntryResult : public ServiceResult + { + public: + + + DeleteRouteEntryResult(); + explicit DeleteRouteEntryResult(const std::string &payload); + ~DeleteRouteEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceRequest.h new file mode 100644 index 000000000..89a688c27 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceRequest.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_ECS_MODEL_DELETEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteRouterInterfaceRequest : public EcsRequest + { + + public: + DeleteRouterInterfaceRequest(); + ~DeleteRouterInterfaceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + std::string getRouterInterfaceId()const; + void setRouterInterfaceId(const std::string& routerInterfaceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string userCidr_; + std::string routerInterfaceId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceResult.h new file mode 100644 index 000000000..b5eafd178 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteRouterInterfaceResult : public ServiceResult + { + public: + + + DeleteRouterInterfaceResult(); + explicit DeleteRouterInterfaceResult(const std::string &payload); + ~DeleteRouterInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupRequest.h new file mode 100644 index 000000000..d60ed13c5 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteSecurityGroupRequest : public EcsRequest + { + + public: + DeleteSecurityGroupRequest(); + ~DeleteSecurityGroupRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string securityGroupId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupResult.h b/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupResult.h new file mode 100644 index 000000000..d2e02e728 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupResult.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_ECS_MODEL_DELETESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteSecurityGroupResult : public ServiceResult + { + public: + + + DeleteSecurityGroupResult(); + explicit DeleteSecurityGroupResult(const std::string &payload); + ~DeleteSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteSnapshotRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteSnapshotRequest.h new file mode 100644 index 000000000..447cfad76 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteSnapshotRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteSnapshotRequest : public EcsRequest + { + + public: + DeleteSnapshotRequest(); + ~DeleteSnapshotRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnapshotId()const; + void setSnapshotId(const std::string& snapshotId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + bool getForce()const; + void setForce(bool force); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string snapshotId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + bool force_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteSnapshotResult.h b/ecs/include/alibabacloud/ecs/model/DeleteSnapshotResult.h new file mode 100644 index 000000000..7f8fdfbbe --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteSnapshotResult.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_ECS_MODEL_DELETESNAPSHOTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteSnapshotResult : public ServiceResult + { + public: + + + DeleteSnapshotResult(); + explicit DeleteSnapshotResult(const std::string &payload); + ~DeleteSnapshotResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteVSwitchRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteVSwitchRequest.h new file mode 100644 index 000000000..c5a3c7a49 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteVSwitchRequest.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteVSwitchRequest : public EcsRequest + { + + public: + DeleteVSwitchRequest(); + ~DeleteVSwitchRequest(); + + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string vSwitchId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteVSwitchResult.h b/ecs/include/alibabacloud/ecs/model/DeleteVSwitchResult.h new file mode 100644 index 000000000..55ac249b9 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteVSwitchResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteVSwitchResult : public ServiceResult + { + public: + + + DeleteVSwitchResult(); + explicit DeleteVSwitchResult(const std::string &payload); + ~DeleteVSwitchResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterRequest.h new file mode 100644 index 000000000..ef18034a8 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterRequest.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_ECS_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteVirtualBorderRouterRequest : public EcsRequest + { + + public: + DeleteVirtualBorderRouterRequest(); + ~DeleteVirtualBorderRouterRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + std::string getVbrId()const; + void setVbrId(const std::string& vbrId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string userCidr_; + std::string vbrId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterResult.h b/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterResult.h new file mode 100644 index 000000000..35c459636 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteVirtualBorderRouterResult : public ServiceResult + { + public: + + + DeleteVirtualBorderRouterResult(); + explicit DeleteVirtualBorderRouterResult(const std::string &payload); + ~DeleteVirtualBorderRouterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteVpcRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteVpcRequest.h new file mode 100644 index 000000000..9e2be630b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteVpcRequest.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVPCREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEVPCREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteVpcRequest : public EcsRequest + { + + public: + DeleteVpcRequest(); + ~DeleteVpcRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string vpcId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEVPCREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DeleteVpcResult.h b/ecs/include/alibabacloud/ecs/model/DeleteVpcResult.h new file mode 100644 index 000000000..7d11e2c3f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DeleteVpcResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVPCRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEVPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DeleteVpcResult : public ServiceResult + { + public: + + + DeleteVpcResult(); + explicit DeleteVpcResult(const std::string &payload); + ~DeleteVpcResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEVPCRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsRequest.h new file mode 100644 index 000000000..cdbe97ece --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsRequest.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_ECS_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAccessPointsRequest : public EcsRequest + { + struct Filter + { + std::string key; + std::vector value; + }; + + public: + DescribeAccessPointsRequest(); + ~DescribeAccessPointsRequest(); + + std::vector getFilter()const; + void setFilter(const std::vector& filter); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getType()const; + void setType(const std::string& type); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::vector filter_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + int pageSize_; + long ownerId_; + std::string type_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsResult.h new file mode 100644 index 000000000..6258af245 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAccessPointsResult : public ServiceResult + { + public: + struct AccessPointType + { + std::string status; + std::string type; + std::string description; + std::string attachedRegionNo; + std::string accessPointId; + std::string hostOperator; + std::string location; + std::string name; + }; + + + DescribeAccessPointsResult(); + explicit DescribeAccessPointsResult(const std::string &payload); + ~DescribeAccessPointsResult(); + std::vector getAccessPointSet()const; + void setAccessPointSet(const std::vector& accessPointSet); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + std::vector accessPointSet_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExRequest.h new file mode 100644 index 000000000..5f149a396 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExRequest.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_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAutoSnapshotPolicyExRequest : public EcsRequest + { + + public: + DescribeAutoSnapshotPolicyExRequest(); + ~DescribeAutoSnapshotPolicyExRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAutoSnapshotPolicyId()const; + void setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string autoSnapshotPolicyId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExResult.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExResult.h new file mode 100644 index 000000000..8e064d6ec --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAutoSnapshotPolicyExResult : public ServiceResult + { + public: + struct AutoSnapshotPolicy + { + std::string status; + std::string timePoints; + int volumeNums; + std::string creationTime; + std::string autoSnapshotPolicyId; + int retentionDays; + std::string regionId; + std::string repeatWeekdays; + std::string autoSnapshotPolicyName; + int diskNums; + }; + + + DescribeAutoSnapshotPolicyExResult(); + explicit DescribeAutoSnapshotPolicyExResult(const std::string &payload); + ~DescribeAutoSnapshotPolicyExResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getAutoSnapshotPolicies()const; + void setAutoSnapshotPolicies(const std::vector& autoSnapshotPolicies); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector autoSnapshotPolicies_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyRequest.h new file mode 100644 index 000000000..91ba70cae --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyRequest.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAutoSnapshotPolicyRequest : public EcsRequest + { + + public: + DescribeAutoSnapshotPolicyRequest(); + ~DescribeAutoSnapshotPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyResult.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyResult.h new file mode 100644 index 000000000..d2f429855 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeAutoSnapshotPolicyResult : public ServiceResult + { + public: + struct AutoSnapshotPolicy + { + std::string systemDiskPolicyTimePeriod; + std::string systemDiskPolicyEnabled; + std::string dataDiskPolicyTimePeriod; + std::string systemDiskPolicyRetentionLastWeek; + std::string systemDiskPolicyRetentionDays; + std::string dataDiskPolicyRetentionDays; + std::string dataDiskPolicyRetentionLastWeek; + std::string dataDiskPolicyEnabled; + }; + struct AutoSnapshotExcutionStatus + { + std::string systemDiskExcutionStatus; + std::string dataDiskExcutionStatus; + }; + + + DescribeAutoSnapshotPolicyResult(); + explicit DescribeAutoSnapshotPolicyResult(const std::string &payload); + ~DescribeAutoSnapshotPolicyResult(); + int getAutoSnapshotOccupation()const; + void setAutoSnapshotOccupation(int autoSnapshotOccupation); + std::vector getAutoSnapshotExcutionStatus()const; + void setAutoSnapshotExcutionStatus(const std::vector& autoSnapshotExcutionStatus); + std::vector getAutoSnapshotPolicy()const; + void setAutoSnapshotPolicy(const std::vector& autoSnapshotPolicy); + + protected: + void parse(const std::string &payload); + private: + int autoSnapshotOccupation_; + std::vector autoSnapshotExcutionStatus_; + std::vector autoSnapshotPolicy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesRequest.h new file mode 100644 index 000000000..e45679222 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeBandwidthPackagesRequest : public EcsRequest + { + + public: + DescribeBandwidthPackagesRequest(); + ~DescribeBandwidthPackagesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getNatGatewayId()const; + void setNatGatewayId(const std::string& natGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string natGatewayId_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesResult.h new file mode 100644 index 000000000..9eb4d5c36 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeBandwidthPackagesResult : public ServiceResult + { + public: + struct BandwidthPackage + { + struct PublicIpAddresse + { + std::string allocationId; + std::string ipAddress; + }; + std::string status; + std::string ipCount; + std::string description; + std::string zoneId; + std::string instanceChargeType; + std::string businessStatus; + std::string name; + std::string internetChargeType; + std::string bandwidth; + std::string creationTime; + std::vector publicIpAddresses; + std::string bandwidthPackageId; + std::string regionId; + std::string natGatewayId; + }; + + + DescribeBandwidthPackagesResult(); + explicit DescribeBandwidthPackagesResult(const std::string &payload); + ~DescribeBandwidthPackagesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getBandwidthPackages()const; + void setBandwidthPackages(const std::vector& bandwidthPackages); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector bandwidthPackages_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesRequest.h new file mode 100644 index 000000000..3d29f2c53 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesRequest.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_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeClassicLinkInstancesRequest : public EcsRequest + { + + public: + DescribeClassicLinkInstancesRequest(); + ~DescribeClassicLinkInstancesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getPageSize()const; + void setPageSize(const std::string& pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPageNumber()const; + void setPageNumber(const std::string& pageNumber); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string vpcId_; + std::string pageSize_; + long ownerId_; + std::string pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesResult.h new file mode 100644 index 000000000..d7d53ad28 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesResult.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_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeClassicLinkInstancesResult : public ServiceResult + { + public: + struct Link + { + std::string vpcId; + std::string instanceId; + }; + + + DescribeClassicLinkInstancesResult(); + explicit DescribeClassicLinkInstancesResult(const std::string &payload); + ~DescribeClassicLinkInstancesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getLinks()const; + void setLinks(const std::vector& links); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector links_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeClustersRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeClustersRequest.h new file mode 100644 index 000000000..a6bc0103e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeClustersRequest.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_ECS_MODEL_DESCRIBECLUSTERSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeClustersRequest : public EcsRequest + { + + public: + DescribeClustersRequest(); + ~DescribeClustersRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeClustersResult.h b/ecs/include/alibabacloud/ecs/model/DescribeClustersResult.h new file mode 100644 index 000000000..8d3cbc3ec --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeClustersResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeClustersResult : public ServiceResult + { + public: + struct Cluster + { + std::string clusterId; + }; + + + DescribeClustersResult(); + explicit DescribeClustersResult(const std::string &payload); + ~DescribeClustersResult(); + std::vector getClusters()const; + void setClusters(const std::vector& clusters); + + protected: + void parse(const std::string &payload); + private: + std::vector clusters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeCommandsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeCommandsRequest.h new file mode 100644 index 000000000..8c794e1c1 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeCommandsRequest.h @@ -0,0 +1,134 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeCommandsRequest : public EcsRequest + { + + public: + DescribeCommandsRequest(); + ~DescribeCommandsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getType()const; + void setType(const std::string& type); + std::string getCommandId()const; + void setCommandId(const std::string& commandId); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + long getPageNumber()const; + void setPageNumber(long pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getName()const; + void setName(const std::string& name); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string description_; + std::string proxy_original_source_ip_; + std::string type_; + std::string commandId_; + std::string ownerIdLoginEmail_; + std::string callerType_; + long pageNumber_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + long pageSize_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeCommandsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeCommandsResult.h new file mode 100644 index 000000000..4f526b4bb --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeCommandsResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeCommandsResult : public ServiceResult + { + public: + struct Command + { + std::string commandContent; + std::string workingDir; + std::string type; + std::string description; + long timeout; + std::string commandId; + std::string name; + }; + + + DescribeCommandsResult(); + explicit DescribeCommandsResult(const std::string &payload); + ~DescribeCommandsResult(); + long getTotalCount()const; + void setTotalCount(long totalCount); + long getPageSize()const; + void setPageSize(long pageSize); + long getPageNumber()const; + void setPageNumber(long pageNumber); + std::vector getCommands()const; + void setCommands(const std::vector& commands); + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + long pageSize_; + long pageNumber_; + std::vector commands_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetTopologyRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetTopologyRequest.h new file mode 100644 index 000000000..55bd61be3 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetTopologyRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETTOPOLOGYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETTOPOLOGYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDeploymentSetTopologyRequest : public EcsRequest + { + + public: + DescribeDeploymentSetTopologyRequest(); + ~DescribeDeploymentSetTopologyRequest(); + + std::string getDeploymentSetId()const; + void setDeploymentSetId(const std::string& deploymentSetId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getGranularity()const; + void setGranularity(const std::string& granularity); + std::string getDomain()const; + void setDomain(const std::string& domain); + std::string getNetworkType()const; + void setNetworkType(const std::string& networkType); + std::string getDeploymentSetName()const; + void setDeploymentSetName(const std::string& deploymentSetName); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getStrategy()const; + void setStrategy(const std::string& strategy); + + private: + std::string deploymentSetId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string granularity_; + std::string domain_; + std::string networkType_; + std::string deploymentSetName_; + long ownerId_; + std::string strategy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETTOPOLOGYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetTopologyResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetTopologyResult.h new file mode 100644 index 000000000..c384debb3 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetTopologyResult.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_ECS_MODEL_DESCRIBEDEPLOYMENTSETTOPOLOGYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETTOPOLOGYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDeploymentSetTopologyResult : public ServiceResult + { + public: + struct Switch + { + struct Host + { + std::string hostId; + std::vector instanceIds; + }; + std::vector hosts; + std::string switchId; + }; + struct Rack + { + struct Host + { + std::string hostId; + std::vector instanceIds3; + }; + std::string rackId; + std::vector hosts1; + }; + + + DescribeDeploymentSetTopologyResult(); + explicit DescribeDeploymentSetTopologyResult(const std::string &payload); + ~DescribeDeploymentSetTopologyResult(); + std::vector getSwitchs()const; + void setSwitchs(const std::vector& switchs); + std::vector getRacks()const; + void setRacks(const std::vector& racks); + + protected: + void parse(const std::string &payload); + private: + std::vector switchs_; + std::vector racks_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETTOPOLOGYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsRequest.h new file mode 100644 index 000000000..8a2d1046e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsRequest.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDeploymentSetsRequest : public EcsRequest + { + + public: + DescribeDeploymentSetsRequest(); + ~DescribeDeploymentSetsRequest(); + + 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); + std::string getNetworkType()const; + void setNetworkType(const std::string& networkType); + std::string getDeploymentSetName()const; + void setDeploymentSetName(const std::string& deploymentSetName); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getDeploymentSetIds()const; + void setDeploymentSetIds(const std::string& deploymentSetIds); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getGranularity()const; + void setGranularity(const std::string& granularity); + std::string getDomain()const; + void setDomain(const std::string& domain); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getStrategy()const; + void setStrategy(const std::string& strategy); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string networkType_; + std::string deploymentSetName_; + long ownerId_; + int pageNumber_; + std::string deploymentSetIds_; + std::string regionId_; + std::string granularity_; + std::string domain_; + int pageSize_; + std::string strategy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsResult.h new file mode 100644 index 000000000..8f46bab07 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsResult.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_ECS_MODEL_DESCRIBEDEPLOYMENTSETSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDeploymentSetsResult : public ServiceResult + { + public: + struct DeploymentSet + { + std::string deploymentSetId; + std::string deploymentSetDescription; + int instanceAmount; + std::string creationTime; + std::string strategy; + std::string deploymentSetName; + std::string domain; + std::string granularity; + }; + + + DescribeDeploymentSetsResult(); + explicit DescribeDeploymentSetsResult(const std::string &payload); + ~DescribeDeploymentSetsResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + std::vector getDeploymentSets()const; + void setDeploymentSets(const std::vector& deploymentSets); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::vector deploymentSets_; + int pageNumber_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataRequest.h new file mode 100644 index 000000000..9fd71384a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataRequest.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_ECS_MODEL_DESCRIBEDISKMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDiskMonitorDataRequest : public EcsRequest + { + + public: + DescribeDiskMonitorDataRequest(); + ~DescribeDiskMonitorDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPeriod()const; + void setPeriod(int period); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDiskId()const; + void setDiskId(const std::string& diskId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string diskId_; + std::string startTime_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataResult.h new file mode 100644 index 000000000..1c7b1787f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataResult.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_ECS_MODEL_DESCRIBEDISKMONITORDATARESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDiskMonitorDataResult : public ServiceResult + { + public: + struct DiskMonitorData + { + int iOPSRead; + int iOPSWrite; + int iOPSTotal; + int bPSTotal; + int bPSWrite; + int latencyRead; + int bPSRead; + int latencyWrite; + std::string timeStamp; + std::string diskId; + }; + + + DescribeDiskMonitorDataResult(); + explicit DescribeDiskMonitorDataResult(const std::string &payload); + ~DescribeDiskMonitorDataResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + std::vector getMonitorData()const; + void setMonitorData(const std::vector& monitorData); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector monitorData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATARESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusRequest.h new file mode 100644 index 000000000..4e3849a62 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusRequest.h @@ -0,0 +1,143 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDisksFullStatusRequest : public EcsRequest + { + + public: + DescribeDisksFullStatusRequest(); + ~DescribeDisksFullStatusRequest(); + + std::vector getEventId()const; + void setEventId(const std::vector& eventId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getEventTimeStart()const; + void setEventTimeStart(const std::string& eventTimeStart); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::vector getDiskId()const; + void setDiskId(const std::vector& diskId); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + std::string getEventTimeEnd()const; + void setEventTimeEnd(const std::string& eventTimeEnd); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getHealthStatus()const; + void setHealthStatus(const std::string& healthStatus); + std::string getEventType()const; + void setEventType(const std::string& eventType); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::vector eventId_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + int pageNumber_; + std::string accessKeyId_; + std::string eventTimeStart_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + int pageSize_; + std::string callerBidEmail_; + std::vector diskId_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + std::string eventTimeEnd_; + bool security_transport_; + std::string requestId_; + std::string healthStatus_; + std::string eventType_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusResult.h new file mode 100644 index 000000000..de8f4485a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusResult.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_ECS_MODEL_DESCRIBEDISKSFULLSTATUSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDisksFullStatusResult : public ServiceResult + { + public: + struct DiskFullStatusType + { + struct Status + { + int code; + std::string name; + }; + struct HealthStatus + { + int code; + std::string name; + }; + struct DiskEventType + { + struct EventType + { + int code; + std::string name; + }; + std::vector eventType; + std::string eventTime; + std::string eventId; + }; + std::vector status; + std::vector diskEventSet; + std::vector healthStatus; + std::string diskId; + }; + + + DescribeDisksFullStatusResult(); + explicit DescribeDisksFullStatusResult(const std::string &payload); + ~DescribeDisksFullStatusResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getDiskFullStatusSet()const; + void setDiskFullStatusSet(const std::vector& diskFullStatusSet); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector diskFullStatusSet_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDisksRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDisksRequest.h new file mode 100644 index 000000000..2226c2eb7 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeDisksRequest.h @@ -0,0 +1,170 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDisksRequest : public EcsRequest + { + + public: + DescribeDisksRequest(); + ~DescribeDisksRequest(); + + std::string getTag4Value()const; + void setTag4Value(const std::string& tag4Value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnapshotId()const; + void setSnapshotId(const std::string& snapshotId); + std::string getTag2Key()const; + void setTag2Key(const std::string& tag2Key); + std::string getFilter2Value()const; + void setFilter2Value(const std::string& filter2Value); + std::string getAutoSnapshotPolicyId()const; + void setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId); + std::string getTag3Key()const; + void setTag3Key(const std::string& tag3Key); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getDiskName()const; + void setDiskName(const std::string& diskName); + std::string getTag1Value()const; + void setTag1Value(const std::string& tag1Value); + bool getDeleteAutoSnapshot()const; + void setDeleteAutoSnapshot(bool deleteAutoSnapshot); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getDiskChargeType()const; + void setDiskChargeType(const std::string& diskChargeType); + 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); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDiskIds()const; + void setDiskIds(const std::string& diskIds); + bool getDeleteWithInstance()const; + void setDeleteWithInstance(bool deleteWithInstance); + std::string getTag3Value()const; + void setTag3Value(const std::string& tag3Value); + bool getEnableAutoSnapshot()const; + void setEnableAutoSnapshot(bool enableAutoSnapshot); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getTag5Key()const; + void setTag5Key(const std::string& tag5Key); + 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); + bool getPortable()const; + void setPortable(bool portable); + bool getEnableAutomatedSnapshotPolicy()const; + void setEnableAutomatedSnapshotPolicy(bool enableAutomatedSnapshotPolicy); + std::string getFilter2Key()const; + void setFilter2Key(const std::string& filter2Key); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDiskType()const; + void setDiskType(const std::string& diskType); + std::string getTag5Value()const; + void setTag5Value(const std::string& tag5Value); + std::string getTag1Key()const; + void setTag1Key(const std::string& tag1Key); + std::vector getAdditionalAttributes()const; + void setAdditionalAttributes(const std::vector& additionalAttributes); + bool getEnableShared()const; + void setEnableShared(bool enableShared); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + bool getEncrypted()const; + void setEncrypted(bool encrypted); + std::string getTag2Value()const; + void setTag2Value(const std::string& tag2Value); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getTag4Key()const; + void setTag4Key(const std::string& tag4Key); + std::string getCategory()const; + void setCategory(const std::string& category); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string tag4Value_; + long resourceOwnerId_; + std::string snapshotId_; + std::string tag2Key_; + std::string filter2Value_; + std::string autoSnapshotPolicyId_; + std::string tag3Key_; + int pageNumber_; + std::string diskName_; + std::string tag1Value_; + bool deleteAutoSnapshot_; + std::string resourceGroupId_; + std::string diskChargeType_; + std::string lockReason_; + std::string filter1Key_; + std::string regionId_; + int pageSize_; + std::string diskIds_; + bool deleteWithInstance_; + std::string tag3Value_; + bool enableAutoSnapshot_; + bool dryRun_; + std::string tag5Key_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string filter1Value_; + bool portable_; + bool enableAutomatedSnapshotPolicy_; + std::string filter2Key_; + long ownerId_; + std::string diskType_; + std::string tag5Value_; + std::string tag1Key_; + std::vector additionalAttributes_; + bool enableShared_; + std::string instanceId_; + bool encrypted_; + std::string tag2Value_; + std::string zoneId_; + std::string tag4Key_; + std::string category_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDisksResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDisksResult.h new file mode 100644 index 000000000..adedfa5eb --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeDisksResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeDisksResult : public ServiceResult + { + public: + struct Disk + { + struct OperationLock + { + std::string lockReason; + }; + struct MountInstance + { + std::string attachedTime; + std::string instanceId; + std::string device; + }; + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string detachedTime; + std::string description; + std::string category; + std::string resourceGroupId; + int size; + bool encrypted; + bool deleteAutoSnapshot; + std::string diskChargeType; + int iOPS; + std::string expiredTime; + std::string imageId; + std::vector tags; + std::string status; + std::string attachedTime; + int iOPSRead; + int iOPSWrite; + std::string zoneId; + std::string sourceSnapshotId; + std::string productCode; + std::string instanceId; + std::string device; + bool deleteWithInstance; + bool enableAutomatedSnapshotPolicy; + bool enableAutoSnapshot; + std::string autoSnapshotPolicyId; + std::string diskName; + std::vector operationLocks; + bool portable; + std::string type; + int mountInstanceNum; + std::vector mountInstances; + std::string creationTime; + std::string regionId; + std::string diskId; + }; + + + DescribeDisksResult(); + explicit DescribeDisksResult(const std::string &payload); + ~DescribeDisksResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getDisks()const; + void setDisks(const std::vector& disks); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector disks_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesRequest.h new file mode 100644 index 000000000..fd90c8321 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesRequest.h @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeEipAddressesRequest : public EcsRequest + { + + public: + DescribeEipAddressesRequest(); + ~DescribeEipAddressesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getFilter2Value()const; + void setFilter2Value(const std::string& filter2Value); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getAllocationId()const; + void setAllocationId(const std::string& allocationId); + std::string getFilter1Value()const; + void setFilter1Value(const std::string& filter1Value); + std::string getFilter2Key()const; + void setFilter2Key(const std::string& filter2Key); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getEipAddress()const; + void setEipAddress(const std::string& eipAddress); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getLockReason()const; + void setLockReason(const std::string& lockReason); + std::string getFilter1Key()const; + void setFilter1Key(const std::string& filter1Key); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAssociatedInstanceType()const; + void setAssociatedInstanceType(const std::string& associatedInstanceType); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getChargeType()const; + void setChargeType(const std::string& chargeType); + std::string getAssociatedInstanceId()const; + void setAssociatedInstanceId(const std::string& associatedInstanceId); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string filter2Value_; + std::string ownerAccount_; + std::string allocationId_; + std::string filter1Value_; + std::string filter2Key_; + long ownerId_; + std::string eipAddress_; + int pageNumber_; + std::string lockReason_; + std::string filter1Key_; + std::string regionId_; + std::string associatedInstanceType_; + int pageSize_; + std::string chargeType_; + std::string associatedInstanceId_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesResult.h new file mode 100644 index 000000000..0ec320078 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesResult.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_ECS_MODEL_DESCRIBEEIPADDRESSESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeEipAddressesResult : public ServiceResult + { + public: + struct EipAddress + { + struct LockReason + { + std::string lockReason; + }; + std::string status; + std::string instanceId; + std::string allocationId; + std::vector operationLocks; + std::string internetChargeType; + std::string allocationTime; + std::string eipBandwidth; + std::string chargeType; + std::string bandwidth; + std::string expiredTime; + std::string ipAddress; + std::string regionId; + std::string instanceType; + }; + + + DescribeEipAddressesResult(); + explicit DescribeEipAddressesResult(const std::string &payload); + ~DescribeEipAddressesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + std::vector getEipAddresses()const; + void setEipAddresses(const std::vector& eipAddresses); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector eipAddresses_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataRequest.h new file mode 100644 index 000000000..efe64f5b1 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeEipMonitorDataRequest : public EcsRequest + { + + public: + DescribeEipMonitorDataRequest(); + ~DescribeEipMonitorDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPeriod()const; + void setPeriod(int period); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getAllocationId()const; + void setAllocationId(const std::string& allocationId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string allocationId_; + std::string startTime_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataResult.h b/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataResult.h new file mode 100644 index 000000000..5e95269d9 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATARESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeEipMonitorDataResult : public ServiceResult + { + public: + struct EipMonitorData + { + int eipPackets; + int eipBandwidth; + int eipFlow; + int eipTX; + std::string timeStamp; + int eipRX; + }; + + + DescribeEipMonitorDataResult(); + explicit DescribeEipMonitorDataResult(const std::string &payload); + ~DescribeEipMonitorDataResult(); + std::vector getEipMonitorDatas()const; + void setEipMonitorDatas(const std::vector& eipMonitorDatas); + + protected: + void parse(const std::string &payload); + private: + std::vector eipMonitorDatas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATARESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesRequest.h new file mode 100644 index 000000000..7673599ad --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeForwardTableEntriesRequest : public EcsRequest + { + + public: + DescribeForwardTableEntriesRequest(); + ~DescribeForwardTableEntriesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getForwardEntryId()const; + void setForwardEntryId(const std::string& forwardEntryId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getForwardTableId()const; + void setForwardTableId(const std::string& forwardTableId); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string forwardEntryId_; + std::string ownerAccount_; + std::string forwardTableId_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesResult.h new file mode 100644 index 000000000..e4e920a43 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeForwardTableEntriesResult : public ServiceResult + { + public: + struct ForwardTableEntry + { + std::string status; + std::string externalPort; + std::string externalIp; + std::string forwardEntryId; + std::string ipProtocol; + std::string internalPort; + std::string internalIp; + std::string forwardTableId; + }; + + + DescribeForwardTableEntriesResult(); + explicit DescribeForwardTableEntriesResult(const std::string &payload); + ~DescribeForwardTableEntriesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getForwardTableEntries()const; + void setForwardTableEntries(const std::vector& forwardTableEntries); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector forwardTableEntries_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeHaVipsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeHaVipsRequest.h new file mode 100644 index 000000000..89408932f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeHaVipsRequest.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeHaVipsRequest : public EcsRequest + { + struct Filter + { + std::string key; + std::vector value; + }; + + public: + DescribeHaVipsRequest(); + ~DescribeHaVipsRequest(); + + std::vector getFilter()const; + void setFilter(const std::vector& filter); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::vector filter_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeHaVipsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeHaVipsResult.h new file mode 100644 index 000000000..b595511c2 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeHaVipsResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeHaVipsResult : public ServiceResult + { + public: + struct HaVip + { + std::string status; + std::vector associatedInstances; + std::string description; + std::string vpcId; + std::vector associatedEipAddresses; + std::string masterInstanceId; + std::string vSwitchId; + std::string createTime; + std::string ipAddress; + std::string haVipId; + std::string regionId; + }; + + + DescribeHaVipsResult(); + explicit DescribeHaVipsResult(const std::string &payload); + ~DescribeHaVipsResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + std::vector getHaVips()const; + void setHaVips(const std::vector& haVips); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector haVips_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersRequest.h new file mode 100644 index 000000000..8e52abeab --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersRequest.h @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeHpcClustersRequest : public EcsRequest + { + + public: + DescribeHpcClustersRequest(); + ~DescribeHpcClustersRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + std::string getHpcClusterIds()const; + void setHpcClusterIds(const std::string& hpcClusterIds); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + std::string clientToken_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + int pageNumber_; + std::string accessKeyId_; + std::string regionId_; + std::string securityToken_; + bool enable_; + std::string requestContent_; + int pageSize_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + std::string hpcClusterIds_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersResult.h b/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersResult.h new file mode 100644 index 000000000..c34b00237 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersResult.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_ECS_MODEL_DESCRIBEHPCCLUSTERSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeHpcClustersResult : public ServiceResult + { + public: + struct HpcCluster + { + std::string description; + std::string hpcClusterId; + std::string name; + }; + + + DescribeHpcClustersResult(); + explicit DescribeHpcClustersResult(const std::string &payload); + ~DescribeHpcClustersResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getHpcClusters()const; + void setHpcClusters(const std::vector& hpcClusters); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector hpcClusters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionRequest.h new file mode 100644 index 000000000..f1b2fa101 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionRequest.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_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImageSharePermissionRequest : public EcsRequest + { + + public: + DescribeImageSharePermissionRequest(); + ~DescribeImageSharePermissionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string imageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionResult.h b/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionResult.h new file mode 100644 index 000000000..c2e4953ff --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionResult.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_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImageSharePermissionResult : public ServiceResult + { + public: + struct ShareGroup + { + std::string group; + }; + struct Account + { + std::string aliyunId; + }; + + + DescribeImageSharePermissionResult(); + explicit DescribeImageSharePermissionResult(const std::string &payload); + ~DescribeImageSharePermissionResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::vector getShareGroups()const; + void setShareGroups(const std::vector& shareGroups); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getAccounts()const; + void setAccounts(const std::vector& accounts); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::string imageId_; + std::vector shareGroups_; + std::string regionId_; + std::vector accounts_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesRequest.h new file mode 100644 index 000000000..4c7c3828d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesRequest.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_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImageSupportInstanceTypesRequest : public EcsRequest + { + + public: + DescribeImageSupportInstanceTypesRequest(); + ~DescribeImageSupportInstanceTypesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string imageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesResult.h new file mode 100644 index 000000000..2e4ccadff --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesResult.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_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImageSupportInstanceTypesResult : public ServiceResult + { + public: + struct InstanceType + { + float memorySize; + int cpuCoreCount; + std::string instanceTypeFamily; + std::string instanceTypeId; + }; + + + DescribeImageSupportInstanceTypesResult(); + explicit DescribeImageSupportInstanceTypesResult(const std::string &payload); + ~DescribeImageSupportInstanceTypesResult(); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::vector getInstanceTypes()const; + void setInstanceTypes(const std::vector& instanceTypes); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + protected: + void parse(const std::string &payload); + private: + std::string imageId_; + std::vector instanceTypes_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImagesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeImagesRequest.h new file mode 100644 index 000000000..22dddd8db --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeImagesRequest.h @@ -0,0 +1,146 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImagesRequest : public EcsRequest + { + + public: + DescribeImagesRequest(); + ~DescribeImagesRequest(); + + std::string getTag4Value()const; + void setTag4Value(const std::string& tag4Value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getSnapshotId()const; + void setSnapshotId(const std::string& snapshotId); + std::string getTag2Key()const; + void setTag2Key(const std::string& tag2Key); + std::string getFilter2Value()const; + void setFilter2Value(const std::string& filter2Value); + std::string getUsage()const; + void setUsage(const std::string& usage); + std::string getTag3Key()const; + void setTag3Key(const std::string& tag3Key); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getImageOwnerAlias()const; + void setImageOwnerAlias(const std::string& imageOwnerAlias); + std::string getTag1Value()const; + void setTag1Value(const std::string& tag1Value); + bool getIsSupportIoOptimized()const; + void setIsSupportIoOptimized(bool isSupportIoOptimized); + std::string getFilter1Key()const; + void setFilter1Key(const std::string& filter1Key); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getImageName()const; + void setImageName(const std::string& imageName); + bool getIsSupportCloudinit()const; + void setIsSupportCloudinit(bool isSupportCloudinit); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getTag3Value()const; + void setTag3Value(const std::string& tag3Value); + std::string getArchitecture()const; + void setArchitecture(const std::string& architecture); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getTag5Key()const; + void setTag5Key(const std::string& tag5Key); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + bool getShowExpired()const; + void setShowExpired(bool showExpired); + std::string getFilter1Value()const; + void setFilter1Value(const std::string& filter1Value); + std::string getOSType()const; + void setOSType(const std::string& oSType); + std::string getFilter2Key()const; + void setFilter2Key(const std::string& filter2Key); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTag5Value()const; + void setTag5Value(const std::string& tag5Value); + std::string getTag1Key()const; + void setTag1Key(const std::string& tag1Key); + std::string getTag2Value()const; + void setTag2Value(const std::string& tag2Value); + std::string getTag4Key()const; + void setTag4Key(const std::string& tag4Key); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string tag4Value_; + long resourceOwnerId_; + std::string imageId_; + std::string snapshotId_; + std::string tag2Key_; + std::string filter2Value_; + std::string usage_; + std::string tag3Key_; + int pageNumber_; + std::string imageOwnerAlias_; + std::string tag1Value_; + bool isSupportIoOptimized_; + std::string filter1Key_; + std::string regionId_; + std::string imageName_; + bool isSupportCloudinit_; + int pageSize_; + std::string instanceType_; + std::string tag3Value_; + std::string architecture_; + bool dryRun_; + std::string tag5Key_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + bool showExpired_; + std::string filter1Value_; + std::string oSType_; + std::string filter2Key_; + long ownerId_; + std::string tag5Value_; + std::string tag1Key_; + std::string tag2Value_; + std::string tag4Key_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImagesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeImagesResult.h new file mode 100644 index 000000000..9d8b5ac84 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeImagesResult.h @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeImagesResult : public ServiceResult + { + public: + struct Image + { + struct DiskDeviceMapping + { + std::string snapshotId; + std::string type; + std::string format; + std::string size; + std::string device; + std::string importOSSBucket; + std::string importOSSObject; + }; + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string imageOwnerAlias; + std::string status; + std::string progress; + std::string usage; + std::string description; + std::string isSelfShared; + std::string architecture; + std::string platform; + std::string productCode; + int size; + bool isSubscribed; + bool isCopied; + std::string oSName; + bool isSupportIoOptimized; + bool isSupportCloudinit; + std::string imageName; + std::vector diskDeviceMappings; + std::string imageVersion; + std::string oSType; + std::string imageId; + std::string creationTime; + std::vector tags; + }; + + + DescribeImagesResult(); + explicit DescribeImagesResult(const std::string &payload); + ~DescribeImagesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getImages()const; + void setImages(const std::vector& images); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector images_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeRequest.h new file mode 100644 index 000000000..a97a4c402 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeRequest.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_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAttributeRequest : public EcsRequest + { + + public: + DescribeInstanceAttributeRequest(); + ~DescribeInstanceAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeResult.h new file mode 100644 index 000000000..0fe3a98ab --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAttributeResult : public ServiceResult + { + public: + struct VpcAttributes + { + std::vector privateIpAddress; + std::string vpcId; + std::string vSwitchId; + std::string natIpAddress; + }; + struct EipAddress + { + std::string allocationId; + int bandwidth; + std::string ipAddress; + std::string internetChargeType; + }; + struct LockReason + { + std::string lockReason; + }; + + + DescribeInstanceAttributeResult(); + explicit DescribeInstanceAttributeResult(const std::string &payload); + ~DescribeInstanceAttributeResult(); + std::string getDescription()const; + void setDescription(const std::string& description); + int getMemory()const; + void setMemory(int memory); + std::string getInstanceChargeType()const; + void setInstanceChargeType(const std::string& instanceChargeType); + int getCpu()const; + void setCpu(int cpu); + std::string getInstanceNetworkType()const; + void setInstanceNetworkType(const std::string& instanceNetworkType); + std::vector getPublicIpAddress()const; + void setPublicIpAddress(const std::vector& publicIpAddress); + std::vector getInnerIpAddress()const; + void setInnerIpAddress(const std::vector& innerIpAddress); + std::string getExpiredTime()const; + void setExpiredTime(const std::string& expiredTime); + std::vector getEipAddress()const; + void setEipAddress(const std::vector& eipAddress); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getHostName()const; + void setHostName(const std::string& hostName); + std::string getVlanId()const; + void setVlanId(const std::string& vlanId); + std::string getStatus()const; + void setStatus(const std::string& status); + std::string getIoOptimized()const; + void setIoOptimized(const std::string& ioOptimized); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getStoppedMode()const; + void setStoppedMode(const std::string& stoppedMode); + std::vector getVpcAttributes()const; + void setVpcAttributes(const std::vector& vpcAttributes); + std::vector getSecurityGroupIds()const; + void setSecurityGroupIds(const std::vector& securityGroupIds); + std::vector getOperationLocks()const; + void setOperationLocks(const std::vector& operationLocks); + std::string getInternetChargeType()const; + void setInternetChargeType(const std::string& internetChargeType); + std::string getInstanceName()const; + void setInstanceName(const std::string& instanceName); + int getInternetMaxBandwidthOut()const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + int getInternetMaxBandwidthIn()const; + void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); + std::string getSerialNumber()const; + void setSerialNumber(const std::string& serialNumber); + std::string getCreationTime()const; + void setCreationTime(const std::string& creationTime); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + protected: + void parse(const std::string &payload); + private: + std::string description_; + int memory_; + std::string instanceChargeType_; + int cpu_; + std::string instanceNetworkType_; + std::vector publicIpAddress_; + std::vector innerIpAddress_; + std::string expiredTime_; + std::vector eipAddress_; + std::string imageId_; + std::string instanceType_; + std::string hostName_; + std::string vlanId_; + std::string status_; + std::string ioOptimized_; + std::string zoneId_; + std::string instanceId_; + std::string clusterId_; + std::string stoppedMode_; + std::vector vpcAttributes_; + std::vector securityGroupIds_; + std::vector operationLocks_; + std::string internetChargeType_; + std::string instanceName_; + int internetMaxBandwidthOut_; + int internetMaxBandwidthIn_; + std::string serialNumber_; + std::string creationTime_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeRequest.h new file mode 100644 index 000000000..8d9053d02 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAutoRenewAttributeRequest : public EcsRequest + { + + public: + DescribeInstanceAutoRenewAttributeRequest(); + ~DescribeInstanceAutoRenewAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeResult.h new file mode 100644 index 000000000..8bf2128a3 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAutoRenewAttributeResult : public ServiceResult + { + public: + struct InstanceRenewAttribute + { + bool autoRenewEnabled; + std::string instanceId; + std::string renewalStatus; + int duration; + std::string periodUnit; + }; + + + DescribeInstanceAutoRenewAttributeResult(); + explicit DescribeInstanceAutoRenewAttributeResult(const std::string &payload); + ~DescribeInstanceAutoRenewAttributeResult(); + std::vector getInstanceRenewAttributes()const; + void setInstanceRenewAttributes(const std::vector& instanceRenewAttributes); + + protected: + void parse(const std::string &payload); + private: + std::vector instanceRenewAttributes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsRequest.h new file mode 100644 index 000000000..a8667927a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsRequest.h @@ -0,0 +1,146 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceHistoryEventsRequest : public EcsRequest + { + + public: + DescribeInstanceHistoryEventsRequest(); + ~DescribeInstanceHistoryEventsRequest(); + + std::vector getEventId()const; + void setEventId(const std::vector& eventId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getEventCycleStatus()const; + void setEventCycleStatus(const std::string& eventCycleStatus); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + std::string getEventPublishTimeEnd()const; + void setEventPublishTimeEnd(const std::string& eventPublishTimeEnd); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getNotBeforeStart()const; + void setNotBeforeStart(const std::string& notBeforeStart); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getEventPublishTimeStart()const; + void setEventPublishTimeStart(const std::string& eventPublishTimeStart); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getNotBeforeEnd()const; + void setNotBeforeEnd(const std::string& notBeforeEnd); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getEventType()const; + void setEventType(const std::string& eventType); + + private: + std::vector eventId_; + long resourceOwnerId_; + std::string eventCycleStatus_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + int pageNumber_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + int pageSize_; + std::string callerBidEmail_; + std::string callerUidEmail_; + std::string eventPublishTimeEnd_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string notBeforeStart_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string eventPublishTimeStart_; + std::string instanceId_; + std::string notBeforeEnd_; + std::string requestId_; + std::string eventType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsResult.h new file mode 100644 index 000000000..3328f3bdc --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceHistoryEventsResult : public ServiceResult + { + public: + struct InstanceSystemEventType + { + struct EventType + { + int code; + std::string name; + }; + std::string eventPublishTime; + std::vector eventType; + std::string instanceId; + std::string eventId; + std::string notBefore; + }; + + + DescribeInstanceHistoryEventsResult(); + explicit DescribeInstanceHistoryEventsResult(const std::string &payload); + ~DescribeInstanceHistoryEventsResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getInstanceSystemEventSet()const; + void setInstanceSystemEventSet(const std::vector& instanceSystemEventSet); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector instanceSystemEventSet_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataRequest.h new file mode 100644 index 000000000..8857ae22e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataRequest.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_ECS_MODEL_DESCRIBEINSTANCEMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceMonitorDataRequest : public EcsRequest + { + + public: + DescribeInstanceMonitorDataRequest(); + ~DescribeInstanceMonitorDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPeriod()const; + void setPeriod(int period); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + int period_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string startTime_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.h new file mode 100644 index 000000000..210f27217 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.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_ECS_MODEL_DESCRIBEINSTANCEMONITORDATARESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceMonitorDataResult : public ServiceResult + { + public: + struct InstanceMonitorData + { + int iOPSRead; + int intranetBandwidth; + int iOPSWrite; + float cPUCreditUsage; + std::string instanceId; + int intranetTX; + int cPU; + int bPSRead; + int intranetRX; + std::string timeStamp; + int internetBandwidth; + float cPUCreditBalance; + int internetTX; + int internetRX; + int bPSWrite; + }; + + + DescribeInstanceMonitorDataResult(); + explicit DescribeInstanceMonitorDataResult(const std::string &payload); + ~DescribeInstanceMonitorDataResult(); + std::vector getMonitorData()const; + void setMonitorData(const std::vector& monitorData); + + protected: + void parse(const std::string &payload); + private: + std::vector monitorData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATARESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeRequest.h new file mode 100644 index 000000000..41ea042df --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeRequest.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_ECS_MODEL_DESCRIBEINSTANCEPHYSICALATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEPHYSICALATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstancePhysicalAttributeRequest : public EcsRequest + { + + public: + DescribeInstancePhysicalAttributeRequest(); + ~DescribeInstancePhysicalAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEPHYSICALATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeResult.h new file mode 100644 index 000000000..f1f6126ea --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstancePhysicalAttributeResult.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_ECS_MODEL_DESCRIBEINSTANCEPHYSICALATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEPHYSICALATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstancePhysicalAttributeResult : public ServiceResult + { + public: + + + DescribeInstancePhysicalAttributeResult(); + explicit DescribeInstancePhysicalAttributeResult(const std::string &payload); + ~DescribeInstancePhysicalAttributeResult(); + std::string getRackId()const; + void setRackId(const std::string& rackId); + std::string getNodeControllerId()const; + void setNodeControllerId(const std::string& nodeControllerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getVlanId()const; + void setVlanId(const std::string& vlanId); + + protected: + void parse(const std::string &payload); + private: + std::string rackId_; + std::string nodeControllerId_; + std::string instanceId_; + std::string vlanId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEPHYSICALATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleRequest.h new file mode 100644 index 000000000..b3c317f21 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleRequest.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_ECS_MODEL_DESCRIBEINSTANCERAMROLEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceRamRoleRequest : public EcsRequest + { + + public: + DescribeInstanceRamRoleRequest(); + ~DescribeInstanceRamRoleRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInstanceIds()const; + void setInstanceIds(const std::string& instanceIds); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getRamRoleName()const; + void setRamRoleName(const std::string& ramRoleName); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string instanceIds_; + int pageSize_; + std::string ramRoleName_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleResult.h new file mode 100644 index 000000000..e435021bd --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleResult.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_ECS_MODEL_DESCRIBEINSTANCERAMROLERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceRamRoleResult : public ServiceResult + { + public: + struct InstanceRamRoleSet + { + std::string ramRoleName; + std::string instanceId; + }; + + + DescribeInstanceRamRoleResult(); + explicit DescribeInstanceRamRoleResult(const std::string &payload); + ~DescribeInstanceRamRoleResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getInstanceRamRoleSets()const; + void setInstanceRamRoleSets(const std::vector& instanceRamRoleSets); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string regionId_; + std::vector instanceRamRoleSets_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusRequest.h new file mode 100644 index 000000000..c42a3599a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceStatusRequest : public EcsRequest + { + + public: + DescribeInstanceStatusRequest(); + ~DescribeInstanceStatusRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string zoneId_; + std::string clusterId_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusResult.h new file mode 100644 index 000000000..f96b19f8d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusResult.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_ECS_MODEL_DESCRIBEINSTANCESTATUSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceStatusResult : public ServiceResult + { + public: + struct InstanceStatus + { + std::string status; + std::string instanceId; + }; + + + DescribeInstanceStatusResult(); + explicit DescribeInstanceStatusResult(const std::string &payload); + ~DescribeInstanceStatusResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getInstanceStatuses()const; + void setInstanceStatuses(const std::vector& instanceStatuses); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector instanceStatuses_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesRequest.h new file mode 100644 index 000000000..b66fac196 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTypeFamiliesRequest : public EcsRequest + { + + public: + DescribeInstanceTypeFamiliesRequest(); + ~DescribeInstanceTypeFamiliesRequest(); + + std::string getGeneration()const; + void setGeneration(const std::string& generation); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string generation_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesResult.h new file mode 100644 index 000000000..2e2da5754 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesResult.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_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTypeFamiliesResult : public ServiceResult + { + public: + struct InstanceTypeFamily + { + std::string instanceTypeFamilyId; + std::string generation; + }; + + + DescribeInstanceTypeFamiliesResult(); + explicit DescribeInstanceTypeFamiliesResult(const std::string &payload); + ~DescribeInstanceTypeFamiliesResult(); + std::vector getInstanceTypeFamilies()const; + void setInstanceTypeFamilies(const std::vector& instanceTypeFamilies); + + protected: + void parse(const std::string &payload); + private: + std::vector instanceTypeFamilies_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesRequest.h new file mode 100644 index 000000000..4437d63ee --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesRequest.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_ECS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTypesRequest : public EcsRequest + { + + public: + DescribeInstanceTypesRequest(); + ~DescribeInstanceTypesRequest(); + + 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); + std::string getInstanceTypeFamily()const; + void setInstanceTypeFamily(const std::string& instanceTypeFamily); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string instanceTypeFamily_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesResult.h new file mode 100644 index 000000000..71bb562ab --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesResult.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_ECS_MODEL_DESCRIBEINSTANCETYPESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTypesResult : public ServiceResult + { + public: + struct InstanceType + { + float memorySize; + std::string localStorageCategory; + int cpuCoreCount; + long localStorageCapacity; + std::string gPUSpec; + std::string instanceTypeFamily; + int baselineCredit; + int initialCredit; + std::string instanceTypeId; + int gPUAmount; + int localStorageAmount; + }; + + + DescribeInstanceTypesResult(); + explicit DescribeInstanceTypesResult(const std::string &payload); + ~DescribeInstanceTypesResult(); + std::vector getInstanceTypes()const; + void setInstanceTypes(const std::vector& instanceTypes); + + protected: + void parse(const std::string &payload); + private: + std::vector instanceTypes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdRequest.h new file mode 100644 index 000000000..d5bff5b63 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceVncPasswdRequest : public EcsRequest + { + + public: + DescribeInstanceVncPasswdRequest(); + ~DescribeInstanceVncPasswdRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdResult.h new file mode 100644 index 000000000..2c7b3fd0d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceVncPasswdResult : public ServiceResult + { + public: + + + DescribeInstanceVncPasswdResult(); + explicit DescribeInstanceVncPasswdResult(const std::string &payload); + ~DescribeInstanceVncPasswdResult(); + std::string getVncPasswd()const; + void setVncPasswd(const std::string& vncPasswd); + + protected: + void parse(const std::string &payload); + private: + std::string vncPasswd_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlRequest.h new file mode 100644 index 000000000..36375a304 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceVncUrlRequest : public EcsRequest + { + + public: + DescribeInstanceVncUrlRequest(); + ~DescribeInstanceVncUrlRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlResult.h new file mode 100644 index 000000000..6eeeb1c95 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstanceVncUrlResult : public ServiceResult + { + public: + + + DescribeInstanceVncUrlResult(); + explicit DescribeInstanceVncUrlResult(const std::string &payload); + ~DescribeInstanceVncUrlResult(); + std::string getVncUrl()const; + void setVncUrl(const std::string& vncUrl); + + protected: + void parse(const std::string &payload); + private: + std::string vncUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusRequest.h new file mode 100644 index 000000000..96acde6df --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusRequest.h @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstancesFullStatusRequest : public EcsRequest + { + + public: + DescribeInstancesFullStatusRequest(); + ~DescribeInstancesFullStatusRequest(); + + std::vector getEventId()const; + void setEventId(const std::vector& eventId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + std::string getEventPublishTimeEnd()const; + void setEventPublishTimeEnd(const std::string& eventPublishTimeEnd); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getNotBeforeStart()const; + void setNotBeforeStart(const std::string& notBeforeStart); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getEventPublishTimeStart()const; + void setEventPublishTimeStart(const std::string& eventPublishTimeStart); + std::vector getInstanceId()const; + void setInstanceId(const std::vector& instanceId); + std::string getNotBeforeEnd()const; + void setNotBeforeEnd(const std::string& notBeforeEnd); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getHealthStatus()const; + void setHealthStatus(const std::string& healthStatus); + std::string getEventType()const; + void setEventType(const std::string& eventType); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::vector eventId_; + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + int pageNumber_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + int pageSize_; + std::string callerBidEmail_; + std::string callerUidEmail_; + std::string eventPublishTimeEnd_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string notBeforeStart_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string eventPublishTimeStart_; + std::vector instanceId_; + std::string notBeforeEnd_; + std::string requestId_; + std::string healthStatus_; + std::string eventType_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusResult.h new file mode 100644 index 000000000..b722ffce6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusResult.h @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstancesFullStatusResult : public ServiceResult + { + public: + struct InstanceFullStatusType + { + struct Status + { + int code; + std::string name; + }; + struct HealthStatus + { + int code; + std::string name; + }; + struct ScheduledSystemEventType + { + struct EventCycleStatus + { + int code; + std::string name; + }; + struct EventType + { + int code; + std::string name; + }; + std::vector eventCycleStatus; + std::string eventPublishTime; + std::vector eventType; + std::string eventId; + std::string notBefore; + }; + std::vector status; + std::string instanceId; + std::vector healthStatus; + std::vector scheduledSystemEventSet; + }; + + + DescribeInstancesFullStatusResult(); + explicit DescribeInstancesFullStatusResult(const std::string &payload); + ~DescribeInstancesFullStatusResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getInstanceFullStatusSet()const; + void setInstanceFullStatusSet(const std::vector& instanceFullStatusSet); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector instanceFullStatusSet_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstancesRequest.h new file mode 100644 index 000000000..5fd2fcab4 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstancesRequest.h @@ -0,0 +1,194 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstancesRequest : public EcsRequest + { + + public: + DescribeInstancesRequest(); + ~DescribeInstancesRequest(); + + std::string getTag4Value()const; + void setTag4Value(const std::string& tag4Value); + std::string getInnerIpAddresses()const; + void setInnerIpAddresses(const std::string& innerIpAddresses); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTag2Key()const; + void setTag2Key(const std::string& tag2Key); + std::string getPrivateIpAddresses()const; + void setPrivateIpAddresses(const std::string& privateIpAddresses); + std::string getHpcClusterId()const; + void setHpcClusterId(const std::string& hpcClusterId); + std::string getFilter2Value()const; + void setFilter2Value(const std::string& filter2Value); + std::string getTag3Key()const; + void setTag3Key(const std::string& tag3Key); + std::string getKeyPairName()const; + void setKeyPairName(const std::string& keyPairName); + std::string getTag1Value()const; + void setTag1Value(const std::string& tag1Value); + 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); + bool getDeviceAvailable()const; + void setDeviceAvailable(bool deviceAvailable); + std::string getFilter3Value()const; + void setFilter3Value(const std::string& filter3Value); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getTag5Key()const; + void setTag5Key(const std::string& tag5Key); + std::string getFilter1Value()const; + void setFilter1Value(const std::string& filter1Value); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getInstanceName()const; + void setInstanceName(const std::string& instanceName); + std::string getInstanceIds()const; + void setInstanceIds(const std::string& instanceIds); + std::string getInternetChargeType()const; + void setInternetChargeType(const std::string& internetChargeType); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getTag4Key()const; + void setTag4Key(const std::string& tag4Key); + std::string getInstanceNetworkType()const; + void setInstanceNetworkType(const std::string& instanceNetworkType); + std::string getStatus()const; + void setStatus(const std::string& status); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getFilter4Value()const; + void setFilter4Value(const std::string& filter4Value); + bool getIoOptimized()const; + void setIoOptimized(bool ioOptimized); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + std::string getFilter4Key()const; + void setFilter4Key(const std::string& filter4Key); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRdmaIpAddresses()const; + void setRdmaIpAddresses(const std::string& rdmaIpAddresses); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getPublicIpAddresses()const; + void setPublicIpAddresses(const std::string& publicIpAddresses); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getInstanceChargeType()const; + void setInstanceChargeType(const std::string& instanceChargeType); + std::string getTag3Value()const; + void setTag3Value(const std::string& tag3Value); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getInstanceTypeFamily()const; + void setInstanceTypeFamily(const std::string& instanceTypeFamily); + std::string getFilter2Key()const; + void setFilter2Key(const std::string& filter2Key); + std::string getTag5Value()const; + void setTag5Value(const std::string& tag5Value); + std::string getTag1Key()const; + void setTag1Key(const std::string& tag1Key); + std::string getEipAddresses()const; + void setEipAddresses(const std::string& eipAddresses); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getTag2Value()const; + void setTag2Value(const std::string& tag2Value); + std::string getFilter3Key()const; + void setFilter3Key(const std::string& filter3Key); + + private: + std::string tag4Value_; + std::string innerIpAddresses_; + long resourceOwnerId_; + std::string tag2Key_; + std::string privateIpAddresses_; + std::string hpcClusterId_; + std::string filter2Value_; + std::string tag3Key_; + std::string keyPairName_; + std::string tag1Value_; + std::string resourceGroupId_; + std::string lockReason_; + std::string filter1Key_; + bool deviceAvailable_; + std::string filter3Value_; + bool dryRun_; + std::string tag5Key_; + std::string filter1Value_; + long ownerId_; + std::string vSwitchId_; + std::string instanceName_; + std::string instanceIds_; + std::string internetChargeType_; + std::string zoneId_; + std::string tag4Key_; + std::string instanceNetworkType_; + std::string status_; + std::string imageId_; + std::string filter4Value_; + bool ioOptimized_; + std::string securityGroupId_; + std::string filter4Key_; + int pageNumber_; + std::string regionId_; + std::string rdmaIpAddresses_; + int pageSize_; + std::string publicIpAddresses_; + std::string instanceType_; + std::string instanceChargeType_; + std::string tag3Value_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string instanceTypeFamily_; + std::string filter2Key_; + std::string tag5Value_; + std::string tag1Key_; + std::string eipAddresses_; + std::string vpcId_; + std::string tag2Value_; + std::string filter3Key_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstancesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstancesResult.h new file mode 100644 index 000000000..6097d329a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstancesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInstancesResult : public ServiceResult + { + public: + struct Instance + { + struct VpcAttributes + { + std::vector privateIpAddress; + std::string vpcId; + std::string vSwitchId; + std::string natIpAddress; + }; + struct EipAddress + { + std::string allocationId; + int bandwidth; + std::string ipAddress; + bool isSupportUnassociate; + std::string internetChargeType; + }; + struct NetworkInterface + { + std::string primaryIpAddress; + std::string networkInterfaceId; + std::string macAddress; + }; + struct LockReason + { + std::string lockReason; + std::string lockMsg; + }; + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string resourceGroupId; + int memory; + std::string instanceChargeType; + int cpu; + std::string oSName; + std::string instanceNetworkType; + std::vector innerIpAddress; + std::string expiredTime; + std::vector eipAddress; + std::string imageId; + std::vector tags; + std::string hostName; + std::string vlanId; + std::string status; + std::string instanceId; + std::string stoppedMode; + std::string startTime; + std::vector vpcAttributes; + std::vector securityGroupIds; + std::string internetChargeType; + std::string instanceName; + int internetMaxBandwidthOut; + std::string serialNumber; + std::string oSType; + std::string creationTime; + std::string autoReleaseTime; + std::string description; + long localStorageCapacity; + std::string instanceTypeFamily; + int localStorageAmount; + std::vector publicIpAddress; + std::string gPUSpec; + std::vector networkInterfaces; + float spotPriceLimit; + std::string saleCycle; + bool deviceAvailable; + std::string instanceType; + std::string spotStrategy; + std::string keyPairName; + bool ioOptimized; + std::string zoneId; + std::string clusterId; + std::string hpcClusterId; + int gPUAmount; + std::vector operationLocks; + std::vector rdmaIpAddress; + int internetMaxBandwidthIn; + bool recyclable; + std::string regionId; + }; + + + DescribeInstancesResult(); + explicit DescribeInstancesResult(const std::string &payload); + ~DescribeInstancesResult(); + std::vector getInstances()const; + void setInstances(const std::vector& instances); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + std::vector instances_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeIntranetAttributeKbRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeIntranetAttributeKbRequest.h new file mode 100644 index 000000000..11cfa57c0 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeIntranetAttributeKbRequest.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_ECS_MODEL_DESCRIBEINTRANETATTRIBUTEKBREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINTRANETATTRIBUTEKBREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeIntranetAttributeKbRequest : public EcsRequest + { + + public: + DescribeIntranetAttributeKbRequest(); + ~DescribeIntranetAttributeKbRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINTRANETATTRIBUTEKBREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeIntranetAttributeKbResult.h b/ecs/include/alibabacloud/ecs/model/DescribeIntranetAttributeKbResult.h new file mode 100644 index 000000000..e78473300 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeIntranetAttributeKbResult.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_ECS_MODEL_DESCRIBEINTRANETATTRIBUTEKBRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINTRANETATTRIBUTEKBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeIntranetAttributeKbResult : public ServiceResult + { + public: + + + DescribeIntranetAttributeKbResult(); + explicit DescribeIntranetAttributeKbResult(const std::string &payload); + ~DescribeIntranetAttributeKbResult(); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getIntranetMaxBandwidthOut()const; + void setIntranetMaxBandwidthOut(int intranetMaxBandwidthOut); + std::string getVlanId()const; + void setVlanId(const std::string& vlanId); + std::string getIntranetIpAddress()const; + void setIntranetIpAddress(const std::string& intranetIpAddress); + int getIntranetMaxBandwidthIn()const; + void setIntranetMaxBandwidthIn(int intranetMaxBandwidthIn); + + protected: + void parse(const std::string &payload); + private: + std::string instanceId_; + int intranetMaxBandwidthOut_; + std::string vlanId_; + std::string intranetIpAddress_; + int intranetMaxBandwidthIn_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINTRANETATTRIBUTEKBRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h new file mode 100644 index 000000000..901887ee0 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h @@ -0,0 +1,134 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInvocationResultsRequest : public EcsRequest + { + + public: + DescribeInvocationResultsRequest(); + ~DescribeInvocationResultsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCommandId()const; + void setCommandId(const std::string& commandId); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + long getPageNumber()const; + void setPageNumber(long pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getInvokeId()const; + void setInvokeId(const std::string& invokeId); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getInvokeRecordStatus()const; + void setInvokeRecordStatus(const std::string& invokeRecordStatus); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string commandId_; + std::string ownerIdLoginEmail_; + std::string callerType_; + long pageNumber_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + long pageSize_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string invokeId_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string instanceId_; + std::string requestId_; + std::string invokeRecordStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsResult.h new file mode 100644 index 000000000..4dc1f235d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsResult.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_ECS_MODEL_DESCRIBEINVOCATIONRESULTSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInvocationResultsResult : public ServiceResult + { + public: + struct Invocation + { + struct InvocationResult + { + std::string instanceId; + std::string output; + long exitCode; + std::string commandId; + std::string invokeRecordStatus; + std::string finishedTime; + std::string invokeId; + }; + std::vector invocationResults; + long totalCount; + long pageSize; + long pageNumber; + }; + + + DescribeInvocationResultsResult(); + explicit DescribeInvocationResultsResult(const std::string &payload); + ~DescribeInvocationResultsResult(); + std::vector getInvocation()const; + void setInvocation(const std::vector& invocation); + + protected: + void parse(const std::string &payload); + private: + std::vector invocation_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h new file mode 100644 index 000000000..980f3ce6c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h @@ -0,0 +1,143 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInvocationsRequest : public EcsRequest + { + + public: + DescribeInvocationsRequest(); + ~DescribeInvocationsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInvokeStatus()const; + void setInvokeStatus(const std::string& invokeStatus); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCommandId()const; + void setCommandId(const std::string& commandId); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + long getPageNumber()const; + void setPageNumber(long pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + long getPageSize()const; + void setPageSize(long pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getInvokeId()const; + void setInvokeId(const std::string& invokeId); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + bool getTimed()const; + void setTimed(bool timed); + std::string getCommandName()const; + void setCommandName(const std::string& commandName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getCommandType()const; + void setCommandType(const std::string& commandType); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + std::string invokeStatus_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string commandId_; + std::string ownerIdLoginEmail_; + std::string callerType_; + long pageNumber_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + long pageSize_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string invokeId_; + std::string app_ip_; + bool timed_; + std::string commandName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string commandType_; + std::string instanceId_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInvocationsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInvocationsResult.h new file mode 100644 index 000000000..48ffceac2 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeInvocationsResult.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_ECS_MODEL_DESCRIBEINVOCATIONSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeInvocationsResult : public ServiceResult + { + public: + struct Invocation + { + struct InvokeInstance + { + std::string instanceId; + std::string instanceInvokeStatus; + }; + std::string invokeStatus; + std::string commandType; + bool timed; + std::string frequency; + std::string commandId; + std::string commandName; + std::vector invokeInstances; + std::string invokeId; + }; + + + DescribeInvocationsResult(); + explicit DescribeInvocationsResult(const std::string &payload); + ~DescribeInvocationsResult(); + long getTotalCount()const; + void setTotalCount(long totalCount); + long getPageSize()const; + void setPageSize(long pageSize); + std::vector getInvocations()const; + void setInvocations(const std::vector& invocations); + long getPageNumber()const; + void setPageNumber(long pageNumber); + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + long pageSize_; + std::vector invocations_; + long pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeIpRangesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeIpRangesRequest.h new file mode 100644 index 000000000..dd58d00fc --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeIpRangesRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIPRANGESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIPRANGESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeIpRangesRequest : public EcsRequest + { + + public: + DescribeIpRangesRequest(); + ~DescribeIpRangesRequest(); + + std::string getNicType()const; + void setNicType(const std::string& nicType); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string nicType_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string clusterId_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIPRANGESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeIpRangesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeIpRangesResult.h new file mode 100644 index 000000000..d479b03ad --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeIpRangesResult.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_ECS_MODEL_DESCRIBEIPRANGESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIPRANGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeIpRangesResult : public ServiceResult + { + public: + struct IpRange + { + std::string ipAddress; + std::string nicType; + }; + + + DescribeIpRangesResult(); + explicit DescribeIpRangesResult(const std::string &payload); + ~DescribeIpRangesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getIpRanges()const; + void setIpRanges(const std::vector& ipRanges); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::string clusterId_; + int pageNumber_; + std::vector ipRanges_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIPRANGESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsRequest.h new file mode 100644 index 000000000..b9dc6e75a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsRequest.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_ECS_MODEL_DESCRIBEKEYPAIRSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeKeyPairsRequest : public EcsRequest + { + + public: + DescribeKeyPairsRequest(); + ~DescribeKeyPairsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getKeyPairFingerPrint()const; + void setKeyPairFingerPrint(const std::string& keyPairFingerPrint); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getKeyPairName()const; + void setKeyPairName(const std::string& keyPairName); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string keyPairFingerPrint_; + int pageSize_; + std::string keyPairName_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsResult.h new file mode 100644 index 000000000..d21897dea --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsResult.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_ECS_MODEL_DESCRIBEKEYPAIRSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeKeyPairsResult : public ServiceResult + { + public: + struct KeyPair + { + std::string keyPairFingerPrint; + std::string keyPairName; + }; + + + DescribeKeyPairsResult(); + explicit DescribeKeyPairsResult(const std::string &payload); + ~DescribeKeyPairsResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getKeyPairs()const; + void setKeyPairs(const std::vector& keyPairs); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector keyPairs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeLimitationRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeLimitationRequest.h new file mode 100644 index 000000000..a7fb06fd7 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeLimitationRequest.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_ECS_MODEL_DESCRIBELIMITATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeLimitationRequest : public EcsRequest + { + + public: + DescribeLimitationRequest(); + ~DescribeLimitationRequest(); + + std::string getLimitation()const; + void setLimitation(const std::string& limitation); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string limitation_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeLimitationResult.h b/ecs/include/alibabacloud/ecs/model/DescribeLimitationResult.h new file mode 100644 index 000000000..a3caeb9e2 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeLimitationResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeLimitationResult : public ServiceResult + { + public: + + + DescribeLimitationResult(); + explicit DescribeLimitationResult(const std::string &payload); + ~DescribeLimitationResult(); + std::string getLimitation()const; + void setLimitation(const std::string& limitation); + std::string getValue()const; + void setValue(const std::string& value); + + protected: + void parse(const std::string &payload); + private: + std::string limitation_; + std::string value_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysRequest.h new file mode 100644 index 000000000..4964b1d39 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeNatGatewaysRequest : public EcsRequest + { + + public: + DescribeNatGatewaysRequest(); + ~DescribeNatGatewaysRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getNatGatewayId()const; + void setNatGatewayId(const std::string& natGatewayId); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string vpcId_; + int pageSize_; + std::string natGatewayId_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysResult.h b/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysResult.h new file mode 100644 index 000000000..8621237dc --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysResult.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_ECS_MODEL_DESCRIBENATGATEWAYSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeNatGatewaysResult : public ServiceResult + { + public: + struct NatGateway + { + std::string status; + std::string description; + std::string vpcId; + std::string instanceChargeType; + std::vector forwardTableIds; + std::string creationTime; + std::vector bandwidthPackageIds; + std::string regionId; + std::string spec; + std::string natGatewayId; + std::string businessStatus; + std::string name; + }; + + + DescribeNatGatewaysResult(); + explicit DescribeNatGatewaysResult(const std::string &payload); + ~DescribeNatGatewaysResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getNatGateways()const; + void setNatGateways(const std::vector& natGateways); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector natGateways_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesRequest.h new file mode 100644 index 000000000..a20a2a23a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesRequest.h @@ -0,0 +1,143 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeNetworkInterfacesRequest : public EcsRequest + { + + public: + DescribeNetworkInterfacesRequest(); + ~DescribeNetworkInterfacesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getType()const; + void setType(const std::string& type); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + std::string getNetworkInterfaceName()const; + void setNetworkInterfaceName(const std::string& networkInterfaceName); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getPrimaryIpAddress()const; + void setPrimaryIpAddress(const std::string& primaryIpAddress); + std::vector getNetworkInterfaceId()const; + void setNetworkInterfaceId(const std::vector& networkInterfaceId); + + private: + long resourceOwnerId_; + long callerParentId_; + std::string securityGroupId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string type_; + std::string ownerIdLoginEmail_; + std::string callerType_; + int pageNumber_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + int pageSize_; + std::string callerBidEmail_; + std::string callerUidEmail_; + std::string networkInterfaceName_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string vSwitchId_; + std::string instanceId_; + std::string requestId_; + std::string primaryIpAddress_; + std::vector networkInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h new file mode 100644 index 000000000..80034c063 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesResult.h @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeNetworkInterfacesResult : public ServiceResult + { + public: + struct NetworkInterfaceSet + { + struct AssociatedPublicIp + { + std::string publicIpAddress; + std::string allocationId; + }; + struct PrivateIpSet + { + struct AssociatedPublicIp1 + { + std::string publicIpAddress; + std::string allocationId; + }; + std::vector associatedPublicIp1; + std::string privateIpAddress; + bool primary; + }; + std::string status; + std::string privateIpAddress; + std::string description; + std::string zoneId; + std::string instanceId; + std::string vSwitchId; + std::string networkInterfaceName; + std::string networkInterfaceId; + std::string macAddress; + std::vector securityGroupIds; + std::string type; + std::string vpcId; + std::vector associatedPublicIp; + std::string creationTime; + std::vector privateIpSets; + }; + + + DescribeNetworkInterfacesResult(); + explicit DescribeNetworkInterfacesResult(const std::string &payload); + ~DescribeNetworkInterfacesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getNetworkInterfaceSets()const; + void setNetworkInterfaceSets(const std::vector& networkInterfaceSets); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector networkInterfaceSets_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataRequest.h new file mode 100644 index 000000000..b8beb8fc4 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeNewProjectEipMonitorDataRequest : public EcsRequest + { + + public: + DescribeNewProjectEipMonitorDataRequest(); + ~DescribeNewProjectEipMonitorDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPeriod()const; + void setPeriod(int period); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getAllocationId()const; + void setAllocationId(const std::string& allocationId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string allocationId_; + std::string startTime_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataResult.h b/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataResult.h new file mode 100644 index 000000000..f6ae5193b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATARESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeNewProjectEipMonitorDataResult : public ServiceResult + { + public: + struct EipMonitorData + { + int eipPackets; + int eipBandwidth; + int eipFlow; + int eipTX; + std::string timeStamp; + int eipRX; + }; + + + DescribeNewProjectEipMonitorDataResult(); + explicit DescribeNewProjectEipMonitorDataResult(const std::string &payload); + ~DescribeNewProjectEipMonitorDataResult(); + std::vector getEipMonitorDatas()const; + void setEipMonitorDatas(const std::vector& eipMonitorDatas); + + protected: + void parse(const std::string &payload); + private: + std::vector eipMonitorDatas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATARESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsRequest.h new file mode 100644 index 000000000..0ed93bc6b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsRequest.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_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribePhysicalConnectionsRequest : public EcsRequest + { + struct Filter + { + std::string key; + std::vector value; + }; + + public: + DescribePhysicalConnectionsRequest(); + ~DescribePhysicalConnectionsRequest(); + + std::vector getFilter()const; + void setFilter(const std::vector& filter); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::vector filter_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + int pageSize_; + std::string userCidr_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsResult.h b/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsResult.h new file mode 100644 index 000000000..5ee83ac87 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsResult.h @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribePhysicalConnectionsResult : public ServiceResult + { + public: + struct PhysicalConnectionType + { + std::string status; + std::string description; + std::string lineOperator; + std::string circuitCode; + std::string physicalConnectionId; + std::string peerLocation; + std::string redundantPhysicalConnectionId; + std::string businessStatus; + std::string name; + std::string type; + std::string adLocation; + long bandwidth; + std::string accessPointId; + std::string creationTime; + std::string enabledTime; + std::string spec; + std::string portNumber; + std::string portType; + }; + + + DescribePhysicalConnectionsResult(); + explicit DescribePhysicalConnectionsResult(const std::string &payload); + ~DescribePhysicalConnectionsResult(); + std::vector getPhysicalConnectionSet()const; + void setPhysicalConnectionSet(const std::vector& physicalConnectionSet); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + std::vector physicalConnectionSet_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribePriceRequest.h b/ecs/include/alibabacloud/ecs/model/DescribePriceRequest.h new file mode 100644 index 000000000..7622f98ca --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribePriceRequest.h @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribePriceRequest : public EcsRequest + { + + public: + DescribePriceRequest(); + ~DescribePriceRequest(); + + int getDataDisk3Size()const; + void setDataDisk3Size(int dataDisk3Size); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getDataDisk3Category()const; + void setDataDisk3Category(const std::string& dataDisk3Category); + std::string getIoOptimized()const; + void setIoOptimized(const std::string& ioOptimized); + int getInternetMaxBandwidthOut()const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + std::string getSystemDiskCategory()const; + void setSystemDiskCategory(const std::string& systemDiskCategory); + std::string getDataDisk4Category()const; + void setDataDisk4Category(const std::string& dataDisk4Category); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getDataDisk4Size()const; + void setDataDisk4Size(int dataDisk4Size); + std::string getPriceUnit()const; + void setPriceUnit(const std::string& priceUnit); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getDataDisk2Category()const; + void setDataDisk2Category(const std::string& dataDisk2Category); + int getDataDisk1Size()const; + void setDataDisk1Size(int dataDisk1Size); + int getPeriod()const; + void setPeriod(int period); + int getAmount()const; + void setAmount(int amount); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getDataDisk2Size()const; + void setDataDisk2Size(int dataDisk2Size); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getDataDisk1Category()const; + void setDataDisk1Category(const std::string& dataDisk1Category); + int getSystemDiskSize()const; + void setSystemDiskSize(int systemDiskSize); + std::string getInternetChargeType()const; + void setInternetChargeType(const std::string& internetChargeType); + std::string getInstanceNetworkType()const; + void setInstanceNetworkType(const std::string& instanceNetworkType); + + private: + int dataDisk3Size_; + long resourceOwnerId_; + std::string imageId_; + std::string dataDisk3Category_; + std::string ioOptimized_; + int internetMaxBandwidthOut_; + std::string systemDiskCategory_; + std::string dataDisk4Category_; + std::string regionId_; + int dataDisk4Size_; + std::string priceUnit_; + std::string instanceType_; + std::string dataDisk2Category_; + int dataDisk1Size_; + int period_; + int amount_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int dataDisk2Size_; + long ownerId_; + std::string resourceType_; + std::string dataDisk1Category_; + int systemDiskSize_; + std::string internetChargeType_; + std::string instanceNetworkType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribePriceResult.h b/ecs/include/alibabacloud/ecs/model/DescribePriceResult.h new file mode 100644 index 000000000..8a5033d4c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribePriceResult.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_ECS_MODEL_DESCRIBEPRICERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribePriceResult : public ServiceResult + { + public: + struct PriceInfo + { + struct Price + { + float originalPrice; + float discountPrice; + std::string currency; + float tradePrice; + }; + struct Rule + { + std::string description; + long ruleId; + }; + std::vector price; + std::vector rules; + }; + + + DescribePriceResult(); + explicit DescribePriceResult(const std::string &payload); + ~DescribePriceResult(); + std::vector getPriceInfo()const; + void setPriceInfo(const std::vector& priceInfo); + + protected: + void parse(const std::string &payload); + private: + std::vector priceInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeRequest.h new file mode 100644 index 000000000..3a626358d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeRequest.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRecommendInstanceTypeRequest : public EcsRequest + { + + public: + DescribeRecommendInstanceTypeRequest(); + ~DescribeRecommendInstanceTypeRequest(); + + 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); + std::string getChannel()const; + void setChannel(const std::string& channel); + std::string getNetworkType()const; + void setNetworkType(const std::string& networkType); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string get_Operator()const; + void set_Operator(const std::string& _operator); + std::string getToken()const; + void setToken(const std::string& token); + std::string getScene()const; + void setScene(const std::string& scene); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getProxyId()const; + void setProxyId(const std::string& proxyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string channel_; + std::string networkType_; + long ownerId_; + std::string _operator_; + std::string token_; + std::string scene_; + std::string regionId_; + std::string instanceType_; + std::string proxyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeResult.h new file mode 100644 index 000000000..11ed9dcd1 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRecommendInstanceTypeResult : public ServiceResult + { + public: + struct RecommendInstanceType + { + struct InstanceType + { + std::string supportIoOptimized; + int cores; + std::string generation; + std::string instanceTypeFamily; + int memory; + std::string instanceType; + }; + struct zone + { + std::vector networkTypes; + std::string zoneNo; + }; + std::string regionNo; + std::string commodityCode; + std::vector instanceType; + std::string scene; + std::vector zones; + }; + + + DescribeRecommendInstanceTypeResult(); + explicit DescribeRecommendInstanceTypeResult(const std::string &payload); + ~DescribeRecommendInstanceTypeResult(); + std::vector getData()const; + void setData(const std::vector& data); + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRecycleBinRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeRecycleBinRequest.h new file mode 100644 index 000000000..d661b42b6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeRecycleBinRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERECYCLEBINREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERECYCLEBINREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRecycleBinRequest : public EcsRequest + { + + public: + DescribeRecycleBinRequest(); + ~DescribeRecycleBinRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + long resourceOwnerId_; + std::string resourceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERECYCLEBINREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRecycleBinResult.h b/ecs/include/alibabacloud/ecs/model/DescribeRecycleBinResult.h new file mode 100644 index 000000000..fc8fca478 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeRecycleBinResult.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_ECS_MODEL_DESCRIBERECYCLEBINRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERECYCLEBINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRecycleBinResult : public ServiceResult + { + public: + struct RecycleBinModel + { + struct relationResource + { + std::string relationResourceId; + std::string relationResourceType; + }; + std::string status; + std::string resourceId; + std::string creationTime; + std::string resourceType; + std::vector relationResources; + std::string regionId; + }; + + + DescribeRecycleBinResult(); + explicit DescribeRecycleBinResult(const std::string &payload); + ~DescribeRecycleBinResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + std::vector getRecycleBinModels()const; + void setRecycleBinModels(const std::vector& recycleBinModels); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector recycleBinModels_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERECYCLEBINRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRegionsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeRegionsRequest.h new file mode 100644 index 000000000..b3d06bb8c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeRegionsRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRegionsRequest : public EcsRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceChargeType()const; + void setInstanceChargeType(const std::string& instanceChargeType); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceChargeType_; + std::string resourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRegionsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeRegionsResult.h new file mode 100644 index 000000000..5f2ab3998 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeRegionsResult.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_ECS_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRegionsResult : public ServiceResult + { + public: + struct Region + { + std::string status; + std::string regionId; + std::string localName; + }; + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); + std::vector getRegions()const; + void setRegions(const std::vector& regions); + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceRequest.h new file mode 100644 index 000000000..77d79c00e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRenewalPriceRequest : public EcsRequest + { + + public: + DescribeRenewalPriceRequest(); + ~DescribeRenewalPriceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + int getPeriod()const; + void setPeriod(int period); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getPriceUnit()const; + void setPriceUnit(const std::string& priceUnit); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + + private: + long resourceOwnerId_; + std::string resourceId_; + int period_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string priceUnit_; + long ownerId_; + std::string resourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceResult.h b/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceResult.h new file mode 100644 index 000000000..8a6fc88a6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceResult.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_ECS_MODEL_DESCRIBERENEWALPRICERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRenewalPriceResult : public ServiceResult + { + public: + struct PriceInfo + { + struct Price + { + float originalPrice; + float discountPrice; + std::string currency; + float tradePrice; + }; + struct Rule + { + std::string description; + long ruleId; + }; + std::vector price; + std::vector rules; + }; + + + DescribeRenewalPriceResult(); + explicit DescribeRenewalPriceResult(const std::string &payload); + ~DescribeRenewalPriceResult(); + std::vector getPriceInfo()const; + void setPriceInfo(const std::vector& priceInfo); + + protected: + void parse(const std::string &payload); + private: + std::vector priceInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsRequest.h new file mode 100644 index 000000000..724a6a0d4 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsRequest.h @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeResourceByTagsRequest : public EcsRequest + { + + public: + DescribeResourceByTagsRequest(); + ~DescribeResourceByTagsRequest(); + + std::string getTag4Value()const; + void setTag4Value(const std::string& tag4Value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTag2Key()const; + void setTag2Key(const std::string& tag2Key); + std::string getTag5Key()const; + void setTag5Key(const std::string& tag5Key); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getTag3Key()const; + void setTag3Key(const std::string& tag3Key); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getTag5Value()const; + void setTag5Value(const std::string& tag5Value); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getTag1Key()const; + void setTag1Key(const std::string& tag1Key); + std::string getTag1Value()const; + void setTag1Value(const std::string& tag1Value); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTag2Value()const; + void setTag2Value(const std::string& tag2Value); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getTag4Key()const; + void setTag4Key(const std::string& tag4Key); + std::string getTag3Value()const; + void setTag3Value(const std::string& tag3Value); + + private: + std::string tag4Value_; + long resourceOwnerId_; + std::string tag2Key_; + std::string tag5Key_; + std::string resourceOwnerAccount_; + std::string tag3Key_; + long ownerId_; + std::string resourceType_; + std::string tag5Value_; + int pageNumber_; + std::string tag1Key_; + std::string tag1Value_; + std::string regionId_; + std::string tag2Value_; + int pageSize_; + std::string tag4Key_; + std::string tag3Value_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsResult.h new file mode 100644 index 000000000..68a9f042f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsResult.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_ECS_MODEL_DESCRIBERESOURCEBYTAGSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeResourceByTagsResult : public ServiceResult + { + public: + struct Resource + { + std::string resourceId; + std::string resourceType; + std::string regionId; + }; + + + DescribeResourceByTagsResult(); + explicit DescribeResourceByTagsResult(const std::string &payload); + ~DescribeResourceByTagsResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getResources()const; + void setResources(const std::vector& resources); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector resources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesRequest.h new file mode 100644 index 000000000..3b1b914fc --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesRequest.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_ECS_MODEL_DESCRIBEROUTETABLESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRouteTablesRequest : public EcsRequest + { + + public: + DescribeRouteTablesRequest(); + ~DescribeRouteTablesRequest(); + + std::string getRouterType()const; + void setRouterType(const std::string& routerType); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRouteTableName()const; + void setRouteTableName(const std::string& routeTableName); + std::string getVRouterId()const; + void setVRouterId(const std::string& vRouterId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRouterId()const; + void setRouterId(const std::string& routerId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getRouteTableId()const; + void setRouteTableId(const std::string& routeTableId); + + private: + std::string routerType_; + long resourceOwnerId_; + std::string routeTableName_; + std::string vRouterId_; + std::string resourceOwnerAccount_; + std::string routerId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + std::string routeTableId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesResult.h new file mode 100644 index 000000000..59648f38f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesResult.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_ECS_MODEL_DESCRIBEROUTETABLESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRouteTablesResult : public ServiceResult + { + public: + struct RouteTable + { + struct RouteEntry + { + struct NextHop + { + std::string nextHopType; + std::string nextHopId; + int enabled; + int weight; + }; + std::string status; + std::string nextHopType; + std::string type; + std::string routeTableId; + std::string instanceId; + std::vector nextHops; + std::string destinationCidrBlock; + }; + std::string vRouterId; + std::string routeTableId; + std::string creationTime; + std::vector routeEntrys; + std::string routeTableType; + }; + + + DescribeRouteTablesResult(); + explicit DescribeRouteTablesResult(const std::string &payload); + ~DescribeRouteTablesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getRouteTables()const; + void setRouteTables(const std::vector& routeTables); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector routeTables_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesRequest.h new file mode 100644 index 000000000..26eb7dbd8 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesRequest.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRouterInterfacesRequest : public EcsRequest + { + struct Filter + { + std::string key; + std::vector value; + }; + + public: + DescribeRouterInterfacesRequest(); + ~DescribeRouterInterfacesRequest(); + + std::vector getFilter()const; + void setFilter(const std::vector& filter); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::vector filter_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesResult.h new file mode 100644 index 000000000..f95fba7c7 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesResult.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_ECS_MODEL_DESCRIBEROUTERINTERFACESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeRouterInterfacesResult : public ServiceResult + { + public: + struct RouterInterfaceType + { + std::string oppositeInterfaceId; + std::string oppositeInterfaceStatus; + std::string description; + std::string oppositeRouterId; + std::string endTime; + std::string routerId; + std::string businessStatus; + std::string name; + std::string oppositeRouterType; + std::string connectedTime; + std::string status; + std::string oppositeInterfaceOwnerId; + std::string oppositeRegionId; + std::string healthCheckSourceIp; + std::string role; + std::string oppositeInterfaceSpec; + std::string routerType; + std::string chargeType; + std::string creationTime; + std::string accessPointId; + std::string oppositeInterfaceBusinessStatus; + std::string oppositeAccessPointId; + std::string spec; + std::string routerInterfaceId; + std::string healthCheckTargetIp; + }; + + + DescribeRouterInterfacesResult(); + explicit DescribeRouterInterfacesResult(const std::string &payload); + ~DescribeRouterInterfacesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getRouterInterfaceSet()const; + void setRouterInterfaceSet(const std::vector& routerInterfaceSet); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector routerInterfaceSet_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeRequest.h new file mode 100644 index 000000000..52d0148d3 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeRequest.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_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupAttributeRequest : public EcsRequest + { + + public: + DescribeSecurityGroupAttributeRequest(); + ~DescribeSecurityGroupAttributeRequest(); + + std::string getNicType()const; + void setNicType(const std::string& nicType); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDirection()const; + void setDirection(const std::string& direction); + + private: + std::string nicType_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string securityGroupId_; + long ownerId_; + std::string direction_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h new file mode 100644 index 000000000..1c0fc543e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.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_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupAttributeResult : public ServiceResult + { + public: + struct Permission + { + std::string sourceGroupId; + std::string policy; + std::string description; + std::string priority; + std::string createTime; + std::string nicType; + std::string destGroupId; + std::string direction; + std::string sourceGroupName; + std::string portRange; + std::string destGroupOwnerAccount; + std::string sourceCidrIp; + std::string ipProtocol; + std::string destGroupName; + std::string destCidrIp; + std::string sourceGroupOwnerAccount; + }; + + + DescribeSecurityGroupAttributeResult(); + explicit DescribeSecurityGroupAttributeResult(const std::string &payload); + ~DescribeSecurityGroupAttributeResult(); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getSecurityGroupName()const; + void setSecurityGroupName(const std::string& securityGroupName); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + std::vector getPermissions()const; + void setPermissions(const std::vector& permissions); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInnerAccessPolicy()const; + void setInnerAccessPolicy(const std::string& innerAccessPolicy); + + protected: + void parse(const std::string &payload); + private: + std::string description_; + std::string securityGroupName_; + std::string vpcId_; + std::string securityGroupId_; + std::vector permissions_; + std::string regionId_; + std::string innerAccessPolicy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesRequest.h new file mode 100644 index 000000000..f8692162f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupReferencesRequest : public EcsRequest + { + + public: + DescribeSecurityGroupReferencesRequest(); + ~DescribeSecurityGroupReferencesRequest(); + + 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); + std::vector getSecurityGroupId()const; + void setSecurityGroupId(const std::vector& securityGroupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::vector securityGroupId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesResult.h new file mode 100644 index 000000000..e3a17e4b3 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupReferencesResult : public ServiceResult + { + public: + struct SecurityGroupReference + { + struct ReferencingSecurityGroup + { + std::string securityGroupId; + std::string aliUid; + }; + std::vector referencingSecurityGroups; + std::string securityGroupId; + }; + + + DescribeSecurityGroupReferencesResult(); + explicit DescribeSecurityGroupReferencesResult(const std::string &payload); + ~DescribeSecurityGroupReferencesResult(); + std::vector getSecurityGroupReferences()const; + void setSecurityGroupReferences(const std::vector& securityGroupReferences); + + protected: + void parse(const std::string &payload); + private: + std::vector securityGroupReferences_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsRequest.h new file mode 100644 index 000000000..6e96edb3c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsRequest.h @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupsRequest : public EcsRequest + { + + public: + DescribeSecurityGroupsRequest(); + ~DescribeSecurityGroupsRequest(); + + std::string getTag4Value()const; + void setTag4Value(const std::string& tag4Value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTag2Key()const; + void setTag2Key(const std::string& tag2Key); + bool getFuzzyQuery()const; + void setFuzzyQuery(bool fuzzyQuery); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + std::string getTag3Key()const; + void setTag3Key(const std::string& tag3Key); + bool getIsQueryEcsCount()const; + void setIsQueryEcsCount(bool isQueryEcsCount); + std::string getNetworkType()const; + void setNetworkType(const std::string& networkType); + std::string getSecurityGroupName()const; + void setSecurityGroupName(const std::string& securityGroupName); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getTag1Value()const; + void setTag1Value(const std::string& tag1Value); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getTag3Value()const; + void setTag3Value(const std::string& tag3Value); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getTag5Key()const; + void setTag5Key(const std::string& tag5Key); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSecurityGroupIds()const; + void setSecurityGroupIds(const std::string& securityGroupIds); + std::string getTag5Value()const; + void setTag5Value(const std::string& tag5Value); + std::string getTag1Key()const; + void setTag1Key(const std::string& tag1Key); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getTag2Value()const; + void setTag2Value(const std::string& tag2Value); + std::string getTag4Key()const; + void setTag4Key(const std::string& tag4Key); + + private: + std::string tag4Value_; + long resourceOwnerId_; + std::string tag2Key_; + bool fuzzyQuery_; + std::string securityGroupId_; + std::string tag3Key_; + bool isQueryEcsCount_; + std::string networkType_; + std::string securityGroupName_; + int pageNumber_; + std::string tag1Value_; + std::string regionId_; + int pageSize_; + std::string tag3Value_; + bool dryRun_; + std::string tag5Key_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string securityGroupIds_; + std::string tag5Value_; + std::string tag1Key_; + std::string vpcId_; + std::string tag2Value_; + std::string tag4Key_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsResult.h new file mode 100644 index 000000000..2adaabd81 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupsResult : public ServiceResult + { + public: + struct SecurityGroup + { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + int ecsCount; + std::string description; + std::string securityGroupName; + std::string vpcId; + std::string securityGroupId; + std::string creationTime; + std::vector tags; + int availableInstanceAmount; + }; + + + DescribeSecurityGroupsResult(); + explicit DescribeSecurityGroupsResult(const std::string &payload); + ~DescribeSecurityGroupsResult(); + std::vector getSecurityGroups()const; + void setSecurityGroups(const std::vector& securityGroups); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + protected: + void parse(const std::string &payload); + private: + std::vector securityGroups_; + int totalCount_; + int pageSize_; + int pageNumber_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksRequest.h new file mode 100644 index 000000000..81cb2777f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotLinksRequest : public EcsRequest + { + + public: + DescribeSnapshotLinksRequest(); + ~DescribeSnapshotLinksRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDiskIds()const; + void setDiskIds(const std::string& diskIds); + std::string getSnapshotLinkIds()const; + void setSnapshotLinkIds(const std::string& snapshotLinkIds); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + std::string diskIds_; + std::string snapshotLinkIds_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksResult.h new file mode 100644 index 000000000..3c17bff80 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksResult.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_ECS_MODEL_DESCRIBESNAPSHOTLINKSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotLinksResult : public ServiceResult + { + public: + struct SnapshotLink + { + std::string instanceName; + int totalCount; + int sourceDiskSize; + std::string instanceId; + std::string snapshotLinkId; + std::string regionId; + std::string sourceDiskType; + int totalSize; + std::string sourceDiskId; + }; + + + DescribeSnapshotLinksResult(); + explicit DescribeSnapshotLinksResult(const std::string &payload); + ~DescribeSnapshotLinksResult(); + std::vector getSnapshotLinks()const; + void setSnapshotLinks(const std::vector& snapshotLinks); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + std::vector snapshotLinks_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataRequest.h new file mode 100644 index 000000000..c2cd322a2 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataRequest.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_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotMonitorDataRequest : public EcsRequest + { + + public: + DescribeSnapshotMonitorDataRequest(); + ~DescribeSnapshotMonitorDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPeriod()const; + void setPeriod(int period); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + int period_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string endTime_; + std::string startTime_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataResult.h new file mode 100644 index 000000000..42c0b03bf --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataResult.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_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATARESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotMonitorDataResult : public ServiceResult + { + public: + struct DataPoint + { + long size; + std::string timeStamp; + }; + + + DescribeSnapshotMonitorDataResult(); + explicit DescribeSnapshotMonitorDataResult(const std::string &payload); + ~DescribeSnapshotMonitorDataResult(); + std::vector getMonitorData()const; + void setMonitorData(const std::vector& monitorData); + + protected: + void parse(const std::string &payload); + private: + std::vector monitorData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATARESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageRequest.h new file mode 100644 index 000000000..3434d3e27 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageRequest.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_ECS_MODEL_DESCRIBESNAPSHOTPACKAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotPackageRequest : public EcsRequest + { + + public: + DescribeSnapshotPackageRequest(); + ~DescribeSnapshotPackageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageResult.h new file mode 100644 index 000000000..ba060483b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageResult.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_ECS_MODEL_DESCRIBESNAPSHOTPACKAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotPackageResult : public ServiceResult + { + public: + struct SnapshotPackage + { + std::string endTime; + long initCapacity; + std::string startTime; + std::string displayName; + }; + + + DescribeSnapshotPackageResult(); + explicit DescribeSnapshotPackageResult(const std::string &payload); + ~DescribeSnapshotPackageResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getSnapshotPackages()const; + void setSnapshotPackages(const std::vector& snapshotPackages); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector snapshotPackages_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsRequest.h new file mode 100644 index 000000000..0f7b3cb68 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsRequest.h @@ -0,0 +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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotsRequest : public EcsRequest + { + + public: + DescribeSnapshotsRequest(); + ~DescribeSnapshotsRequest(); + + std::string getTag4Value()const; + void setTag4Value(const std::string& tag4Value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTag2Key()const; + void setTag2Key(const std::string& tag2Key); + std::string getFilter2Value()const; + void setFilter2Value(const std::string& filter2Value); + std::string getSnapshotIds()const; + void setSnapshotIds(const std::string& snapshotIds); + std::string getUsage()const; + void setUsage(const std::string& usage); + std::string getSnapshotLinkId()const; + void setSnapshotLinkId(const std::string& snapshotLinkId); + std::string getSnapshotName()const; + void setSnapshotName(const std::string& snapshotName); + std::string getTag3Key()const; + void setTag3Key(const std::string& tag3Key); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getTag1Value()const; + void setTag1Value(const std::string& tag1Value); + std::string getFilter1Key()const; + void setFilter1Key(const std::string& filter1Key); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDiskId()const; + void setDiskId(const std::string& diskId); + std::string getTag3Value()const; + void setTag3Value(const std::string& tag3Value); + bool getDryRun()const; + void setDryRun(bool dryRun); + std::string getTag5Key()const; + void setTag5Key(const std::string& tag5Key); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSourceDiskType()const; + void setSourceDiskType(const std::string& sourceDiskType); + 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 getTag5Value()const; + void setTag5Value(const std::string& tag5Value); + std::string getTag1Key()const; + void setTag1Key(const std::string& tag1Key); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + bool getEncrypted()const; + void setEncrypted(bool encrypted); + std::string getSnapshotType()const; + void setSnapshotType(const std::string& snapshotType); + std::string getTag2Value()const; + void setTag2Value(const std::string& tag2Value); + std::string getTag4Key()const; + void setTag4Key(const std::string& tag4Key); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string tag4Value_; + long resourceOwnerId_; + std::string tag2Key_; + std::string filter2Value_; + std::string snapshotIds_; + std::string usage_; + std::string snapshotLinkId_; + std::string snapshotName_; + std::string tag3Key_; + int pageNumber_; + std::string tag1Value_; + std::string filter1Key_; + std::string regionId_; + int pageSize_; + std::string diskId_; + std::string tag3Value_; + bool dryRun_; + std::string tag5Key_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string sourceDiskType_; + std::string filter1Value_; + std::string filter2Key_; + long ownerId_; + std::string tag5Value_; + std::string tag1Key_; + std::string instanceId_; + bool encrypted_; + std::string snapshotType_; + std::string tag2Value_; + std::string tag4Key_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsResult.h new file mode 100644 index 000000000..d1720bcdd --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsResult.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_ECS_MODEL_DESCRIBESNAPSHOTSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotsResult : public ServiceResult + { + public: + struct Snapshot + { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string status; + std::string progress; + std::string usage; + std::string description; + std::string productCode; + bool encrypted; + int retentionDays; + std::string snapshotName; + std::string sourceDiskId; + std::string sourceStorageType; + std::string snapshotId; + std::string sourceDiskSize; + std::string creationTime; + std::string sourceDiskType; + std::vector tags; + }; + + + DescribeSnapshotsResult(); + explicit DescribeSnapshotsResult(const std::string &payload); + ~DescribeSnapshotsResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getSnapshots()const; + void setSnapshots(const std::vector& snapshots); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector snapshots_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageRequest.h new file mode 100644 index 000000000..f86457212 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotsUsageRequest : public EcsRequest + { + + public: + DescribeSnapshotsUsageRequest(); + ~DescribeSnapshotsUsageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageResult.h new file mode 100644 index 000000000..c1097b1b6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotsUsageResult : public ServiceResult + { + public: + + + DescribeSnapshotsUsageResult(); + explicit DescribeSnapshotsUsageResult(const std::string &payload); + ~DescribeSnapshotsUsageResult(); + int getSnapshotCount()const; + void setSnapshotCount(int snapshotCount); + long getSnapshotSize()const; + void setSnapshotSize(long snapshotSize); + + protected: + void parse(const std::string &payload); + private: + int snapshotCount_; + long snapshotSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryRequest.h new file mode 100644 index 000000000..649864f1c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryRequest.h @@ -0,0 +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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSpotPriceHistoryRequest : public EcsRequest + { + + public: + DescribeSpotPriceHistoryRequest(); + ~DescribeSpotPriceHistoryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getIoOptimized()const; + void setIoOptimized(const std::string& ioOptimized); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getNetworkType()const; + void setNetworkType(const std::string& networkType); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + int getOffset()const; + void setOffset(int offset); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getOSType()const; + void setOSType(const std::string& oSType); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + + private: + long resourceOwnerId_; + long callerParentId_; + std::string ioOptimized_; + bool proxy_original_security_transport_; + std::string networkType_; + std::string startTime_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string instanceType_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + int offset_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string callerBid_; + std::string oSType_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string zoneId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryResult.h new file mode 100644 index 000000000..331c53a7d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryResult.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_ECS_MODEL_DESCRIBESPOTPRICEHISTORYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeSpotPriceHistoryResult : public ServiceResult + { + public: + struct SpotPriceType + { + float spotPrice; + float originPrice; + std::string ioOptimized; + std::string zoneId; + std::string networkType; + std::string instanceType; + std::string timestamp; + }; + + + DescribeSpotPriceHistoryResult(); + explicit DescribeSpotPriceHistoryResult(const std::string &payload); + ~DescribeSpotPriceHistoryResult(); + std::string getCurrency()const; + void setCurrency(const std::string& currency); + int getNextOffset()const; + void setNextOffset(int nextOffset); + std::vector getSpotPrices()const; + void setSpotPrices(const std::vector& spotPrices); + + protected: + void parse(const std::string &payload); + private: + std::string currency_; + int nextOffset_; + std::vector spotPrices_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTagKeysRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeTagKeysRequest.h new file mode 100644 index 000000000..d49a470b5 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeTagKeysRequest.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_ECS_MODEL_DESCRIBETAGKEYSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBETAGKEYSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeTagKeysRequest : public EcsRequest + { + + public: + DescribeTagKeysRequest(); + ~DescribeTagKeysRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + int pageSize_; + long ownerId_; + std::string resourceType_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETAGKEYSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTagKeysResult.h b/ecs/include/alibabacloud/ecs/model/DescribeTagKeysResult.h new file mode 100644 index 000000000..93baf15af --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeTagKeysResult.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_ECS_MODEL_DESCRIBETAGKEYSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBETAGKEYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeTagKeysResult : public ServiceResult + { + public: + + + DescribeTagKeysResult(); + explicit DescribeTagKeysResult(const std::string &payload); + ~DescribeTagKeysResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getTagKeys()const; + void setTagKeys(const std::vector& tagKeys); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector tagKeys_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETAGKEYSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTagsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeTagsRequest.h new file mode 100644 index 000000000..63d8f2b4c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeTagsRequest.h @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeTagsRequest : public EcsRequest + { + + public: + DescribeTagsRequest(); + ~DescribeTagsRequest(); + + std::string getTag4Value()const; + void setTag4Value(const std::string& tag4Value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + std::string getTag2Key()const; + void setTag2Key(const std::string& tag2Key); + std::string getTag5Key()const; + void setTag5Key(const std::string& tag5Key); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getTag3Key()const; + void setTag3Key(const std::string& tag3Key); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getTag5Value()const; + void setTag5Value(const std::string& tag5Value); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getTag1Key()const; + void setTag1Key(const std::string& tag1Key); + std::string getTag1Value()const; + void setTag1Value(const std::string& tag1Value); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTag2Value()const; + void setTag2Value(const std::string& tag2Value); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getTag4Key()const; + void setTag4Key(const std::string& tag4Key); + std::string getTag3Value()const; + void setTag3Value(const std::string& tag3Value); + + private: + std::string tag4Value_; + long resourceOwnerId_; + std::string resourceId_; + std::string tag2Key_; + std::string tag5Key_; + std::string resourceOwnerAccount_; + std::string tag3Key_; + long ownerId_; + std::string resourceType_; + std::string tag5Value_; + int pageNumber_; + std::string tag1Key_; + std::string tag1Value_; + std::string regionId_; + std::string tag2Value_; + int pageSize_; + std::string tag4Key_; + std::string tag3Value_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTagsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeTagsResult.h new file mode 100644 index 000000000..4793479e2 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeTagsResult.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_ECS_MODEL_DESCRIBETAGSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeTagsResult : public ServiceResult + { + public: + struct Tag + { + struct ResourceTypeCount + { + int snapshot; + int instance; + int volume; + int securitygroup; + int image; + int disk; + }; + std::vector resourceTypeCount; + std::string tagKey; + std::string tagValue; + }; + + + DescribeTagsResult(); + explicit DescribeTagsResult(const std::string &payload); + ~DescribeTagsResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getTags()const; + void setTags(const std::vector& tags); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeRequest.h new file mode 100644 index 000000000..da16c5273 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeRequest.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_ECS_MODEL_DESCRIBETASKATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeTaskAttributeRequest : public EcsRequest + { + + public: + DescribeTaskAttributeRequest(); + ~DescribeTaskAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + long ownerId_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeResult.h new file mode 100644 index 000000000..885d264bb --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeResult.h @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeTaskAttributeResult : public ServiceResult + { + public: + struct OperationProgress + { + struct RelatedItem + { + std::string value; + std::string name; + }; + std::string operationStatus; + std::string errorMsg; + std::vector relatedItemSet; + std::string errorCode; + }; + + + DescribeTaskAttributeResult(); + explicit DescribeTaskAttributeResult(const std::string &payload); + ~DescribeTaskAttributeResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getTaskProcess()const; + void setTaskProcess(const std::string& taskProcess); + std::vector getOperationProgressSet()const; + void setOperationProgressSet(const std::vector& operationProgressSet); + std::string getTaskAction()const; + void setTaskAction(const std::string& taskAction); + std::string getSupportCancel()const; + void setSupportCancel(const std::string& supportCancel); + std::string getCreationTime()const; + void setCreationTime(const std::string& creationTime); + int getFailedCount()const; + void setFailedCount(int failedCount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTaskStatus()const; + void setTaskStatus(const std::string& taskStatus); + int getSuccessCount()const; + void setSuccessCount(int successCount); + std::string getFinishedTime()const; + void setFinishedTime(const std::string& finishedTime); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string taskId_; + std::string taskProcess_; + std::vector operationProgressSet_; + std::string taskAction_; + std::string supportCancel_; + std::string creationTime_; + int failedCount_; + std::string regionId_; + std::string taskStatus_; + int successCount_; + std::string finishedTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTasksRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeTasksRequest.h new file mode 100644 index 000000000..4c3561d9d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeTasksRequest.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeTasksRequest : public EcsRequest + { + + public: + DescribeTasksRequest(); + ~DescribeTasksRequest(); + + 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); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTaskIds()const; + void setTaskIds(const std::string& taskIds); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getTaskStatus()const; + void setTaskStatus(const std::string& taskStatus); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getTaskAction()const; + void setTaskAction(const std::string& taskAction); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string startTime_; + long ownerId_; + std::string taskIds_; + int pageNumber_; + std::string taskStatus_; + std::string regionId_; + int pageSize_; + std::string taskAction_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTasksResult.h b/ecs/include/alibabacloud/ecs/model/DescribeTasksResult.h new file mode 100644 index 000000000..c0bdf3741 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeTasksResult.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_ECS_MODEL_DESCRIBETASKSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeTasksResult : public ServiceResult + { + public: + struct Task + { + std::string taskId; + std::string taskAction; + std::string supportCancel; + std::string creationTime; + std::string taskStatus; + std::string finishedTime; + }; + + + DescribeTasksResult(); + explicit DescribeTasksResult(const std::string &payload); + ~DescribeTasksResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getTaskSet()const; + void setTaskSet(const std::vector& taskSet); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector taskSet_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorRequest.h new file mode 100644 index 000000000..847ac8550 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeUserBusinessBehaviorRequest : public EcsRequest + { + + public: + DescribeUserBusinessBehaviorRequest(); + ~DescribeUserBusinessBehaviorRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getStatusKey()const; + void setStatusKey(const std::string& statusKey); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string statusKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorResult.h b/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorResult.h new file mode 100644 index 000000000..867a8a8ec --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeUserBusinessBehaviorResult : public ServiceResult + { + public: + + + DescribeUserBusinessBehaviorResult(); + explicit DescribeUserBusinessBehaviorResult(const std::string &payload); + ~DescribeUserBusinessBehaviorResult(); + std::string getStatusValue()const; + void setStatusValue(const std::string& statusValue); + + protected: + void parse(const std::string &payload); + private: + std::string statusValue_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeUserDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeUserDataRequest.h new file mode 100644 index 000000000..ab1b13bcd --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeUserDataRequest.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_ECS_MODEL_DESCRIBEUSERDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATAREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeUserDataRequest : public EcsRequest + { + + public: + DescribeUserDataRequest(); + ~DescribeUserDataRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATAREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeUserDataResult.h b/ecs/include/alibabacloud/ecs/model/DescribeUserDataResult.h new file mode 100644 index 000000000..3d97a8c03 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeUserDataResult.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_ECS_MODEL_DESCRIBEUSERDATARESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeUserDataResult : public ServiceResult + { + public: + + + DescribeUserDataResult(); + explicit DescribeUserDataResult(const std::string &payload); + ~DescribeUserDataResult(); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getUserData()const; + void setUserData(const std::string& userData); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + protected: + void parse(const std::string &payload); + private: + std::string instanceId_; + std::string userData_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATARESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVRoutersRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeVRoutersRequest.h new file mode 100644 index 000000000..8dc4e6231 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeVRoutersRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVRoutersRequest : public EcsRequest + { + + public: + DescribeVRoutersRequest(); + ~DescribeVRoutersRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVRouterId()const; + void setVRouterId(const std::string& vRouterId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string vRouterId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVRoutersResult.h b/ecs/include/alibabacloud/ecs/model/DescribeVRoutersResult.h new file mode 100644 index 000000000..3cb6b0419 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeVRoutersResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVRoutersResult : public ServiceResult + { + public: + struct VRouter + { + std::string vRouterId; + std::string description; + std::string vpcId; + std::vector routeTableIds; + std::string creationTime; + std::string regionId; + std::string vRouterName; + }; + + + DescribeVRoutersResult(); + explicit DescribeVRoutersResult(const std::string &payload); + ~DescribeVRoutersResult(); + std::vector getVRouters()const; + void setVRouters(const std::vector& vRouters); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + std::vector vRouters_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesRequest.h new file mode 100644 index 000000000..391c1469f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesRequest.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_ECS_MODEL_DESCRIBEVSWITCHESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVSwitchesRequest : public EcsRequest + { + + public: + DescribeVSwitchesRequest(); + ~DescribeVSwitchesRequest(); + + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + bool getIsDefault()const; + void setIsDefault(bool isDefault); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::string vSwitchId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string vpcId_; + std::string ownerAccount_; + int pageSize_; + std::string zoneId_; + bool isDefault_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesResult.h new file mode 100644 index 000000000..efa5e55d5 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVSwitchesResult : public ServiceResult + { + public: + struct VSwitch + { + std::string status; + bool isDefault; + std::string description; + std::string vpcId; + std::string zoneId; + std::string vSwitchId; + long availableIpAddressCount; + std::string creationTime; + std::string cidrBlock; + std::string vSwitchName; + }; + + + DescribeVSwitchesResult(); + explicit DescribeVSwitchesResult(const std::string &payload); + ~DescribeVSwitchesResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getVSwitches()const; + void setVSwitches(const std::vector& vSwitches); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector vSwitches_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h new file mode 100644 index 000000000..32a214482 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVirtualBorderRoutersForPhysicalConnectionRequest : public EcsRequest + { + struct Filter + { + std::string key; + std::vector value; + }; + + public: + DescribeVirtualBorderRoutersForPhysicalConnectionRequest(); + ~DescribeVirtualBorderRoutersForPhysicalConnectionRequest(); + + std::vector getFilter()const; + void setFilter(const std::vector& filter); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::vector filter_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string physicalConnectionId_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h new file mode 100644 index 000000000..e1b422c8a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVirtualBorderRoutersForPhysicalConnectionResult : public ServiceResult + { + public: + struct VirtualBorderRouterForPhysicalConnectionType + { + long vbrOwnerUid; + std::string activationTime; + std::string circuitCode; + std::string creationTime; + std::string vbrId; + std::string terminationTime; + int vlanId; + std::string recoveryTime; + }; + + + DescribeVirtualBorderRoutersForPhysicalConnectionResult(); + explicit DescribeVirtualBorderRoutersForPhysicalConnectionResult(const std::string &payload); + ~DescribeVirtualBorderRoutersForPhysicalConnectionResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getVirtualBorderRouterForPhysicalConnectionSet()const; + void setVirtualBorderRouterForPhysicalConnectionSet(const std::vector& virtualBorderRouterForPhysicalConnectionSet); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector virtualBorderRouterForPhysicalConnectionSet_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersRequest.h new file mode 100644 index 000000000..348f8302a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersRequest.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVirtualBorderRoutersRequest : public EcsRequest + { + struct Filter + { + std::string key; + std::vector value; + }; + + public: + DescribeVirtualBorderRoutersRequest(); + ~DescribeVirtualBorderRoutersRequest(); + + std::vector getFilter()const; + void setFilter(const std::vector& filter); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + std::vector filter_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + int pageSize_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersResult.h b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersResult.h new file mode 100644 index 000000000..6fabad23f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersResult.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_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVirtualBorderRoutersResult : public ServiceResult + { + public: + struct VirtualBorderRouterType + { + std::string status; + std::string peerGatewayIp; + std::string routeTableId; + std::string description; + std::string activationTime; + std::string circuitCode; + std::string physicalConnectionId; + std::string vlanInterfaceId; + std::string physicalConnectionStatus; + std::string vbrId; + std::string terminationTime; + std::string peeringSubnetMask; + std::string physicalConnectionOwnerUid; + std::string recoveryTime; + std::string name; + std::string localGatewayIp; + std::string creationTime; + std::string accessPointId; + int vlanId; + std::string physicalConnectionBusinessStatus; + }; + + + DescribeVirtualBorderRoutersResult(); + explicit DescribeVirtualBorderRoutersResult(const std::string &payload); + ~DescribeVirtualBorderRoutersResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::vector getVirtualBorderRouterSet()const; + void setVirtualBorderRouterSet(const std::vector& virtualBorderRouterSet); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector virtualBorderRouterSet_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVpcsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeVpcsRequest.h new file mode 100644 index 000000000..c651e873a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeVpcsRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVpcsRequest : public EcsRequest + { + + public: + DescribeVpcsRequest(); + ~DescribeVpcsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getPageSize()const; + void setPageSize(int pageSize); + bool getIsDefault()const; + void setIsDefault(bool isDefault); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string vpcId_; + std::string ownerAccount_; + int pageSize_; + bool isDefault_; + long ownerId_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVpcsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeVpcsResult.h new file mode 100644 index 000000000..3308efb41 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeVpcsResult.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_ECS_MODEL_DESCRIBEVPCSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeVpcsResult : public ServiceResult + { + public: + struct Vpc + { + std::string status; + std::string vRouterId; + bool isDefault; + std::string description; + std::string vpcId; + std::vector vSwitchIds; + std::string creationTime; + std::string cidrBlock; + std::string vpcName; + std::string regionId; + std::vector userCidrs; + }; + + + DescribeVpcsResult(); + explicit DescribeVpcsResult(const std::string &payload); + ~DescribeVpcsResult(); + std::vector getVpcs()const; + void setVpcs(const std::vector& vpcs); + int getTotalCount()const; + void setTotalCount(int totalCount); + int getPageSize()const; + void setPageSize(int pageSize); + int getPageNumber()const; + void setPageNumber(int pageNumber); + + protected: + void parse(const std::string &payload); + private: + std::vector vpcs_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeZonesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeZonesRequest.h new file mode 100644 index 000000000..b493b39a1 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeZonesRequest.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_ECS_MODEL_DESCRIBEZONESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeZonesRequest : public EcsRequest + { + + public: + DescribeZonesRequest(); + ~DescribeZonesRequest(); + + std::string getSpotStrategy()const; + void setSpotStrategy(const std::string& spotStrategy); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceChargeType()const; + void setInstanceChargeType(const std::string& instanceChargeType); + bool getVerbose()const; + void setVerbose(bool verbose); + + private: + std::string spotStrategy_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string instanceChargeType_; + bool verbose_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DescribeZonesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeZonesResult.h new file mode 100644 index 000000000..37670a38c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DescribeZonesResult.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_ECS_MODEL_DESCRIBEZONESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DescribeZonesResult : public ServiceResult + { + public: + struct Zone + { + struct ResourcesInfo + { + std::vector networkTypes; + std::vector instanceGenerations; + bool ioOptimized; + std::vector systemDiskCategories; + std::vector instanceTypes; + std::vector instanceTypeFamilies; + std::vector dataDiskCategories; + }; + std::vector availableInstanceTypes; + std::string zoneId; + std::vector availableResources; + std::vector availableDiskCategories; + std::string localName; + std::vector availableResourceCreation; + std::vector availableVolumeCategories; + }; + + + DescribeZonesResult(); + explicit DescribeZonesResult(const std::string &payload); + ~DescribeZonesResult(); + std::vector getZones()const; + void setZones(const std::vector& zones); + + protected: + void parse(const std::string &payload); + private: + std::vector zones_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcRequest.h b/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcRequest.h new file mode 100644 index 000000000..8ff333ab2 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachClassicLinkVpcRequest : public EcsRequest + { + + public: + DetachClassicLinkVpcRequest(); + ~DetachClassicLinkVpcRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string vpcId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcResult.h b/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcResult.h new file mode 100644 index 000000000..e1a96c1f8 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcResult.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_ECS_MODEL_DETACHCLASSICLINKVPCRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachClassicLinkVpcResult : public ServiceResult + { + public: + + + DetachClassicLinkVpcResult(); + explicit DetachClassicLinkVpcResult(const std::string &payload); + ~DetachClassicLinkVpcResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachDiskRequest.h b/ecs/include/alibabacloud/ecs/model/DetachDiskRequest.h new file mode 100644 index 000000000..9f56c1000 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DetachDiskRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHDISKREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachDiskRequest : public EcsRequest + { + + public: + DetachDiskRequest(); + ~DetachDiskRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDiskId()const; + void setDiskId(const std::string& diskId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string diskId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DETACHDISKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachDiskResult.h b/ecs/include/alibabacloud/ecs/model/DetachDiskResult.h new file mode 100644 index 000000000..d10185264 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DetachDiskResult.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_ECS_MODEL_DETACHDISKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachDiskResult : public ServiceResult + { + public: + + + DetachDiskResult(); + explicit DetachDiskResult(const std::string &payload); + ~DetachDiskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DETACHDISKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleRequest.h b/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleRequest.h new file mode 100644 index 000000000..9f9786834 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachInstanceRamRoleRequest : public EcsRequest + { + + public: + DetachInstanceRamRoleRequest(); + ~DetachInstanceRamRoleRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInstanceIds()const; + void setInstanceIds(const std::string& instanceIds); + std::string getRamRoleName()const; + void setRamRoleName(const std::string& ramRoleName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string instanceIds_; + std::string ramRoleName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleResult.h b/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleResult.h new file mode 100644 index 000000000..e65d3b5c1 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachInstanceRamRoleResult : public ServiceResult + { + public: + struct Result + { + struct InstanceRamRoleSet + { + std::string ramRoleName; + std::string instanceId; + }; + std::string message; + std::string instanceId; + std::vector instanceRamRoleSets; + std::string code; + bool success; + }; + + + DetachInstanceRamRoleResult(); + explicit DetachInstanceRamRoleResult(const std::string &payload); + ~DetachInstanceRamRoleResult(); + int getTotalCount()const; + void setTotalCount(int totalCount); + std::string getRamRoleName()const; + void setRamRoleName(const std::string& ramRoleName); + int getFailCount()const; + void setFailCount(int failCount); + std::vector getDetachInstanceRamRoleResults()const; + void setDetachInstanceRamRoleResults(const std::vector& detachInstanceRamRoleResults); + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string ramRoleName_; + int failCount_; + std::vector detachInstanceRamRoleResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachKeyPairRequest.h b/ecs/include/alibabacloud/ecs/model/DetachKeyPairRequest.h new file mode 100644 index 000000000..179182240 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DetachKeyPairRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachKeyPairRequest : public EcsRequest + { + + public: + DetachKeyPairRequest(); + ~DetachKeyPairRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getInstanceIds()const; + void setInstanceIds(const std::string& instanceIds); + std::string getKeyPairName()const; + void setKeyPairName(const std::string& keyPairName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string instanceIds_; + std::string keyPairName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachKeyPairResult.h b/ecs/include/alibabacloud/ecs/model/DetachKeyPairResult.h new file mode 100644 index 000000000..f1453b507 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DetachKeyPairResult.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_ECS_MODEL_DETACHKEYPAIRRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachKeyPairResult : public ServiceResult + { + public: + struct Result + { + std::string message; + std::string instanceId; + std::string code; + std::string success; + }; + + + DetachKeyPairResult(); + explicit DetachKeyPairResult(const std::string &payload); + ~DetachKeyPairResult(); + std::string getKeyPairName()const; + void setKeyPairName(const std::string& keyPairName); + std::string getTotalCount()const; + void setTotalCount(const std::string& totalCount); + std::vector getResults()const; + void setResults(const std::vector& results); + std::string getFailCount()const; + void setFailCount(const std::string& failCount); + + protected: + void parse(const std::string &payload); + private: + std::string keyPairName_; + std::string totalCount_; + std::vector results_; + std::string failCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceRequest.h new file mode 100644 index 000000000..fdbd7fbe4 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachNetworkInterfaceRequest : public EcsRequest + { + + public: + DetachNetworkInterfaceRequest(); + ~DetachNetworkInterfaceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getNetworkInterfaceId()const; + void setNetworkInterfaceId(const std::string& networkInterfaceId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string instanceId_; + std::string requestId_; + std::string networkInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceResult.h b/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceResult.h new file mode 100644 index 000000000..95b88e29b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceResult.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_ECS_MODEL_DETACHNETWORKINTERFACERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT DetachNetworkInterfaceResult : public ServiceResult + { + public: + + + DetachNetworkInterfaceResult(); + explicit DetachNetworkInterfaceResult(const std::string &payload); + ~DetachNetworkInterfaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EipFillParamsRequest.h b/ecs/include/alibabacloud/ecs/model/EipFillParamsRequest.h new file mode 100644 index 000000000..72e7c361d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/EipFillParamsRequest.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_ECS_MODEL_EIPFILLPARAMSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT EipFillParamsRequest : public EcsRequest + { + + public: + EipFillParamsRequest(); + ~EipFillParamsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getData()const; + void setData(const std::string& data); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string data_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string userCidr_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EipFillParamsResult.h b/ecs/include/alibabacloud/ecs/model/EipFillParamsResult.h new file mode 100644 index 000000000..a44f51e86 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/EipFillParamsResult.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_ECS_MODEL_EIPFILLPARAMSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT EipFillParamsResult : public ServiceResult + { + public: + + + EipFillParamsResult(); + explicit EipFillParamsResult(const std::string &payload); + ~EipFillParamsResult(); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getMessage()const; + void setMessage(const std::string& message); + std::string getData()const; + void setData(const std::string& data); + std::string getCode()const; + void setCode(const std::string& code); + bool getSuccess()const; + void setSuccess(bool success); + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string message_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EipFillProductRequest.h b/ecs/include/alibabacloud/ecs/model/EipFillProductRequest.h new file mode 100644 index 000000000..805742cf7 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/EipFillProductRequest.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_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT EipFillProductRequest : public EcsRequest + { + + public: + EipFillProductRequest(); + ~EipFillProductRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getData()const; + void setData(const std::string& data); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string data_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string userCidr_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EipFillProductResult.h b/ecs/include/alibabacloud/ecs/model/EipFillProductResult.h new file mode 100644 index 000000000..da64ca17d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/EipFillProductResult.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_ECS_MODEL_EIPFILLPRODUCTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT EipFillProductResult : public ServiceResult + { + public: + + + EipFillProductResult(); + explicit EipFillProductResult(const std::string &payload); + ~EipFillProductResult(); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getMessage()const; + void setMessage(const std::string& message); + std::string getData()const; + void setData(const std::string& data); + std::string getCode()const; + void setCode(const std::string& code); + bool getSuccess()const; + void setSuccess(bool success); + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string message_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EipNotifyPaidRequest.h b/ecs/include/alibabacloud/ecs/model/EipNotifyPaidRequest.h new file mode 100644 index 000000000..95bdc6d24 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/EipNotifyPaidRequest.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_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT EipNotifyPaidRequest : public EcsRequest + { + + public: + EipNotifyPaidRequest(); + ~EipNotifyPaidRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getData()const; + void setData(const std::string& data); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string data_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string userCidr_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EipNotifyPaidResult.h b/ecs/include/alibabacloud/ecs/model/EipNotifyPaidResult.h new file mode 100644 index 000000000..0bb715bcb --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/EipNotifyPaidResult.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_ECS_MODEL_EIPNOTIFYPAIDRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT EipNotifyPaidResult : public ServiceResult + { + public: + + + EipNotifyPaidResult(); + explicit EipNotifyPaidResult(const std::string &payload); + ~EipNotifyPaidResult(); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getMessage()const; + void setMessage(const std::string& message); + std::string getData()const; + void setData(const std::string& data); + std::string getCode()const; + void setCode(const std::string& code); + bool getSuccess()const; + void setSuccess(bool success); + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string message_; + std::string data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionRequest.h new file mode 100644 index 000000000..895dfcd91 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionRequest.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_ECS_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT EnablePhysicalConnectionRequest : public EcsRequest + { + + public: + EnablePhysicalConnectionRequest(); + ~EnablePhysicalConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string physicalConnectionId_; + std::string ownerAccount_; + std::string userCidr_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionResult.h b/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionResult.h new file mode 100644 index 000000000..e2ebf5bef --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT EnablePhysicalConnectionResult : public ServiceResult + { + public: + + + EnablePhysicalConnectionResult(); + explicit EnablePhysicalConnectionResult(const std::string &payload); + ~EnablePhysicalConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ExportImageRequest.h b/ecs/include/alibabacloud/ecs/model/ExportImageRequest.h new file mode 100644 index 000000000..bd9d79f68 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ExportImageRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_EXPORTIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_EXPORTIMAGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ExportImageRequest : public EcsRequest + { + + public: + ExportImageRequest(); + ~ExportImageRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getOSSBucket()const; + void setOSSBucket(const std::string& oSSBucket); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOSSPrefix()const; + void setOSSPrefix(const std::string& oSSPrefix); + std::string getRoleName()const; + void setRoleName(const std::string& roleName); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getImageFormat()const; + void setImageFormat(const std::string& imageFormat); + + private: + long resourceOwnerId_; + std::string imageId_; + std::string oSSBucket_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string oSSPrefix_; + std::string roleName_; + long ownerId_; + std::string imageFormat_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_EXPORTIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ExportImageResult.h b/ecs/include/alibabacloud/ecs/model/ExportImageResult.h new file mode 100644 index 000000000..777108d83 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ExportImageResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_EXPORTIMAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_EXPORTIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ExportImageResult : public ServiceResult + { + public: + + + ExportImageResult(); + explicit ExportImageResult(const std::string &payload); + ~ExportImageResult(); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_EXPORTIMAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ImportImageRequest.h b/ecs/include/alibabacloud/ecs/model/ImportImageRequest.h new file mode 100644 index 000000000..ff4b2fafc --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ImportImageRequest.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_ECS_MODEL_IMPORTIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_IMPORTIMAGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ImportImageRequest : public EcsRequest + { + struct DiskDeviceMapping + { + std::string format; + std::string oSSBucket; + std::string oSSObject; + int diskImSize; + int diskImageSize; + std::string device; + }; + + public: + ImportImageRequest(); + ~ImportImageRequest(); + + std::vector getDiskDeviceMapping()const; + void setDiskDeviceMapping(const std::vector& diskDeviceMapping); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getImageName()const; + void setImageName(const std::string& imageName); + std::string getRoleName()const; + void setRoleName(const std::string& roleName); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getOSType()const; + void setOSType(const std::string& oSType); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPlatform()const; + void setPlatform(const std::string& platform); + std::string getArchitecture()const; + void setArchitecture(const std::string& architecture); + + private: + std::vector diskDeviceMapping_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string imageName_; + std::string roleName_; + std::string description_; + std::string oSType_; + long ownerId_; + std::string platform_; + std::string architecture_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_IMPORTIMAGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ImportImageResult.h b/ecs/include/alibabacloud/ecs/model/ImportImageResult.h new file mode 100644 index 000000000..5e3f8c499 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ImportImageResult.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_ECS_MODEL_IMPORTIMAGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_IMPORTIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ImportImageResult : public ServiceResult + { + public: + + + ImportImageResult(); + explicit ImportImageResult(const std::string &payload); + ~ImportImageResult(); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string imageId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_IMPORTIMAGERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ImportKeyPairRequest.h b/ecs/include/alibabacloud/ecs/model/ImportKeyPairRequest.h new file mode 100644 index 000000000..8b872f406 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ImportKeyPairRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ImportKeyPairRequest : public EcsRequest + { + + public: + ImportKeyPairRequest(); + ~ImportKeyPairRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getPublicKeyBody()const; + void setPublicKeyBody(const std::string& publicKeyBody); + std::string getKeyPairName()const; + void setKeyPairName(const std::string& keyPairName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string publicKeyBody_; + std::string keyPairName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ImportKeyPairResult.h b/ecs/include/alibabacloud/ecs/model/ImportKeyPairResult.h new file mode 100644 index 000000000..a561e1ef4 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ImportKeyPairResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ImportKeyPairResult : public ServiceResult + { + public: + + + ImportKeyPairResult(); + explicit ImportKeyPairResult(const std::string &payload); + ~ImportKeyPairResult(); + std::string getKeyPairFingerPrint()const; + void setKeyPairFingerPrint(const std::string& keyPairFingerPrint); + std::string getKeyPairName()const; + void setKeyPairName(const std::string& keyPairName); + + protected: + void parse(const std::string &payload); + private: + std::string keyPairFingerPrint_; + std::string keyPairName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/InvokeCommandRequest.h b/ecs/include/alibabacloud/ecs/model/InvokeCommandRequest.h new file mode 100644 index 000000000..cd62c6045 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/InvokeCommandRequest.h @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT InvokeCommandRequest : public EcsRequest + { + + public: + InvokeCommandRequest(); + ~InvokeCommandRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCommandId()const; + void setCommandId(const std::string& commandId); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getFrequency()const; + void setFrequency(const std::string& frequency); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + bool getTimed()const; + void setTimed(bool timed); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::vector getInstanceId()const; + void setInstanceId(const std::vector& instanceId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string commandId_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string frequency_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + bool timed_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::vector instanceId_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/InvokeCommandResult.h b/ecs/include/alibabacloud/ecs/model/InvokeCommandResult.h new file mode 100644 index 000000000..179b3ebf2 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/InvokeCommandResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT InvokeCommandResult : public ServiceResult + { + public: + + + InvokeCommandResult(); + explicit InvokeCommandResult(const std::string &payload); + ~InvokeCommandResult(); + std::string getInvokeId()const; + void setInvokeId(const std::string& invokeId); + + protected: + void parse(const std::string &payload); + private: + std::string invokeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/JoinResourceGroupRequest.h b/ecs/include/alibabacloud/ecs/model/JoinResourceGroupRequest.h new file mode 100644 index 000000000..1c74f23a5 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/JoinResourceGroupRequest.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_ECS_MODEL_JOINRESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT JoinResourceGroupRequest : public EcsRequest + { + + public: + JoinResourceGroupRequest(); + ~JoinResourceGroupRequest(); + + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + + private: + std::string resourceGroupId_; + long resourceOwnerId_; + std::string resourceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/JoinResourceGroupResult.h b/ecs/include/alibabacloud/ecs/model/JoinResourceGroupResult.h new file mode 100644 index 000000000..b41b3f173 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/JoinResourceGroupResult.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_ECS_MODEL_JOINRESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT JoinResourceGroupResult : public ServiceResult + { + public: + + + JoinResourceGroupResult(); + explicit JoinResourceGroupResult(const std::string &payload); + ~JoinResourceGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupRequest.h new file mode 100644 index 000000000..3cfd0026d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT JoinSecurityGroupRequest : public EcsRequest + { + + public: + JoinSecurityGroupRequest(); + ~JoinSecurityGroupRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string securityGroupId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupResult.h b/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupResult.h new file mode 100644 index 000000000..7947bd7ff --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupResult.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_ECS_MODEL_JOINSECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT JoinSecurityGroupResult : public ServiceResult + { + public: + + + JoinSecurityGroupResult(); + explicit JoinSecurityGroupResult(const std::string &payload); + ~JoinSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupRequest.h new file mode 100644 index 000000000..76ae172aa --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT LeaveSecurityGroupRequest : public EcsRequest + { + + public: + LeaveSecurityGroupRequest(); + ~LeaveSecurityGroupRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string securityGroupId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupResult.h b/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupResult.h new file mode 100644 index 000000000..75d0bfb43 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupResult.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_ECS_MODEL_LEAVESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT LeaveSecurityGroupResult : public ServiceResult + { + public: + + + LeaveSecurityGroupResult(); + explicit LeaveSecurityGroupResult(const std::string &payload); + ~LeaveSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExRequest.h new file mode 100644 index 000000000..29d35da5d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyAutoSnapshotPolicyExRequest : public EcsRequest + { + + public: + ModifyAutoSnapshotPolicyExRequest(); + ~ModifyAutoSnapshotPolicyExRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAutoSnapshotPolicyId()const; + void setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId); + std::string getTimePoints()const; + void setTimePoints(const std::string& timePoints); + int getRetentionDays()const; + void setRetentionDays(int retentionDays); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRepeatWeekdays()const; + void setRepeatWeekdays(const std::string& repeatWeekdays); + std::string getAutoSnapshotPolicyName()const; + void setAutoSnapshotPolicyName(const std::string& autoSnapshotPolicyName); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string autoSnapshotPolicyId_; + std::string timePoints_; + int retentionDays_; + long ownerId_; + std::string repeatWeekdays_; + std::string autoSnapshotPolicyName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExResult.h b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExResult.h new file mode 100644 index 000000000..0cfcc90bf --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExResult.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_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyAutoSnapshotPolicyExResult : public ServiceResult + { + public: + + + ModifyAutoSnapshotPolicyExResult(); + explicit ModifyAutoSnapshotPolicyExResult(const std::string &payload); + ~ModifyAutoSnapshotPolicyExResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyRequest.h new file mode 100644 index 000000000..8f83787b5 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyRequest.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyAutoSnapshotPolicyRequest : public EcsRequest + { + + public: + ModifyAutoSnapshotPolicyRequest(); + ~ModifyAutoSnapshotPolicyRequest(); + + bool getDataDiskPolicyEnabled()const; + void setDataDiskPolicyEnabled(bool dataDiskPolicyEnabled); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getDataDiskPolicyRetentionDays()const; + void setDataDiskPolicyRetentionDays(int dataDiskPolicyRetentionDays); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + bool getSystemDiskPolicyRetentionLastWeek()const; + void setSystemDiskPolicyRetentionLastWeek(bool systemDiskPolicyRetentionLastWeek); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getSystemDiskPolicyTimePeriod()const; + void setSystemDiskPolicyTimePeriod(int systemDiskPolicyTimePeriod); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getDataDiskPolicyRetentionLastWeek()const; + void setDataDiskPolicyRetentionLastWeek(bool dataDiskPolicyRetentionLastWeek); + int getSystemDiskPolicyRetentionDays()const; + void setSystemDiskPolicyRetentionDays(int systemDiskPolicyRetentionDays); + int getDataDiskPolicyTimePeriod()const; + void setDataDiskPolicyTimePeriod(int dataDiskPolicyTimePeriod); + bool getSystemDiskPolicyEnabled()const; + void setSystemDiskPolicyEnabled(bool systemDiskPolicyEnabled); + + private: + bool dataDiskPolicyEnabled_; + long resourceOwnerId_; + int dataDiskPolicyRetentionDays_; + std::string resourceOwnerAccount_; + bool systemDiskPolicyRetentionLastWeek_; + std::string ownerAccount_; + int systemDiskPolicyTimePeriod_; + long ownerId_; + bool dataDiskPolicyRetentionLastWeek_; + int systemDiskPolicyRetentionDays_; + int dataDiskPolicyTimePeriod_; + bool systemDiskPolicyEnabled_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyResult.h b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyResult.h new file mode 100644 index 000000000..8f50739e0 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyResult.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_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyAutoSnapshotPolicyResult : public ServiceResult + { + public: + + + ModifyAutoSnapshotPolicyResult(); + explicit ModifyAutoSnapshotPolicyResult(const std::string &payload); + ~ModifyAutoSnapshotPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecRequest.h new file mode 100644 index 000000000..389d83d8b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyBandwidthPackageSpecRequest : public EcsRequest + { + + public: + ModifyBandwidthPackageSpecRequest(); + ~ModifyBandwidthPackageSpecRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getBandwidth()const; + void setBandwidth(const std::string& bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecResult.h b/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecResult.h new file mode 100644 index 000000000..4917aefe6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyBandwidthPackageSpecResult : public ServiceResult + { + public: + + + ModifyBandwidthPackageSpecResult(); + explicit ModifyBandwidthPackageSpecResult(const std::string &payload); + ~ModifyBandwidthPackageSpecResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyCommandRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyCommandRequest.h new file mode 100644 index 000000000..a3f1a4811 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyCommandRequest.h @@ -0,0 +1,134 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyCommandRequest : public EcsRequest + { + + public: + ModifyCommandRequest(); + ~ModifyCommandRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getWorkingDir()const; + void setWorkingDir(const std::string& workingDir); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getCommandId()const; + void setCommandId(const std::string& commandId); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getCommandContent()const; + void setCommandContent(const std::string& commandContent); + long getTimeout()const; + void setTimeout(long timeout); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getName()const; + void setName(const std::string& name); + + private: + long resourceOwnerId_; + long callerParentId_; + std::string workingDir_; + bool proxy_original_security_transport_; + std::string description_; + std::string proxy_original_source_ip_; + std::string commandId_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string commandContent_; + long timeout_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyCommandResult.h b/ecs/include/alibabacloud/ecs/model/ModifyCommandResult.h new file mode 100644 index 000000000..d15aee980 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyCommandResult.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_ECS_MODEL_MODIFYCOMMANDRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyCommandResult : public ServiceResult + { + public: + + + ModifyCommandResult(); + explicit ModifyCommandResult(const std::string &payload); + ~ModifyCommandResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeRequest.h new file mode 100644 index 000000000..77e2d898f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeRequest.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_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDeploymentSetAttributeRequest : public EcsRequest + { + + public: + ModifyDeploymentSetAttributeRequest(); + ~ModifyDeploymentSetAttributeRequest(); + + std::string getDeploymentSetId()const; + void setDeploymentSetId(const std::string& deploymentSetId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getDeploymentSetName()const; + void setDeploymentSetName(const std::string& deploymentSetName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string deploymentSetId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string description_; + std::string deploymentSetName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeResult.h new file mode 100644 index 000000000..5b83f9da6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeResult.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_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDeploymentSetAttributeResult : public ServiceResult + { + public: + + + ModifyDeploymentSetAttributeResult(); + explicit ModifyDeploymentSetAttributeResult(const std::string &payload); + ~ModifyDeploymentSetAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h new file mode 100644 index 000000000..e2d36843a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDiskAttributeRequest : public EcsRequest + { + + public: + ModifyDiskAttributeRequest(); + ~ModifyDiskAttributeRequest(); + + std::string getDiskName()const; + void setDiskName(const std::string& diskName); + bool getDeleteAutoSnapshot()const; + void setDeleteAutoSnapshot(bool deleteAutoSnapshot); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + bool getEnableAutoSnapshot()const; + void setEnableAutoSnapshot(bool enableAutoSnapshot); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getDiskId()const; + void setDiskId(const std::string& diskId); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getDeleteWithInstance()const; + void setDeleteWithInstance(bool deleteWithInstance); + + private: + std::string diskName_; + bool deleteAutoSnapshot_; + long resourceOwnerId_; + bool enableAutoSnapshot_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string description_; + std::string diskId_; + long ownerId_; + bool deleteWithInstance_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeResult.h new file mode 100644 index 000000000..59a97fc43 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeResult.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_ECS_MODEL_MODIFYDISKATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDiskAttributeResult : public ServiceResult + { + public: + + + ModifyDiskAttributeResult(); + explicit ModifyDiskAttributeResult(const std::string &payload); + ~ModifyDiskAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeRequest.h new file mode 100644 index 000000000..f02191853 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDiskChargeTypeRequest : public EcsRequest + { + + public: + ModifyDiskChargeTypeRequest(); + ~ModifyDiskChargeTypeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDiskIds()const; + void setDiskIds(const std::string& diskIds); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string diskIds_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeResult.h new file mode 100644 index 000000000..7c88e3995 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyDiskChargeTypeResult : public ServiceResult + { + public: + + + ModifyDiskChargeTypeResult(); + explicit ModifyDiskChargeTypeResult(const std::string &payload); + ~ModifyDiskChargeTypeResult(); + std::string getOrderId()const; + void setOrderId(const std::string& orderId); + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeRequest.h new file mode 100644 index 000000000..41b61b2a4 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyEipAddressAttributeRequest : public EcsRequest + { + + public: + ModifyEipAddressAttributeRequest(); + ~ModifyEipAddressAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getBandwidth()const; + void setBandwidth(const std::string& bandwidth); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getAllocationId()const; + void setAllocationId(const std::string& allocationId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string ownerAccount_; + std::string allocationId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeResult.h new file mode 100644 index 000000000..c4bc32c29 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyEipAddressAttributeResult : public ServiceResult + { + public: + + + ModifyEipAddressAttributeResult(); + explicit ModifyEipAddressAttributeResult(const std::string &payload); + ~ModifyEipAddressAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryRequest.h new file mode 100644 index 000000000..9b5630cb2 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryRequest.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyForwardEntryRequest : public EcsRequest + { + + public: + ModifyForwardEntryRequest(); + ~ModifyForwardEntryRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getForwardTableId()const; + void setForwardTableId(const std::string& forwardTableId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInternalIp()const; + void setInternalIp(const std::string& internalIp); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getForwardEntryId()const; + void setForwardEntryId(const std::string& forwardEntryId); + std::string getInternalPort()const; + void setInternalPort(const std::string& internalPort); + std::string getExternalIp()const; + void setExternalIp(const std::string& externalIp); + std::string getExternalPort()const; + void setExternalPort(const std::string& externalPort); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string forwardTableId_; + long ownerId_; + std::string internalIp_; + std::string regionId_; + std::string forwardEntryId_; + std::string internalPort_; + std::string externalIp_; + std::string externalPort_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryResult.h b/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryResult.h new file mode 100644 index 000000000..ebd522be4 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyForwardEntryResult : public ServiceResult + { + public: + + + ModifyForwardEntryResult(); + explicit ModifyForwardEntryResult(const std::string &payload); + ~ModifyForwardEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeRequest.h new file mode 100644 index 000000000..c3980d559 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyHaVipAttributeRequest : public EcsRequest + { + + public: + ModifyHaVipAttributeRequest(); + ~ModifyHaVipAttributeRequest(); + + std::string getHaVipId()const; + void setHaVipId(const std::string& haVipId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string haVipId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeResult.h new file mode 100644 index 000000000..f20bf869b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyHaVipAttributeResult : public ServiceResult + { + public: + + + ModifyHaVipAttributeResult(); + explicit ModifyHaVipAttributeResult(const std::string &payload); + ~ModifyHaVipAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeRequest.h new file mode 100644 index 000000000..57022e93d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeRequest.h @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyHpcClusterAttributeRequest : public EcsRequest + { + + public: + ModifyHpcClusterAttributeRequest(); + ~ModifyHpcClusterAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getHpcClusterId()const; + void setHpcClusterId(const std::string& hpcClusterId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getName()const; + void setName(const std::string& name); + + private: + long resourceOwnerId_; + std::string hpcClusterId_; + std::string clientToken_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string description_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string regionId_; + std::string securityToken_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeResult.h new file mode 100644 index 000000000..3126c5c53 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeResult.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_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyHpcClusterAttributeResult : public ServiceResult + { + public: + + + ModifyHpcClusterAttributeResult(); + explicit ModifyHpcClusterAttributeResult(const std::string &payload); + ~ModifyHpcClusterAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeRequest.h new file mode 100644 index 000000000..9f1892119 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeRequest.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_ECS_MODEL_MODIFYIMAGEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyImageAttributeRequest : public EcsRequest + { + + public: + ModifyImageAttributeRequest(); + ~ModifyImageAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getImageName()const; + void setImageName(const std::string& imageName); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string imageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string imageName_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeResult.h new file mode 100644 index 000000000..dc57fa5b1 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeResult.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_ECS_MODEL_MODIFYIMAGEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyImageAttributeResult : public ServiceResult + { + public: + + + ModifyImageAttributeResult(); + explicit ModifyImageAttributeResult(const std::string &payload); + ~ModifyImageAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionRequest.h new file mode 100644 index 000000000..d28f84e15 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionRequest.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_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyImageShareGroupPermissionRequest : public EcsRequest + { + + public: + ModifyImageShareGroupPermissionRequest(); + ~ModifyImageShareGroupPermissionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getAddGroup1()const; + void setAddGroup1(const std::string& addGroup1); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getRemoveGroup1()const; + void setRemoveGroup1(const std::string& removeGroup1); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string imageId_; + std::string addGroup1_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string removeGroup1_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionResult.h b/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionResult.h new file mode 100644 index 000000000..f2e1e892a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionResult.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_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyImageShareGroupPermissionResult : public ServiceResult + { + public: + + + ModifyImageShareGroupPermissionResult(); + explicit ModifyImageShareGroupPermissionResult(const std::string &payload); + ~ModifyImageShareGroupPermissionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionRequest.h new file mode 100644 index 000000000..aca6823bb --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyImageSharePermissionRequest : public EcsRequest + { + + public: + ModifyImageSharePermissionRequest(); + ~ModifyImageSharePermissionRequest(); + + std::string getAddAccount1()const; + void setAddAccount1(const std::string& addAccount1); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAddAccount9()const; + void setAddAccount9(const std::string& addAccount9); + std::string getAddAccount8()const; + void setAddAccount8(const std::string& addAccount8); + std::string getAddAccount7()const; + void setAddAccount7(const std::string& addAccount7); + std::string getAddAccount6()const; + void setAddAccount6(const std::string& addAccount6); + std::string getAddAccount5()const; + void setAddAccount5(const std::string& addAccount5); + std::string getAddAccount10()const; + void setAddAccount10(const std::string& addAccount10); + std::string getAddAccount4()const; + void setAddAccount4(const std::string& addAccount4); + std::string getAddAccount3()const; + void setAddAccount3(const std::string& addAccount3); + std::string getAddAccount2()const; + void setAddAccount2(const std::string& addAccount2); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getRemoveAccount1()const; + void setRemoveAccount1(const std::string& removeAccount1); + std::string getRemoveAccount2()const; + void setRemoveAccount2(const std::string& removeAccount2); + std::string getRemoveAccount3()const; + void setRemoveAccount3(const std::string& removeAccount3); + std::string getRemoveAccount4()const; + void setRemoveAccount4(const std::string& removeAccount4); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRemoveAccount9()const; + void setRemoveAccount9(const std::string& removeAccount9); + std::string getRemoveAccount5()const; + void setRemoveAccount5(const std::string& removeAccount5); + std::string getRemoveAccount6()const; + void setRemoveAccount6(const std::string& removeAccount6); + std::string getRemoveAccount7()const; + void setRemoveAccount7(const std::string& removeAccount7); + std::string getRemoveAccount8()const; + void setRemoveAccount8(const std::string& removeAccount8); + std::string getRemoveAccount10()const; + void setRemoveAccount10(const std::string& removeAccount10); + + private: + std::string addAccount1_; + long resourceOwnerId_; + std::string imageId_; + std::string regionId_; + std::string addAccount9_; + std::string addAccount8_; + std::string addAccount7_; + std::string addAccount6_; + std::string addAccount5_; + std::string addAccount10_; + std::string addAccount4_; + std::string addAccount3_; + std::string addAccount2_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string removeAccount1_; + std::string removeAccount2_; + std::string removeAccount3_; + std::string removeAccount4_; + long ownerId_; + std::string removeAccount9_; + std::string removeAccount5_; + std::string removeAccount6_; + std::string removeAccount7_; + std::string removeAccount8_; + std::string removeAccount10_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionResult.h b/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionResult.h new file mode 100644 index 000000000..9e3b5bde8 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionResult.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_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyImageSharePermissionResult : public ServiceResult + { + public: + + + ModifyImageSharePermissionResult(); + explicit ModifyImageSharePermissionResult(const std::string &payload); + ~ModifyImageSharePermissionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeRequest.h new file mode 100644 index 000000000..df3954784 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeRequest.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_ECS_MODEL_MODIFYINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAttributeRequest : public EcsRequest + { + + public: + ModifyInstanceAttributeRequest(); + ~ModifyInstanceAttributeRequest(); + + std::string getUserData()const; + void setUserData(const std::string& userData); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getHostName()const; + void setHostName(const std::string& hostName); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getInstanceName()const; + void setInstanceName(const std::string& instanceName); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + bool getRecyclable()const; + void setRecyclable(bool recyclable); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string userData_; + long resourceOwnerId_; + std::string password_; + std::string hostName_; + std::string instanceId_; + std::string instanceName_; + std::string resourceOwnerAccount_; + bool recyclable_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeResult.h new file mode 100644 index 000000000..9b5366d6f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeResult.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_ECS_MODEL_MODIFYINSTANCEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAttributeResult : public ServiceResult + { + public: + + + ModifyInstanceAttributeResult(); + explicit ModifyInstanceAttributeResult(const std::string &payload); + ~ModifyInstanceAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeRequest.h new file mode 100644 index 000000000..5998ee521 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeRequest.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_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAutoReleaseTimeRequest : public EcsRequest + { + + public: + ModifyInstanceAutoReleaseTimeRequest(); + ~ModifyInstanceAutoReleaseTimeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getAutoReleaseTime()const; + void setAutoReleaseTime(const std::string& autoReleaseTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string autoReleaseTime_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeResult.h new file mode 100644 index 000000000..eeced9a1c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeResult.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_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAutoReleaseTimeResult : public ServiceResult + { + public: + + + ModifyInstanceAutoReleaseTimeResult(); + explicit ModifyInstanceAutoReleaseTimeResult(const std::string &payload); + ~ModifyInstanceAutoReleaseTimeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeRequest.h new file mode 100644 index 000000000..0012c61a6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAutoRenewAttributeRequest : public EcsRequest + { + + public: + ModifyInstanceAutoRenewAttributeRequest(); + ~ModifyInstanceAutoRenewAttributeRequest(); + + int getDuration()const; + void setDuration(int duration); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + bool getAutoRenew()const; + void setAutoRenew(bool autoRenew); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getRenewalStatus()const; + void setRenewalStatus(const std::string& renewalStatus); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + int duration_; + long resourceOwnerId_; + std::string instanceId_; + bool autoRenew_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string renewalStatus_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeResult.h new file mode 100644 index 000000000..106216b82 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeResult.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_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAutoRenewAttributeResult : public ServiceResult + { + public: + + + ModifyInstanceAutoRenewAttributeResult(); + explicit ModifyInstanceAutoRenewAttributeResult(const std::string &payload); + ~ModifyInstanceAutoRenewAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeRequest.h new file mode 100644 index 000000000..9283e5438 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeRequest.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceChargeTypeRequest : public EcsRequest + { + + public: + ModifyInstanceChargeTypeRequest(); + ~ModifyInstanceChargeTypeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPeriod()const; + void setPeriod(int period); + bool getDryRun()const; + void setDryRun(bool dryRun); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + bool getIncludeDataDisks()const; + void setIncludeDataDisks(bool includeDataDisks); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPeriodUnit()const; + void setPeriodUnit(const std::string& periodUnit); + std::string getInstanceIds()const; + void setInstanceIds(const std::string& instanceIds); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + long resourceOwnerId_; + int period_; + bool dryRun_; + bool autoPay_; + bool includeDataDisks_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + long ownerId_; + std::string periodUnit_; + std::string instanceIds_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeResult.h new file mode 100644 index 000000000..8d24edbee --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceChargeTypeResult : public ServiceResult + { + public: + + + ModifyInstanceChargeTypeResult(); + explicit ModifyInstanceChargeTypeResult(const std::string &payload); + ~ModifyInstanceChargeTypeResult(); + std::string getOrderId()const; + void setOrderId(const std::string& orderId); + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecRequest.h new file mode 100644 index 000000000..a7f081a7c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecRequest.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceNetworkSpecRequest : public EcsRequest + { + + public: + ModifyInstanceNetworkSpecRequest(); + ~ModifyInstanceNetworkSpecRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getInternetMaxBandwidthOut()const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getNetworkChargeType()const; + void setNetworkChargeType(const std::string& networkChargeType); + int getInternetMaxBandwidthIn()const; + void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); + bool getAllocatePublicIp()const; + void setAllocatePublicIp(bool allocatePublicIp); + + private: + long resourceOwnerId_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + int internetMaxBandwidthOut_; + std::string endTime_; + std::string startTime_; + long ownerId_; + std::string instanceId_; + std::string networkChargeType_; + int internetMaxBandwidthIn_; + bool allocatePublicIp_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecResult.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecResult.h new file mode 100644 index 000000000..a866c82bc --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceNetworkSpecResult : public ServiceResult + { + public: + + + ModifyInstanceNetworkSpecResult(); + explicit ModifyInstanceNetworkSpecResult(const std::string &payload); + ~ModifyInstanceNetworkSpecResult(); + std::string getOrderId()const; + void setOrderId(const std::string& orderId); + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecRequest.h new file mode 100644 index 000000000..350569b3d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecRequest.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_ECS_MODEL_MODIFYINSTANCESPECREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceSpecRequest : public EcsRequest + { + + public: + ModifyInstanceSpecRequest(); + ~ModifyInstanceSpecRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + bool getAllowMigrateAcrossZone()const; + void setAllowMigrateAcrossZone(bool allowMigrateAcrossZone); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getInternetMaxBandwidthOut()const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + long getOwnerId()const; + void setOwnerId(long ownerId); + int getTemporaryInternetMaxBandwidthOut()const; + void setTemporaryInternetMaxBandwidthOut(int temporaryInternetMaxBandwidthOut); + std::string getSystemDiskCategory()const; + void setSystemDiskCategory(const std::string& systemDiskCategory); + std::string getTemporaryStartTime()const; + void setTemporaryStartTime(const std::string& temporaryStartTime); + bool getAsync()const; + void setAsync(bool async); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getTemporaryEndTime()const; + void setTemporaryEndTime(const std::string& temporaryEndTime); + int getInternetMaxBandwidthIn()const; + void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + bool allowMigrateAcrossZone_; + std::string ownerAccount_; + int internetMaxBandwidthOut_; + long ownerId_; + int temporaryInternetMaxBandwidthOut_; + std::string systemDiskCategory_; + std::string temporaryStartTime_; + bool async_; + std::string instanceId_; + std::string instanceType_; + std::string temporaryEndTime_; + int internetMaxBandwidthIn_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecResult.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecResult.h new file mode 100644 index 000000000..e24b29fcb --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecResult.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_ECS_MODEL_MODIFYINSTANCESPECRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceSpecResult : public ServiceResult + { + public: + + + ModifyInstanceSpecResult(); + explicit ModifyInstanceSpecResult(const std::string &payload); + ~ModifyInstanceSpecResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdRequest.h new file mode 100644 index 000000000..3ef8bcedf --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdRequest.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_ECS_MODEL_MODIFYINSTANCEVNCPASSWDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceVncPasswdRequest : public EcsRequest + { + + public: + ModifyInstanceVncPasswdRequest(); + ~ModifyInstanceVncPasswdRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVncPassword()const; + void setVncPassword(const std::string& vncPassword); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::string vncPassword_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdResult.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdResult.h new file mode 100644 index 000000000..ea6051cc7 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdResult.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_ECS_MODEL_MODIFYINSTANCEVNCPASSWDRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceVncPasswdResult : public ServiceResult + { + public: + + + ModifyInstanceVncPasswdResult(); + explicit ModifyInstanceVncPasswdResult(const std::string &payload); + ~ModifyInstanceVncPasswdResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeRequest.h new file mode 100644 index 000000000..989471cd4 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeRequest.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_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceVpcAttributeRequest : public EcsRequest + { + + public: + ModifyInstanceVpcAttributeRequest(); + ~ModifyInstanceVpcAttributeRequest(); + + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getPrivateIpAddress()const; + void setPrivateIpAddress(const std::string& privateIpAddress); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string vSwitchId_; + std::string privateIpAddress_; + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeResult.h new file mode 100644 index 000000000..8be527412 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeResult.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_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyInstanceVpcAttributeResult : public ServiceResult + { + public: + + + ModifyInstanceVpcAttributeResult(); + explicit ModifyInstanceVpcAttributeResult(const std::string &payload); + ~ModifyInstanceVpcAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbRequest.h new file mode 100644 index 000000000..1fb15e17c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbRequest.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_ECS_MODEL_MODIFYINTRANETBANDWIDTHKBREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINTRANETBANDWIDTHKBREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyIntranetBandwidthKbRequest : public EcsRequest + { + + public: + ModifyIntranetBandwidthKbRequest(); + ~ModifyIntranetBandwidthKbRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getIntranetMaxBandwidthOut()const; + void setIntranetMaxBandwidthOut(int intranetMaxBandwidthOut); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getIntranetMaxBandwidthIn()const; + void setIntranetMaxBandwidthIn(int intranetMaxBandwidthIn); + std::string getResourceOwnerAccount()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 intranetMaxBandwidthOut_; + std::string instanceId_; + int intranetMaxBandwidthIn_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINTRANETBANDWIDTHKBREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbResult.h b/ecs/include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbResult.h new file mode 100644 index 000000000..86a6e8d49 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyIntranetBandwidthKbResult.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_ECS_MODEL_MODIFYINTRANETBANDWIDTHKBRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINTRANETBANDWIDTHKBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyIntranetBandwidthKbResult : public ServiceResult + { + public: + + + ModifyIntranetBandwidthKbResult(); + explicit ModifyIntranetBandwidthKbResult(const std::string &payload); + ~ModifyIntranetBandwidthKbResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINTRANETBANDWIDTHKBRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeRequest.h new file mode 100644 index 000000000..2b624d6d6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeRequest.h @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyNetworkInterfaceAttributeRequest : public EcsRequest + { + + public: + ModifyNetworkInterfaceAttributeRequest(); + ~ModifyNetworkInterfaceAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::vector getSecurityGroupId()const; + void setSecurityGroupId(const std::vector& securityGroupId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + std::string getNetworkInterfaceName()const; + void setNetworkInterfaceName(const std::string& networkInterfaceName); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getNetworkInterfaceId()const; + void setNetworkInterfaceId(const std::string& networkInterfaceId); + + private: + long resourceOwnerId_; + long callerParentId_; + std::vector securityGroupId_; + bool proxy_original_security_transport_; + std::string description_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + std::string networkInterfaceName_; + long callerUid_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string networkInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeResult.h new file mode 100644 index 000000000..1ffdc422e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeResult.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_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyNetworkInterfaceAttributeResult : public ServiceResult + { + public: + + + ModifyNetworkInterfaceAttributeResult(); + explicit ModifyNetworkInterfaceAttributeResult(const std::string &payload); + ~ModifyNetworkInterfaceAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeRequest.h new file mode 100644 index 000000000..2906e37ac --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeRequest.h @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyPhysicalConnectionAttributeRequest : public EcsRequest + { + + public: + ModifyPhysicalConnectionAttributeRequest(); + ~ModifyPhysicalConnectionAttributeRequest(); + + std::string getRedundantPhysicalConnectionId()const; + void setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId); + std::string getPeerLocation()const; + void setPeerLocation(const std::string& peerLocation); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPortType()const; + void setPortType(const std::string& portType); + std::string getCircuitCode()const; + void setCircuitCode(const std::string& circuitCode); + int getBandwidth()const; + void setBandwidth(int bandwidth); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getLineOperator()const; + void setLineOperator(const std::string& lineOperator); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + std::string getName()const; + void setName(const std::string& name); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + + private: + std::string redundantPhysicalConnectionId_; + std::string peerLocation_; + long resourceOwnerId_; + std::string portType_; + std::string circuitCode_; + int bandwidth_; + std::string clientToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + std::string lineOperator_; + std::string regionId_; + std::string physicalConnectionId_; + std::string name_; + std::string userCidr_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeResult.h new file mode 100644 index 000000000..8786aae8d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyPhysicalConnectionAttributeResult : public ServiceResult + { + public: + + + ModifyPhysicalConnectionAttributeResult(); + explicit ModifyPhysicalConnectionAttributeResult(const std::string &payload); + ~ModifyPhysicalConnectionAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h new file mode 100644 index 000000000..fbfe2520c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyPrepayInstanceSpecRequest : public EcsRequest + { + + public: + ModifyPrepayInstanceSpecRequest(); + ~ModifyPrepayInstanceSpecRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + bool getAutoPay()const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + std::string instanceType_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecResult.h b/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecResult.h new file mode 100644 index 000000000..4102f1ee6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyPrepayInstanceSpecResult : public ServiceResult + { + public: + + + ModifyPrepayInstanceSpecResult(); + explicit ModifyPrepayInstanceSpecResult(const std::string &payload); + ~ModifyPrepayInstanceSpecResult(); + std::string getOrderId()const; + void setOrderId(const std::string& orderId); + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeRequest.h new file mode 100644 index 000000000..711563be6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeRequest.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyRouterInterfaceAttributeRequest : public EcsRequest + { + + public: + ModifyRouterInterfaceAttributeRequest(); + ~ModifyRouterInterfaceAttributeRequest(); + + std::string getOppositeRouterId()const; + void setOppositeRouterId(const std::string& oppositeRouterId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getHealthCheckTargetIp()const; + void setHealthCheckTargetIp(const std::string& healthCheckTargetIp); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getRouterInterfaceId()const; + void setRouterInterfaceId(const std::string& routerInterfaceId); + long getOppositeInterfaceOwnerId()const; + void setOppositeInterfaceOwnerId(long oppositeInterfaceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getHealthCheckSourceIp()const; + void setHealthCheckSourceIp(const std::string& healthCheckSourceIp); + std::string getName()const; + void setName(const std::string& name); + std::string getOppositeRouterType()const; + void setOppositeRouterType(const std::string& oppositeRouterType); + std::string getOppositeInterfaceId()const; + void setOppositeInterfaceId(const std::string& oppositeInterfaceId); + + private: + std::string oppositeRouterId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string description_; + std::string healthCheckTargetIp_; + long ownerId_; + std::string routerInterfaceId_; + long oppositeInterfaceOwnerId_; + std::string regionId_; + std::string healthCheckSourceIp_; + std::string name_; + std::string oppositeRouterType_; + std::string oppositeInterfaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeResult.h new file mode 100644 index 000000000..782cb0bec --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyRouterInterfaceAttributeResult : public ServiceResult + { + public: + + + ModifyRouterInterfaceAttributeResult(); + explicit ModifyRouterInterfaceAttributeResult(const std::string &payload); + ~ModifyRouterInterfaceAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecRequest.h new file mode 100644 index 000000000..a6d3037f2 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyRouterInterfaceSpecRequest : public EcsRequest + { + + public: + ModifyRouterInterfaceSpecRequest(); + ~ModifyRouterInterfaceSpecRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + std::string getRouterInterfaceId()const; + void setRouterInterfaceId(const std::string& routerInterfaceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSpec()const; + void setSpec(const std::string& spec); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string userCidr_; + std::string routerInterfaceId_; + long ownerId_; + std::string spec_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecResult.h b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecResult.h new file mode 100644 index 000000000..f43748ddc --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyRouterInterfaceSpecResult : public ServiceResult + { + public: + + + ModifyRouterInterfaceSpecResult(); + explicit ModifyRouterInterfaceSpecResult(const std::string &payload); + ~ModifyRouterInterfaceSpecResult(); + std::string getSpec()const; + void setSpec(const std::string& spec); + + protected: + void parse(const std::string &payload); + private: + std::string spec_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeRequest.h new file mode 100644 index 000000000..5655ef2a7 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeRequest.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_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupAttributeRequest : public EcsRequest + { + + public: + ModifySecurityGroupAttributeRequest(); + ~ModifySecurityGroupAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSecurityGroupName()const; + void setSecurityGroupName(const std::string& securityGroupName); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string securityGroupId_; + std::string description_; + long ownerId_; + std::string securityGroupName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeResult.h new file mode 100644 index 000000000..7b4054e7d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeResult.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_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupAttributeResult : public ServiceResult + { + public: + + + ModifySecurityGroupAttributeResult(); + explicit ModifySecurityGroupAttributeResult(const std::string &payload); + ~ModifySecurityGroupAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h new file mode 100644 index 000000000..86b673577 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h @@ -0,0 +1,158 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupEgressRuleRequest : public EcsRequest + { + + public: + ModifySecurityGroupEgressRuleRequest(); + ~ModifySecurityGroupEgressRuleRequest(); + + std::string getNicType()const; + void setNicType(const std::string& nicType); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePortRange()const; + void setSourcePortRange(const std::string& sourcePortRange); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getPolicy()const; + void setPolicy(const std::string& policy); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPortRange()const; + void setPortRange(const std::string& portRange); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSourceCidrIp()const; + void setSourceCidrIp(const std::string& sourceCidrIp); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getDestGroupId()const; + void setDestGroupId(const std::string& destGroupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDestGroupOwnerAccount()const; + void setDestGroupOwnerAccount(const std::string& destGroupOwnerAccount); + std::string getPriority()const; + void setPriority(const std::string& priority); + std::string getDestCidrIp()const; + void setDestCidrIp(const std::string& destCidrIp); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + long getDestGroupOwnerId()const; + void setDestGroupOwnerId(long destGroupOwnerId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + std::string nicType_; + long resourceOwnerId_; + std::string sourcePortRange_; + std::string clientToken_; + long callerParentId_; + std::string securityGroupId_; + bool proxy_original_security_transport_; + std::string description_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string policy_; + std::string app_ip_; + std::string portRange_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string sourceCidrIp_; + std::string callerBid_; + std::string destGroupId_; + long ownerId_; + std::string destGroupOwnerAccount_; + std::string priority_; + std::string destCidrIp_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + long destGroupOwnerId_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleResult.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleResult.h new file mode 100644 index 000000000..bc9b94aff --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleResult.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_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupEgressRuleResult : public ServiceResult + { + public: + + + ModifySecurityGroupEgressRuleResult(); + explicit ModifySecurityGroupEgressRuleResult(const std::string &payload); + ~ModifySecurityGroupEgressRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyRequest.h new file mode 100644 index 000000000..c11bd3069 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyRequest.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_ECS_MODEL_MODIFYSECURITYGROUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupPolicyRequest : public EcsRequest + { + + public: + ModifySecurityGroupPolicyRequest(); + ~ModifySecurityGroupPolicyRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInnerAccessPolicy()const; + void setInnerAccessPolicy(const std::string& innerAccessPolicy); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string clientToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string securityGroupId_; + long ownerId_; + std::string innerAccessPolicy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyResult.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyResult.h new file mode 100644 index 000000000..e5efed104 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyResult.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_ECS_MODEL_MODIFYSECURITYGROUPPOLICYRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupPolicyResult : public ServiceResult + { + public: + + + ModifySecurityGroupPolicyResult(); + explicit ModifySecurityGroupPolicyResult(const std::string &payload); + ~ModifySecurityGroupPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h new file mode 100644 index 000000000..8005ea1c8 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h @@ -0,0 +1,158 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupRuleRequest : public EcsRequest + { + + public: + ModifySecurityGroupRuleRequest(); + ~ModifySecurityGroupRuleRequest(); + + std::string getNicType()const; + void setNicType(const std::string& nicType); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePortRange()const; + void setSourcePortRange(const std::string& sourcePortRange); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + long getSourceGroupOwnerId()const; + void setSourceGroupOwnerId(long sourceGroupOwnerId); + std::string getSourceGroupOwnerAccount()const; + void setSourceGroupOwnerAccount(const std::string& sourceGroupOwnerAccount); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getPolicy()const; + void setPolicy(const std::string& policy); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPortRange()const; + void setPortRange(const std::string& portRange); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSourceCidrIp()const; + void setSourceCidrIp(const std::string& sourceCidrIp); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPriority()const; + void setPriority(const std::string& priority); + std::string getDestCidrIp()const; + void setDestCidrIp(const std::string& destCidrIp); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getSourceGroupId()const; + void setSourceGroupId(const std::string& sourceGroupId); + + private: + std::string nicType_; + long resourceOwnerId_; + std::string sourcePortRange_; + std::string clientToken_; + long callerParentId_; + std::string securityGroupId_; + bool proxy_original_security_transport_; + std::string description_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + long sourceGroupOwnerId_; + std::string sourceGroupOwnerAccount_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string policy_; + std::string app_ip_; + std::string portRange_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string sourceCidrIp_; + std::string callerBid_; + long ownerId_; + std::string priority_; + std::string destCidrIp_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string sourceGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleResult.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleResult.h new file mode 100644 index 000000000..8fcbd19be --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleResult.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_ECS_MODEL_MODIFYSECURITYGROUPRULERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupRuleResult : public ServiceResult + { + public: + + + ModifySecurityGroupRuleResult(); + explicit ModifySecurityGroupRuleResult(const std::string &payload); + ~ModifySecurityGroupRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeRequest.h new file mode 100644 index 000000000..dfb1b6dd4 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeRequest.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_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySnapshotAttributeRequest : public EcsRequest + { + + public: + ModifySnapshotAttributeRequest(); + ~ModifySnapshotAttributeRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnapshotId()const; + void setSnapshotId(const std::string& snapshotId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getSnapshotName()const; + void setSnapshotName(const std::string& snapshotName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string snapshotId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string description_; + std::string snapshotName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeResult.h new file mode 100644 index 000000000..7a3d61772 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeResult.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_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifySnapshotAttributeResult : public ServiceResult + { + public: + + + ModifySnapshotAttributeResult(); + explicit ModifySnapshotAttributeResult(const std::string &payload); + ~ModifySnapshotAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorRequest.h new file mode 100644 index 000000000..215d3f4b1 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorRequest.h @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyUserBusinessBehaviorRequest : public EcsRequest + { + + public: + ModifyUserBusinessBehaviorRequest(); + ~ModifyUserBusinessBehaviorRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getStatusValue()const; + void setStatusValue(const std::string& statusValue); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getStatusKey()const; + void setStatusKey(const std::string& statusKey); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string app_ip_; + std::string statusValue_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string statusKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorResult.h b/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorResult.h new file mode 100644 index 000000000..eb096d63b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorResult.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_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyUserBusinessBehaviorResult : public ServiceResult + { + public: + + + ModifyUserBusinessBehaviorResult(); + explicit ModifyUserBusinessBehaviorResult(const std::string &payload); + ~ModifyUserBusinessBehaviorResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeRequest.h new file mode 100644 index 000000000..a6f1be2a4 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyVRouterAttributeRequest : public EcsRequest + { + + public: + ModifyVRouterAttributeRequest(); + ~ModifyVRouterAttributeRequest(); + + std::string getVRouterName()const; + void setVRouterName(const std::string& vRouterName); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVRouterId()const; + void setVRouterId(const std::string& vRouterId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string vRouterName_; + long resourceOwnerId_; + std::string vRouterId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeResult.h new file mode 100644 index 000000000..425496e77 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyVRouterAttributeResult : public ServiceResult + { + public: + + + ModifyVRouterAttributeResult(); + explicit ModifyVRouterAttributeResult(const std::string &payload); + ~ModifyVRouterAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeRequest.h new file mode 100644 index 000000000..16f6863e4 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeRequest.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyVSwitchAttributeRequest : public EcsRequest + { + + public: + ModifyVSwitchAttributeRequest(); + ~ModifyVSwitchAttributeRequest(); + + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getVSwitchName()const; + void setVSwitchName(const std::string& vSwitchName); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string vSwitchId_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string vSwitchName_; + std::string ownerAccount_; + std::string description_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeResult.h new file mode 100644 index 000000000..d35ffa637 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyVSwitchAttributeResult : public ServiceResult + { + public: + + + ModifyVSwitchAttributeResult(); + explicit ModifyVSwitchAttributeResult(const std::string &payload); + ~ModifyVSwitchAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeRequest.h new file mode 100644 index 000000000..6f5ddfa4c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeRequest.h @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyVirtualBorderRouterAttributeRequest : public EcsRequest + { + + public: + ModifyVirtualBorderRouterAttributeRequest(); + ~ModifyVirtualBorderRouterAttributeRequest(); + + 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 getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getVbrId()const; + void setVbrId(const std::string& vbrId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPeerGatewayIp()const; + void setPeerGatewayIp(const std::string& peerGatewayIp); + std::string getPeeringSubnetMask()const; + void setPeeringSubnetMask(const std::string& peeringSubnetMask); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + std::string getLocalGatewayIp()const; + void setLocalGatewayIp(const std::string& localGatewayIp); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + + private: + long resourceOwnerId_; + std::string circuitCode_; + int vlanId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string description_; + std::string vbrId_; + long ownerId_; + std::string peerGatewayIp_; + std::string peeringSubnetMask_; + std::string regionId_; + std::string name_; + std::string localGatewayIp_; + std::string userCidr_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeResult.h new file mode 100644 index 000000000..9bf23855c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyVirtualBorderRouterAttributeResult : public ServiceResult + { + public: + + + ModifyVirtualBorderRouterAttributeResult(); + explicit ModifyVirtualBorderRouterAttributeResult(const std::string &payload); + ~ModifyVirtualBorderRouterAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeRequest.h new file mode 100644 index 000000000..5f137783f --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyVpcAttributeRequest : public EcsRequest + { + + public: + ModifyVpcAttributeRequest(); + ~ModifyVpcAttributeRequest(); + + std::string getVpcName()const; + void setVpcName(const std::string& vpcName); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string vpcName_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string vpcId_; + std::string ownerAccount_; + std::string description_; + std::string userCidr_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeResult.h new file mode 100644 index 000000000..fd882c6c4 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ModifyVpcAttributeResult : public ServiceResult + { + public: + + + ModifyVpcAttributeResult(); + explicit ModifyVpcAttributeResult(const std::string &payload); + ~ModifyVpcAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReActivateInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/ReActivateInstancesRequest.h new file mode 100644 index 000000000..e998e447a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ReActivateInstancesRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReActivateInstancesRequest : public EcsRequest + { + + public: + ReActivateInstancesRequest(); + ~ReActivateInstancesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReActivateInstancesResult.h b/ecs/include/alibabacloud/ecs/model/ReActivateInstancesResult.h new file mode 100644 index 000000000..fc758a0b0 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ReActivateInstancesResult.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_ECS_MODEL_REACTIVATEINSTANCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReActivateInstancesResult : public ServiceResult + { + public: + + + ReActivateInstancesResult(); + explicit ReActivateInstancesResult(const std::string &payload); + ~ReActivateInstancesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReInitDiskRequest.h b/ecs/include/alibabacloud/ecs/model/ReInitDiskRequest.h new file mode 100644 index 000000000..4cd063120 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ReInitDiskRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REINITDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REINITDISKREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReInitDiskRequest : public EcsRequest + { + + public: + ReInitDiskRequest(); + ~ReInitDiskRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + bool getAutoStartInstance()const; + void setAutoStartInstance(bool autoStartInstance); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDiskId()const; + void setDiskId(const std::string& diskId); + std::string getSecurityEnhancementStrategy()const; + void setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy); + std::string getKeyPairName()const; + void setKeyPairName(const std::string& keyPairName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string password_; + std::string resourceOwnerAccount_; + bool autoStartInstance_; + std::string ownerAccount_; + std::string diskId_; + std::string securityEnhancementStrategy_; + std::string keyPairName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_REINITDISKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReInitDiskResult.h b/ecs/include/alibabacloud/ecs/model/ReInitDiskResult.h new file mode 100644 index 000000000..908698ae1 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ReInitDiskResult.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_ECS_MODEL_REINITDISKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REINITDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReInitDiskResult : public ServiceResult + { + public: + + + ReInitDiskResult(); + explicit ReInitDiskResult(const std::string &payload); + ~ReInitDiskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_REINITDISKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RebootInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/RebootInstanceRequest.h new file mode 100644 index 000000000..c08de8edd --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RebootInstanceRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RebootInstanceRequest : public EcsRequest + { + + public: + RebootInstanceRequest(); + ~RebootInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getForceStop()const; + void setForceStop(bool forceStop); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + bool forceStop_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RebootInstanceResult.h b/ecs/include/alibabacloud/ecs/model/RebootInstanceResult.h new file mode 100644 index 000000000..494f01d18 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RebootInstanceResult.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_ECS_MODEL_REBOOTINSTANCERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RebootInstanceResult : public ServiceResult + { + public: + + + RebootInstanceResult(); + explicit RebootInstanceResult(const std::string &payload); + ~RebootInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterRequest.h b/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterRequest.h new file mode 100644 index 000000000..03abf30d6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterRequest.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_ECS_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RecoverVirtualBorderRouterRequest : public EcsRequest + { + + public: + RecoverVirtualBorderRouterRequest(); + ~RecoverVirtualBorderRouterRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + std::string getVbrId()const; + void setVbrId(const std::string& vbrId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string userCidr_; + std::string vbrId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterResult.h b/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterResult.h new file mode 100644 index 000000000..318b02c85 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RecoverVirtualBorderRouterResult : public ServiceResult + { + public: + + + RecoverVirtualBorderRouterResult(); + explicit RecoverVirtualBorderRouterResult(const std::string &payload); + ~RecoverVirtualBorderRouterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressRequest.h b/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressRequest.h new file mode 100644 index 000000000..429a4af80 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressRequest.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_ECS_MODEL_RELEASEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReleaseEipAddressRequest : public EcsRequest + { + + public: + ReleaseEipAddressRequest(); + ~ReleaseEipAddressRequest(); + + 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); + std::string getAllocationId()const; + void setAllocationId(const std::string& allocationId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string allocationId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressResult.h b/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressResult.h new file mode 100644 index 000000000..0033896c6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReleaseEipAddressResult : public ServiceResult + { + public: + + + ReleaseEipAddressResult(); + explicit ReleaseEipAddressResult(const std::string &payload); + ~ReleaseEipAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h b/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h new file mode 100644 index 000000000..44834fb06 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReleasePublicIpAddressRequest : public EcsRequest + { + + public: + ReleasePublicIpAddressRequest(); + ~ReleasePublicIpAddressRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPublicIpAddress()const; + void setPublicIpAddress(const std::string& publicIpAddress); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()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 publicIpAddress_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressResult.h b/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressResult.h new file mode 100644 index 000000000..37098fe19 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressResult.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_ECS_MODEL_RELEASEPUBLICIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReleasePublicIpAddressResult : public ServiceResult + { + public: + + + ReleasePublicIpAddressResult(); + explicit ReleasePublicIpAddressResult(const std::string &payload); + ~ReleasePublicIpAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsRequest.h b/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsRequest.h new file mode 100644 index 000000000..c490f2095 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RemoveBandwidthPackageIpsRequest : public EcsRequest + { + + public: + RemoveBandwidthPackageIpsRequest(); + ~RemoveBandwidthPackageIpsRequest(); + + std::vector getRemovedIpAddresses()const; + void setRemovedIpAddresses(const std::vector& removedIpAddresses); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBandwidthPackageId()const; + void setBandwidthPackageId(const std::string& bandwidthPackageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::vector removedIpAddresses_; + long resourceOwnerId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string clientToken_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsResult.h b/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsResult.h new file mode 100644 index 000000000..2fe18589d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RemoveBandwidthPackageIpsResult : public ServiceResult + { + public: + + + RemoveBandwidthPackageIpsResult(); + explicit RemoveBandwidthPackageIpsResult(const std::string &payload); + ~RemoveBandwidthPackageIpsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RemoveTagsRequest.h b/ecs/include/alibabacloud/ecs/model/RemoveTagsRequest.h new file mode 100644 index 000000000..1e6f02c6b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RemoveTagsRequest.h @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REMOVETAGSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REMOVETAGSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RemoveTagsRequest : public EcsRequest + { + + public: + RemoveTagsRequest(); + ~RemoveTagsRequest(); + + std::string getTag4Value()const; + void setTag4Value(const std::string& tag4Value); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + std::string getTag2Key()const; + void setTag2Key(const std::string& tag2Key); + std::string getTag5Key()const; + void setTag5Key(const std::string& tag5Key); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getTag3Key()const; + void setTag3Key(const std::string& tag3Key); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getTag5Value()const; + void setTag5Value(const std::string& tag5Value); + std::string getTag1Key()const; + void setTag1Key(const std::string& tag1Key); + std::string getTag1Value()const; + void setTag1Value(const std::string& tag1Value); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTag2Value()const; + void setTag2Value(const std::string& tag2Value); + std::string getTag4Key()const; + void setTag4Key(const std::string& tag4Key); + std::string getTag3Value()const; + void setTag3Value(const std::string& tag3Value); + + private: + std::string tag4Value_; + long resourceOwnerId_; + std::string resourceId_; + std::string tag2Key_; + std::string tag5Key_; + std::string resourceOwnerAccount_; + std::string tag3Key_; + long ownerId_; + std::string resourceType_; + std::string tag5Value_; + std::string tag1Key_; + std::string tag1Value_; + std::string regionId_; + std::string tag2Value_; + std::string tag4Key_; + std::string tag3Value_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_REMOVETAGSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RemoveTagsResult.h b/ecs/include/alibabacloud/ecs/model/RemoveTagsResult.h new file mode 100644 index 000000000..6b8be8a34 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RemoveTagsResult.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_ECS_MODEL_REMOVETAGSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REMOVETAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RemoveTagsResult : public ServiceResult + { + public: + + + RemoveTagsResult(); + explicit RemoveTagsResult(const std::string &payload); + ~RemoveTagsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_REMOVETAGSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RenewInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/RenewInstanceRequest.h new file mode 100644 index 000000000..937dfb546 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RenewInstanceRequest.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_ECS_MODEL_RENEWINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RENEWINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RenewInstanceRequest : public EcsRequest + { + + public: + RenewInstanceRequest(); + ~RenewInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPeriod()const; + void setPeriod(int period); + std::string getPeriodUnit()const; + void setPeriodUnit(const std::string& periodUnit); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + int period_; + std::string periodUnit_; + std::string instanceId_; + std::string clientToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_RENEWINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RenewInstanceResult.h b/ecs/include/alibabacloud/ecs/model/RenewInstanceResult.h new file mode 100644 index 000000000..e80370119 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RenewInstanceResult.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_ECS_MODEL_RENEWINSTANCERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_RENEWINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RenewInstanceResult : public ServiceResult + { + public: + + + RenewInstanceResult(); + explicit RenewInstanceResult(const std::string &payload); + ~RenewInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_RENEWINSTANCERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h b/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h new file mode 100644 index 000000000..90e818169 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReplaceSystemDiskRequest : public EcsRequest + { + + public: + ReplaceSystemDiskRequest(); + ~ReplaceSystemDiskRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSecurityEnhancementStrategy()const; + void setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy); + std::string getKeyPairName()const; + void setKeyPairName(const std::string& keyPairName); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getSystemDiskSize()const; + void setSystemDiskSize(int systemDiskSize); + bool getUseAdditionalService()const; + void setUseAdditionalService(bool useAdditionalService); + + private: + long resourceOwnerId_; + std::string imageId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string securityEnhancementStrategy_; + std::string keyPairName_; + long ownerId_; + std::string password_; + std::string instanceId_; + int systemDiskSize_; + bool useAdditionalService_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskResult.h b/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskResult.h new file mode 100644 index 000000000..4bc0a9736 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ReplaceSystemDiskResult : public ServiceResult + { + public: + + + ReplaceSystemDiskResult(); + explicit ReplaceSystemDiskResult(const std::string &payload); + ~ReplaceSystemDiskResult(); + std::string getDiskId()const; + void setDiskId(const std::string& diskId); + + protected: + void parse(const std::string &payload); + private: + std::string diskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ResetDiskRequest.h b/ecs/include/alibabacloud/ecs/model/ResetDiskRequest.h new file mode 100644 index 000000000..96457819a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ResetDiskRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RESETDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RESETDISKREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ResetDiskRequest : public EcsRequest + { + + public: + ResetDiskRequest(); + ~ResetDiskRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnapshotId()const; + void setSnapshotId(const std::string& snapshotId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDiskId()const; + void setDiskId(const std::string& diskId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string snapshotId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string diskId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_RESETDISKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ResetDiskResult.h b/ecs/include/alibabacloud/ecs/model/ResetDiskResult.h new file mode 100644 index 000000000..2288e9158 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ResetDiskResult.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_ECS_MODEL_RESETDISKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_RESETDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ResetDiskResult : public ServiceResult + { + public: + + + ResetDiskResult(); + explicit ResetDiskResult(const std::string &payload); + ~ResetDiskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_RESETDISKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ResizeDiskRequest.h b/ecs/include/alibabacloud/ecs/model/ResizeDiskRequest.h new file mode 100644 index 000000000..c23dd909d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ResizeDiskRequest.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_ECS_MODEL_RESIZEDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RESIZEDISKREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ResizeDiskRequest : public EcsRequest + { + + public: + ResizeDiskRequest(); + ~ResizeDiskRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + int getNewSize()const; + void setNewSize(int newSize); + std::string getDiskId()const; + void setDiskId(const std::string& diskId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + int newSize_; + std::string diskId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_RESIZEDISKREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/ResizeDiskResult.h b/ecs/include/alibabacloud/ecs/model/ResizeDiskResult.h new file mode 100644 index 000000000..e84c7dd60 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/ResizeDiskResult.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_ECS_MODEL_RESIZEDISKRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_RESIZEDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT ResizeDiskResult : public ServiceResult + { + public: + + + ResizeDiskResult(); + explicit ResizeDiskResult(const std::string &payload); + ~ResizeDiskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_RESIZEDISKRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h new file mode 100644 index 000000000..f4d2766bb --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h @@ -0,0 +1,158 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupEgressRequest : public EcsRequest + { + + public: + RevokeSecurityGroupEgressRequest(); + ~RevokeSecurityGroupEgressRequest(); + + std::string getNicType()const; + void setNicType(const std::string& nicType); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePortRange()const; + void setSourcePortRange(const std::string& sourcePortRange); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getPolicy()const; + void setPolicy(const std::string& policy); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPortRange()const; + void setPortRange(const std::string& portRange); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSourceCidrIp()const; + void setSourceCidrIp(const std::string& sourceCidrIp); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::string getDestGroupId()const; + void setDestGroupId(const std::string& destGroupId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDestGroupOwnerAccount()const; + void setDestGroupOwnerAccount(const std::string& destGroupOwnerAccount); + std::string getPriority()const; + void setPriority(const std::string& priority); + std::string getDestCidrIp()const; + void setDestCidrIp(const std::string& destCidrIp); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + long getDestGroupOwnerId()const; + void setDestGroupOwnerId(long destGroupOwnerId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + std::string nicType_; + long resourceOwnerId_; + std::string sourcePortRange_; + std::string clientToken_; + long callerParentId_; + std::string securityGroupId_; + bool proxy_original_security_transport_; + std::string description_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string policy_; + std::string app_ip_; + std::string portRange_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string sourceCidrIp_; + std::string callerBid_; + std::string destGroupId_; + long ownerId_; + std::string destGroupOwnerAccount_; + std::string priority_; + std::string destCidrIp_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + long destGroupOwnerId_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressResult.h b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressResult.h new file mode 100644 index 000000000..262dac6c6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressResult.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_ECS_MODEL_REVOKESECURITYGROUPEGRESSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupEgressResult : public ServiceResult + { + public: + + + RevokeSecurityGroupEgressResult(); + explicit RevokeSecurityGroupEgressResult(const std::string &payload); + ~RevokeSecurityGroupEgressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h new file mode 100644 index 000000000..39397d98b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h @@ -0,0 +1,158 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupRequest : public EcsRequest + { + + public: + RevokeSecurityGroupRequest(); + ~RevokeSecurityGroupRequest(); + + std::string getNicType()const; + void setNicType(const std::string& nicType); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePortRange()const; + void setSourcePortRange(const std::string& sourcePortRange); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + long getSourceGroupOwnerId()const; + void setSourceGroupOwnerId(long sourceGroupOwnerId); + std::string getSourceGroupOwnerAccount()const; + void setSourceGroupOwnerAccount(const std::string& sourceGroupOwnerAccount); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getPolicy()const; + void setPolicy(const std::string& policy); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getPortRange()const; + void setPortRange(const std::string& portRange); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getIpProtocol()const; + void setIpProtocol(const std::string& ipProtocol); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSourceCidrIp()const; + void setSourceCidrIp(const std::string& sourceCidrIp); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getPriority()const; + void setPriority(const std::string& priority); + std::string getDestCidrIp()const; + void setDestCidrIp(const std::string& destCidrIp); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getSourceGroupId()const; + void setSourceGroupId(const std::string& sourceGroupId); + + private: + std::string nicType_; + long resourceOwnerId_; + std::string sourcePortRange_; + std::string clientToken_; + long callerParentId_; + std::string securityGroupId_; + bool proxy_original_security_transport_; + std::string description_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + long sourceGroupOwnerId_; + std::string sourceGroupOwnerAccount_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string policy_; + std::string app_ip_; + std::string portRange_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string sourceCidrIp_; + std::string callerBid_; + long ownerId_; + std::string priority_; + std::string destCidrIp_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::string requestId_; + std::string sourceGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupResult.h b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupResult.h new file mode 100644 index 000000000..8c9f668c6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupResult.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_ECS_MODEL_REVOKESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupResult : public ServiceResult + { + public: + + + RevokeSecurityGroupResult(); + explicit RevokeSecurityGroupResult(const std::string &payload); + ~RevokeSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h new file mode 100644 index 000000000..885122b6e --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h @@ -0,0 +1,226 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RUNINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RUNINSTANCESREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RunInstancesRequest : public EcsRequest + { + struct Tag + { + std::string key; + std::string value; + }; + struct NetworkInterface + { + std::string primaryIpAddress; + std::string vSwitchId; + std::string securityGroupId; + std::string networkInterfaceName; + std::string description; + }; + struct DataDisk + { + int size; + std::string snapshotId; + std::string category; + std::string encrypted; + std::string diskName; + std::string description; + bool deleteWithInstance; + }; + + public: + RunInstancesRequest(); + ~RunInstancesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getSecurityEnhancementStrategy()const; + void setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy); + std::string getKeyPairName()const; + void setKeyPairName(const std::string& keyPairName); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + float getSpotPriceLimit()const; + void setSpotPriceLimit(float spotPriceLimit); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getHostName()const; + void setHostName(const std::string& hostName); + std::string getPassword()const; + void setPassword(const std::string& password); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + bool getEnable()const; + void setEnable(bool enable); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::vector getTag()const; + void setTag(const std::vector& tag); + long getCallerUid()const; + void setCallerUid(long callerUid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getSpotStrategy()const; + void setSpotStrategy(const std::string& spotStrategy); + std::string getInstanceName()const; + void setInstanceName(const std::string& instanceName); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + std::string getInternetChargeType()const; + void setInternetChargeType(const std::string& internetChargeType); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + int getInternetMaxBandwidthIn()const; + void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getIoOptimized()const; + void setIoOptimized(const std::string& ioOptimized); + std::string getSecurityGroupId()const; + void setSecurityGroupId(const std::string& securityGroupId); + int getInternetMaxBandwidthOut()const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getSystemDiskCategory()const; + void setSystemDiskCategory(const std::string& systemDiskCategory); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getUserData()const; + void setUserData(const std::string& userData); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + std::vector getNetworkInterface()const; + void setNetworkInterface(const std::vector& networkInterface); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + int getAmount()const; + void setAmount(int amount); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getSystemDiskDiskName()const; + void setSystemDiskDiskName(const std::string& systemDiskDiskName); + std::string getRamRoleName()const; + void setRamRoleName(const std::string& ramRoleName); + std::string getAutoReleaseTime()const; + void setAutoReleaseTime(const std::string& autoReleaseTime); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + std::vector getDataDisk()const; + void setDataDisk(const std::vector& dataDisk); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + std::string getSystemDiskSize()const; + void setSystemDiskSize(const std::string& systemDiskSize); + std::string getSystemDiskDescription()const; + void setSystemDiskDescription(const std::string& systemDiskDescription); + + private: + long resourceOwnerId_; + long callerParentId_; + std::string securityEnhancementStrategy_; + std::string keyPairName_; + std::string proxy_original_source_ip_; + float spotPriceLimit_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string resourceGroupId_; + std::string hostName_; + std::string password_; + std::string securityToken_; + bool enable_; + std::string callerBidEmail_; + std::vector tag_; + long callerUid_; + long ownerId_; + bool ak_mfa_present_; + bool security_transport_; + std::string vSwitchId_; + std::string spotStrategy_; + std::string instanceName_; + std::string requestId_; + std::string internetChargeType_; + std::string zoneId_; + int internetMaxBandwidthIn_; + std::string imageId_; + std::string clientToken_; + std::string ioOptimized_; + std::string securityGroupId_; + int internetMaxBandwidthOut_; + bool proxy_original_security_transport_; + std::string description_; + std::string systemDiskCategory_; + std::string accessKeyId_; + std::string userData_; + std::string regionId_; + std::string requestContent_; + std::string instanceType_; + std::string callerUidEmail_; + std::vector networkInterface_; + std::string app_ip_; + int amount_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string systemDiskDiskName_; + std::string ramRoleName_; + std::string autoReleaseTime_; + std::string callerBid_; + std::vector dataDisk_; + bool proxy_trust_transport_info_; + std::string systemDiskSize_; + std::string systemDiskDescription_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_RUNINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/RunInstancesResult.h b/ecs/include/alibabacloud/ecs/model/RunInstancesResult.h new file mode 100644 index 000000000..676a61ab9 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/RunInstancesResult.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RUNINSTANCESRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_RUNINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT RunInstancesResult : public ServiceResult + { + public: + + + RunInstancesResult(); + explicit RunInstancesResult(const std::string &payload); + ~RunInstancesResult(); + std::vector getInstanceIdSets()const; + void setInstanceIdSets(const std::vector& instanceIdSets); + + protected: + void parse(const std::string &payload); + private: + std::vector instanceIdSets_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_RUNINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/SignAgreementRequest.h b/ecs/include/alibabacloud/ecs/model/SignAgreementRequest.h new file mode 100644 index 000000000..ca9bfab81 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/SignAgreementRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_SIGNAGREEMENTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_SIGNAGREEMENTREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT SignAgreementRequest : public EcsRequest + { + + public: + SignAgreementRequest(); + ~SignAgreementRequest(); + + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getAgreementType()const; + void setAgreementType(const std::string& agreementType); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + + private: + std::string app_ip_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long callerParentId_; + std::string ownerAccount_; + bool proxy_original_security_transport_; + std::string callerBid_; + long ownerId_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + std::string accessKeyId_; + bool security_transport_; + std::string securityToken_; + std::string requestId_; + bool enable_; + std::string requestContent_; + std::string agreementType_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_SIGNAGREEMENTREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/SignAgreementResult.h b/ecs/include/alibabacloud/ecs/model/SignAgreementResult.h new file mode 100644 index 000000000..0c0d25545 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/SignAgreementResult.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_ECS_MODEL_SIGNAGREEMENTRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_SIGNAGREEMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT SignAgreementResult : public ServiceResult + { + public: + + + SignAgreementResult(); + explicit SignAgreementResult(const std::string &payload); + ~SignAgreementResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_SIGNAGREEMENTRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/StartInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/StartInstanceRequest.h new file mode 100644 index 000000000..69abc308b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/StartInstanceRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STARTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_STARTINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT StartInstanceRequest : public EcsRequest + { + + public: + StartInstanceRequest(); + ~StartInstanceRequest(); + + bool getInitLocalDisk()const; + void setInitLocalDisk(bool initLocalDisk); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + bool initLocalDisk_; + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_STARTINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/StartInstanceResult.h b/ecs/include/alibabacloud/ecs/model/StartInstanceResult.h new file mode 100644 index 000000000..71c1a8be3 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/StartInstanceResult.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_ECS_MODEL_STARTINSTANCERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_STARTINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT StartInstanceResult : public ServiceResult + { + public: + + + StartInstanceResult(); + explicit StartInstanceResult(const std::string &payload); + ~StartInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_STARTINSTANCERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/StopInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/StopInstanceRequest.h new file mode 100644 index 000000000..805551812 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/StopInstanceRequest.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_ECS_MODEL_STOPINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_STOPINSTANCEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT StopInstanceRequest : public EcsRequest + { + + public: + StopInstanceRequest(); + ~StopInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + bool getConfirmStop()const; + void setConfirmStop(bool confirmStop); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getStoppedMode()const; + void setStoppedMode(const std::string& stoppedMode); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getForceStop()const; + void setForceStop(bool forceStop); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + bool confirmStop_; + std::string ownerAccount_; + std::string stoppedMode_; + long ownerId_; + bool forceStop_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_STOPINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/StopInstanceResult.h b/ecs/include/alibabacloud/ecs/model/StopInstanceResult.h new file mode 100644 index 000000000..c1aa061bd --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/StopInstanceResult.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_ECS_MODEL_STOPINSTANCERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_STOPINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT StopInstanceResult : public ServiceResult + { + public: + + + StopInstanceResult(); + explicit StopInstanceResult(const std::string &payload); + ~StopInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_STOPINSTANCERESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/StopInvocationRequest.h b/ecs/include/alibabacloud/ecs/model/StopInvocationRequest.h new file mode 100644 index 000000000..741068f8c --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/StopInvocationRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT StopInvocationRequest : public EcsRequest + { + + public: + StopInvocationRequest(); + ~StopInvocationRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + long getCallerParentId()const; + void setCallerParentId(long callerParentId); + bool getProxy_original_security_transport()const; + void setProxy_original_security_transport(bool proxy_original_security_transport); + std::string getProxy_original_source_ip()const; + void setProxy_original_source_ip(const std::string& proxy_original_source_ip); + std::string getOwnerIdLoginEmail()const; + void setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail); + std::string getCallerType()const; + void setCallerType(const std::string& callerType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getEnable()const; + void setEnable(bool enable); + std::string getRequestContent()const; + void setRequestContent(const std::string& requestContent); + std::string getCallerBidEmail()const; + void setCallerBidEmail(const std::string& callerBidEmail); + std::string getCallerUidEmail()const; + void setCallerUidEmail(const std::string& callerUidEmail); + long getCallerUid()const; + void setCallerUid(long callerUid); + std::string getInvokeId()const; + void setInvokeId(const std::string& invokeId); + std::string getApp_ip()const; + void setApp_ip(const std::string& app_ip); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getCallerBid()const; + void setCallerBid(const std::string& callerBid); + long getOwnerId()const; + void setOwnerId(long ownerId); + bool getProxy_trust_transport_info()const; + void setProxy_trust_transport_info(bool proxy_trust_transport_info); + bool getAk_mfa_present()const; + void setAk_mfa_present(bool ak_mfa_present); + bool getSecurity_transport()const; + void setSecurity_transport(bool security_transport); + std::vector getInstanceId()const; + void setInstanceId(const std::vector& instanceId); + std::string getRequestId()const; + void setRequestId(const std::string& requestId); + + private: + long resourceOwnerId_; + long callerParentId_; + bool proxy_original_security_transport_; + std::string proxy_original_source_ip_; + std::string ownerIdLoginEmail_; + std::string callerType_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + bool enable_; + std::string requestContent_; + std::string callerBidEmail_; + std::string callerUidEmail_; + long callerUid_; + std::string invokeId_; + std::string app_ip_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string callerBid_; + long ownerId_; + bool proxy_trust_transport_info_; + bool ak_mfa_present_; + bool security_transport_; + std::vector instanceId_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/StopInvocationResult.h b/ecs/include/alibabacloud/ecs/model/StopInvocationResult.h new file mode 100644 index 000000000..767450f5b --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/StopInvocationResult.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_ECS_MODEL_STOPINVOCATIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT StopInvocationResult : public ServiceResult + { + public: + + + StopInvocationResult(); + explicit StopInvocationResult(const std::string &payload); + ~StopInvocationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionRequest.h new file mode 100644 index 000000000..2f74693bc --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionRequest.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_ECS_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT TerminatePhysicalConnectionRequest : public EcsRequest + { + + public: + TerminatePhysicalConnectionRequest(); + ~TerminatePhysicalConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getPhysicalConnectionId()const; + void setPhysicalConnectionId(const std::string& physicalConnectionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string physicalConnectionId_; + std::string ownerAccount_; + std::string userCidr_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionResult.h b/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionResult.h new file mode 100644 index 000000000..ba6aad8e6 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT TerminatePhysicalConnectionResult : public ServiceResult + { + public: + + + TerminatePhysicalConnectionResult(); + explicit TerminatePhysicalConnectionResult(const std::string &payload); + ~TerminatePhysicalConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterRequest.h b/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterRequest.h new file mode 100644 index 000000000..dcb7af28a --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterRequest.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_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT TerminateVirtualBorderRouterRequest : public EcsRequest + { + + public: + TerminateVirtualBorderRouterRequest(); + ~TerminateVirtualBorderRouterRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getUserCidr()const; + void setUserCidr(const std::string& userCidr); + std::string getVbrId()const; + void setVbrId(const std::string& vbrId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string ownerAccount_; + std::string userCidr_; + std::string vbrId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterResult.h b/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterResult.h new file mode 100644 index 000000000..9e40939b8 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT TerminateVirtualBorderRouterResult : public ServiceResult + { + public: + + + TerminateVirtualBorderRouterResult(); + explicit TerminateVirtualBorderRouterResult(const std::string &payload); + ~TerminateVirtualBorderRouterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressRequest.h b/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressRequest.h new file mode 100644 index 000000000..92d6bca9d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressRequest.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_ECS_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnassociateEipAddressRequest : public EcsRequest + { + + public: + UnassociateEipAddressRequest(); + ~UnassociateEipAddressRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getInstanceType()const; + void setInstanceType(const std::string& instanceType); + std::string getAllocationId()const; + void setAllocationId(const std::string& allocationId); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string instanceType_; + std::string allocationId_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressResult.h b/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressResult.h new file mode 100644 index 000000000..2bac7f2e1 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnassociateEipAddressResult : public ServiceResult + { + public: + + + UnassociateEipAddressResult(); + explicit UnassociateEipAddressResult(const std::string &payload); + ~UnassociateEipAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UnassociateHaVipRequest.h b/ecs/include/alibabacloud/ecs/model/UnassociateHaVipRequest.h new file mode 100644 index 000000000..9c869ac28 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/UnassociateHaVipRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnassociateHaVipRequest : public EcsRequest + { + + public: + UnassociateHaVipRequest(); + ~UnassociateHaVipRequest(); + + std::string getHaVipId()const; + void setHaVipId(const std::string& haVipId); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getForce()const; + void setForce(const std::string& force); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string haVipId_; + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string clientToken_; + std::string regionId_; + std::string ownerAccount_; + std::string force_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UnassociateHaVipResult.h b/ecs/include/alibabacloud/ecs/model/UnassociateHaVipResult.h new file mode 100644 index 000000000..02a71c4c3 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/UnassociateHaVipResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPRESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnassociateHaVipResult : public ServiceResult + { + public: + + + UnassociateHaVipResult(); + explicit UnassociateHaVipResult(const std::string &payload); + ~UnassociateHaVipResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPRESULT_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UnbindIpRangeRequest.h b/ecs/include/alibabacloud/ecs/model/UnbindIpRangeRequest.h new file mode 100644 index 000000000..736f2481d --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/UnbindIpRangeRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNBINDIPRANGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_UNBINDIPRANGEREQUEST_H_ + +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnbindIpRangeRequest : public EcsRequest + { + + public: + UnbindIpRangeRequest(); + ~UnbindIpRangeRequest(); + + std::string getIpAddress()const; + void setIpAddress(const std::string& ipAddress); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string ipAddress_; + long resourceOwnerId_; + std::string instanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_UNBINDIPRANGEREQUEST_H_ \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/UnbindIpRangeResult.h b/ecs/include/alibabacloud/ecs/model/UnbindIpRangeResult.h new file mode 100644 index 000000000..14ad5c530 --- /dev/null +++ b/ecs/include/alibabacloud/ecs/model/UnbindIpRangeResult.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_ECS_MODEL_UNBINDIPRANGERESULT_H_ +#define ALIBABACLOUD_ECS_MODEL_UNBINDIPRANGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ecs + { + namespace Model + { + class ALIBABACLOUD_ECS_EXPORT UnbindIpRangeResult : public ServiceResult + { + public: + + + UnbindIpRangeResult(); + explicit UnbindIpRangeResult(const std::string &payload); + ~UnbindIpRangeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ECS_MODEL_UNBINDIPRANGERESULT_H_ \ No newline at end of file diff --git a/ecs/src/EcsClient.cc b/ecs/src/EcsClient.cc new file mode 100644 index 000000000..b5998c56c --- /dev/null +++ b/ecs/src/EcsClient.cc @@ -0,0 +1,7981 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +EcsClient::EcsClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), "ecs"); +} + +EcsClient::EcsClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), "ecs"); +} + +EcsClient::EcsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), "ecs"); +} + +EcsClient::~EcsClient() +{} + +CoreClient::EndpointOutcome EcsClient::endpoint()const +{ + if(!configuration().endpoint().empty()) + return CoreClient::EndpointOutcome(configuration().endpoint()); + + auto endpoint = endpointProvider_->getEndpoint(); + + if (endpoint.empty()) + return CoreClient::EndpointOutcome(Error("InvalidEndpoint","")); + else + return CoreClient::EndpointOutcome(endpoint); +} + +EcsClient::ModifySnapshotAttributeOutcome EcsClient::modifySnapshotAttribute(const ModifySnapshotAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySnapshotAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySnapshotAttributeOutcome(ModifySnapshotAttributeResult(outcome.result())); + else + return ModifySnapshotAttributeOutcome(outcome.error()); +} + +void EcsClient::modifySnapshotAttributeAsync(const ModifySnapshotAttributeRequest& request, const ModifySnapshotAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySnapshotAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifySnapshotAttributeOutcomeCallable EcsClient::modifySnapshotAttributeCallable(const ModifySnapshotAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySnapshotAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::JoinSecurityGroupOutcome EcsClient::joinSecurityGroup(const JoinSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return JoinSecurityGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return JoinSecurityGroupOutcome(JoinSecurityGroupResult(outcome.result())); + else + return JoinSecurityGroupOutcome(outcome.error()); +} + +void EcsClient::joinSecurityGroupAsync(const JoinSecurityGroupRequest& request, const JoinSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, joinSecurityGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::JoinSecurityGroupOutcomeCallable EcsClient::joinSecurityGroupCallable(const JoinSecurityGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->joinSecurityGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeSnapshotsOutcome EcsClient::describeSnapshots(const DescribeSnapshotsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSnapshotsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSnapshotsOutcome(DescribeSnapshotsResult(outcome.result())); + else + return DescribeSnapshotsOutcome(outcome.error()); +} + +void EcsClient::describeSnapshotsAsync(const DescribeSnapshotsRequest& request, const DescribeSnapshotsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSnapshots(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeSnapshotsOutcomeCallable EcsClient::describeSnapshotsCallable(const DescribeSnapshotsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSnapshots(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyBandwidthPackageSpecOutcome EcsClient::modifyBandwidthPackageSpec(const ModifyBandwidthPackageSpecRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyBandwidthPackageSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyBandwidthPackageSpecOutcome(ModifyBandwidthPackageSpecResult(outcome.result())); + else + return ModifyBandwidthPackageSpecOutcome(outcome.error()); +} + +void EcsClient::modifyBandwidthPackageSpecAsync(const ModifyBandwidthPackageSpecRequest& request, const ModifyBandwidthPackageSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyBandwidthPackageSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyBandwidthPackageSpecOutcomeCallable EcsClient::modifyBandwidthPackageSpecCallable(const ModifyBandwidthPackageSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyBandwidthPackageSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyInstanceVncPasswdOutcome EcsClient::modifyInstanceVncPasswd(const ModifyInstanceVncPasswdRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceVncPasswdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceVncPasswdOutcome(ModifyInstanceVncPasswdResult(outcome.result())); + else + return ModifyInstanceVncPasswdOutcome(outcome.error()); +} + +void EcsClient::modifyInstanceVncPasswdAsync(const ModifyInstanceVncPasswdRequest& request, const ModifyInstanceVncPasswdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstanceVncPasswd(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyInstanceVncPasswdOutcomeCallable EcsClient::modifyInstanceVncPasswdCallable(const ModifyInstanceVncPasswdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstanceVncPasswd(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateNatGatewayOutcome EcsClient::createNatGateway(const CreateNatGatewayRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNatGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNatGatewayOutcome(CreateNatGatewayResult(outcome.result())); + else + return CreateNatGatewayOutcome(outcome.error()); +} + +void EcsClient::createNatGatewayAsync(const CreateNatGatewayRequest& request, const CreateNatGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNatGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateNatGatewayOutcomeCallable EcsClient::createNatGatewayCallable(const CreateNatGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNatGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::AttachDiskOutcome EcsClient::attachDisk(const AttachDiskRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AttachDiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachDiskOutcome(AttachDiskResult(outcome.result())); + else + return AttachDiskOutcome(outcome.error()); +} + +void EcsClient::attachDiskAsync(const AttachDiskRequest& request, const AttachDiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachDisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::AttachDiskOutcomeCallable EcsClient::attachDiskCallable(const AttachDiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachDisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ReInitDiskOutcome EcsClient::reInitDisk(const ReInitDiskRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ReInitDiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReInitDiskOutcome(ReInitDiskResult(outcome.result())); + else + return ReInitDiskOutcome(outcome.error()); +} + +void EcsClient::reInitDiskAsync(const ReInitDiskRequest& request, const ReInitDiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, reInitDisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ReInitDiskOutcomeCallable EcsClient::reInitDiskCallable(const ReInitDiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->reInitDisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateHaVipOutcome EcsClient::createHaVip(const CreateHaVipRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateHaVipOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateHaVipOutcome(CreateHaVipResult(outcome.result())); + else + return CreateHaVipOutcome(outcome.error()); +} + +void EcsClient::createHaVipAsync(const CreateHaVipRequest& request, const CreateHaVipAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createHaVip(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateHaVipOutcomeCallable EcsClient::createHaVipCallable(const CreateHaVipRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createHaVip(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyAutoSnapshotPolicyOutcome EcsClient::modifyAutoSnapshotPolicy(const ModifyAutoSnapshotPolicyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAutoSnapshotPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAutoSnapshotPolicyOutcome(ModifyAutoSnapshotPolicyResult(outcome.result())); + else + return ModifyAutoSnapshotPolicyOutcome(outcome.error()); +} + +void EcsClient::modifyAutoSnapshotPolicyAsync(const ModifyAutoSnapshotPolicyRequest& request, const ModifyAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAutoSnapshotPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyAutoSnapshotPolicyOutcomeCallable EcsClient::modifyAutoSnapshotPolicyCallable(const ModifyAutoSnapshotPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAutoSnapshotPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::AssociateEipAddressOutcome EcsClient::associateEipAddress(const AssociateEipAddressRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateEipAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateEipAddressOutcome(AssociateEipAddressResult(outcome.result())); + else + return AssociateEipAddressOutcome(outcome.error()); +} + +void EcsClient::associateEipAddressAsync(const AssociateEipAddressRequest& request, const AssociateEipAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateEipAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::AssociateEipAddressOutcomeCallable EcsClient::associateEipAddressCallable(const AssociateEipAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateEipAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeEipAddressesOutcome EcsClient::describeEipAddresses(const DescribeEipAddressesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEipAddressesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEipAddressesOutcome(DescribeEipAddressesResult(outcome.result())); + else + return DescribeEipAddressesOutcome(outcome.error()); +} + +void EcsClient::describeEipAddressesAsync(const DescribeEipAddressesRequest& request, const DescribeEipAddressesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEipAddresses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeEipAddressesOutcomeCallable EcsClient::describeEipAddressesCallable(const DescribeEipAddressesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEipAddresses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::RevokeSecurityGroupEgressOutcome EcsClient::revokeSecurityGroupEgress(const RevokeSecurityGroupEgressRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RevokeSecurityGroupEgressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevokeSecurityGroupEgressOutcome(RevokeSecurityGroupEgressResult(outcome.result())); + else + return RevokeSecurityGroupEgressOutcome(outcome.error()); +} + +void EcsClient::revokeSecurityGroupEgressAsync(const RevokeSecurityGroupEgressRequest& request, const RevokeSecurityGroupEgressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revokeSecurityGroupEgress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::RevokeSecurityGroupEgressOutcomeCallable EcsClient::revokeSecurityGroupEgressCallable(const RevokeSecurityGroupEgressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->revokeSecurityGroupEgress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ActivateRouterInterfaceOutcome EcsClient::activateRouterInterface(const ActivateRouterInterfaceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ActivateRouterInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ActivateRouterInterfaceOutcome(ActivateRouterInterfaceResult(outcome.result())); + else + return ActivateRouterInterfaceOutcome(outcome.error()); +} + +void EcsClient::activateRouterInterfaceAsync(const ActivateRouterInterfaceRequest& request, const ActivateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, activateRouterInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ActivateRouterInterfaceOutcomeCallable EcsClient::activateRouterInterfaceCallable(const ActivateRouterInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->activateRouterInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeSpotPriceHistoryOutcome EcsClient::describeSpotPriceHistory(const DescribeSpotPriceHistoryRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSpotPriceHistoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSpotPriceHistoryOutcome(DescribeSpotPriceHistoryResult(outcome.result())); + else + return DescribeSpotPriceHistoryOutcome(outcome.error()); +} + +void EcsClient::describeSpotPriceHistoryAsync(const DescribeSpotPriceHistoryRequest& request, const DescribeSpotPriceHistoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSpotPriceHistory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeSpotPriceHistoryOutcomeCallable EcsClient::describeSpotPriceHistoryCallable(const DescribeSpotPriceHistoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSpotPriceHistory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::TerminateVirtualBorderRouterOutcome EcsClient::terminateVirtualBorderRouter(const TerminateVirtualBorderRouterRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return TerminateVirtualBorderRouterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TerminateVirtualBorderRouterOutcome(TerminateVirtualBorderRouterResult(outcome.result())); + else + return TerminateVirtualBorderRouterOutcome(outcome.error()); +} + +void EcsClient::terminateVirtualBorderRouterAsync(const TerminateVirtualBorderRouterRequest& request, const TerminateVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, terminateVirtualBorderRouter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::TerminateVirtualBorderRouterOutcomeCallable EcsClient::terminateVirtualBorderRouterCallable(const TerminateVirtualBorderRouterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->terminateVirtualBorderRouter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::StopInstanceOutcome EcsClient::stopInstance(const StopInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return StopInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopInstanceOutcome(StopInstanceResult(outcome.result())); + else + return StopInstanceOutcome(outcome.error()); +} + +void EcsClient::stopInstanceAsync(const StopInstanceRequest& request, const StopInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::StopInstanceOutcomeCallable EcsClient::stopInstanceCallable(const StopInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeInstanceHistoryEventsOutcome EcsClient::describeInstanceHistoryEvents(const DescribeInstanceHistoryEventsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceHistoryEventsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceHistoryEventsOutcome(DescribeInstanceHistoryEventsResult(outcome.result())); + else + return DescribeInstanceHistoryEventsOutcome(outcome.error()); +} + +void EcsClient::describeInstanceHistoryEventsAsync(const DescribeInstanceHistoryEventsRequest& request, const DescribeInstanceHistoryEventsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceHistoryEvents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeInstanceHistoryEventsOutcomeCallable EcsClient::describeInstanceHistoryEventsCallable(const DescribeInstanceHistoryEventsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceHistoryEvents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeletePhysicalConnectionOutcome EcsClient::deletePhysicalConnection(const DeletePhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePhysicalConnectionOutcome(DeletePhysicalConnectionResult(outcome.result())); + else + return DeletePhysicalConnectionOutcome(outcome.error()); +} + +void EcsClient::deletePhysicalConnectionAsync(const DeletePhysicalConnectionRequest& request, const DeletePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeletePhysicalConnectionOutcomeCallable EcsClient::deletePhysicalConnectionCallable(const DeletePhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::RevokeSecurityGroupOutcome EcsClient::revokeSecurityGroup(const RevokeSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RevokeSecurityGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevokeSecurityGroupOutcome(RevokeSecurityGroupResult(outcome.result())); + else + return RevokeSecurityGroupOutcome(outcome.error()); +} + +void EcsClient::revokeSecurityGroupAsync(const RevokeSecurityGroupRequest& request, const RevokeSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revokeSecurityGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::RevokeSecurityGroupOutcomeCallable EcsClient::revokeSecurityGroupCallable(const RevokeSecurityGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->revokeSecurityGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CheckAutoSnapshotPolicyOutcome EcsClient::checkAutoSnapshotPolicy(const CheckAutoSnapshotPolicyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CheckAutoSnapshotPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckAutoSnapshotPolicyOutcome(CheckAutoSnapshotPolicyResult(outcome.result())); + else + return CheckAutoSnapshotPolicyOutcome(outcome.error()); +} + +void EcsClient::checkAutoSnapshotPolicyAsync(const CheckAutoSnapshotPolicyRequest& request, const CheckAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkAutoSnapshotPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CheckAutoSnapshotPolicyOutcomeCallable EcsClient::checkAutoSnapshotPolicyCallable(const CheckAutoSnapshotPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkAutoSnapshotPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeTaskAttributeOutcome EcsClient::describeTaskAttribute(const DescribeTaskAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTaskAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTaskAttributeOutcome(DescribeTaskAttributeResult(outcome.result())); + else + return DescribeTaskAttributeOutcome(outcome.error()); +} + +void EcsClient::describeTaskAttributeAsync(const DescribeTaskAttributeRequest& request, const DescribeTaskAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTaskAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeTaskAttributeOutcomeCallable EcsClient::describeTaskAttributeCallable(const DescribeTaskAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTaskAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateAutoSnapshotPolicyOutcome EcsClient::createAutoSnapshotPolicy(const CreateAutoSnapshotPolicyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAutoSnapshotPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAutoSnapshotPolicyOutcome(CreateAutoSnapshotPolicyResult(outcome.result())); + else + return CreateAutoSnapshotPolicyOutcome(outcome.error()); +} + +void EcsClient::createAutoSnapshotPolicyAsync(const CreateAutoSnapshotPolicyRequest& request, const CreateAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAutoSnapshotPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateAutoSnapshotPolicyOutcomeCallable EcsClient::createAutoSnapshotPolicyCallable(const CreateAutoSnapshotPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAutoSnapshotPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ReActivateInstancesOutcome EcsClient::reActivateInstances(const ReActivateInstancesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ReActivateInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReActivateInstancesOutcome(ReActivateInstancesResult(outcome.result())); + else + return ReActivateInstancesOutcome(outcome.error()); +} + +void EcsClient::reActivateInstancesAsync(const ReActivateInstancesRequest& request, const ReActivateInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, reActivateInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ReActivateInstancesOutcomeCallable EcsClient::reActivateInstancesCallable(const ReActivateInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->reActivateInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeForwardTableEntriesOutcome EcsClient::describeForwardTableEntries(const DescribeForwardTableEntriesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeForwardTableEntriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeForwardTableEntriesOutcome(DescribeForwardTableEntriesResult(outcome.result())); + else + return DescribeForwardTableEntriesOutcome(outcome.error()); +} + +void EcsClient::describeForwardTableEntriesAsync(const DescribeForwardTableEntriesRequest& request, const DescribeForwardTableEntriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeForwardTableEntries(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeForwardTableEntriesOutcomeCallable EcsClient::describeForwardTableEntriesCallable(const DescribeForwardTableEntriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeForwardTableEntries(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeInstancesOutcome EcsClient::describeInstances(const DescribeInstancesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstancesOutcome(DescribeInstancesResult(outcome.result())); + else + return DescribeInstancesOutcome(outcome.error()); +} + +void EcsClient::describeInstancesAsync(const DescribeInstancesRequest& request, const DescribeInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeInstancesOutcomeCallable EcsClient::describeInstancesCallable(const DescribeInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeSecurityGroupReferencesOutcome EcsClient::describeSecurityGroupReferences(const DescribeSecurityGroupReferencesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSecurityGroupReferencesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSecurityGroupReferencesOutcome(DescribeSecurityGroupReferencesResult(outcome.result())); + else + return DescribeSecurityGroupReferencesOutcome(outcome.error()); +} + +void EcsClient::describeSecurityGroupReferencesAsync(const DescribeSecurityGroupReferencesRequest& request, const DescribeSecurityGroupReferencesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSecurityGroupReferences(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeSecurityGroupReferencesOutcomeCallable EcsClient::describeSecurityGroupReferencesCallable(const DescribeSecurityGroupReferencesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSecurityGroupReferences(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteRouterInterfaceOutcome EcsClient::deleteRouterInterface(const DeleteRouterInterfaceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRouterInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRouterInterfaceOutcome(DeleteRouterInterfaceResult(outcome.result())); + else + return DeleteRouterInterfaceOutcome(outcome.error()); +} + +void EcsClient::deleteRouterInterfaceAsync(const DeleteRouterInterfaceRequest& request, const DeleteRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRouterInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteRouterInterfaceOutcomeCallable EcsClient::deleteRouterInterfaceCallable(const DeleteRouterInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRouterInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DetachInstanceRamRoleOutcome EcsClient::detachInstanceRamRole(const DetachInstanceRamRoleRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DetachInstanceRamRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachInstanceRamRoleOutcome(DetachInstanceRamRoleResult(outcome.result())); + else + return DetachInstanceRamRoleOutcome(outcome.error()); +} + +void EcsClient::detachInstanceRamRoleAsync(const DetachInstanceRamRoleRequest& request, const DetachInstanceRamRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachInstanceRamRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DetachInstanceRamRoleOutcomeCallable EcsClient::detachInstanceRamRoleCallable(const DetachInstanceRamRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachInstanceRamRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::AllocatePublicIpAddressOutcome EcsClient::allocatePublicIpAddress(const AllocatePublicIpAddressRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AllocatePublicIpAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocatePublicIpAddressOutcome(AllocatePublicIpAddressResult(outcome.result())); + else + return AllocatePublicIpAddressOutcome(outcome.error()); +} + +void EcsClient::allocatePublicIpAddressAsync(const AllocatePublicIpAddressRequest& request, const AllocatePublicIpAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocatePublicIpAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::AllocatePublicIpAddressOutcomeCallable EcsClient::allocatePublicIpAddressCallable(const AllocatePublicIpAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocatePublicIpAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeEipMonitorDataOutcome EcsClient::describeEipMonitorData(const DescribeEipMonitorDataRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEipMonitorDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEipMonitorDataOutcome(DescribeEipMonitorDataResult(outcome.result())); + else + return DescribeEipMonitorDataOutcome(outcome.error()); +} + +void EcsClient::describeEipMonitorDataAsync(const DescribeEipMonitorDataRequest& request, const DescribeEipMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEipMonitorData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeEipMonitorDataOutcomeCallable EcsClient::describeEipMonitorDataCallable(const DescribeEipMonitorDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEipMonitorData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CancelAutoSnapshotPolicyOutcome EcsClient::cancelAutoSnapshotPolicy(const CancelAutoSnapshotPolicyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CancelAutoSnapshotPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelAutoSnapshotPolicyOutcome(CancelAutoSnapshotPolicyResult(outcome.result())); + else + return CancelAutoSnapshotPolicyOutcome(outcome.error()); +} + +void EcsClient::cancelAutoSnapshotPolicyAsync(const CancelAutoSnapshotPolicyRequest& request, const CancelAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelAutoSnapshotPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CancelAutoSnapshotPolicyOutcomeCallable EcsClient::cancelAutoSnapshotPolicyCallable(const CancelAutoSnapshotPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelAutoSnapshotPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeDisksFullStatusOutcome EcsClient::describeDisksFullStatus(const DescribeDisksFullStatusRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDisksFullStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDisksFullStatusOutcome(DescribeDisksFullStatusResult(outcome.result())); + else + return DescribeDisksFullStatusOutcome(outcome.error()); +} + +void EcsClient::describeDisksFullStatusAsync(const DescribeDisksFullStatusRequest& request, const DescribeDisksFullStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDisksFullStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeDisksFullStatusOutcomeCallable EcsClient::describeDisksFullStatusCallable(const DescribeDisksFullStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDisksFullStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteNetworkInterfaceOutcome EcsClient::deleteNetworkInterface(const DeleteNetworkInterfaceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNetworkInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNetworkInterfaceOutcome(DeleteNetworkInterfaceResult(outcome.result())); + else + return DeleteNetworkInterfaceOutcome(outcome.error()); +} + +void EcsClient::deleteNetworkInterfaceAsync(const DeleteNetworkInterfaceRequest& request, const DeleteNetworkInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNetworkInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteNetworkInterfaceOutcomeCallable EcsClient::deleteNetworkInterfaceCallable(const DeleteNetworkInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNetworkInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyInstanceSpecOutcome EcsClient::modifyInstanceSpec(const ModifyInstanceSpecRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceSpecOutcome(ModifyInstanceSpecResult(outcome.result())); + else + return ModifyInstanceSpecOutcome(outcome.error()); +} + +void EcsClient::modifyInstanceSpecAsync(const ModifyInstanceSpecRequest& request, const ModifyInstanceSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstanceSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyInstanceSpecOutcomeCallable EcsClient::modifyInstanceSpecCallable(const ModifyInstanceSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstanceSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteSnapshotOutcome EcsClient::deleteSnapshot(const DeleteSnapshotRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSnapshotOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSnapshotOutcome(DeleteSnapshotResult(outcome.result())); + else + return DeleteSnapshotOutcome(outcome.error()); +} + +void EcsClient::deleteSnapshotAsync(const DeleteSnapshotRequest& request, const DeleteSnapshotAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSnapshot(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteSnapshotOutcomeCallable EcsClient::deleteSnapshotCallable(const DeleteSnapshotRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSnapshot(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteKeyPairsOutcome EcsClient::deleteKeyPairs(const DeleteKeyPairsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteKeyPairsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteKeyPairsOutcome(DeleteKeyPairsResult(outcome.result())); + else + return DeleteKeyPairsOutcome(outcome.error()); +} + +void EcsClient::deleteKeyPairsAsync(const DeleteKeyPairsRequest& request, const DeleteKeyPairsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteKeyPairs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteKeyPairsOutcomeCallable EcsClient::deleteKeyPairsCallable(const DeleteKeyPairsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteKeyPairs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::AuthorizeSecurityGroupOutcome EcsClient::authorizeSecurityGroup(const AuthorizeSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AuthorizeSecurityGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AuthorizeSecurityGroupOutcome(AuthorizeSecurityGroupResult(outcome.result())); + else + return AuthorizeSecurityGroupOutcome(outcome.error()); +} + +void EcsClient::authorizeSecurityGroupAsync(const AuthorizeSecurityGroupRequest& request, const AuthorizeSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, authorizeSecurityGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::AuthorizeSecurityGroupOutcomeCallable EcsClient::authorizeSecurityGroupCallable(const AuthorizeSecurityGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->authorizeSecurityGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteSecurityGroupOutcome EcsClient::deleteSecurityGroup(const DeleteSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSecurityGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSecurityGroupOutcome(DeleteSecurityGroupResult(outcome.result())); + else + return DeleteSecurityGroupOutcome(outcome.error()); +} + +void EcsClient::deleteSecurityGroupAsync(const DeleteSecurityGroupRequest& request, const DeleteSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSecurityGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteSecurityGroupOutcomeCallable EcsClient::deleteSecurityGroupCallable(const DeleteSecurityGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSecurityGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeSnapshotMonitorDataOutcome EcsClient::describeSnapshotMonitorData(const DescribeSnapshotMonitorDataRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSnapshotMonitorDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSnapshotMonitorDataOutcome(DescribeSnapshotMonitorDataResult(outcome.result())); + else + return DescribeSnapshotMonitorDataOutcome(outcome.error()); +} + +void EcsClient::describeSnapshotMonitorDataAsync(const DescribeSnapshotMonitorDataRequest& request, const DescribeSnapshotMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSnapshotMonitorData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeSnapshotMonitorDataOutcomeCallable EcsClient::describeSnapshotMonitorDataCallable(const DescribeSnapshotMonitorDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSnapshotMonitorData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ConnectRouterInterfaceOutcome EcsClient::connectRouterInterface(const ConnectRouterInterfaceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ConnectRouterInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConnectRouterInterfaceOutcome(ConnectRouterInterfaceResult(outcome.result())); + else + return ConnectRouterInterfaceOutcome(outcome.error()); +} + +void EcsClient::connectRouterInterfaceAsync(const ConnectRouterInterfaceRequest& request, const ConnectRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, connectRouterInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ConnectRouterInterfaceOutcomeCallable EcsClient::connectRouterInterfaceCallable(const ConnectRouterInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->connectRouterInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::AddIpRangeOutcome EcsClient::addIpRange(const AddIpRangeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AddIpRangeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddIpRangeOutcome(AddIpRangeResult(outcome.result())); + else + return AddIpRangeOutcome(outcome.error()); +} + +void EcsClient::addIpRangeAsync(const AddIpRangeRequest& request, const AddIpRangeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addIpRange(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::AddIpRangeOutcomeCallable EcsClient::addIpRangeCallable(const AddIpRangeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addIpRange(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CancelTaskOutcome EcsClient::cancelTask(const CancelTaskRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CancelTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelTaskOutcome(CancelTaskResult(outcome.result())); + else + return CancelTaskOutcome(outcome.error()); +} + +void EcsClient::cancelTaskAsync(const CancelTaskRequest& request, const CancelTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CancelTaskOutcomeCallable EcsClient::cancelTaskCallable(const CancelTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyPhysicalConnectionAttributeOutcome EcsClient::modifyPhysicalConnectionAttribute(const ModifyPhysicalConnectionAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyPhysicalConnectionAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyPhysicalConnectionAttributeOutcome(ModifyPhysicalConnectionAttributeResult(outcome.result())); + else + return ModifyPhysicalConnectionAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyPhysicalConnectionAttributeAsync(const ModifyPhysicalConnectionAttributeRequest& request, const ModifyPhysicalConnectionAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyPhysicalConnectionAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyPhysicalConnectionAttributeOutcomeCallable EcsClient::modifyPhysicalConnectionAttributeCallable(const ModifyPhysicalConnectionAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyPhysicalConnectionAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyCommandOutcome EcsClient::modifyCommand(const ModifyCommandRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCommandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCommandOutcome(ModifyCommandResult(outcome.result())); + else + return ModifyCommandOutcome(outcome.error()); +} + +void EcsClient::modifyCommandAsync(const ModifyCommandRequest& request, const ModifyCommandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCommand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyCommandOutcomeCallable EcsClient::modifyCommandCallable(const ModifyCommandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCommand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyVSwitchAttributeOutcome EcsClient::modifyVSwitchAttribute(const ModifyVSwitchAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVSwitchAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVSwitchAttributeOutcome(ModifyVSwitchAttributeResult(outcome.result())); + else + return ModifyVSwitchAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyVSwitchAttributeAsync(const ModifyVSwitchAttributeRequest& request, const ModifyVSwitchAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVSwitchAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyVSwitchAttributeOutcomeCallable EcsClient::modifyVSwitchAttributeCallable(const ModifyVSwitchAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVSwitchAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyInstanceAttributeOutcome EcsClient::modifyInstanceAttribute(const ModifyInstanceAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceAttributeOutcome(ModifyInstanceAttributeResult(outcome.result())); + else + return ModifyInstanceAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyInstanceAttributeAsync(const ModifyInstanceAttributeRequest& request, const ModifyInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstanceAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyInstanceAttributeOutcomeCallable EcsClient::modifyInstanceAttributeCallable(const ModifyInstanceAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstanceAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteHaVipOutcome EcsClient::deleteHaVip(const DeleteHaVipRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteHaVipOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteHaVipOutcome(DeleteHaVipResult(outcome.result())); + else + return DeleteHaVipOutcome(outcome.error()); +} + +void EcsClient::deleteHaVipAsync(const DeleteHaVipRequest& request, const DeleteHaVipAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteHaVip(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteHaVipOutcomeCallable EcsClient::deleteHaVipCallable(const DeleteHaVipRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteHaVip(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeSecurityGroupsOutcome EcsClient::describeSecurityGroups(const DescribeSecurityGroupsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSecurityGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSecurityGroupsOutcome(DescribeSecurityGroupsResult(outcome.result())); + else + return DescribeSecurityGroupsOutcome(outcome.error()); +} + +void EcsClient::describeSecurityGroupsAsync(const DescribeSecurityGroupsRequest& request, const DescribeSecurityGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSecurityGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeSecurityGroupsOutcomeCallable EcsClient::describeSecurityGroupsCallable(const DescribeSecurityGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSecurityGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ResizeDiskOutcome EcsClient::resizeDisk(const ResizeDiskRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ResizeDiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResizeDiskOutcome(ResizeDiskResult(outcome.result())); + else + return ResizeDiskOutcome(outcome.error()); +} + +void EcsClient::resizeDiskAsync(const ResizeDiskRequest& request, const ResizeDiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resizeDisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ResizeDiskOutcomeCallable EcsClient::resizeDiskCallable(const ResizeDiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resizeDisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateRouteEntryOutcome EcsClient::createRouteEntry(const CreateRouteEntryRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRouteEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRouteEntryOutcome(CreateRouteEntryResult(outcome.result())); + else + return CreateRouteEntryOutcome(outcome.error()); +} + +void EcsClient::createRouteEntryAsync(const CreateRouteEntryRequest& request, const CreateRouteEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRouteEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateRouteEntryOutcomeCallable EcsClient::createRouteEntryCallable(const CreateRouteEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRouteEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeInvocationsOutcome EcsClient::describeInvocations(const DescribeInvocationsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInvocationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInvocationsOutcome(DescribeInvocationsResult(outcome.result())); + else + return DescribeInvocationsOutcome(outcome.error()); +} + +void EcsClient::describeInvocationsAsync(const DescribeInvocationsRequest& request, const DescribeInvocationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInvocations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeInvocationsOutcomeCallable EcsClient::describeInvocationsCallable(const DescribeInvocationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInvocations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::AttachKeyPairOutcome EcsClient::attachKeyPair(const AttachKeyPairRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AttachKeyPairOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachKeyPairOutcome(AttachKeyPairResult(outcome.result())); + else + return AttachKeyPairOutcome(outcome.error()); +} + +void EcsClient::attachKeyPairAsync(const AttachKeyPairRequest& request, const AttachKeyPairAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachKeyPair(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::AttachKeyPairOutcomeCallable EcsClient::attachKeyPairCallable(const AttachKeyPairRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachKeyPair(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateRouterInterfaceOutcome EcsClient::createRouterInterface(const CreateRouterInterfaceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRouterInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRouterInterfaceOutcome(CreateRouterInterfaceResult(outcome.result())); + else + return CreateRouterInterfaceOutcome(outcome.error()); +} + +void EcsClient::createRouterInterfaceAsync(const CreateRouterInterfaceRequest& request, const CreateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRouterInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateRouterInterfaceOutcomeCallable EcsClient::createRouterInterfaceCallable(const CreateRouterInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRouterInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CheckDiskEnableAutoSnapshotValidationOutcome EcsClient::checkDiskEnableAutoSnapshotValidation(const CheckDiskEnableAutoSnapshotValidationRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CheckDiskEnableAutoSnapshotValidationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckDiskEnableAutoSnapshotValidationOutcome(CheckDiskEnableAutoSnapshotValidationResult(outcome.result())); + else + return CheckDiskEnableAutoSnapshotValidationOutcome(outcome.error()); +} + +void EcsClient::checkDiskEnableAutoSnapshotValidationAsync(const CheckDiskEnableAutoSnapshotValidationRequest& request, const CheckDiskEnableAutoSnapshotValidationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkDiskEnableAutoSnapshotValidation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CheckDiskEnableAutoSnapshotValidationOutcomeCallable EcsClient::checkDiskEnableAutoSnapshotValidationCallable(const CheckDiskEnableAutoSnapshotValidationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkDiskEnableAutoSnapshotValidation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::RunInstancesOutcome EcsClient::runInstances(const RunInstancesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RunInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RunInstancesOutcome(RunInstancesResult(outcome.result())); + else + return RunInstancesOutcome(outcome.error()); +} + +void EcsClient::runInstancesAsync(const RunInstancesRequest& request, const RunInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, runInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::RunInstancesOutcomeCallable EcsClient::runInstancesCallable(const RunInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->runInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::StopInvocationOutcome EcsClient::stopInvocation(const StopInvocationRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return StopInvocationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopInvocationOutcome(StopInvocationResult(outcome.result())); + else + return StopInvocationOutcome(outcome.error()); +} + +void EcsClient::stopInvocationAsync(const StopInvocationRequest& request, const StopInvocationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopInvocation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::StopInvocationOutcomeCallable EcsClient::stopInvocationCallable(const StopInvocationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopInvocation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyInstanceNetworkSpecOutcome EcsClient::modifyInstanceNetworkSpec(const ModifyInstanceNetworkSpecRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceNetworkSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceNetworkSpecOutcome(ModifyInstanceNetworkSpecResult(outcome.result())); + else + return ModifyInstanceNetworkSpecOutcome(outcome.error()); +} + +void EcsClient::modifyInstanceNetworkSpecAsync(const ModifyInstanceNetworkSpecRequest& request, const ModifyInstanceNetworkSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstanceNetworkSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyInstanceNetworkSpecOutcomeCallable EcsClient::modifyInstanceNetworkSpecCallable(const ModifyInstanceNetworkSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstanceNetworkSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyDiskAttributeOutcome EcsClient::modifyDiskAttribute(const ModifyDiskAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDiskAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDiskAttributeOutcome(ModifyDiskAttributeResult(outcome.result())); + else + return ModifyDiskAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyDiskAttributeAsync(const ModifyDiskAttributeRequest& request, const ModifyDiskAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDiskAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyDiskAttributeOutcomeCallable EcsClient::modifyDiskAttributeCallable(const ModifyDiskAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDiskAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateVSwitchOutcome EcsClient::createVSwitch(const CreateVSwitchRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVSwitchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVSwitchOutcome(CreateVSwitchResult(outcome.result())); + else + return CreateVSwitchOutcome(outcome.error()); +} + +void EcsClient::createVSwitchAsync(const CreateVSwitchRequest& request, const CreateVSwitchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVSwitch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateVSwitchOutcomeCallable EcsClient::createVSwitchCallable(const CreateVSwitchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVSwitch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyEipAddressAttributeOutcome EcsClient::modifyEipAddressAttribute(const ModifyEipAddressAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyEipAddressAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyEipAddressAttributeOutcome(ModifyEipAddressAttributeResult(outcome.result())); + else + return ModifyEipAddressAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyEipAddressAttributeAsync(const ModifyEipAddressAttributeRequest& request, const ModifyEipAddressAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyEipAddressAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyEipAddressAttributeOutcomeCallable EcsClient::modifyEipAddressAttributeCallable(const ModifyEipAddressAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyEipAddressAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::RemoveTagsOutcome EcsClient::removeTags(const RemoveTagsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveTagsOutcome(RemoveTagsResult(outcome.result())); + else + return RemoveTagsOutcome(outcome.error()); +} + +void EcsClient::removeTagsAsync(const RemoveTagsRequest& request, const RemoveTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::RemoveTagsOutcomeCallable EcsClient::removeTagsCallable(const RemoveTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifySecurityGroupAttributeOutcome EcsClient::modifySecurityGroupAttribute(const ModifySecurityGroupAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySecurityGroupAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySecurityGroupAttributeOutcome(ModifySecurityGroupAttributeResult(outcome.result())); + else + return ModifySecurityGroupAttributeOutcome(outcome.error()); +} + +void EcsClient::modifySecurityGroupAttributeAsync(const ModifySecurityGroupAttributeRequest& request, const ModifySecurityGroupAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySecurityGroupAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifySecurityGroupAttributeOutcomeCallable EcsClient::modifySecurityGroupAttributeCallable(const ModifySecurityGroupAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySecurityGroupAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyInstanceAutoReleaseTimeOutcome EcsClient::modifyInstanceAutoReleaseTime(const ModifyInstanceAutoReleaseTimeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceAutoReleaseTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceAutoReleaseTimeOutcome(ModifyInstanceAutoReleaseTimeResult(outcome.result())); + else + return ModifyInstanceAutoReleaseTimeOutcome(outcome.error()); +} + +void EcsClient::modifyInstanceAutoReleaseTimeAsync(const ModifyInstanceAutoReleaseTimeRequest& request, const ModifyInstanceAutoReleaseTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstanceAutoReleaseTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyInstanceAutoReleaseTimeOutcomeCallable EcsClient::modifyInstanceAutoReleaseTimeCallable(const ModifyInstanceAutoReleaseTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstanceAutoReleaseTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteNatGatewayOutcome EcsClient::deleteNatGateway(const DeleteNatGatewayRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNatGatewayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNatGatewayOutcome(DeleteNatGatewayResult(outcome.result())); + else + return DeleteNatGatewayOutcome(outcome.error()); +} + +void EcsClient::deleteNatGatewayAsync(const DeleteNatGatewayRequest& request, const DeleteNatGatewayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNatGateway(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteNatGatewayOutcomeCallable EcsClient::deleteNatGatewayCallable(const DeleteNatGatewayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNatGateway(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeZonesOutcome EcsClient::describeZones(const DescribeZonesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeZonesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeZonesOutcome(DescribeZonesResult(outcome.result())); + else + return DescribeZonesOutcome(outcome.error()); +} + +void EcsClient::describeZonesAsync(const DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeZones(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeZonesOutcomeCallable EcsClient::describeZonesCallable(const DescribeZonesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeZones(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeactivateRouterInterfaceOutcome EcsClient::deactivateRouterInterface(const DeactivateRouterInterfaceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeactivateRouterInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeactivateRouterInterfaceOutcome(DeactivateRouterInterfaceResult(outcome.result())); + else + return DeactivateRouterInterfaceOutcome(outcome.error()); +} + +void EcsClient::deactivateRouterInterfaceAsync(const DeactivateRouterInterfaceRequest& request, const DeactivateRouterInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deactivateRouterInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeactivateRouterInterfaceOutcomeCallable EcsClient::deactivateRouterInterfaceCallable(const DeactivateRouterInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deactivateRouterInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeAccessPointsOutcome EcsClient::describeAccessPoints(const DescribeAccessPointsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccessPointsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccessPointsOutcome(DescribeAccessPointsResult(outcome.result())); + else + return DescribeAccessPointsOutcome(outcome.error()); +} + +void EcsClient::describeAccessPointsAsync(const DescribeAccessPointsRequest& request, const DescribeAccessPointsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccessPoints(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeAccessPointsOutcomeCallable EcsClient::describeAccessPointsCallable(const DescribeAccessPointsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccessPoints(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateCommandOutcome EcsClient::createCommand(const CreateCommandRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCommandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCommandOutcome(CreateCommandResult(outcome.result())); + else + return CreateCommandOutcome(outcome.error()); +} + +void EcsClient::createCommandAsync(const CreateCommandRequest& request, const CreateCommandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCommand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateCommandOutcomeCallable EcsClient::createCommandCallable(const CreateCommandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCommand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeInstancesFullStatusOutcome EcsClient::describeInstancesFullStatus(const DescribeInstancesFullStatusRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstancesFullStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstancesFullStatusOutcome(DescribeInstancesFullStatusResult(outcome.result())); + else + return DescribeInstancesFullStatusOutcome(outcome.error()); +} + +void EcsClient::describeInstancesFullStatusAsync(const DescribeInstancesFullStatusRequest& request, const DescribeInstancesFullStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstancesFullStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeInstancesFullStatusOutcomeCallable EcsClient::describeInstancesFullStatusCallable(const DescribeInstancesFullStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstancesFullStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ReleaseEipAddressOutcome EcsClient::releaseEipAddress(const ReleaseEipAddressRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseEipAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseEipAddressOutcome(ReleaseEipAddressResult(outcome.result())); + else + return ReleaseEipAddressOutcome(outcome.error()); +} + +void EcsClient::releaseEipAddressAsync(const ReleaseEipAddressRequest& request, const ReleaseEipAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseEipAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ReleaseEipAddressOutcomeCallable EcsClient::releaseEipAddressCallable(const ReleaseEipAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseEipAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DetachClassicLinkVpcOutcome EcsClient::detachClassicLinkVpc(const DetachClassicLinkVpcRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DetachClassicLinkVpcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachClassicLinkVpcOutcome(DetachClassicLinkVpcResult(outcome.result())); + else + return DetachClassicLinkVpcOutcome(outcome.error()); +} + +void EcsClient::detachClassicLinkVpcAsync(const DetachClassicLinkVpcRequest& request, const DetachClassicLinkVpcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachClassicLinkVpc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DetachClassicLinkVpcOutcomeCallable EcsClient::detachClassicLinkVpcCallable(const DetachClassicLinkVpcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachClassicLinkVpc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeVSwitchesOutcome EcsClient::describeVSwitches(const DescribeVSwitchesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVSwitchesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVSwitchesOutcome(DescribeVSwitchesResult(outcome.result())); + else + return DescribeVSwitchesOutcome(outcome.error()); +} + +void EcsClient::describeVSwitchesAsync(const DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVSwitches(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeVSwitchesOutcomeCallable EcsClient::describeVSwitchesCallable(const DescribeVSwitchesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVSwitches(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyRouterInterfaceSpecOutcome EcsClient::modifyRouterInterfaceSpec(const ModifyRouterInterfaceSpecRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRouterInterfaceSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRouterInterfaceSpecOutcome(ModifyRouterInterfaceSpecResult(outcome.result())); + else + return ModifyRouterInterfaceSpecOutcome(outcome.error()); +} + +void EcsClient::modifyRouterInterfaceSpecAsync(const ModifyRouterInterfaceSpecRequest& request, const ModifyRouterInterfaceSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRouterInterfaceSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyRouterInterfaceSpecOutcomeCallable EcsClient::modifyRouterInterfaceSpecCallable(const ModifyRouterInterfaceSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRouterInterfaceSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeVpcsOutcome EcsClient::describeVpcs(const DescribeVpcsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpcsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpcsOutcome(DescribeVpcsResult(outcome.result())); + else + return DescribeVpcsOutcome(outcome.error()); +} + +void EcsClient::describeVpcsAsync(const DescribeVpcsRequest& request, const DescribeVpcsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpcs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeVpcsOutcomeCallable EcsClient::describeVpcsCallable(const DescribeVpcsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpcs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ExportImageOutcome EcsClient::exportImage(const ExportImageRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ExportImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExportImageOutcome(ExportImageResult(outcome.result())); + else + return ExportImageOutcome(outcome.error()); +} + +void EcsClient::exportImageAsync(const ExportImageRequest& request, const ExportImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, exportImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ExportImageOutcomeCallable EcsClient::exportImageCallable(const ExportImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->exportImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeDiskMonitorDataOutcome EcsClient::describeDiskMonitorData(const DescribeDiskMonitorDataRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDiskMonitorDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDiskMonitorDataOutcome(DescribeDiskMonitorDataResult(outcome.result())); + else + return DescribeDiskMonitorDataOutcome(outcome.error()); +} + +void EcsClient::describeDiskMonitorDataAsync(const DescribeDiskMonitorDataRequest& request, const DescribeDiskMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDiskMonitorData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeDiskMonitorDataOutcomeCallable EcsClient::describeDiskMonitorDataCallable(const DescribeDiskMonitorDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDiskMonitorData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyDeploymentSetAttributeOutcome EcsClient::modifyDeploymentSetAttribute(const ModifyDeploymentSetAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDeploymentSetAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDeploymentSetAttributeOutcome(ModifyDeploymentSetAttributeResult(outcome.result())); + else + return ModifyDeploymentSetAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyDeploymentSetAttributeAsync(const ModifyDeploymentSetAttributeRequest& request, const ModifyDeploymentSetAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDeploymentSetAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyDeploymentSetAttributeOutcomeCallable EcsClient::modifyDeploymentSetAttributeCallable(const ModifyDeploymentSetAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDeploymentSetAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyRouterInterfaceAttributeOutcome EcsClient::modifyRouterInterfaceAttribute(const ModifyRouterInterfaceAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyRouterInterfaceAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyRouterInterfaceAttributeOutcome(ModifyRouterInterfaceAttributeResult(outcome.result())); + else + return ModifyRouterInterfaceAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyRouterInterfaceAttributeAsync(const ModifyRouterInterfaceAttributeRequest& request, const ModifyRouterInterfaceAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyRouterInterfaceAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyRouterInterfaceAttributeOutcomeCallable EcsClient::modifyRouterInterfaceAttributeCallable(const ModifyRouterInterfaceAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyRouterInterfaceAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeVirtualBorderRoutersForPhysicalConnectionOutcome EcsClient::describeVirtualBorderRoutersForPhysicalConnection(const DescribeVirtualBorderRoutersForPhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVirtualBorderRoutersForPhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVirtualBorderRoutersForPhysicalConnectionOutcome(DescribeVirtualBorderRoutersForPhysicalConnectionResult(outcome.result())); + else + return DescribeVirtualBorderRoutersForPhysicalConnectionOutcome(outcome.error()); +} + +void EcsClient::describeVirtualBorderRoutersForPhysicalConnectionAsync(const DescribeVirtualBorderRoutersForPhysicalConnectionRequest& request, const DescribeVirtualBorderRoutersForPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVirtualBorderRoutersForPhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeVirtualBorderRoutersForPhysicalConnectionOutcomeCallable EcsClient::describeVirtualBorderRoutersForPhysicalConnectionCallable(const DescribeVirtualBorderRoutersForPhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVirtualBorderRoutersForPhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateDiskOutcome EcsClient::createDisk(const CreateDiskRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDiskOutcome(CreateDiskResult(outcome.result())); + else + return CreateDiskOutcome(outcome.error()); +} + +void EcsClient::createDiskAsync(const CreateDiskRequest& request, const CreateDiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateDiskOutcomeCallable EcsClient::createDiskCallable(const CreateDiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::StartInstanceOutcome EcsClient::startInstance(const StartInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return StartInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartInstanceOutcome(StartInstanceResult(outcome.result())); + else + return StartInstanceOutcome(outcome.error()); +} + +void EcsClient::startInstanceAsync(const StartInstanceRequest& request, const StartInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::StartInstanceOutcomeCallable EcsClient::startInstanceCallable(const StartInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeInstanceTypesOutcome EcsClient::describeInstanceTypes(const DescribeInstanceTypesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceTypesOutcome(DescribeInstanceTypesResult(outcome.result())); + else + return DescribeInstanceTypesOutcome(outcome.error()); +} + +void EcsClient::describeInstanceTypesAsync(const DescribeInstanceTypesRequest& request, const DescribeInstanceTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeInstanceTypesOutcomeCallable EcsClient::describeInstanceTypesCallable(const DescribeInstanceTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeSnapshotPackageOutcome EcsClient::describeSnapshotPackage(const DescribeSnapshotPackageRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSnapshotPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSnapshotPackageOutcome(DescribeSnapshotPackageResult(outcome.result())); + else + return DescribeSnapshotPackageOutcome(outcome.error()); +} + +void EcsClient::describeSnapshotPackageAsync(const DescribeSnapshotPackageRequest& request, const DescribeSnapshotPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSnapshotPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeSnapshotPackageOutcomeCallable EcsClient::describeSnapshotPackageCallable(const DescribeSnapshotPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSnapshotPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::RebootInstanceOutcome EcsClient::rebootInstance(const RebootInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RebootInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RebootInstanceOutcome(RebootInstanceResult(outcome.result())); + else + return RebootInstanceOutcome(outcome.error()); +} + +void EcsClient::rebootInstanceAsync(const RebootInstanceRequest& request, const RebootInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, rebootInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::RebootInstanceOutcomeCallable EcsClient::rebootInstanceCallable(const RebootInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->rebootInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::BindIpRangeOutcome EcsClient::bindIpRange(const BindIpRangeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return BindIpRangeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindIpRangeOutcome(BindIpRangeResult(outcome.result())); + else + return BindIpRangeOutcome(outcome.error()); +} + +void EcsClient::bindIpRangeAsync(const BindIpRangeRequest& request, const BindIpRangeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindIpRange(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::BindIpRangeOutcomeCallable EcsClient::bindIpRangeCallable(const BindIpRangeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindIpRange(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::InvokeCommandOutcome EcsClient::invokeCommand(const InvokeCommandRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return InvokeCommandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InvokeCommandOutcome(InvokeCommandResult(outcome.result())); + else + return InvokeCommandOutcome(outcome.error()); +} + +void EcsClient::invokeCommandAsync(const InvokeCommandRequest& request, const InvokeCommandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, invokeCommand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::InvokeCommandOutcomeCallable EcsClient::invokeCommandCallable(const InvokeCommandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->invokeCommand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyUserBusinessBehaviorOutcome EcsClient::modifyUserBusinessBehavior(const ModifyUserBusinessBehaviorRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyUserBusinessBehaviorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyUserBusinessBehaviorOutcome(ModifyUserBusinessBehaviorResult(outcome.result())); + else + return ModifyUserBusinessBehaviorOutcome(outcome.error()); +} + +void EcsClient::modifyUserBusinessBehaviorAsync(const ModifyUserBusinessBehaviorRequest& request, const ModifyUserBusinessBehaviorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyUserBusinessBehavior(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyUserBusinessBehaviorOutcomeCallable EcsClient::modifyUserBusinessBehaviorCallable(const ModifyUserBusinessBehaviorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyUserBusinessBehavior(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteForwardEntryOutcome EcsClient::deleteForwardEntry(const DeleteForwardEntryRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteForwardEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteForwardEntryOutcome(DeleteForwardEntryResult(outcome.result())); + else + return DeleteForwardEntryOutcome(outcome.error()); +} + +void EcsClient::deleteForwardEntryAsync(const DeleteForwardEntryRequest& request, const DeleteForwardEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteForwardEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteForwardEntryOutcomeCallable EcsClient::deleteForwardEntryCallable(const DeleteForwardEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteForwardEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeHpcClustersOutcome EcsClient::describeHpcClusters(const DescribeHpcClustersRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHpcClustersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHpcClustersOutcome(DescribeHpcClustersResult(outcome.result())); + else + return DescribeHpcClustersOutcome(outcome.error()); +} + +void EcsClient::describeHpcClustersAsync(const DescribeHpcClustersRequest& request, const DescribeHpcClustersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHpcClusters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeHpcClustersOutcomeCallable EcsClient::describeHpcClustersCallable(const DescribeHpcClustersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHpcClusters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CancelAgreementOutcome EcsClient::cancelAgreement(const CancelAgreementRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CancelAgreementOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelAgreementOutcome(CancelAgreementResult(outcome.result())); + else + return CancelAgreementOutcome(outcome.error()); +} + +void EcsClient::cancelAgreementAsync(const CancelAgreementRequest& request, const CancelAgreementAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelAgreement(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CancelAgreementOutcomeCallable EcsClient::cancelAgreementCallable(const CancelAgreementRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelAgreement(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyInstanceChargeTypeOutcome EcsClient::modifyInstanceChargeType(const ModifyInstanceChargeTypeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceChargeTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceChargeTypeOutcome(ModifyInstanceChargeTypeResult(outcome.result())); + else + return ModifyInstanceChargeTypeOutcome(outcome.error()); +} + +void EcsClient::modifyInstanceChargeTypeAsync(const ModifyInstanceChargeTypeRequest& request, const ModifyInstanceChargeTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstanceChargeType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyInstanceChargeTypeOutcomeCallable EcsClient::modifyInstanceChargeTypeCallable(const ModifyInstanceChargeTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstanceChargeType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyInstanceAutoRenewAttributeOutcome EcsClient::modifyInstanceAutoRenewAttribute(const ModifyInstanceAutoRenewAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceAutoRenewAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceAutoRenewAttributeOutcome(ModifyInstanceAutoRenewAttributeResult(outcome.result())); + else + return ModifyInstanceAutoRenewAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyInstanceAutoRenewAttributeAsync(const ModifyInstanceAutoRenewAttributeRequest& request, const ModifyInstanceAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstanceAutoRenewAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyInstanceAutoRenewAttributeOutcomeCallable EcsClient::modifyInstanceAutoRenewAttributeCallable(const ModifyInstanceAutoRenewAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstanceAutoRenewAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeVirtualBorderRoutersOutcome EcsClient::describeVirtualBorderRouters(const DescribeVirtualBorderRoutersRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVirtualBorderRoutersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVirtualBorderRoutersOutcome(DescribeVirtualBorderRoutersResult(outcome.result())); + else + return DescribeVirtualBorderRoutersOutcome(outcome.error()); +} + +void EcsClient::describeVirtualBorderRoutersAsync(const DescribeVirtualBorderRoutersRequest& request, const DescribeVirtualBorderRoutersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVirtualBorderRouters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeVirtualBorderRoutersOutcomeCallable EcsClient::describeVirtualBorderRoutersCallable(const DescribeVirtualBorderRoutersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVirtualBorderRouters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyHpcClusterAttributeOutcome EcsClient::modifyHpcClusterAttribute(const ModifyHpcClusterAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyHpcClusterAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyHpcClusterAttributeOutcome(ModifyHpcClusterAttributeResult(outcome.result())); + else + return ModifyHpcClusterAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyHpcClusterAttributeAsync(const ModifyHpcClusterAttributeRequest& request, const ModifyHpcClusterAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyHpcClusterAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyHpcClusterAttributeOutcomeCallable EcsClient::modifyHpcClusterAttributeCallable(const ModifyHpcClusterAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyHpcClusterAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeLimitationOutcome EcsClient::describeLimitation(const DescribeLimitationRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLimitationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLimitationOutcome(DescribeLimitationResult(outcome.result())); + else + return DescribeLimitationOutcome(outcome.error()); +} + +void EcsClient::describeLimitationAsync(const DescribeLimitationRequest& request, const DescribeLimitationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLimitation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeLimitationOutcomeCallable EcsClient::describeLimitationCallable(const DescribeLimitationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLimitation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribePriceOutcome EcsClient::describePrice(const DescribePriceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePriceOutcome(DescribePriceResult(outcome.result())); + else + return DescribePriceOutcome(outcome.error()); +} + +void EcsClient::describePriceAsync(const DescribePriceRequest& request, const DescribePriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribePriceOutcomeCallable EcsClient::describePriceCallable(const DescribePriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteDeploymentSetOutcome EcsClient::deleteDeploymentSet(const DeleteDeploymentSetRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDeploymentSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDeploymentSetOutcome(DeleteDeploymentSetResult(outcome.result())); + else + return DeleteDeploymentSetOutcome(outcome.error()); +} + +void EcsClient::deleteDeploymentSetAsync(const DeleteDeploymentSetRequest& request, const DeleteDeploymentSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDeploymentSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteDeploymentSetOutcomeCallable EcsClient::deleteDeploymentSetCallable(const DeleteDeploymentSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDeploymentSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeDeploymentSetTopologyOutcome EcsClient::describeDeploymentSetTopology(const DescribeDeploymentSetTopologyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDeploymentSetTopologyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDeploymentSetTopologyOutcome(DescribeDeploymentSetTopologyResult(outcome.result())); + else + return DescribeDeploymentSetTopologyOutcome(outcome.error()); +} + +void EcsClient::describeDeploymentSetTopologyAsync(const DescribeDeploymentSetTopologyRequest& request, const DescribeDeploymentSetTopologyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDeploymentSetTopology(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeDeploymentSetTopologyOutcomeCallable EcsClient::describeDeploymentSetTopologyCallable(const DescribeDeploymentSetTopologyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDeploymentSetTopology(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyInstanceVpcAttributeOutcome EcsClient::modifyInstanceVpcAttribute(const ModifyInstanceVpcAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceVpcAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceVpcAttributeOutcome(ModifyInstanceVpcAttributeResult(outcome.result())); + else + return ModifyInstanceVpcAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyInstanceVpcAttributeAsync(const ModifyInstanceVpcAttributeRequest& request, const ModifyInstanceVpcAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstanceVpcAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyInstanceVpcAttributeOutcomeCallable EcsClient::modifyInstanceVpcAttributeCallable(const ModifyInstanceVpcAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstanceVpcAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::AddTagsOutcome EcsClient::addTags(const AddTagsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AddTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddTagsOutcome(AddTagsResult(outcome.result())); + else + return AddTagsOutcome(outcome.error()); +} + +void EcsClient::addTagsAsync(const AddTagsRequest& request, const AddTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::AddTagsOutcomeCallable EcsClient::addTagsCallable(const AddTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateHpcClusterOutcome EcsClient::createHpcCluster(const CreateHpcClusterRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateHpcClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateHpcClusterOutcome(CreateHpcClusterResult(outcome.result())); + else + return CreateHpcClusterOutcome(outcome.error()); +} + +void EcsClient::createHpcClusterAsync(const CreateHpcClusterRequest& request, const CreateHpcClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createHpcCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateHpcClusterOutcomeCallable EcsClient::createHpcClusterCallable(const CreateHpcClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createHpcCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeUserBusinessBehaviorOutcome EcsClient::describeUserBusinessBehavior(const DescribeUserBusinessBehaviorRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserBusinessBehaviorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserBusinessBehaviorOutcome(DescribeUserBusinessBehaviorResult(outcome.result())); + else + return DescribeUserBusinessBehaviorOutcome(outcome.error()); +} + +void EcsClient::describeUserBusinessBehaviorAsync(const DescribeUserBusinessBehaviorRequest& request, const DescribeUserBusinessBehaviorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserBusinessBehavior(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeUserBusinessBehaviorOutcomeCallable EcsClient::describeUserBusinessBehaviorCallable(const DescribeUserBusinessBehaviorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserBusinessBehavior(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeCommandsOutcome EcsClient::describeCommands(const DescribeCommandsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCommandsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCommandsOutcome(DescribeCommandsResult(outcome.result())); + else + return DescribeCommandsOutcome(outcome.error()); +} + +void EcsClient::describeCommandsAsync(const DescribeCommandsRequest& request, const DescribeCommandsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCommands(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeCommandsOutcomeCallable EcsClient::describeCommandsCallable(const DescribeCommandsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCommands(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteImageOutcome EcsClient::deleteImage(const DeleteImageRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteImageOutcome(DeleteImageResult(outcome.result())); + else + return DeleteImageOutcome(outcome.error()); +} + +void EcsClient::deleteImageAsync(const DeleteImageRequest& request, const DeleteImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteImageOutcomeCallable EcsClient::deleteImageCallable(const DeleteImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeDisksOutcome EcsClient::describeDisks(const DescribeDisksRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDisksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDisksOutcome(DescribeDisksResult(outcome.result())); + else + return DescribeDisksOutcome(outcome.error()); +} + +void EcsClient::describeDisksAsync(const DescribeDisksRequest& request, const DescribeDisksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDisks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeDisksOutcomeCallable EcsClient::describeDisksCallable(const DescribeDisksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDisks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteVpcOutcome EcsClient::deleteVpc(const DeleteVpcRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVpcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVpcOutcome(DeleteVpcResult(outcome.result())); + else + return DeleteVpcOutcome(outcome.error()); +} + +void EcsClient::deleteVpcAsync(const DeleteVpcRequest& request, const DeleteVpcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVpc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteVpcOutcomeCallable EcsClient::deleteVpcCallable(const DeleteVpcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVpc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeImageSupportInstanceTypesOutcome EcsClient::describeImageSupportInstanceTypes(const DescribeImageSupportInstanceTypesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeImageSupportInstanceTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeImageSupportInstanceTypesOutcome(DescribeImageSupportInstanceTypesResult(outcome.result())); + else + return DescribeImageSupportInstanceTypesOutcome(outcome.error()); +} + +void EcsClient::describeImageSupportInstanceTypesAsync(const DescribeImageSupportInstanceTypesRequest& request, const DescribeImageSupportInstanceTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeImageSupportInstanceTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeImageSupportInstanceTypesOutcomeCallable EcsClient::describeImageSupportInstanceTypesCallable(const DescribeImageSupportInstanceTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeImageSupportInstanceTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteCommandOutcome EcsClient::deleteCommand(const DeleteCommandRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCommandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCommandOutcome(DeleteCommandResult(outcome.result())); + else + return DeleteCommandOutcome(outcome.error()); +} + +void EcsClient::deleteCommandAsync(const DeleteCommandRequest& request, const DeleteCommandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCommand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteCommandOutcomeCallable EcsClient::deleteCommandCallable(const DeleteCommandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCommand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ReplaceSystemDiskOutcome EcsClient::replaceSystemDisk(const ReplaceSystemDiskRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ReplaceSystemDiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReplaceSystemDiskOutcome(ReplaceSystemDiskResult(outcome.result())); + else + return ReplaceSystemDiskOutcome(outcome.error()); +} + +void EcsClient::replaceSystemDiskAsync(const ReplaceSystemDiskRequest& request, const ReplaceSystemDiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, replaceSystemDisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ReplaceSystemDiskOutcomeCallable EcsClient::replaceSystemDiskCallable(const ReplaceSystemDiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->replaceSystemDisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteVSwitchOutcome EcsClient::deleteVSwitch(const DeleteVSwitchRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVSwitchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVSwitchOutcome(DeleteVSwitchResult(outcome.result())); + else + return DeleteVSwitchOutcome(outcome.error()); +} + +void EcsClient::deleteVSwitchAsync(const DeleteVSwitchRequest& request, const DeleteVSwitchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVSwitch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteVSwitchOutcomeCallable EcsClient::deleteVSwitchCallable(const DeleteVSwitchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVSwitch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyImageShareGroupPermissionOutcome EcsClient::modifyImageShareGroupPermission(const ModifyImageShareGroupPermissionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyImageShareGroupPermissionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyImageShareGroupPermissionOutcome(ModifyImageShareGroupPermissionResult(outcome.result())); + else + return ModifyImageShareGroupPermissionOutcome(outcome.error()); +} + +void EcsClient::modifyImageShareGroupPermissionAsync(const ModifyImageShareGroupPermissionRequest& request, const ModifyImageShareGroupPermissionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyImageShareGroupPermission(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyImageShareGroupPermissionOutcomeCallable EcsClient::modifyImageShareGroupPermissionCallable(const ModifyImageShareGroupPermissionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyImageShareGroupPermission(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeInstanceVncUrlOutcome EcsClient::describeInstanceVncUrl(const DescribeInstanceVncUrlRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceVncUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceVncUrlOutcome(DescribeInstanceVncUrlResult(outcome.result())); + else + return DescribeInstanceVncUrlOutcome(outcome.error()); +} + +void EcsClient::describeInstanceVncUrlAsync(const DescribeInstanceVncUrlRequest& request, const DescribeInstanceVncUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceVncUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeInstanceVncUrlOutcomeCallable EcsClient::describeInstanceVncUrlCallable(const DescribeInstanceVncUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceVncUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::RecoverVirtualBorderRouterOutcome EcsClient::recoverVirtualBorderRouter(const RecoverVirtualBorderRouterRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RecoverVirtualBorderRouterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RecoverVirtualBorderRouterOutcome(RecoverVirtualBorderRouterResult(outcome.result())); + else + return RecoverVirtualBorderRouterOutcome(outcome.error()); +} + +void EcsClient::recoverVirtualBorderRouterAsync(const RecoverVirtualBorderRouterRequest& request, const RecoverVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, recoverVirtualBorderRouter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::RecoverVirtualBorderRouterOutcomeCallable EcsClient::recoverVirtualBorderRouterCallable(const RecoverVirtualBorderRouterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->recoverVirtualBorderRouter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeResourceByTagsOutcome EcsClient::describeResourceByTags(const DescribeResourceByTagsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeResourceByTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeResourceByTagsOutcome(DescribeResourceByTagsResult(outcome.result())); + else + return DescribeResourceByTagsOutcome(outcome.error()); +} + +void EcsClient::describeResourceByTagsAsync(const DescribeResourceByTagsRequest& request, const DescribeResourceByTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeResourceByTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeResourceByTagsOutcomeCallable EcsClient::describeResourceByTagsCallable(const DescribeResourceByTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeResourceByTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeClustersOutcome EcsClient::describeClusters(const DescribeClustersRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClustersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClustersOutcome(DescribeClustersResult(outcome.result())); + else + return DescribeClustersOutcome(outcome.error()); +} + +void EcsClient::describeClustersAsync(const DescribeClustersRequest& request, const DescribeClustersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClusters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeClustersOutcomeCallable EcsClient::describeClustersCallable(const DescribeClustersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClusters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeTagsOutcome EcsClient::describeTags(const DescribeTagsRequest &request) const +{ + auto endpointOutcome = endpoint(); + 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 EcsClient::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)); +} + +EcsClient::DescribeTagsOutcomeCallable EcsClient::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(); +} + +EcsClient::DeleteBandwidthPackageOutcome EcsClient::deleteBandwidthPackage(const DeleteBandwidthPackageRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBandwidthPackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBandwidthPackageOutcome(DeleteBandwidthPackageResult(outcome.result())); + else + return DeleteBandwidthPackageOutcome(outcome.error()); +} + +void EcsClient::deleteBandwidthPackageAsync(const DeleteBandwidthPackageRequest& request, const DeleteBandwidthPackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBandwidthPackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteBandwidthPackageOutcomeCallable EcsClient::deleteBandwidthPackageCallable(const DeleteBandwidthPackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBandwidthPackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeImagesOutcome EcsClient::describeImages(const DescribeImagesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeImagesOutcome(DescribeImagesResult(outcome.result())); + else + return DescribeImagesOutcome(outcome.error()); +} + +void EcsClient::describeImagesAsync(const DescribeImagesRequest& request, const DescribeImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeImagesOutcomeCallable EcsClient::describeImagesCallable(const DescribeImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::AuthorizeSecurityGroupEgressOutcome EcsClient::authorizeSecurityGroupEgress(const AuthorizeSecurityGroupEgressRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AuthorizeSecurityGroupEgressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AuthorizeSecurityGroupEgressOutcome(AuthorizeSecurityGroupEgressResult(outcome.result())); + else + return AuthorizeSecurityGroupEgressOutcome(outcome.error()); +} + +void EcsClient::authorizeSecurityGroupEgressAsync(const AuthorizeSecurityGroupEgressRequest& request, const AuthorizeSecurityGroupEgressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, authorizeSecurityGroupEgress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::AuthorizeSecurityGroupEgressOutcomeCallable EcsClient::authorizeSecurityGroupEgressCallable(const AuthorizeSecurityGroupEgressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->authorizeSecurityGroupEgress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::SignAgreementOutcome EcsClient::signAgreement(const SignAgreementRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return SignAgreementOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SignAgreementOutcome(SignAgreementResult(outcome.result())); + else + return SignAgreementOutcome(outcome.error()); +} + +void EcsClient::signAgreementAsync(const SignAgreementRequest& request, const SignAgreementAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, signAgreement(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::SignAgreementOutcomeCallable EcsClient::signAgreementCallable(const SignAgreementRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->signAgreement(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ImportImageOutcome EcsClient::importImage(const ImportImageRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ImportImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ImportImageOutcome(ImportImageResult(outcome.result())); + else + return ImportImageOutcome(outcome.error()); +} + +void EcsClient::importImageAsync(const ImportImageRequest& request, const ImportImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, importImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ImportImageOutcomeCallable EcsClient::importImageCallable(const ImportImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->importImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyForwardEntryOutcome EcsClient::modifyForwardEntry(const ModifyForwardEntryRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyForwardEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyForwardEntryOutcome(ModifyForwardEntryResult(outcome.result())); + else + return ModifyForwardEntryOutcome(outcome.error()); +} + +void EcsClient::modifyForwardEntryAsync(const ModifyForwardEntryRequest& request, const ModifyForwardEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyForwardEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyForwardEntryOutcomeCallable EcsClient::modifyForwardEntryCallable(const ModifyForwardEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyForwardEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::RenewInstanceOutcome EcsClient::renewInstance(const RenewInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + 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 EcsClient::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)); +} + +EcsClient::RenewInstanceOutcomeCallable EcsClient::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(); +} + +EcsClient::CreateVpcOutcome EcsClient::createVpc(const CreateVpcRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVpcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVpcOutcome(CreateVpcResult(outcome.result())); + else + return CreateVpcOutcome(outcome.error()); +} + +void EcsClient::createVpcAsync(const CreateVpcRequest& request, const CreateVpcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVpc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateVpcOutcomeCallable EcsClient::createVpcCallable(const CreateVpcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVpc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CopyImageOutcome EcsClient::copyImage(const CopyImageRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CopyImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CopyImageOutcome(CopyImageResult(outcome.result())); + else + return CopyImageOutcome(outcome.error()); +} + +void EcsClient::copyImageAsync(const CopyImageRequest& request, const CopyImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, copyImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CopyImageOutcomeCallable EcsClient::copyImageCallable(const CopyImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->copyImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeInstanceMonitorDataOutcome EcsClient::describeInstanceMonitorData(const DescribeInstanceMonitorDataRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceMonitorDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceMonitorDataOutcome(DescribeInstanceMonitorDataResult(outcome.result())); + else + return DescribeInstanceMonitorDataOutcome(outcome.error()); +} + +void EcsClient::describeInstanceMonitorDataAsync(const DescribeInstanceMonitorDataRequest& request, const DescribeInstanceMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceMonitorData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeInstanceMonitorDataOutcomeCallable EcsClient::describeInstanceMonitorDataCallable(const DescribeInstanceMonitorDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceMonitorData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::UnassociateEipAddressOutcome EcsClient::unassociateEipAddress(const UnassociateEipAddressRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return UnassociateEipAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnassociateEipAddressOutcome(UnassociateEipAddressResult(outcome.result())); + else + return UnassociateEipAddressOutcome(outcome.error()); +} + +void EcsClient::unassociateEipAddressAsync(const UnassociateEipAddressRequest& request, const UnassociateEipAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unassociateEipAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::UnassociateEipAddressOutcomeCallable EcsClient::unassociateEipAddressCallable(const UnassociateEipAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unassociateEipAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateSnapshotOutcome EcsClient::createSnapshot(const CreateSnapshotRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSnapshotOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSnapshotOutcome(CreateSnapshotResult(outcome.result())); + else + return CreateSnapshotOutcome(outcome.error()); +} + +void EcsClient::createSnapshotAsync(const CreateSnapshotRequest& request, const CreateSnapshotAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSnapshot(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateSnapshotOutcomeCallable EcsClient::createSnapshotCallable(const CreateSnapshotRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSnapshot(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyVirtualBorderRouterAttributeOutcome EcsClient::modifyVirtualBorderRouterAttribute(const ModifyVirtualBorderRouterAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVirtualBorderRouterAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVirtualBorderRouterAttributeOutcome(ModifyVirtualBorderRouterAttributeResult(outcome.result())); + else + return ModifyVirtualBorderRouterAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyVirtualBorderRouterAttributeAsync(const ModifyVirtualBorderRouterAttributeRequest& request, const ModifyVirtualBorderRouterAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVirtualBorderRouterAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyVirtualBorderRouterAttributeOutcomeCallable EcsClient::modifyVirtualBorderRouterAttributeCallable(const ModifyVirtualBorderRouterAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVirtualBorderRouterAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DetachKeyPairOutcome EcsClient::detachKeyPair(const DetachKeyPairRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DetachKeyPairOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachKeyPairOutcome(DetachKeyPairResult(outcome.result())); + else + return DetachKeyPairOutcome(outcome.error()); +} + +void EcsClient::detachKeyPairAsync(const DetachKeyPairRequest& request, const DetachKeyPairAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachKeyPair(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DetachKeyPairOutcomeCallable EcsClient::detachKeyPairCallable(const DetachKeyPairRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachKeyPair(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeTasksOutcome EcsClient::describeTasks(const DescribeTasksRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTasksOutcome(DescribeTasksResult(outcome.result())); + else + return DescribeTasksOutcome(outcome.error()); +} + +void EcsClient::describeTasksAsync(const DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeTasksOutcomeCallable EcsClient::describeTasksCallable(const DescribeTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::LeaveSecurityGroupOutcome EcsClient::leaveSecurityGroup(const LeaveSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return LeaveSecurityGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return LeaveSecurityGroupOutcome(LeaveSecurityGroupResult(outcome.result())); + else + return LeaveSecurityGroupOutcome(outcome.error()); +} + +void EcsClient::leaveSecurityGroupAsync(const LeaveSecurityGroupRequest& request, const LeaveSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, leaveSecurityGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::LeaveSecurityGroupOutcomeCallable EcsClient::leaveSecurityGroupCallable(const LeaveSecurityGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->leaveSecurityGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeRenewalPriceOutcome EcsClient::describeRenewalPrice(const DescribeRenewalPriceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRenewalPriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRenewalPriceOutcome(DescribeRenewalPriceResult(outcome.result())); + else + return DescribeRenewalPriceOutcome(outcome.error()); +} + +void EcsClient::describeRenewalPriceAsync(const DescribeRenewalPriceRequest& request, const DescribeRenewalPriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRenewalPrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeRenewalPriceOutcomeCallable EcsClient::describeRenewalPriceCallable(const DescribeRenewalPriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRenewalPrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeInstanceVncPasswdOutcome EcsClient::describeInstanceVncPasswd(const DescribeInstanceVncPasswdRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceVncPasswdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceVncPasswdOutcome(DescribeInstanceVncPasswdResult(outcome.result())); + else + return DescribeInstanceVncPasswdOutcome(outcome.error()); +} + +void EcsClient::describeInstanceVncPasswdAsync(const DescribeInstanceVncPasswdRequest& request, const DescribeInstanceVncPasswdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceVncPasswd(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeInstanceVncPasswdOutcomeCallable EcsClient::describeInstanceVncPasswdCallable(const DescribeInstanceVncPasswdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceVncPasswd(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeInstanceAutoRenewAttributeOutcome EcsClient::describeInstanceAutoRenewAttribute(const DescribeInstanceAutoRenewAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + 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 EcsClient::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)); +} + +EcsClient::DescribeInstanceAutoRenewAttributeOutcomeCallable EcsClient::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(); +} + +EcsClient::ModifySecurityGroupRuleOutcome EcsClient::modifySecurityGroupRule(const ModifySecurityGroupRuleRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySecurityGroupRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySecurityGroupRuleOutcome(ModifySecurityGroupRuleResult(outcome.result())); + else + return ModifySecurityGroupRuleOutcome(outcome.error()); +} + +void EcsClient::modifySecurityGroupRuleAsync(const ModifySecurityGroupRuleRequest& request, const ModifySecurityGroupRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySecurityGroupRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifySecurityGroupRuleOutcomeCallable EcsClient::modifySecurityGroupRuleCallable(const ModifySecurityGroupRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySecurityGroupRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ImportKeyPairOutcome EcsClient::importKeyPair(const ImportKeyPairRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ImportKeyPairOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ImportKeyPairOutcome(ImportKeyPairResult(outcome.result())); + else + return ImportKeyPairOutcome(outcome.error()); +} + +void EcsClient::importKeyPairAsync(const ImportKeyPairRequest& request, const ImportKeyPairAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, importKeyPair(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ImportKeyPairOutcomeCallable EcsClient::importKeyPairCallable(const ImportKeyPairRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->importKeyPair(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeNewProjectEipMonitorDataOutcome EcsClient::describeNewProjectEipMonitorData(const DescribeNewProjectEipMonitorDataRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNewProjectEipMonitorDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNewProjectEipMonitorDataOutcome(DescribeNewProjectEipMonitorDataResult(outcome.result())); + else + return DescribeNewProjectEipMonitorDataOutcome(outcome.error()); +} + +void EcsClient::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)); +} + +EcsClient::DescribeNewProjectEipMonitorDataOutcomeCallable EcsClient::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(); +} + +EcsClient::UnbindIpRangeOutcome EcsClient::unbindIpRange(const UnbindIpRangeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindIpRangeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindIpRangeOutcome(UnbindIpRangeResult(outcome.result())); + else + return UnbindIpRangeOutcome(outcome.error()); +} + +void EcsClient::unbindIpRangeAsync(const UnbindIpRangeRequest& request, const UnbindIpRangeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindIpRange(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::UnbindIpRangeOutcomeCallable EcsClient::unbindIpRangeCallable(const UnbindIpRangeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindIpRange(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteRecycleBinOutcome EcsClient::deleteRecycleBin(const DeleteRecycleBinRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRecycleBinOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRecycleBinOutcome(DeleteRecycleBinResult(outcome.result())); + else + return DeleteRecycleBinOutcome(outcome.error()); +} + +void EcsClient::deleteRecycleBinAsync(const DeleteRecycleBinRequest& request, const DeleteRecycleBinAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRecycleBin(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteRecycleBinOutcomeCallable EcsClient::deleteRecycleBinCallable(const DeleteRecycleBinRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRecycleBin(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeInstanceRamRoleOutcome EcsClient::describeInstanceRamRole(const DescribeInstanceRamRoleRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceRamRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceRamRoleOutcome(DescribeInstanceRamRoleResult(outcome.result())); + else + return DescribeInstanceRamRoleOutcome(outcome.error()); +} + +void EcsClient::describeInstanceRamRoleAsync(const DescribeInstanceRamRoleRequest& request, const DescribeInstanceRamRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceRamRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeInstanceRamRoleOutcomeCallable EcsClient::describeInstanceRamRoleCallable(const DescribeInstanceRamRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceRamRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateImageOutcome EcsClient::createImage(const CreateImageRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateImageOutcome(CreateImageResult(outcome.result())); + else + return CreateImageOutcome(outcome.error()); +} + +void EcsClient::createImageAsync(const CreateImageRequest& request, const CreateImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateImageOutcomeCallable EcsClient::createImageCallable(const CreateImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeHaVipsOutcome EcsClient::describeHaVips(const DescribeHaVipsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHaVipsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHaVipsOutcome(DescribeHaVipsResult(outcome.result())); + else + return DescribeHaVipsOutcome(outcome.error()); +} + +void EcsClient::describeHaVipsAsync(const DescribeHaVipsRequest& request, const DescribeHaVipsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHaVips(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeHaVipsOutcomeCallable EcsClient::describeHaVipsCallable(const DescribeHaVipsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHaVips(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeInstanceAttributeOutcome EcsClient::describeInstanceAttribute(const DescribeInstanceAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceAttributeOutcome(DescribeInstanceAttributeResult(outcome.result())); + else + return DescribeInstanceAttributeOutcome(outcome.error()); +} + +void EcsClient::describeInstanceAttributeAsync(const DescribeInstanceAttributeRequest& request, const DescribeInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeInstanceAttributeOutcomeCallable EcsClient::describeInstanceAttributeCallable(const DescribeInstanceAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DetachDiskOutcome EcsClient::detachDisk(const DetachDiskRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DetachDiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachDiskOutcome(DetachDiskResult(outcome.result())); + else + return DetachDiskOutcome(outcome.error()); +} + +void EcsClient::detachDiskAsync(const DetachDiskRequest& request, const DetachDiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachDisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DetachDiskOutcomeCallable EcsClient::detachDiskCallable(const DetachDiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachDisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyImageAttributeOutcome EcsClient::modifyImageAttribute(const ModifyImageAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyImageAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyImageAttributeOutcome(ModifyImageAttributeResult(outcome.result())); + else + return ModifyImageAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyImageAttributeAsync(const ModifyImageAttributeRequest& request, const ModifyImageAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyImageAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyImageAttributeOutcomeCallable EcsClient::modifyImageAttributeCallable(const ModifyImageAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyImageAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::AddBandwidthPackageIpsOutcome EcsClient::addBandwidthPackageIps(const AddBandwidthPackageIpsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AddBandwidthPackageIpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddBandwidthPackageIpsOutcome(AddBandwidthPackageIpsResult(outcome.result())); + else + return AddBandwidthPackageIpsOutcome(outcome.error()); +} + +void EcsClient::addBandwidthPackageIpsAsync(const AddBandwidthPackageIpsRequest& request, const AddBandwidthPackageIpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addBandwidthPackageIps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::AddBandwidthPackageIpsOutcomeCallable EcsClient::addBandwidthPackageIpsCallable(const AddBandwidthPackageIpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addBandwidthPackageIps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeInstanceStatusOutcome EcsClient::describeInstanceStatus(const DescribeInstanceStatusRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceStatusOutcome(DescribeInstanceStatusResult(outcome.result())); + else + return DescribeInstanceStatusOutcome(outcome.error()); +} + +void EcsClient::describeInstanceStatusAsync(const DescribeInstanceStatusRequest& request, const DescribeInstanceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeInstanceStatusOutcomeCallable EcsClient::describeInstanceStatusCallable(const DescribeInstanceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeNatGatewaysOutcome EcsClient::describeNatGateways(const DescribeNatGatewaysRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNatGatewaysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNatGatewaysOutcome(DescribeNatGatewaysResult(outcome.result())); + else + return DescribeNatGatewaysOutcome(outcome.error()); +} + +void EcsClient::describeNatGatewaysAsync(const DescribeNatGatewaysRequest& request, const DescribeNatGatewaysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNatGateways(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeNatGatewaysOutcomeCallable EcsClient::describeNatGatewaysCallable(const DescribeNatGatewaysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNatGateways(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteHpcClusterOutcome EcsClient::deleteHpcCluster(const DeleteHpcClusterRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteHpcClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteHpcClusterOutcome(DeleteHpcClusterResult(outcome.result())); + else + return DeleteHpcClusterOutcome(outcome.error()); +} + +void EcsClient::deleteHpcClusterAsync(const DeleteHpcClusterRequest& request, const DeleteHpcClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteHpcCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteHpcClusterOutcomeCallable EcsClient::deleteHpcClusterCallable(const DeleteHpcClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteHpcCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ResetDiskOutcome EcsClient::resetDisk(const ResetDiskRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ResetDiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetDiskOutcome(ResetDiskResult(outcome.result())); + else + return ResetDiskOutcome(outcome.error()); +} + +void EcsClient::resetDiskAsync(const ResetDiskRequest& request, const ResetDiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetDisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ResetDiskOutcomeCallable EcsClient::resetDiskCallable(const ResetDiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetDisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyDiskChargeTypeOutcome EcsClient::modifyDiskChargeType(const ModifyDiskChargeTypeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDiskChargeTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDiskChargeTypeOutcome(ModifyDiskChargeTypeResult(outcome.result())); + else + return ModifyDiskChargeTypeOutcome(outcome.error()); +} + +void EcsClient::modifyDiskChargeTypeAsync(const ModifyDiskChargeTypeRequest& request, const ModifyDiskChargeTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDiskChargeType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyDiskChargeTypeOutcomeCallable EcsClient::modifyDiskChargeTypeCallable(const ModifyDiskChargeTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDiskChargeType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyIntranetBandwidthKbOutcome EcsClient::modifyIntranetBandwidthKb(const ModifyIntranetBandwidthKbRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyIntranetBandwidthKbOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyIntranetBandwidthKbOutcome(ModifyIntranetBandwidthKbResult(outcome.result())); + else + return ModifyIntranetBandwidthKbOutcome(outcome.error()); +} + +void EcsClient::modifyIntranetBandwidthKbAsync(const ModifyIntranetBandwidthKbRequest& request, const ModifyIntranetBandwidthKbAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyIntranetBandwidthKb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyIntranetBandwidthKbOutcomeCallable EcsClient::modifyIntranetBandwidthKbCallable(const ModifyIntranetBandwidthKbRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyIntranetBandwidthKb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeBandwidthPackagesOutcome EcsClient::describeBandwidthPackages(const DescribeBandwidthPackagesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBandwidthPackagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBandwidthPackagesOutcome(DescribeBandwidthPackagesResult(outcome.result())); + else + return DescribeBandwidthPackagesOutcome(outcome.error()); +} + +void EcsClient::describeBandwidthPackagesAsync(const DescribeBandwidthPackagesRequest& request, const DescribeBandwidthPackagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBandwidthPackages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeBandwidthPackagesOutcomeCallable EcsClient::describeBandwidthPackagesCallable(const DescribeBandwidthPackagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBandwidthPackages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ApplyAutoSnapshotPolicyOutcome EcsClient::applyAutoSnapshotPolicy(const ApplyAutoSnapshotPolicyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ApplyAutoSnapshotPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ApplyAutoSnapshotPolicyOutcome(ApplyAutoSnapshotPolicyResult(outcome.result())); + else + return ApplyAutoSnapshotPolicyOutcome(outcome.error()); +} + +void EcsClient::applyAutoSnapshotPolicyAsync(const ApplyAutoSnapshotPolicyRequest& request, const ApplyAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, applyAutoSnapshotPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ApplyAutoSnapshotPolicyOutcomeCallable EcsClient::applyAutoSnapshotPolicyCallable(const ApplyAutoSnapshotPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->applyAutoSnapshotPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateSecurityGroupOutcome EcsClient::createSecurityGroup(const CreateSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSecurityGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSecurityGroupOutcome(CreateSecurityGroupResult(outcome.result())); + else + return CreateSecurityGroupOutcome(outcome.error()); +} + +void EcsClient::createSecurityGroupAsync(const CreateSecurityGroupRequest& request, const CreateSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSecurityGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateSecurityGroupOutcomeCallable EcsClient::createSecurityGroupCallable(const CreateSecurityGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSecurityGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeSnapshotLinksOutcome EcsClient::describeSnapshotLinks(const DescribeSnapshotLinksRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSnapshotLinksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSnapshotLinksOutcome(DescribeSnapshotLinksResult(outcome.result())); + else + return DescribeSnapshotLinksOutcome(outcome.error()); +} + +void EcsClient::describeSnapshotLinksAsync(const DescribeSnapshotLinksRequest& request, const DescribeSnapshotLinksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSnapshotLinks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeSnapshotLinksOutcomeCallable EcsClient::describeSnapshotLinksCallable(const DescribeSnapshotLinksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSnapshotLinks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeInvocationResultsOutcome EcsClient::describeInvocationResults(const DescribeInvocationResultsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInvocationResultsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInvocationResultsOutcome(DescribeInvocationResultsResult(outcome.result())); + else + return DescribeInvocationResultsOutcome(outcome.error()); +} + +void EcsClient::describeInvocationResultsAsync(const DescribeInvocationResultsRequest& request, const DescribeInvocationResultsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInvocationResults(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeInvocationResultsOutcomeCallable EcsClient::describeInvocationResultsCallable(const DescribeInvocationResultsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInvocationResults(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeRecommendInstanceTypeOutcome EcsClient::describeRecommendInstanceType(const DescribeRecommendInstanceTypeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRecommendInstanceTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRecommendInstanceTypeOutcome(DescribeRecommendInstanceTypeResult(outcome.result())); + else + return DescribeRecommendInstanceTypeOutcome(outcome.error()); +} + +void EcsClient::describeRecommendInstanceTypeAsync(const DescribeRecommendInstanceTypeRequest& request, const DescribeRecommendInstanceTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRecommendInstanceType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeRecommendInstanceTypeOutcomeCallable EcsClient::describeRecommendInstanceTypeCallable(const DescribeRecommendInstanceTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRecommendInstanceType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeTagKeysOutcome EcsClient::describeTagKeys(const DescribeTagKeysRequest &request) const +{ + auto endpointOutcome = endpoint(); + 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 EcsClient::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)); +} + +EcsClient::DescribeTagKeysOutcomeCallable EcsClient::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(); +} + +EcsClient::DeleteInstanceOutcome EcsClient::deleteInstance(const DeleteInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteInstanceOutcome(DeleteInstanceResult(outcome.result())); + else + return DeleteInstanceOutcome(outcome.error()); +} + +void EcsClient::deleteInstanceAsync(const DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteInstanceOutcomeCallable EcsClient::deleteInstanceCallable(const DeleteInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeIntranetAttributeKbOutcome EcsClient::describeIntranetAttributeKb(const DescribeIntranetAttributeKbRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIntranetAttributeKbOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIntranetAttributeKbOutcome(DescribeIntranetAttributeKbResult(outcome.result())); + else + return DescribeIntranetAttributeKbOutcome(outcome.error()); +} + +void EcsClient::describeIntranetAttributeKbAsync(const DescribeIntranetAttributeKbRequest& request, const DescribeIntranetAttributeKbAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIntranetAttributeKb(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeIntranetAttributeKbOutcomeCallable EcsClient::describeIntranetAttributeKbCallable(const DescribeIntranetAttributeKbRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIntranetAttributeKb(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::RemoveBandwidthPackageIpsOutcome EcsClient::removeBandwidthPackageIps(const RemoveBandwidthPackageIpsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveBandwidthPackageIpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveBandwidthPackageIpsOutcome(RemoveBandwidthPackageIpsResult(outcome.result())); + else + return RemoveBandwidthPackageIpsOutcome(outcome.error()); +} + +void EcsClient::removeBandwidthPackageIpsAsync(const RemoveBandwidthPackageIpsRequest& request, const RemoveBandwidthPackageIpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeBandwidthPackageIps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::RemoveBandwidthPackageIpsOutcomeCallable EcsClient::removeBandwidthPackageIpsCallable(const RemoveBandwidthPackageIpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeBandwidthPackageIps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyVpcAttributeOutcome EcsClient::modifyVpcAttribute(const ModifyVpcAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVpcAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVpcAttributeOutcome(ModifyVpcAttributeResult(outcome.result())); + else + return ModifyVpcAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyVpcAttributeAsync(const ModifyVpcAttributeRequest& request, const ModifyVpcAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVpcAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyVpcAttributeOutcomeCallable EcsClient::modifyVpcAttributeCallable(const ModifyVpcAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVpcAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeSnapshotsUsageOutcome EcsClient::describeSnapshotsUsage(const DescribeSnapshotsUsageRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSnapshotsUsageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSnapshotsUsageOutcome(DescribeSnapshotsUsageResult(outcome.result())); + else + return DescribeSnapshotsUsageOutcome(outcome.error()); +} + +void EcsClient::describeSnapshotsUsageAsync(const DescribeSnapshotsUsageRequest& request, const DescribeSnapshotsUsageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSnapshotsUsage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeSnapshotsUsageOutcomeCallable EcsClient::describeSnapshotsUsageCallable(const DescribeSnapshotsUsageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSnapshotsUsage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteAutoSnapshotPolicyOutcome EcsClient::deleteAutoSnapshotPolicy(const DeleteAutoSnapshotPolicyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAutoSnapshotPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAutoSnapshotPolicyOutcome(DeleteAutoSnapshotPolicyResult(outcome.result())); + else + return DeleteAutoSnapshotPolicyOutcome(outcome.error()); +} + +void EcsClient::deleteAutoSnapshotPolicyAsync(const DeleteAutoSnapshotPolicyRequest& request, const DeleteAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAutoSnapshotPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteAutoSnapshotPolicyOutcomeCallable EcsClient::deleteAutoSnapshotPolicyCallable(const DeleteAutoSnapshotPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAutoSnapshotPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifySecurityGroupEgressRuleOutcome EcsClient::modifySecurityGroupEgressRule(const ModifySecurityGroupEgressRuleRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySecurityGroupEgressRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySecurityGroupEgressRuleOutcome(ModifySecurityGroupEgressRuleResult(outcome.result())); + else + return ModifySecurityGroupEgressRuleOutcome(outcome.error()); +} + +void EcsClient::modifySecurityGroupEgressRuleAsync(const ModifySecurityGroupEgressRuleRequest& request, const ModifySecurityGroupEgressRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySecurityGroupEgressRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifySecurityGroupEgressRuleOutcomeCallable EcsClient::modifySecurityGroupEgressRuleCallable(const ModifySecurityGroupEgressRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySecurityGroupEgressRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateInstanceOutcome EcsClient::createInstance(const CreateInstanceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateInstanceOutcome(CreateInstanceResult(outcome.result())); + else + return CreateInstanceOutcome(outcome.error()); +} + +void EcsClient::createInstanceAsync(const CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateInstanceOutcomeCallable EcsClient::createInstanceCallable(const CreateInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::EnablePhysicalConnectionOutcome EcsClient::enablePhysicalConnection(const EnablePhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return EnablePhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnablePhysicalConnectionOutcome(EnablePhysicalConnectionResult(outcome.result())); + else + return EnablePhysicalConnectionOutcome(outcome.error()); +} + +void EcsClient::enablePhysicalConnectionAsync(const EnablePhysicalConnectionRequest& request, const EnablePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enablePhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::EnablePhysicalConnectionOutcomeCallable EcsClient::enablePhysicalConnectionCallable(const EnablePhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enablePhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeInstanceTypeFamiliesOutcome EcsClient::describeInstanceTypeFamilies(const DescribeInstanceTypeFamiliesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceTypeFamiliesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceTypeFamiliesOutcome(DescribeInstanceTypeFamiliesResult(outcome.result())); + else + return DescribeInstanceTypeFamiliesOutcome(outcome.error()); +} + +void EcsClient::describeInstanceTypeFamiliesAsync(const DescribeInstanceTypeFamiliesRequest& request, const DescribeInstanceTypeFamiliesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceTypeFamilies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeInstanceTypeFamiliesOutcomeCallable EcsClient::describeInstanceTypeFamiliesCallable(const DescribeInstanceTypeFamiliesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceTypeFamilies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateForwardEntryOutcome EcsClient::createForwardEntry(const CreateForwardEntryRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateForwardEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateForwardEntryOutcome(CreateForwardEntryResult(outcome.result())); + else + return CreateForwardEntryOutcome(outcome.error()); +} + +void EcsClient::createForwardEntryAsync(const CreateForwardEntryRequest& request, const CreateForwardEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createForwardEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateForwardEntryOutcomeCallable EcsClient::createForwardEntryCallable(const CreateForwardEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createForwardEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeRouterInterfacesOutcome EcsClient::describeRouterInterfaces(const DescribeRouterInterfacesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRouterInterfacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRouterInterfacesOutcome(DescribeRouterInterfacesResult(outcome.result())); + else + return DescribeRouterInterfacesOutcome(outcome.error()); +} + +void EcsClient::describeRouterInterfacesAsync(const DescribeRouterInterfacesRequest& request, const DescribeRouterInterfacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRouterInterfaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeRouterInterfacesOutcomeCallable EcsClient::describeRouterInterfacesCallable(const DescribeRouterInterfacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRouterInterfaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::EipNotifyPaidOutcome EcsClient::eipNotifyPaid(const EipNotifyPaidRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return EipNotifyPaidOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EipNotifyPaidOutcome(EipNotifyPaidResult(outcome.result())); + else + return EipNotifyPaidOutcome(outcome.error()); +} + +void EcsClient::eipNotifyPaidAsync(const EipNotifyPaidRequest& request, const EipNotifyPaidAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, eipNotifyPaid(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::EipNotifyPaidOutcomeCallable EcsClient::eipNotifyPaidCallable(const EipNotifyPaidRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->eipNotifyPaid(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ReleasePublicIpAddressOutcome EcsClient::releasePublicIpAddress(const ReleasePublicIpAddressRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ReleasePublicIpAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleasePublicIpAddressOutcome(ReleasePublicIpAddressResult(outcome.result())); + else + return ReleasePublicIpAddressOutcome(outcome.error()); +} + +void EcsClient::releasePublicIpAddressAsync(const ReleasePublicIpAddressRequest& request, const ReleasePublicIpAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releasePublicIpAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ReleasePublicIpAddressOutcomeCallable EcsClient::releasePublicIpAddressCallable(const ReleasePublicIpAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releasePublicIpAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateVirtualBorderRouterOutcome EcsClient::createVirtualBorderRouter(const CreateVirtualBorderRouterRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVirtualBorderRouterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVirtualBorderRouterOutcome(CreateVirtualBorderRouterResult(outcome.result())); + else + return CreateVirtualBorderRouterOutcome(outcome.error()); +} + +void EcsClient::createVirtualBorderRouterAsync(const CreateVirtualBorderRouterRequest& request, const CreateVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVirtualBorderRouter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateVirtualBorderRouterOutcomeCallable EcsClient::createVirtualBorderRouterCallable(const CreateVirtualBorderRouterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVirtualBorderRouter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::EipFillParamsOutcome EcsClient::eipFillParams(const EipFillParamsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return EipFillParamsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EipFillParamsOutcome(EipFillParamsResult(outcome.result())); + else + return EipFillParamsOutcome(outcome.error()); +} + +void EcsClient::eipFillParamsAsync(const EipFillParamsRequest& request, const EipFillParamsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, eipFillParams(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::EipFillParamsOutcomeCallable EcsClient::eipFillParamsCallable(const EipFillParamsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->eipFillParams(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyPrepayInstanceSpecOutcome EcsClient::modifyPrepayInstanceSpec(const ModifyPrepayInstanceSpecRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyPrepayInstanceSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyPrepayInstanceSpecOutcome(ModifyPrepayInstanceSpecResult(outcome.result())); + else + return ModifyPrepayInstanceSpecOutcome(outcome.error()); +} + +void EcsClient::modifyPrepayInstanceSpecAsync(const ModifyPrepayInstanceSpecRequest& request, const ModifyPrepayInstanceSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyPrepayInstanceSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyPrepayInstanceSpecOutcomeCallable EcsClient::modifyPrepayInstanceSpecCallable(const ModifyPrepayInstanceSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyPrepayInstanceSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::EipFillProductOutcome EcsClient::eipFillProduct(const EipFillProductRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return EipFillProductOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EipFillProductOutcome(EipFillProductResult(outcome.result())); + else + return EipFillProductOutcome(outcome.error()); +} + +void EcsClient::eipFillProductAsync(const EipFillProductRequest& request, const EipFillProductAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, eipFillProduct(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::EipFillProductOutcomeCallable EcsClient::eipFillProductCallable(const EipFillProductRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->eipFillProduct(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeRouteTablesOutcome EcsClient::describeRouteTables(const DescribeRouteTablesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRouteTablesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRouteTablesOutcome(DescribeRouteTablesResult(outcome.result())); + else + return DescribeRouteTablesOutcome(outcome.error()); +} + +void EcsClient::describeRouteTablesAsync(const DescribeRouteTablesRequest& request, const DescribeRouteTablesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRouteTables(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeRouteTablesOutcomeCallable EcsClient::describeRouteTablesCallable(const DescribeRouteTablesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRouteTables(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeUserDataOutcome EcsClient::describeUserData(const DescribeUserDataRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserDataOutcome(DescribeUserDataResult(outcome.result())); + else + return DescribeUserDataOutcome(outcome.error()); +} + +void EcsClient::describeUserDataAsync(const DescribeUserDataRequest& request, const DescribeUserDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeUserDataOutcomeCallable EcsClient::describeUserDataCallable(const DescribeUserDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::JoinResourceGroupOutcome EcsClient::joinResourceGroup(const JoinResourceGroupRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return JoinResourceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return JoinResourceGroupOutcome(JoinResourceGroupResult(outcome.result())); + else + return JoinResourceGroupOutcome(outcome.error()); +} + +void EcsClient::joinResourceGroupAsync(const JoinResourceGroupRequest& request, const JoinResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, joinResourceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::JoinResourceGroupOutcomeCallable EcsClient::joinResourceGroupCallable(const JoinResourceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->joinResourceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyAutoSnapshotPolicyExOutcome EcsClient::modifyAutoSnapshotPolicyEx(const ModifyAutoSnapshotPolicyExRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAutoSnapshotPolicyExOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAutoSnapshotPolicyExOutcome(ModifyAutoSnapshotPolicyExResult(outcome.result())); + else + return ModifyAutoSnapshotPolicyExOutcome(outcome.error()); +} + +void EcsClient::modifyAutoSnapshotPolicyExAsync(const ModifyAutoSnapshotPolicyExRequest& request, const ModifyAutoSnapshotPolicyExAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAutoSnapshotPolicyEx(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyAutoSnapshotPolicyExOutcomeCallable EcsClient::modifyAutoSnapshotPolicyExCallable(const ModifyAutoSnapshotPolicyExRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAutoSnapshotPolicyEx(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreatePhysicalConnectionOutcome EcsClient::createPhysicalConnection(const CreatePhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePhysicalConnectionOutcome(CreatePhysicalConnectionResult(outcome.result())); + else + return CreatePhysicalConnectionOutcome(outcome.error()); +} + +void EcsClient::createPhysicalConnectionAsync(const CreatePhysicalConnectionRequest& request, const CreatePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreatePhysicalConnectionOutcomeCallable EcsClient::createPhysicalConnectionCallable(const CreatePhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeKeyPairsOutcome EcsClient::describeKeyPairs(const DescribeKeyPairsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeKeyPairsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeKeyPairsOutcome(DescribeKeyPairsResult(outcome.result())); + else + return DescribeKeyPairsOutcome(outcome.error()); +} + +void EcsClient::describeKeyPairsAsync(const DescribeKeyPairsRequest& request, const DescribeKeyPairsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeKeyPairs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeKeyPairsOutcomeCallable EcsClient::describeKeyPairsCallable(const DescribeKeyPairsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeKeyPairs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifySecurityGroupPolicyOutcome EcsClient::modifySecurityGroupPolicy(const ModifySecurityGroupPolicyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySecurityGroupPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySecurityGroupPolicyOutcome(ModifySecurityGroupPolicyResult(outcome.result())); + else + return ModifySecurityGroupPolicyOutcome(outcome.error()); +} + +void EcsClient::modifySecurityGroupPolicyAsync(const ModifySecurityGroupPolicyRequest& request, const ModifySecurityGroupPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySecurityGroupPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifySecurityGroupPolicyOutcomeCallable EcsClient::modifySecurityGroupPolicyCallable(const ModifySecurityGroupPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySecurityGroupPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::AssociateHaVipOutcome EcsClient::associateHaVip(const AssociateHaVipRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateHaVipOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateHaVipOutcome(AssociateHaVipResult(outcome.result())); + else + return AssociateHaVipOutcome(outcome.error()); +} + +void EcsClient::associateHaVipAsync(const AssociateHaVipRequest& request, const AssociateHaVipAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateHaVip(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::AssociateHaVipOutcomeCallable EcsClient::associateHaVipCallable(const AssociateHaVipRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateHaVip(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ConvertNatPublicIpToEipOutcome EcsClient::convertNatPublicIpToEip(const ConvertNatPublicIpToEipRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ConvertNatPublicIpToEipOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConvertNatPublicIpToEipOutcome(ConvertNatPublicIpToEipResult(outcome.result())); + else + return ConvertNatPublicIpToEipOutcome(outcome.error()); +} + +void EcsClient::convertNatPublicIpToEipAsync(const ConvertNatPublicIpToEipRequest& request, const ConvertNatPublicIpToEipAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, convertNatPublicIpToEip(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ConvertNatPublicIpToEipOutcomeCallable EcsClient::convertNatPublicIpToEipCallable(const ConvertNatPublicIpToEipRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->convertNatPublicIpToEip(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteRouteEntryOutcome EcsClient::deleteRouteEntry(const DeleteRouteEntryRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRouteEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRouteEntryOutcome(DeleteRouteEntryResult(outcome.result())); + else + return DeleteRouteEntryOutcome(outcome.error()); +} + +void EcsClient::deleteRouteEntryAsync(const DeleteRouteEntryRequest& request, const DeleteRouteEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRouteEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteRouteEntryOutcomeCallable EcsClient::deleteRouteEntryCallable(const DeleteRouteEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRouteEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteVirtualBorderRouterOutcome EcsClient::deleteVirtualBorderRouter(const DeleteVirtualBorderRouterRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVirtualBorderRouterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVirtualBorderRouterOutcome(DeleteVirtualBorderRouterResult(outcome.result())); + else + return DeleteVirtualBorderRouterOutcome(outcome.error()); +} + +void EcsClient::deleteVirtualBorderRouterAsync(const DeleteVirtualBorderRouterRequest& request, const DeleteVirtualBorderRouterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVirtualBorderRouter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteVirtualBorderRouterOutcomeCallable EcsClient::deleteVirtualBorderRouterCallable(const DeleteVirtualBorderRouterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVirtualBorderRouter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeInstancePhysicalAttributeOutcome EcsClient::describeInstancePhysicalAttribute(const DescribeInstancePhysicalAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstancePhysicalAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstancePhysicalAttributeOutcome(DescribeInstancePhysicalAttributeResult(outcome.result())); + else + return DescribeInstancePhysicalAttributeOutcome(outcome.error()); +} + +void EcsClient::describeInstancePhysicalAttributeAsync(const DescribeInstancePhysicalAttributeRequest& request, const DescribeInstancePhysicalAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstancePhysicalAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeInstancePhysicalAttributeOutcomeCallable EcsClient::describeInstancePhysicalAttributeCallable(const DescribeInstancePhysicalAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstancePhysicalAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::TerminatePhysicalConnectionOutcome EcsClient::terminatePhysicalConnection(const TerminatePhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return TerminatePhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TerminatePhysicalConnectionOutcome(TerminatePhysicalConnectionResult(outcome.result())); + else + return TerminatePhysicalConnectionOutcome(outcome.error()); +} + +void EcsClient::terminatePhysicalConnectionAsync(const TerminatePhysicalConnectionRequest& request, const TerminatePhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, terminatePhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::TerminatePhysicalConnectionOutcomeCallable EcsClient::terminatePhysicalConnectionCallable(const TerminatePhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->terminatePhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::AttachNetworkInterfaceOutcome EcsClient::attachNetworkInterface(const AttachNetworkInterfaceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AttachNetworkInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachNetworkInterfaceOutcome(AttachNetworkInterfaceResult(outcome.result())); + else + return AttachNetworkInterfaceOutcome(outcome.error()); +} + +void EcsClient::attachNetworkInterfaceAsync(const AttachNetworkInterfaceRequest& request, const AttachNetworkInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachNetworkInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::AttachNetworkInterfaceOutcomeCallable EcsClient::attachNetworkInterfaceCallable(const AttachNetworkInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachNetworkInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeSecurityGroupAttributeOutcome EcsClient::describeSecurityGroupAttribute(const DescribeSecurityGroupAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSecurityGroupAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSecurityGroupAttributeOutcome(DescribeSecurityGroupAttributeResult(outcome.result())); + else + return DescribeSecurityGroupAttributeOutcome(outcome.error()); +} + +void EcsClient::describeSecurityGroupAttributeAsync(const DescribeSecurityGroupAttributeRequest& request, const DescribeSecurityGroupAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSecurityGroupAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeSecurityGroupAttributeOutcomeCallable EcsClient::describeSecurityGroupAttributeCallable(const DescribeSecurityGroupAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSecurityGroupAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyImageSharePermissionOutcome EcsClient::modifyImageSharePermission(const ModifyImageSharePermissionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyImageSharePermissionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyImageSharePermissionOutcome(ModifyImageSharePermissionResult(outcome.result())); + else + return ModifyImageSharePermissionOutcome(outcome.error()); +} + +void EcsClient::modifyImageSharePermissionAsync(const ModifyImageSharePermissionRequest& request, const ModifyImageSharePermissionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyImageSharePermission(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyImageSharePermissionOutcomeCallable EcsClient::modifyImageSharePermissionCallable(const ModifyImageSharePermissionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyImageSharePermission(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeAutoSnapshotPolicyExOutcome EcsClient::describeAutoSnapshotPolicyEx(const DescribeAutoSnapshotPolicyExRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAutoSnapshotPolicyExOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAutoSnapshotPolicyExOutcome(DescribeAutoSnapshotPolicyExResult(outcome.result())); + else + return DescribeAutoSnapshotPolicyExOutcome(outcome.error()); +} + +void EcsClient::describeAutoSnapshotPolicyExAsync(const DescribeAutoSnapshotPolicyExRequest& request, const DescribeAutoSnapshotPolicyExAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAutoSnapshotPolicyEx(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeAutoSnapshotPolicyExOutcomeCallable EcsClient::describeAutoSnapshotPolicyExCallable(const DescribeAutoSnapshotPolicyExRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAutoSnapshotPolicyEx(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeImageSharePermissionOutcome EcsClient::describeImageSharePermission(const DescribeImageSharePermissionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeImageSharePermissionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeImageSharePermissionOutcome(DescribeImageSharePermissionResult(outcome.result())); + else + return DescribeImageSharePermissionOutcome(outcome.error()); +} + +void EcsClient::describeImageSharePermissionAsync(const DescribeImageSharePermissionRequest& request, const DescribeImageSharePermissionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeImageSharePermission(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeImageSharePermissionOutcomeCallable EcsClient::describeImageSharePermissionCallable(const DescribeImageSharePermissionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeImageSharePermission(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CancelCopyImageOutcome EcsClient::cancelCopyImage(const CancelCopyImageRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CancelCopyImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelCopyImageOutcome(CancelCopyImageResult(outcome.result())); + else + return CancelCopyImageOutcome(outcome.error()); +} + +void EcsClient::cancelCopyImageAsync(const CancelCopyImageRequest& request, const CancelCopyImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelCopyImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CancelCopyImageOutcomeCallable EcsClient::cancelCopyImageCallable(const CancelCopyImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelCopyImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateDeploymentSetOutcome EcsClient::createDeploymentSet(const CreateDeploymentSetRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDeploymentSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDeploymentSetOutcome(CreateDeploymentSetResult(outcome.result())); + else + return CreateDeploymentSetOutcome(outcome.error()); +} + +void EcsClient::createDeploymentSetAsync(const CreateDeploymentSetRequest& request, const CreateDeploymentSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDeploymentSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateDeploymentSetOutcomeCallable EcsClient::createDeploymentSetCallable(const CreateDeploymentSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDeploymentSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeRegionsOutcome EcsClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void EcsClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeRegionsOutcomeCallable EcsClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeClassicLinkInstancesOutcome EcsClient::describeClassicLinkInstances(const DescribeClassicLinkInstancesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClassicLinkInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClassicLinkInstancesOutcome(DescribeClassicLinkInstancesResult(outcome.result())); + else + return DescribeClassicLinkInstancesOutcome(outcome.error()); +} + +void EcsClient::describeClassicLinkInstancesAsync(const DescribeClassicLinkInstancesRequest& request, const DescribeClassicLinkInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClassicLinkInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeClassicLinkInstancesOutcomeCallable EcsClient::describeClassicLinkInstancesCallable(const DescribeClassicLinkInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClassicLinkInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeAutoSnapshotPolicyOutcome EcsClient::describeAutoSnapshotPolicy(const DescribeAutoSnapshotPolicyRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAutoSnapshotPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAutoSnapshotPolicyOutcome(DescribeAutoSnapshotPolicyResult(outcome.result())); + else + return DescribeAutoSnapshotPolicyOutcome(outcome.error()); +} + +void EcsClient::describeAutoSnapshotPolicyAsync(const DescribeAutoSnapshotPolicyRequest& request, const DescribeAutoSnapshotPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAutoSnapshotPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeAutoSnapshotPolicyOutcomeCallable EcsClient::describeAutoSnapshotPolicyCallable(const DescribeAutoSnapshotPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAutoSnapshotPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribePhysicalConnectionsOutcome EcsClient::describePhysicalConnections(const DescribePhysicalConnectionsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePhysicalConnectionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePhysicalConnectionsOutcome(DescribePhysicalConnectionsResult(outcome.result())); + else + return DescribePhysicalConnectionsOutcome(outcome.error()); +} + +void EcsClient::describePhysicalConnectionsAsync(const DescribePhysicalConnectionsRequest& request, const DescribePhysicalConnectionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePhysicalConnections(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribePhysicalConnectionsOutcomeCallable EcsClient::describePhysicalConnectionsCallable(const DescribePhysicalConnectionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePhysicalConnections(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeRecycleBinOutcome EcsClient::describeRecycleBin(const DescribeRecycleBinRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRecycleBinOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRecycleBinOutcome(DescribeRecycleBinResult(outcome.result())); + else + return DescribeRecycleBinOutcome(outcome.error()); +} + +void EcsClient::describeRecycleBinAsync(const DescribeRecycleBinRequest& request, const DescribeRecycleBinAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRecycleBin(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeRecycleBinOutcomeCallable EcsClient::describeRecycleBinCallable(const DescribeRecycleBinRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRecycleBin(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateNetworkInterfaceOutcome EcsClient::createNetworkInterface(const CreateNetworkInterfaceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNetworkInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNetworkInterfaceOutcome(CreateNetworkInterfaceResult(outcome.result())); + else + return CreateNetworkInterfaceOutcome(outcome.error()); +} + +void EcsClient::createNetworkInterfaceAsync(const CreateNetworkInterfaceRequest& request, const CreateNetworkInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNetworkInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateNetworkInterfaceOutcomeCallable EcsClient::createNetworkInterfaceCallable(const CreateNetworkInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNetworkInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeIpRangesOutcome EcsClient::describeIpRanges(const DescribeIpRangesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIpRangesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIpRangesOutcome(DescribeIpRangesResult(outcome.result())); + else + return DescribeIpRangesOutcome(outcome.error()); +} + +void EcsClient::describeIpRangesAsync(const DescribeIpRangesRequest& request, const DescribeIpRangesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIpRanges(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeIpRangesOutcomeCallable EcsClient::describeIpRangesCallable(const DescribeIpRangesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIpRanges(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CancelPhysicalConnectionOutcome EcsClient::cancelPhysicalConnection(const CancelPhysicalConnectionRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CancelPhysicalConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelPhysicalConnectionOutcome(CancelPhysicalConnectionResult(outcome.result())); + else + return CancelPhysicalConnectionOutcome(outcome.error()); +} + +void EcsClient::cancelPhysicalConnectionAsync(const CancelPhysicalConnectionRequest& request, const CancelPhysicalConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelPhysicalConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CancelPhysicalConnectionOutcomeCallable EcsClient::cancelPhysicalConnectionCallable(const CancelPhysicalConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelPhysicalConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeVRoutersOutcome EcsClient::describeVRouters(const DescribeVRoutersRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVRoutersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVRoutersOutcome(DescribeVRoutersResult(outcome.result())); + else + return DescribeVRoutersOutcome(outcome.error()); +} + +void EcsClient::describeVRoutersAsync(const DescribeVRoutersRequest& request, const DescribeVRoutersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVRouters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeVRoutersOutcomeCallable EcsClient::describeVRoutersCallable(const DescribeVRoutersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVRouters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeNetworkInterfacesOutcome EcsClient::describeNetworkInterfaces(const DescribeNetworkInterfacesRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNetworkInterfacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNetworkInterfacesOutcome(DescribeNetworkInterfacesResult(outcome.result())); + else + return DescribeNetworkInterfacesOutcome(outcome.error()); +} + +void EcsClient::describeNetworkInterfacesAsync(const DescribeNetworkInterfacesRequest& request, const DescribeNetworkInterfacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNetworkInterfaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeNetworkInterfacesOutcomeCallable EcsClient::describeNetworkInterfacesCallable(const DescribeNetworkInterfacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNetworkInterfaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyNetworkInterfaceAttributeOutcome EcsClient::modifyNetworkInterfaceAttribute(const ModifyNetworkInterfaceAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyNetworkInterfaceAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyNetworkInterfaceAttributeOutcome(ModifyNetworkInterfaceAttributeResult(outcome.result())); + else + return ModifyNetworkInterfaceAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyNetworkInterfaceAttributeAsync(const ModifyNetworkInterfaceAttributeRequest& request, const ModifyNetworkInterfaceAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyNetworkInterfaceAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyNetworkInterfaceAttributeOutcomeCallable EcsClient::modifyNetworkInterfaceAttributeCallable(const ModifyNetworkInterfaceAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyNetworkInterfaceAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DetachNetworkInterfaceOutcome EcsClient::detachNetworkInterface(const DetachNetworkInterfaceRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DetachNetworkInterfaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachNetworkInterfaceOutcome(DetachNetworkInterfaceResult(outcome.result())); + else + return DetachNetworkInterfaceOutcome(outcome.error()); +} + +void EcsClient::detachNetworkInterfaceAsync(const DetachNetworkInterfaceRequest& request, const DetachNetworkInterfaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachNetworkInterface(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DetachNetworkInterfaceOutcomeCallable EcsClient::detachNetworkInterfaceCallable(const DetachNetworkInterfaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachNetworkInterface(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::AllocateEipAddressOutcome EcsClient::allocateEipAddress(const AllocateEipAddressRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AllocateEipAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocateEipAddressOutcome(AllocateEipAddressResult(outcome.result())); + else + return AllocateEipAddressOutcome(outcome.error()); +} + +void EcsClient::allocateEipAddressAsync(const AllocateEipAddressRequest& request, const AllocateEipAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocateEipAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::AllocateEipAddressOutcomeCallable EcsClient::allocateEipAddressCallable(const AllocateEipAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocateEipAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DeleteDiskOutcome EcsClient::deleteDisk(const DeleteDiskRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDiskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDiskOutcome(DeleteDiskResult(outcome.result())); + else + return DeleteDiskOutcome(outcome.error()); +} + +void EcsClient::deleteDiskAsync(const DeleteDiskRequest& request, const DeleteDiskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDisk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DeleteDiskOutcomeCallable EcsClient::deleteDiskCallable(const DeleteDiskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDisk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::UnassociateHaVipOutcome EcsClient::unassociateHaVip(const UnassociateHaVipRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return UnassociateHaVipOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnassociateHaVipOutcome(UnassociateHaVipResult(outcome.result())); + else + return UnassociateHaVipOutcome(outcome.error()); +} + +void EcsClient::unassociateHaVipAsync(const UnassociateHaVipRequest& request, const UnassociateHaVipAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unassociateHaVip(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::UnassociateHaVipOutcomeCallable EcsClient::unassociateHaVipCallable(const UnassociateHaVipRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unassociateHaVip(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyHaVipAttributeOutcome EcsClient::modifyHaVipAttribute(const ModifyHaVipAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyHaVipAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyHaVipAttributeOutcome(ModifyHaVipAttributeResult(outcome.result())); + else + return ModifyHaVipAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyHaVipAttributeAsync(const ModifyHaVipAttributeRequest& request, const ModifyHaVipAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyHaVipAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyHaVipAttributeOutcomeCallable EcsClient::modifyHaVipAttributeCallable(const ModifyHaVipAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyHaVipAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::CreateKeyPairOutcome EcsClient::createKeyPair(const CreateKeyPairRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return CreateKeyPairOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateKeyPairOutcome(CreateKeyPairResult(outcome.result())); + else + return CreateKeyPairOutcome(outcome.error()); +} + +void EcsClient::createKeyPairAsync(const CreateKeyPairRequest& request, const CreateKeyPairAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createKeyPair(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::CreateKeyPairOutcomeCallable EcsClient::createKeyPairCallable(const CreateKeyPairRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createKeyPair(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::AttachClassicLinkVpcOutcome EcsClient::attachClassicLinkVpc(const AttachClassicLinkVpcRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AttachClassicLinkVpcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachClassicLinkVpcOutcome(AttachClassicLinkVpcResult(outcome.result())); + else + return AttachClassicLinkVpcOutcome(outcome.error()); +} + +void EcsClient::attachClassicLinkVpcAsync(const AttachClassicLinkVpcRequest& request, const AttachClassicLinkVpcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachClassicLinkVpc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::AttachClassicLinkVpcOutcomeCallable EcsClient::attachClassicLinkVpcCallable(const AttachClassicLinkVpcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachClassicLinkVpc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::DescribeDeploymentSetsOutcome EcsClient::describeDeploymentSets(const DescribeDeploymentSetsRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDeploymentSetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDeploymentSetsOutcome(DescribeDeploymentSetsResult(outcome.result())); + else + return DescribeDeploymentSetsOutcome(outcome.error()); +} + +void EcsClient::describeDeploymentSetsAsync(const DescribeDeploymentSetsRequest& request, const DescribeDeploymentSetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDeploymentSets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::DescribeDeploymentSetsOutcomeCallable EcsClient::describeDeploymentSetsCallable(const DescribeDeploymentSetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDeploymentSets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::AttachInstanceRamRoleOutcome EcsClient::attachInstanceRamRole(const AttachInstanceRamRoleRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return AttachInstanceRamRoleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachInstanceRamRoleOutcome(AttachInstanceRamRoleResult(outcome.result())); + else + return AttachInstanceRamRoleOutcome(outcome.error()); +} + +void EcsClient::attachInstanceRamRoleAsync(const AttachInstanceRamRoleRequest& request, const AttachInstanceRamRoleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachInstanceRamRole(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::AttachInstanceRamRoleOutcomeCallable EcsClient::attachInstanceRamRoleCallable(const AttachInstanceRamRoleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachInstanceRamRole(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EcsClient::ModifyVRouterAttributeOutcome EcsClient::modifyVRouterAttribute(const ModifyVRouterAttributeRequest &request) const +{ + auto endpointOutcome = endpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVRouterAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVRouterAttributeOutcome(ModifyVRouterAttributeResult(outcome.result())); + else + return ModifyVRouterAttributeOutcome(outcome.error()); +} + +void EcsClient::modifyVRouterAttributeAsync(const ModifyVRouterAttributeRequest& request, const ModifyVRouterAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVRouterAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EcsClient::ModifyVRouterAttributeOutcomeCallable EcsClient::modifyVRouterAttributeCallable(const ModifyVRouterAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVRouterAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/ecs/src/EcsRequest.cc b/ecs/src/EcsRequest.cc new file mode 100644 index 000000000..c8403db0c --- /dev/null +++ b/ecs/src/EcsRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Ecs; + +EcsRequest::EcsRequest(const std::string & action) : + RpcServiceRequest("ecs", "2014-05-26", action) +{ } + +EcsRequest::~EcsRequest() +{ } \ No newline at end of file diff --git a/ecs/src/model/ActivateRouterInterfaceRequest.cc b/ecs/src/model/ActivateRouterInterfaceRequest.cc new file mode 100644 index 000000000..ab672020a --- /dev/null +++ b/ecs/src/model/ActivateRouterInterfaceRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ActivateRouterInterfaceRequest::ActivateRouterInterfaceRequest() : + EcsRequest("ActivateRouterInterface") +{} + +ActivateRouterInterfaceRequest::~ActivateRouterInterfaceRequest() +{} + +long ActivateRouterInterfaceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ActivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ActivateRouterInterfaceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ActivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ActivateRouterInterfaceRequest::getRegionId()const +{ + return regionId_; +} + +void ActivateRouterInterfaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long ActivateRouterInterfaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void ActivateRouterInterfaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ActivateRouterInterfaceRequest::getRouterInterfaceId()const +{ + return routerInterfaceId_; +} + +void ActivateRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) +{ + routerInterfaceId_ = routerInterfaceId; + setParameter("RouterInterfaceId", routerInterfaceId); +} + diff --git a/ecs/src/model/ActivateRouterInterfaceResult.cc b/ecs/src/model/ActivateRouterInterfaceResult.cc new file mode 100644 index 000000000..ecec7c776 --- /dev/null +++ b/ecs/src/model/ActivateRouterInterfaceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ActivateRouterInterfaceResult::ActivateRouterInterfaceResult() : + ServiceResult() +{} + +ActivateRouterInterfaceResult::ActivateRouterInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ActivateRouterInterfaceResult::~ActivateRouterInterfaceResult() +{} + +void ActivateRouterInterfaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AddBandwidthPackageIpsRequest.cc b/ecs/src/model/AddBandwidthPackageIpsRequest.cc new file mode 100644 index 000000000..739f61cb9 --- /dev/null +++ b/ecs/src/model/AddBandwidthPackageIpsRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AddBandwidthPackageIpsRequest::AddBandwidthPackageIpsRequest() : + EcsRequest("AddBandwidthPackageIps") +{} + +AddBandwidthPackageIpsRequest::~AddBandwidthPackageIpsRequest() +{} + +long AddBandwidthPackageIpsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddBandwidthPackageIpsRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void AddBandwidthPackageIpsRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string AddBandwidthPackageIpsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddBandwidthPackageIpsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddBandwidthPackageIpsRequest::getRegionId()const +{ + return regionId_; +} + +void AddBandwidthPackageIpsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AddBandwidthPackageIpsRequest::getClientToken()const +{ + return clientToken_; +} + +void AddBandwidthPackageIpsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string AddBandwidthPackageIpsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AddBandwidthPackageIpsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long AddBandwidthPackageIpsRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddBandwidthPackageIpsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddBandwidthPackageIpsRequest::getIpCount()const +{ + return ipCount_; +} + +void AddBandwidthPackageIpsRequest::setIpCount(const std::string& ipCount) +{ + ipCount_ = ipCount; + setParameter("IpCount", ipCount); +} + diff --git a/ecs/src/model/AddBandwidthPackageIpsResult.cc b/ecs/src/model/AddBandwidthPackageIpsResult.cc new file mode 100644 index 000000000..3e3485b5a --- /dev/null +++ b/ecs/src/model/AddBandwidthPackageIpsResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AddBandwidthPackageIpsResult::AddBandwidthPackageIpsResult() : + ServiceResult() +{} + +AddBandwidthPackageIpsResult::AddBandwidthPackageIpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddBandwidthPackageIpsResult::~AddBandwidthPackageIpsResult() +{} + +void AddBandwidthPackageIpsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AddIpRangeRequest.cc b/ecs/src/model/AddIpRangeRequest.cc new file mode 100644 index 000000000..5b648d9ba --- /dev/null +++ b/ecs/src/model/AddIpRangeRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AddIpRangeRequest::AddIpRangeRequest() : + EcsRequest("AddIpRange") +{} + +AddIpRangeRequest::~AddIpRangeRequest() +{} + +std::string AddIpRangeRequest::getIpAddress()const +{ + return ipAddress_; +} + +void AddIpRangeRequest::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; + setParameter("IpAddress", ipAddress); +} + +long AddIpRangeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddIpRangeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddIpRangeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddIpRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddIpRangeRequest::getRegionId()const +{ + return regionId_; +} + +void AddIpRangeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AddIpRangeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AddIpRangeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AddIpRangeRequest::getZoneId()const +{ + return zoneId_; +} + +void AddIpRangeRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +long AddIpRangeRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddIpRangeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/AddIpRangeResult.cc b/ecs/src/model/AddIpRangeResult.cc new file mode 100644 index 000000000..c4b31d4f4 --- /dev/null +++ b/ecs/src/model/AddIpRangeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AddIpRangeResult::AddIpRangeResult() : + ServiceResult() +{} + +AddIpRangeResult::AddIpRangeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddIpRangeResult::~AddIpRangeResult() +{} + +void AddIpRangeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AddTagsRequest.cc b/ecs/src/model/AddTagsRequest.cc new file mode 100644 index 000000000..391c5ddd6 --- /dev/null +++ b/ecs/src/model/AddTagsRequest.cc @@ -0,0 +1,204 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AddTagsRequest::AddTagsRequest() : + EcsRequest("AddTags") +{} + +AddTagsRequest::~AddTagsRequest() +{} + +std::string AddTagsRequest::getTag4Value()const +{ + return tag4Value_; +} + +void AddTagsRequest::setTag4Value(const std::string& tag4Value) +{ + tag4Value_ = tag4Value; + setParameter("Tag4Value", tag4Value); +} + +long AddTagsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AddTagsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AddTagsRequest::getResourceId()const +{ + return resourceId_; +} + +void AddTagsRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setParameter("ResourceId", resourceId); +} + +std::string AddTagsRequest::getTag2Key()const +{ + return tag2Key_; +} + +void AddTagsRequest::setTag2Key(const std::string& tag2Key) +{ + tag2Key_ = tag2Key; + setParameter("Tag2Key", tag2Key); +} + +std::string AddTagsRequest::getTag5Key()const +{ + return tag5Key_; +} + +void AddTagsRequest::setTag5Key(const std::string& tag5Key) +{ + tag5Key_ = tag5Key; + setParameter("Tag5Key", tag5Key); +} + +std::string AddTagsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AddTagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AddTagsRequest::getTag3Key()const +{ + return tag3Key_; +} + +void AddTagsRequest::setTag3Key(const std::string& tag3Key) +{ + tag3Key_ = tag3Key; + setParameter("Tag3Key", tag3Key); +} + +long AddTagsRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddTagsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddTagsRequest::getResourceType()const +{ + return resourceType_; +} + +void AddTagsRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string AddTagsRequest::getTag5Value()const +{ + return tag5Value_; +} + +void AddTagsRequest::setTag5Value(const std::string& tag5Value) +{ + tag5Value_ = tag5Value; + setParameter("Tag5Value", tag5Value); +} + +std::string AddTagsRequest::getTag1Key()const +{ + return tag1Key_; +} + +void AddTagsRequest::setTag1Key(const std::string& tag1Key) +{ + tag1Key_ = tag1Key; + setParameter("Tag1Key", tag1Key); +} + +std::string AddTagsRequest::getTag1Value()const +{ + return tag1Value_; +} + +void AddTagsRequest::setTag1Value(const std::string& tag1Value) +{ + tag1Value_ = tag1Value; + setParameter("Tag1Value", tag1Value); +} + +std::string AddTagsRequest::getRegionId()const +{ + return regionId_; +} + +void AddTagsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AddTagsRequest::getTag2Value()const +{ + return tag2Value_; +} + +void AddTagsRequest::setTag2Value(const std::string& tag2Value) +{ + tag2Value_ = tag2Value; + setParameter("Tag2Value", tag2Value); +} + +std::string AddTagsRequest::getTag4Key()const +{ + return tag4Key_; +} + +void AddTagsRequest::setTag4Key(const std::string& tag4Key) +{ + tag4Key_ = tag4Key; + setParameter("Tag4Key", tag4Key); +} + +std::string AddTagsRequest::getTag3Value()const +{ + return tag3Value_; +} + +void AddTagsRequest::setTag3Value(const std::string& tag3Value) +{ + tag3Value_ = tag3Value; + setParameter("Tag3Value", tag3Value); +} + diff --git a/ecs/src/model/AddTagsResult.cc b/ecs/src/model/AddTagsResult.cc new file mode 100644 index 000000000..cfc6ddc43 --- /dev/null +++ b/ecs/src/model/AddTagsResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AddTagsResult::AddTagsResult() : + ServiceResult() +{} + +AddTagsResult::AddTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddTagsResult::~AddTagsResult() +{} + +void AddTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AllocateEipAddressRequest.cc b/ecs/src/model/AllocateEipAddressRequest.cc new file mode 100644 index 000000000..a11af7056 --- /dev/null +++ b/ecs/src/model/AllocateEipAddressRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AllocateEipAddressRequest::AllocateEipAddressRequest() : + EcsRequest("AllocateEipAddress") +{} + +AllocateEipAddressRequest::~AllocateEipAddressRequest() +{} + +long AllocateEipAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AllocateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AllocateEipAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AllocateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AllocateEipAddressRequest::getRegionId()const +{ + return regionId_; +} + +void AllocateEipAddressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AllocateEipAddressRequest::getBandwidth()const +{ + return bandwidth_; +} + +void AllocateEipAddressRequest::setBandwidth(const std::string& bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", bandwidth); +} + +std::string AllocateEipAddressRequest::getClientToken()const +{ + return clientToken_; +} + +void AllocateEipAddressRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string AllocateEipAddressRequest::getInternetChargeType()const +{ + return internetChargeType_; +} + +void AllocateEipAddressRequest::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; + setParameter("InternetChargeType", internetChargeType); +} + +std::string AllocateEipAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AllocateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long AllocateEipAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void AllocateEipAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/AllocateEipAddressResult.cc b/ecs/src/model/AllocateEipAddressResult.cc new file mode 100644 index 000000000..9fb253f92 --- /dev/null +++ b/ecs/src/model/AllocateEipAddressResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AllocateEipAddressResult::AllocateEipAddressResult() : + ServiceResult() +{} + +AllocateEipAddressResult::AllocateEipAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocateEipAddressResult::~AllocateEipAddressResult() +{} + +void AllocateEipAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + allocationId_ = value["AllocationId"].asString(); + eipAddress_ = value["EipAddress"].asString(); + +} + +std::string AllocateEipAddressResult::getAllocationId()const +{ + return allocationId_; +} + +void AllocateEipAddressResult::setAllocationId(const std::string& allocationId) +{ + allocationId_ = allocationId; +} + +std::string AllocateEipAddressResult::getEipAddress()const +{ + return eipAddress_; +} + +void AllocateEipAddressResult::setEipAddress(const std::string& eipAddress) +{ + eipAddress_ = eipAddress; +} + diff --git a/ecs/src/model/AllocatePublicIpAddressRequest.cc b/ecs/src/model/AllocatePublicIpAddressRequest.cc new file mode 100644 index 000000000..0892322a1 --- /dev/null +++ b/ecs/src/model/AllocatePublicIpAddressRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AllocatePublicIpAddressRequest::AllocatePublicIpAddressRequest() : + EcsRequest("AllocatePublicIpAddress") +{} + +AllocatePublicIpAddressRequest::~AllocatePublicIpAddressRequest() +{} + +std::string AllocatePublicIpAddressRequest::getIpAddress()const +{ + return ipAddress_; +} + +void AllocatePublicIpAddressRequest::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; + setParameter("IpAddress", ipAddress); +} + +long AllocatePublicIpAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AllocatePublicIpAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AllocatePublicIpAddressRequest::getInstanceId()const +{ + return instanceId_; +} + +void AllocatePublicIpAddressRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string AllocatePublicIpAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AllocatePublicIpAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AllocatePublicIpAddressRequest::getVlanId()const +{ + return vlanId_; +} + +void AllocatePublicIpAddressRequest::setVlanId(const std::string& vlanId) +{ + vlanId_ = vlanId; + setParameter("VlanId", vlanId); +} + +std::string AllocatePublicIpAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AllocatePublicIpAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long AllocatePublicIpAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void AllocatePublicIpAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/AllocatePublicIpAddressResult.cc b/ecs/src/model/AllocatePublicIpAddressResult.cc new file mode 100644 index 000000000..95f7ab257 --- /dev/null +++ b/ecs/src/model/AllocatePublicIpAddressResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AllocatePublicIpAddressResult::AllocatePublicIpAddressResult() : + ServiceResult() +{} + +AllocatePublicIpAddressResult::AllocatePublicIpAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocatePublicIpAddressResult::~AllocatePublicIpAddressResult() +{} + +void AllocatePublicIpAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + ipAddress_ = value["IpAddress"].asString(); + +} + +std::string AllocatePublicIpAddressResult::getIpAddress()const +{ + return ipAddress_; +} + +void AllocatePublicIpAddressResult::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; +} + diff --git a/ecs/src/model/ApplyAutoSnapshotPolicyRequest.cc b/ecs/src/model/ApplyAutoSnapshotPolicyRequest.cc new file mode 100644 index 000000000..9cdee8834 --- /dev/null +++ b/ecs/src/model/ApplyAutoSnapshotPolicyRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ApplyAutoSnapshotPolicyRequest::ApplyAutoSnapshotPolicyRequest() : + EcsRequest("ApplyAutoSnapshotPolicy") +{} + +ApplyAutoSnapshotPolicyRequest::~ApplyAutoSnapshotPolicyRequest() +{} + +long ApplyAutoSnapshotPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ApplyAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ApplyAutoSnapshotPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ApplyAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ApplyAutoSnapshotPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void ApplyAutoSnapshotPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ApplyAutoSnapshotPolicyRequest::getAutoSnapshotPolicyId()const +{ + return autoSnapshotPolicyId_; +} + +void ApplyAutoSnapshotPolicyRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId) +{ + autoSnapshotPolicyId_ = autoSnapshotPolicyId; + setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId); +} + +std::string ApplyAutoSnapshotPolicyRequest::getDiskIds()const +{ + return diskIds_; +} + +void ApplyAutoSnapshotPolicyRequest::setDiskIds(const std::string& diskIds) +{ + diskIds_ = diskIds; + setParameter("DiskIds", diskIds); +} + +long ApplyAutoSnapshotPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void ApplyAutoSnapshotPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ApplyAutoSnapshotPolicyResult.cc b/ecs/src/model/ApplyAutoSnapshotPolicyResult.cc new file mode 100644 index 000000000..77cac3451 --- /dev/null +++ b/ecs/src/model/ApplyAutoSnapshotPolicyResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ApplyAutoSnapshotPolicyResult::ApplyAutoSnapshotPolicyResult() : + ServiceResult() +{} + +ApplyAutoSnapshotPolicyResult::ApplyAutoSnapshotPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ApplyAutoSnapshotPolicyResult::~ApplyAutoSnapshotPolicyResult() +{} + +void ApplyAutoSnapshotPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AssociateEipAddressRequest.cc b/ecs/src/model/AssociateEipAddressRequest.cc new file mode 100644 index 000000000..334baeb58 --- /dev/null +++ b/ecs/src/model/AssociateEipAddressRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AssociateEipAddressRequest::AssociateEipAddressRequest() : + EcsRequest("AssociateEipAddress") +{} + +AssociateEipAddressRequest::~AssociateEipAddressRequest() +{} + +long AssociateEipAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AssociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AssociateEipAddressRequest::getInstanceId()const +{ + return instanceId_; +} + +void AssociateEipAddressRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string AssociateEipAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AssociateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AssociateEipAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AssociateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AssociateEipAddressRequest::getInstanceType()const +{ + return instanceType_; +} + +void AssociateEipAddressRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::string AssociateEipAddressRequest::getAllocationId()const +{ + return allocationId_; +} + +void AssociateEipAddressRequest::setAllocationId(const std::string& allocationId) +{ + allocationId_ = allocationId; + setParameter("AllocationId", allocationId); +} + +long AssociateEipAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void AssociateEipAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/AssociateEipAddressResult.cc b/ecs/src/model/AssociateEipAddressResult.cc new file mode 100644 index 000000000..5b77ad010 --- /dev/null +++ b/ecs/src/model/AssociateEipAddressResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AssociateEipAddressResult::AssociateEipAddressResult() : + ServiceResult() +{} + +AssociateEipAddressResult::AssociateEipAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateEipAddressResult::~AssociateEipAddressResult() +{} + +void AssociateEipAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AssociateHaVipRequest.cc b/ecs/src/model/AssociateHaVipRequest.cc new file mode 100644 index 000000000..4e5f1db37 --- /dev/null +++ b/ecs/src/model/AssociateHaVipRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AssociateHaVipRequest::AssociateHaVipRequest() : + EcsRequest("AssociateHaVip") +{} + +AssociateHaVipRequest::~AssociateHaVipRequest() +{} + +std::string AssociateHaVipRequest::getHaVipId()const +{ + return haVipId_; +} + +void AssociateHaVipRequest::setHaVipId(const std::string& haVipId) +{ + haVipId_ = haVipId; + setParameter("HaVipId", haVipId); +} + +long AssociateHaVipRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AssociateHaVipRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AssociateHaVipRequest::getInstanceId()const +{ + return instanceId_; +} + +void AssociateHaVipRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string AssociateHaVipRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AssociateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AssociateHaVipRequest::getClientToken()const +{ + return clientToken_; +} + +void AssociateHaVipRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string AssociateHaVipRequest::getRegionId()const +{ + return regionId_; +} + +void AssociateHaVipRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AssociateHaVipRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AssociateHaVipRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long AssociateHaVipRequest::getOwnerId()const +{ + return ownerId_; +} + +void AssociateHaVipRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/AssociateHaVipResult.cc b/ecs/src/model/AssociateHaVipResult.cc new file mode 100644 index 000000000..8f159c584 --- /dev/null +++ b/ecs/src/model/AssociateHaVipResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AssociateHaVipResult::AssociateHaVipResult() : + ServiceResult() +{} + +AssociateHaVipResult::AssociateHaVipResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateHaVipResult::~AssociateHaVipResult() +{} + +void AssociateHaVipResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AttachClassicLinkVpcRequest.cc b/ecs/src/model/AttachClassicLinkVpcRequest.cc new file mode 100644 index 000000000..ce5db5237 --- /dev/null +++ b/ecs/src/model/AttachClassicLinkVpcRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AttachClassicLinkVpcRequest::AttachClassicLinkVpcRequest() : + EcsRequest("AttachClassicLinkVpc") +{} + +AttachClassicLinkVpcRequest::~AttachClassicLinkVpcRequest() +{} + +long AttachClassicLinkVpcRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AttachClassicLinkVpcRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AttachClassicLinkVpcRequest::getInstanceId()const +{ + return instanceId_; +} + +void AttachClassicLinkVpcRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string AttachClassicLinkVpcRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AttachClassicLinkVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AttachClassicLinkVpcRequest::getRegionId()const +{ + return regionId_; +} + +void AttachClassicLinkVpcRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AttachClassicLinkVpcRequest::getVpcId()const +{ + return vpcId_; +} + +void AttachClassicLinkVpcRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +long AttachClassicLinkVpcRequest::getOwnerId()const +{ + return ownerId_; +} + +void AttachClassicLinkVpcRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/AttachClassicLinkVpcResult.cc b/ecs/src/model/AttachClassicLinkVpcResult.cc new file mode 100644 index 000000000..f669a5bdc --- /dev/null +++ b/ecs/src/model/AttachClassicLinkVpcResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AttachClassicLinkVpcResult::AttachClassicLinkVpcResult() : + ServiceResult() +{} + +AttachClassicLinkVpcResult::AttachClassicLinkVpcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachClassicLinkVpcResult::~AttachClassicLinkVpcResult() +{} + +void AttachClassicLinkVpcResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AttachDiskRequest.cc b/ecs/src/model/AttachDiskRequest.cc new file mode 100644 index 000000000..aac977c14 --- /dev/null +++ b/ecs/src/model/AttachDiskRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AttachDiskRequest::AttachDiskRequest() : + EcsRequest("AttachDisk") +{} + +AttachDiskRequest::~AttachDiskRequest() +{} + +long AttachDiskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AttachDiskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AttachDiskRequest::getInstanceId()const +{ + return instanceId_; +} + +void AttachDiskRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string AttachDiskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AttachDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AttachDiskRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AttachDiskRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AttachDiskRequest::getDiskId()const +{ + return diskId_; +} + +void AttachDiskRequest::setDiskId(const std::string& diskId) +{ + diskId_ = diskId; + setParameter("DiskId", diskId); +} + +long AttachDiskRequest::getOwnerId()const +{ + return ownerId_; +} + +void AttachDiskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AttachDiskRequest::getDevice()const +{ + return device_; +} + +void AttachDiskRequest::setDevice(const std::string& device) +{ + device_ = device; + setParameter("Device", device); +} + +bool AttachDiskRequest::getDeleteWithInstance()const +{ + return deleteWithInstance_; +} + +void AttachDiskRequest::setDeleteWithInstance(bool deleteWithInstance) +{ + deleteWithInstance_ = deleteWithInstance; + setParameter("DeleteWithInstance", std::to_string(deleteWithInstance)); +} + diff --git a/ecs/src/model/AttachDiskResult.cc b/ecs/src/model/AttachDiskResult.cc new file mode 100644 index 000000000..089872aa7 --- /dev/null +++ b/ecs/src/model/AttachDiskResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AttachDiskResult::AttachDiskResult() : + ServiceResult() +{} + +AttachDiskResult::AttachDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachDiskResult::~AttachDiskResult() +{} + +void AttachDiskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AttachInstanceRamRoleRequest.cc b/ecs/src/model/AttachInstanceRamRoleRequest.cc new file mode 100644 index 000000000..16e4c7482 --- /dev/null +++ b/ecs/src/model/AttachInstanceRamRoleRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AttachInstanceRamRoleRequest::AttachInstanceRamRoleRequest() : + EcsRequest("AttachInstanceRamRole") +{} + +AttachInstanceRamRoleRequest::~AttachInstanceRamRoleRequest() +{} + +long AttachInstanceRamRoleRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AttachInstanceRamRoleRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AttachInstanceRamRoleRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AttachInstanceRamRoleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AttachInstanceRamRoleRequest::getRegionId()const +{ + return regionId_; +} + +void AttachInstanceRamRoleRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AttachInstanceRamRoleRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void AttachInstanceRamRoleRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setParameter("InstanceIds", instanceIds); +} + +std::string AttachInstanceRamRoleRequest::getRamRoleName()const +{ + return ramRoleName_; +} + +void AttachInstanceRamRoleRequest::setRamRoleName(const std::string& ramRoleName) +{ + ramRoleName_ = ramRoleName; + setParameter("RamRoleName", ramRoleName); +} + +long AttachInstanceRamRoleRequest::getOwnerId()const +{ + return ownerId_; +} + +void AttachInstanceRamRoleRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/AttachInstanceRamRoleResult.cc b/ecs/src/model/AttachInstanceRamRoleResult.cc new file mode 100644 index 000000000..ae75ba60e --- /dev/null +++ b/ecs/src/model/AttachInstanceRamRoleResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AttachInstanceRamRoleResult::AttachInstanceRamRoleResult() : + ServiceResult() +{} + +AttachInstanceRamRoleResult::AttachInstanceRamRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachInstanceRamRoleResult::~AttachInstanceRamRoleResult() +{} + +void AttachInstanceRamRoleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allAttachInstanceRamRoleResults = value["AttachInstanceRamRoleResults"]["AttachInstanceRamRoleResult"]; + for (auto value : allAttachInstanceRamRoleResults) + { + Result attachInstanceRamRoleResultObject; + attachInstanceRamRoleResultObject.instanceId = value["InstanceId"].asString(); + attachInstanceRamRoleResultObject.success = std::stoi(value["Success"].asString()); + attachInstanceRamRoleResultObject.code = value["Code"].asString(); + attachInstanceRamRoleResultObject.message = value["Message"].asString(); + attachInstanceRamRoleResults_.push_back(attachInstanceRamRoleResultObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + failCount_ = std::stoi(value["FailCount"].asString()); + ramRoleName_ = value["RamRoleName"].asString(); + +} + +int AttachInstanceRamRoleResult::getTotalCount()const +{ + return totalCount_; +} + +void AttachInstanceRamRoleResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +std::string AttachInstanceRamRoleResult::getRamRoleName()const +{ + return ramRoleName_; +} + +void AttachInstanceRamRoleResult::setRamRoleName(const std::string& ramRoleName) +{ + ramRoleName_ = ramRoleName; +} + +int AttachInstanceRamRoleResult::getFailCount()const +{ + return failCount_; +} + +void AttachInstanceRamRoleResult::setFailCount(int failCount) +{ + failCount_ = failCount; +} + diff --git a/ecs/src/model/AttachKeyPairRequest.cc b/ecs/src/model/AttachKeyPairRequest.cc new file mode 100644 index 000000000..63741bbf7 --- /dev/null +++ b/ecs/src/model/AttachKeyPairRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AttachKeyPairRequest::AttachKeyPairRequest() : + EcsRequest("AttachKeyPair") +{} + +AttachKeyPairRequest::~AttachKeyPairRequest() +{} + +long AttachKeyPairRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AttachKeyPairRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AttachKeyPairRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AttachKeyPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AttachKeyPairRequest::getRegionId()const +{ + return regionId_; +} + +void AttachKeyPairRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string AttachKeyPairRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void AttachKeyPairRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setParameter("InstanceIds", instanceIds); +} + +std::string AttachKeyPairRequest::getKeyPairName()const +{ + return keyPairName_; +} + +void AttachKeyPairRequest::setKeyPairName(const std::string& keyPairName) +{ + keyPairName_ = keyPairName; + setParameter("KeyPairName", keyPairName); +} + +long AttachKeyPairRequest::getOwnerId()const +{ + return ownerId_; +} + +void AttachKeyPairRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/AttachKeyPairResult.cc b/ecs/src/model/AttachKeyPairResult.cc new file mode 100644 index 000000000..a24e12b1f --- /dev/null +++ b/ecs/src/model/AttachKeyPairResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AttachKeyPairResult::AttachKeyPairResult() : + ServiceResult() +{} + +AttachKeyPairResult::AttachKeyPairResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachKeyPairResult::~AttachKeyPairResult() +{} + +void AttachKeyPairResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allResults = value["Results"]["Result"]; + for (auto value : allResults) + { + Result resultObject; + resultObject.instanceId = value["InstanceId"].asString(); + resultObject.success = value["Success"].asString(); + resultObject.code = value["Code"].asString(); + resultObject.message = value["Message"].asString(); + results_.push_back(resultObject); + } + totalCount_ = value["TotalCount"].asString(); + failCount_ = value["FailCount"].asString(); + keyPairName_ = value["KeyPairName"].asString(); + +} + +std::string AttachKeyPairResult::getKeyPairName()const +{ + return keyPairName_; +} + +void AttachKeyPairResult::setKeyPairName(const std::string& keyPairName) +{ + keyPairName_ = keyPairName; +} + +std::string AttachKeyPairResult::getTotalCount()const +{ + return totalCount_; +} + +void AttachKeyPairResult::setTotalCount(const std::string& totalCount) +{ + totalCount_ = totalCount; +} + +std::string AttachKeyPairResult::getFailCount()const +{ + return failCount_; +} + +void AttachKeyPairResult::setFailCount(const std::string& failCount) +{ + failCount_ = failCount; +} + diff --git a/ecs/src/model/AttachNetworkInterfaceRequest.cc b/ecs/src/model/AttachNetworkInterfaceRequest.cc new file mode 100644 index 000000000..a59ec82b1 --- /dev/null +++ b/ecs/src/model/AttachNetworkInterfaceRequest.cc @@ -0,0 +1,314 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AttachNetworkInterfaceRequest::AttachNetworkInterfaceRequest() : + EcsRequest("AttachNetworkInterface") +{} + +AttachNetworkInterfaceRequest::~AttachNetworkInterfaceRequest() +{} + +long AttachNetworkInterfaceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AttachNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long AttachNetworkInterfaceRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void AttachNetworkInterfaceRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool AttachNetworkInterfaceRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void AttachNetworkInterfaceRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string AttachNetworkInterfaceRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void AttachNetworkInterfaceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string AttachNetworkInterfaceRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void AttachNetworkInterfaceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string AttachNetworkInterfaceRequest::getCallerType()const +{ + return callerType_; +} + +void AttachNetworkInterfaceRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string AttachNetworkInterfaceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AttachNetworkInterfaceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string AttachNetworkInterfaceRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void AttachNetworkInterfaceRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string AttachNetworkInterfaceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void AttachNetworkInterfaceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string AttachNetworkInterfaceRequest::getRegionId()const +{ + return regionId_; +} + +void AttachNetworkInterfaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool AttachNetworkInterfaceRequest::getEnable()const +{ + return enable_; +} + +void AttachNetworkInterfaceRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string AttachNetworkInterfaceRequest::getRequestContent()const +{ + return requestContent_; +} + +void AttachNetworkInterfaceRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string AttachNetworkInterfaceRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void AttachNetworkInterfaceRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string AttachNetworkInterfaceRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void AttachNetworkInterfaceRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long AttachNetworkInterfaceRequest::getCallerUid()const +{ + return callerUid_; +} + +void AttachNetworkInterfaceRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string AttachNetworkInterfaceRequest::getApp_ip()const +{ + return app_ip_; +} + +void AttachNetworkInterfaceRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string AttachNetworkInterfaceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AttachNetworkInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AttachNetworkInterfaceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AttachNetworkInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AttachNetworkInterfaceRequest::getCallerBid()const +{ + return callerBid_; +} + +void AttachNetworkInterfaceRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long AttachNetworkInterfaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void AttachNetworkInterfaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool AttachNetworkInterfaceRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void AttachNetworkInterfaceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool AttachNetworkInterfaceRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void AttachNetworkInterfaceRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool AttachNetworkInterfaceRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void AttachNetworkInterfaceRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string AttachNetworkInterfaceRequest::getInstanceId()const +{ + return instanceId_; +} + +void AttachNetworkInterfaceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string AttachNetworkInterfaceRequest::getRequestId()const +{ + return requestId_; +} + +void AttachNetworkInterfaceRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string AttachNetworkInterfaceRequest::getNetworkInterfaceId()const +{ + return networkInterfaceId_; +} + +void AttachNetworkInterfaceRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) +{ + networkInterfaceId_ = networkInterfaceId; + setParameter("NetworkInterfaceId", networkInterfaceId); +} + diff --git a/ecs/src/model/AttachNetworkInterfaceResult.cc b/ecs/src/model/AttachNetworkInterfaceResult.cc new file mode 100644 index 000000000..09ff29f91 --- /dev/null +++ b/ecs/src/model/AttachNetworkInterfaceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AttachNetworkInterfaceResult::AttachNetworkInterfaceResult() : + ServiceResult() +{} + +AttachNetworkInterfaceResult::AttachNetworkInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachNetworkInterfaceResult::~AttachNetworkInterfaceResult() +{} + +void AttachNetworkInterfaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AuthorizeSecurityGroupEgressRequest.cc b/ecs/src/model/AuthorizeSecurityGroupEgressRequest.cc new file mode 100644 index 000000000..72a945ce1 --- /dev/null +++ b/ecs/src/model/AuthorizeSecurityGroupEgressRequest.cc @@ -0,0 +1,446 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AuthorizeSecurityGroupEgressRequest::AuthorizeSecurityGroupEgressRequest() : + EcsRequest("AuthorizeSecurityGroupEgress") +{} + +AuthorizeSecurityGroupEgressRequest::~AuthorizeSecurityGroupEgressRequest() +{} + +std::string AuthorizeSecurityGroupEgressRequest::getNicType()const +{ + return nicType_; +} + +void AuthorizeSecurityGroupEgressRequest::setNicType(const std::string& nicType) +{ + nicType_ = nicType; + setParameter("NicType", nicType); +} + +long AuthorizeSecurityGroupEgressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AuthorizeSecurityGroupEgressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AuthorizeSecurityGroupEgressRequest::getSourcePortRange()const +{ + return sourcePortRange_; +} + +void AuthorizeSecurityGroupEgressRequest::setSourcePortRange(const std::string& sourcePortRange) +{ + sourcePortRange_ = sourcePortRange; + setParameter("SourcePortRange", sourcePortRange); +} + +std::string AuthorizeSecurityGroupEgressRequest::getClientToken()const +{ + return clientToken_; +} + +void AuthorizeSecurityGroupEgressRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +long AuthorizeSecurityGroupEgressRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void AuthorizeSecurityGroupEgressRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string AuthorizeSecurityGroupEgressRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void AuthorizeSecurityGroupEgressRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +bool AuthorizeSecurityGroupEgressRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void AuthorizeSecurityGroupEgressRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string AuthorizeSecurityGroupEgressRequest::getDescription()const +{ + return description_; +} + +void AuthorizeSecurityGroupEgressRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string AuthorizeSecurityGroupEgressRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void AuthorizeSecurityGroupEgressRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string AuthorizeSecurityGroupEgressRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void AuthorizeSecurityGroupEgressRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string AuthorizeSecurityGroupEgressRequest::getCallerType()const +{ + return callerType_; +} + +void AuthorizeSecurityGroupEgressRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string AuthorizeSecurityGroupEgressRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AuthorizeSecurityGroupEgressRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string AuthorizeSecurityGroupEgressRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void AuthorizeSecurityGroupEgressRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string AuthorizeSecurityGroupEgressRequest::getSecurityToken()const +{ + return securityToken_; +} + +void AuthorizeSecurityGroupEgressRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string AuthorizeSecurityGroupEgressRequest::getRegionId()const +{ + return regionId_; +} + +void AuthorizeSecurityGroupEgressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool AuthorizeSecurityGroupEgressRequest::getEnable()const +{ + return enable_; +} + +void AuthorizeSecurityGroupEgressRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string AuthorizeSecurityGroupEgressRequest::getRequestContent()const +{ + return requestContent_; +} + +void AuthorizeSecurityGroupEgressRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string AuthorizeSecurityGroupEgressRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void AuthorizeSecurityGroupEgressRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string AuthorizeSecurityGroupEgressRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void AuthorizeSecurityGroupEgressRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long AuthorizeSecurityGroupEgressRequest::getCallerUid()const +{ + return callerUid_; +} + +void AuthorizeSecurityGroupEgressRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string AuthorizeSecurityGroupEgressRequest::getPolicy()const +{ + return policy_; +} + +void AuthorizeSecurityGroupEgressRequest::setPolicy(const std::string& policy) +{ + policy_ = policy; + setParameter("Policy", policy); +} + +std::string AuthorizeSecurityGroupEgressRequest::getApp_ip()const +{ + return app_ip_; +} + +void AuthorizeSecurityGroupEgressRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string AuthorizeSecurityGroupEgressRequest::getPortRange()const +{ + return portRange_; +} + +void AuthorizeSecurityGroupEgressRequest::setPortRange(const std::string& portRange) +{ + portRange_ = portRange; + setParameter("PortRange", portRange); +} + +std::string AuthorizeSecurityGroupEgressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AuthorizeSecurityGroupEgressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AuthorizeSecurityGroupEgressRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void AuthorizeSecurityGroupEgressRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setParameter("IpProtocol", ipProtocol); +} + +std::string AuthorizeSecurityGroupEgressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AuthorizeSecurityGroupEgressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AuthorizeSecurityGroupEgressRequest::getSourceCidrIp()const +{ + return sourceCidrIp_; +} + +void AuthorizeSecurityGroupEgressRequest::setSourceCidrIp(const std::string& sourceCidrIp) +{ + sourceCidrIp_ = sourceCidrIp; + setParameter("SourceCidrIp", sourceCidrIp); +} + +std::string AuthorizeSecurityGroupEgressRequest::getCallerBid()const +{ + return callerBid_; +} + +void AuthorizeSecurityGroupEgressRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +std::string AuthorizeSecurityGroupEgressRequest::getDestGroupId()const +{ + return destGroupId_; +} + +void AuthorizeSecurityGroupEgressRequest::setDestGroupId(const std::string& destGroupId) +{ + destGroupId_ = destGroupId; + setParameter("DestGroupId", destGroupId); +} + +long AuthorizeSecurityGroupEgressRequest::getOwnerId()const +{ + return ownerId_; +} + +void AuthorizeSecurityGroupEgressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AuthorizeSecurityGroupEgressRequest::getDestGroupOwnerAccount()const +{ + return destGroupOwnerAccount_; +} + +void AuthorizeSecurityGroupEgressRequest::setDestGroupOwnerAccount(const std::string& destGroupOwnerAccount) +{ + destGroupOwnerAccount_ = destGroupOwnerAccount; + setParameter("DestGroupOwnerAccount", destGroupOwnerAccount); +} + +std::string AuthorizeSecurityGroupEgressRequest::getPriority()const +{ + return priority_; +} + +void AuthorizeSecurityGroupEgressRequest::setPriority(const std::string& priority) +{ + priority_ = priority; + setParameter("Priority", priority); +} + +std::string AuthorizeSecurityGroupEgressRequest::getDestCidrIp()const +{ + return destCidrIp_; +} + +void AuthorizeSecurityGroupEgressRequest::setDestCidrIp(const std::string& destCidrIp) +{ + destCidrIp_ = destCidrIp; + setParameter("DestCidrIp", destCidrIp); +} + +bool AuthorizeSecurityGroupEgressRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void AuthorizeSecurityGroupEgressRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool AuthorizeSecurityGroupEgressRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void AuthorizeSecurityGroupEgressRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool AuthorizeSecurityGroupEgressRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void AuthorizeSecurityGroupEgressRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +long AuthorizeSecurityGroupEgressRequest::getDestGroupOwnerId()const +{ + return destGroupOwnerId_; +} + +void AuthorizeSecurityGroupEgressRequest::setDestGroupOwnerId(long destGroupOwnerId) +{ + destGroupOwnerId_ = destGroupOwnerId; + setParameter("DestGroupOwnerId", std::to_string(destGroupOwnerId)); +} + +std::string AuthorizeSecurityGroupEgressRequest::getRequestId()const +{ + return requestId_; +} + +void AuthorizeSecurityGroupEgressRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ecs/src/model/AuthorizeSecurityGroupEgressResult.cc b/ecs/src/model/AuthorizeSecurityGroupEgressResult.cc new file mode 100644 index 000000000..9456dcb29 --- /dev/null +++ b/ecs/src/model/AuthorizeSecurityGroupEgressResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AuthorizeSecurityGroupEgressResult::AuthorizeSecurityGroupEgressResult() : + ServiceResult() +{} + +AuthorizeSecurityGroupEgressResult::AuthorizeSecurityGroupEgressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AuthorizeSecurityGroupEgressResult::~AuthorizeSecurityGroupEgressResult() +{} + +void AuthorizeSecurityGroupEgressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/AuthorizeSecurityGroupRequest.cc b/ecs/src/model/AuthorizeSecurityGroupRequest.cc new file mode 100644 index 000000000..9e482256e --- /dev/null +++ b/ecs/src/model/AuthorizeSecurityGroupRequest.cc @@ -0,0 +1,446 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AuthorizeSecurityGroupRequest::AuthorizeSecurityGroupRequest() : + EcsRequest("AuthorizeSecurityGroup") +{} + +AuthorizeSecurityGroupRequest::~AuthorizeSecurityGroupRequest() +{} + +std::string AuthorizeSecurityGroupRequest::getNicType()const +{ + return nicType_; +} + +void AuthorizeSecurityGroupRequest::setNicType(const std::string& nicType) +{ + nicType_ = nicType; + setParameter("NicType", nicType); +} + +long AuthorizeSecurityGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AuthorizeSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AuthorizeSecurityGroupRequest::getSourcePortRange()const +{ + return sourcePortRange_; +} + +void AuthorizeSecurityGroupRequest::setSourcePortRange(const std::string& sourcePortRange) +{ + sourcePortRange_ = sourcePortRange; + setParameter("SourcePortRange", sourcePortRange); +} + +std::string AuthorizeSecurityGroupRequest::getClientToken()const +{ + return clientToken_; +} + +void AuthorizeSecurityGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +long AuthorizeSecurityGroupRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void AuthorizeSecurityGroupRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string AuthorizeSecurityGroupRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void AuthorizeSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +bool AuthorizeSecurityGroupRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void AuthorizeSecurityGroupRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string AuthorizeSecurityGroupRequest::getDescription()const +{ + return description_; +} + +void AuthorizeSecurityGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string AuthorizeSecurityGroupRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void AuthorizeSecurityGroupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string AuthorizeSecurityGroupRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void AuthorizeSecurityGroupRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string AuthorizeSecurityGroupRequest::getCallerType()const +{ + return callerType_; +} + +void AuthorizeSecurityGroupRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string AuthorizeSecurityGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AuthorizeSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string AuthorizeSecurityGroupRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void AuthorizeSecurityGroupRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +long AuthorizeSecurityGroupRequest::getSourceGroupOwnerId()const +{ + return sourceGroupOwnerId_; +} + +void AuthorizeSecurityGroupRequest::setSourceGroupOwnerId(long sourceGroupOwnerId) +{ + sourceGroupOwnerId_ = sourceGroupOwnerId; + setParameter("SourceGroupOwnerId", std::to_string(sourceGroupOwnerId)); +} + +std::string AuthorizeSecurityGroupRequest::getSourceGroupOwnerAccount()const +{ + return sourceGroupOwnerAccount_; +} + +void AuthorizeSecurityGroupRequest::setSourceGroupOwnerAccount(const std::string& sourceGroupOwnerAccount) +{ + sourceGroupOwnerAccount_ = sourceGroupOwnerAccount; + setParameter("SourceGroupOwnerAccount", sourceGroupOwnerAccount); +} + +std::string AuthorizeSecurityGroupRequest::getSecurityToken()const +{ + return securityToken_; +} + +void AuthorizeSecurityGroupRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string AuthorizeSecurityGroupRequest::getRegionId()const +{ + return regionId_; +} + +void AuthorizeSecurityGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool AuthorizeSecurityGroupRequest::getEnable()const +{ + return enable_; +} + +void AuthorizeSecurityGroupRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string AuthorizeSecurityGroupRequest::getRequestContent()const +{ + return requestContent_; +} + +void AuthorizeSecurityGroupRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string AuthorizeSecurityGroupRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void AuthorizeSecurityGroupRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string AuthorizeSecurityGroupRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void AuthorizeSecurityGroupRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long AuthorizeSecurityGroupRequest::getCallerUid()const +{ + return callerUid_; +} + +void AuthorizeSecurityGroupRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string AuthorizeSecurityGroupRequest::getPolicy()const +{ + return policy_; +} + +void AuthorizeSecurityGroupRequest::setPolicy(const std::string& policy) +{ + policy_ = policy; + setParameter("Policy", policy); +} + +std::string AuthorizeSecurityGroupRequest::getApp_ip()const +{ + return app_ip_; +} + +void AuthorizeSecurityGroupRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string AuthorizeSecurityGroupRequest::getPortRange()const +{ + return portRange_; +} + +void AuthorizeSecurityGroupRequest::setPortRange(const std::string& portRange) +{ + portRange_ = portRange; + setParameter("PortRange", portRange); +} + +std::string AuthorizeSecurityGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AuthorizeSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AuthorizeSecurityGroupRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void AuthorizeSecurityGroupRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setParameter("IpProtocol", ipProtocol); +} + +std::string AuthorizeSecurityGroupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void AuthorizeSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string AuthorizeSecurityGroupRequest::getSourceCidrIp()const +{ + return sourceCidrIp_; +} + +void AuthorizeSecurityGroupRequest::setSourceCidrIp(const std::string& sourceCidrIp) +{ + sourceCidrIp_ = sourceCidrIp; + setParameter("SourceCidrIp", sourceCidrIp); +} + +std::string AuthorizeSecurityGroupRequest::getCallerBid()const +{ + return callerBid_; +} + +void AuthorizeSecurityGroupRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long AuthorizeSecurityGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void AuthorizeSecurityGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AuthorizeSecurityGroupRequest::getPriority()const +{ + return priority_; +} + +void AuthorizeSecurityGroupRequest::setPriority(const std::string& priority) +{ + priority_ = priority; + setParameter("Priority", priority); +} + +std::string AuthorizeSecurityGroupRequest::getDestCidrIp()const +{ + return destCidrIp_; +} + +void AuthorizeSecurityGroupRequest::setDestCidrIp(const std::string& destCidrIp) +{ + destCidrIp_ = destCidrIp; + setParameter("DestCidrIp", destCidrIp); +} + +bool AuthorizeSecurityGroupRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void AuthorizeSecurityGroupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool AuthorizeSecurityGroupRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void AuthorizeSecurityGroupRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool AuthorizeSecurityGroupRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void AuthorizeSecurityGroupRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string AuthorizeSecurityGroupRequest::getRequestId()const +{ + return requestId_; +} + +void AuthorizeSecurityGroupRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string AuthorizeSecurityGroupRequest::getSourceGroupId()const +{ + return sourceGroupId_; +} + +void AuthorizeSecurityGroupRequest::setSourceGroupId(const std::string& sourceGroupId) +{ + sourceGroupId_ = sourceGroupId; + setParameter("SourceGroupId", sourceGroupId); +} + diff --git a/ecs/src/model/AuthorizeSecurityGroupResult.cc b/ecs/src/model/AuthorizeSecurityGroupResult.cc new file mode 100644 index 000000000..e635eda7b --- /dev/null +++ b/ecs/src/model/AuthorizeSecurityGroupResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +AuthorizeSecurityGroupResult::AuthorizeSecurityGroupResult() : + ServiceResult() +{} + +AuthorizeSecurityGroupResult::AuthorizeSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AuthorizeSecurityGroupResult::~AuthorizeSecurityGroupResult() +{} + +void AuthorizeSecurityGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/BindIpRangeRequest.cc b/ecs/src/model/BindIpRangeRequest.cc new file mode 100644 index 000000000..2dcb498b2 --- /dev/null +++ b/ecs/src/model/BindIpRangeRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +BindIpRangeRequest::BindIpRangeRequest() : + EcsRequest("BindIpRange") +{} + +BindIpRangeRequest::~BindIpRangeRequest() +{} + +std::string BindIpRangeRequest::getIpAddress()const +{ + return ipAddress_; +} + +void BindIpRangeRequest::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; + setParameter("IpAddress", ipAddress); +} + +long BindIpRangeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void BindIpRangeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string BindIpRangeRequest::getInstanceId()const +{ + return instanceId_; +} + +void BindIpRangeRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string BindIpRangeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void BindIpRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string BindIpRangeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void BindIpRangeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long BindIpRangeRequest::getOwnerId()const +{ + return ownerId_; +} + +void BindIpRangeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/BindIpRangeResult.cc b/ecs/src/model/BindIpRangeResult.cc new file mode 100644 index 000000000..dd1b57f4b --- /dev/null +++ b/ecs/src/model/BindIpRangeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +BindIpRangeResult::BindIpRangeResult() : + ServiceResult() +{} + +BindIpRangeResult::BindIpRangeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindIpRangeResult::~BindIpRangeResult() +{} + +void BindIpRangeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/CancelAgreementRequest.cc b/ecs/src/model/CancelAgreementRequest.cc new file mode 100644 index 000000000..98d7b4699 --- /dev/null +++ b/ecs/src/model/CancelAgreementRequest.cc @@ -0,0 +1,281 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CancelAgreementRequest::CancelAgreementRequest() : + EcsRequest("CancelAgreement") +{} + +CancelAgreementRequest::~CancelAgreementRequest() +{} + +std::string CancelAgreementRequest::getApp_ip()const +{ + return app_ip_; +} + +void CancelAgreementRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +long CancelAgreementRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CancelAgreementRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CancelAgreementRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CancelAgreementRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long CancelAgreementRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CancelAgreementRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string CancelAgreementRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CancelAgreementRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +bool CancelAgreementRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CancelAgreementRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string CancelAgreementRequest::getCallerBid()const +{ + return callerBid_; +} + +void CancelAgreementRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long CancelAgreementRequest::getOwnerId()const +{ + return ownerId_; +} + +void CancelAgreementRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CancelAgreementRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CancelAgreementRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CancelAgreementRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CancelAgreementRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CancelAgreementRequest::getCallerType()const +{ + return callerType_; +} + +void CancelAgreementRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool CancelAgreementRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CancelAgreementRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool CancelAgreementRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CancelAgreementRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +std::string CancelAgreementRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CancelAgreementRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool CancelAgreementRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CancelAgreementRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string CancelAgreementRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CancelAgreementRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CancelAgreementRequest::getRequestId()const +{ + return requestId_; +} + +void CancelAgreementRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +bool CancelAgreementRequest::getEnable()const +{ + return enable_; +} + +void CancelAgreementRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string CancelAgreementRequest::getRequestContent()const +{ + return requestContent_; +} + +void CancelAgreementRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string CancelAgreementRequest::getAgreementType()const +{ + return agreementType_; +} + +void CancelAgreementRequest::setAgreementType(const std::string& agreementType) +{ + agreementType_ = agreementType; + setParameter("AgreementType", agreementType); +} + +std::string CancelAgreementRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CancelAgreementRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string CancelAgreementRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CancelAgreementRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long CancelAgreementRequest::getCallerUid()const +{ + return callerUid_; +} + +void CancelAgreementRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/ecs/src/model/CancelAgreementResult.cc b/ecs/src/model/CancelAgreementResult.cc new file mode 100644 index 000000000..9daea92a4 --- /dev/null +++ b/ecs/src/model/CancelAgreementResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CancelAgreementResult::CancelAgreementResult() : + ServiceResult() +{} + +CancelAgreementResult::CancelAgreementResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelAgreementResult::~CancelAgreementResult() +{} + +void CancelAgreementResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/CancelAutoSnapshotPolicyRequest.cc b/ecs/src/model/CancelAutoSnapshotPolicyRequest.cc new file mode 100644 index 000000000..ac23a02c9 --- /dev/null +++ b/ecs/src/model/CancelAutoSnapshotPolicyRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CancelAutoSnapshotPolicyRequest::CancelAutoSnapshotPolicyRequest() : + EcsRequest("CancelAutoSnapshotPolicy") +{} + +CancelAutoSnapshotPolicyRequest::~CancelAutoSnapshotPolicyRequest() +{} + +long CancelAutoSnapshotPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CancelAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CancelAutoSnapshotPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CancelAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CancelAutoSnapshotPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void CancelAutoSnapshotPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CancelAutoSnapshotPolicyRequest::getDiskIds()const +{ + return diskIds_; +} + +void CancelAutoSnapshotPolicyRequest::setDiskIds(const std::string& diskIds) +{ + diskIds_ = diskIds; + setParameter("DiskIds", diskIds); +} + +long CancelAutoSnapshotPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void CancelAutoSnapshotPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/CancelAutoSnapshotPolicyResult.cc b/ecs/src/model/CancelAutoSnapshotPolicyResult.cc new file mode 100644 index 000000000..65ef1c93e --- /dev/null +++ b/ecs/src/model/CancelAutoSnapshotPolicyResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CancelAutoSnapshotPolicyResult::CancelAutoSnapshotPolicyResult() : + ServiceResult() +{} + +CancelAutoSnapshotPolicyResult::CancelAutoSnapshotPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelAutoSnapshotPolicyResult::~CancelAutoSnapshotPolicyResult() +{} + +void CancelAutoSnapshotPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/CancelCopyImageRequest.cc b/ecs/src/model/CancelCopyImageRequest.cc new file mode 100644 index 000000000..b3248f86c --- /dev/null +++ b/ecs/src/model/CancelCopyImageRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CancelCopyImageRequest::CancelCopyImageRequest() : + EcsRequest("CancelCopyImage") +{} + +CancelCopyImageRequest::~CancelCopyImageRequest() +{} + +long CancelCopyImageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CancelCopyImageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CancelCopyImageRequest::getImageId()const +{ + return imageId_; +} + +void CancelCopyImageRequest::setImageId(const std::string& imageId) +{ + imageId_ = imageId; + setParameter("ImageId", imageId); +} + +std::string CancelCopyImageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CancelCopyImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CancelCopyImageRequest::getRegionId()const +{ + return regionId_; +} + +void CancelCopyImageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CancelCopyImageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CancelCopyImageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CancelCopyImageRequest::getOwnerId()const +{ + return ownerId_; +} + +void CancelCopyImageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/CancelCopyImageResult.cc b/ecs/src/model/CancelCopyImageResult.cc new file mode 100644 index 000000000..8baeb6da5 --- /dev/null +++ b/ecs/src/model/CancelCopyImageResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CancelCopyImageResult::CancelCopyImageResult() : + ServiceResult() +{} + +CancelCopyImageResult::CancelCopyImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelCopyImageResult::~CancelCopyImageResult() +{} + +void CancelCopyImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/CancelPhysicalConnectionRequest.cc b/ecs/src/model/CancelPhysicalConnectionRequest.cc new file mode 100644 index 000000000..2d27b84ee --- /dev/null +++ b/ecs/src/model/CancelPhysicalConnectionRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CancelPhysicalConnectionRequest::CancelPhysicalConnectionRequest() : + EcsRequest("CancelPhysicalConnection") +{} + +CancelPhysicalConnectionRequest::~CancelPhysicalConnectionRequest() +{} + +long CancelPhysicalConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CancelPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CancelPhysicalConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void CancelPhysicalConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CancelPhysicalConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CancelPhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CancelPhysicalConnectionRequest::getClientToken()const +{ + return clientToken_; +} + +void CancelPhysicalConnectionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CancelPhysicalConnectionRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void CancelPhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + +std::string CancelPhysicalConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CancelPhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CancelPhysicalConnectionRequest::getUserCidr()const +{ + return userCidr_; +} + +void CancelPhysicalConnectionRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +long CancelPhysicalConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void CancelPhysicalConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/CancelPhysicalConnectionResult.cc b/ecs/src/model/CancelPhysicalConnectionResult.cc new file mode 100644 index 000000000..6b8fd6220 --- /dev/null +++ b/ecs/src/model/CancelPhysicalConnectionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CancelPhysicalConnectionResult::CancelPhysicalConnectionResult() : + ServiceResult() +{} + +CancelPhysicalConnectionResult::CancelPhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelPhysicalConnectionResult::~CancelPhysicalConnectionResult() +{} + +void CancelPhysicalConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/CancelTaskRequest.cc b/ecs/src/model/CancelTaskRequest.cc new file mode 100644 index 000000000..743eecdec --- /dev/null +++ b/ecs/src/model/CancelTaskRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CancelTaskRequest::CancelTaskRequest() : + EcsRequest("CancelTask") +{} + +CancelTaskRequest::~CancelTaskRequest() +{} + +long CancelTaskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CancelTaskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CancelTaskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CancelTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CancelTaskRequest::getRegionId()const +{ + return regionId_; +} + +void CancelTaskRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long CancelTaskRequest::getOwnerId()const +{ + return ownerId_; +} + +void CancelTaskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CancelTaskRequest::getTaskId()const +{ + return taskId_; +} + +void CancelTaskRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/ecs/src/model/CancelTaskResult.cc b/ecs/src/model/CancelTaskResult.cc new file mode 100644 index 000000000..54f0770dd --- /dev/null +++ b/ecs/src/model/CancelTaskResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CancelTaskResult::CancelTaskResult() : + ServiceResult() +{} + +CancelTaskResult::CancelTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelTaskResult::~CancelTaskResult() +{} + +void CancelTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/CheckAutoSnapshotPolicyRequest.cc b/ecs/src/model/CheckAutoSnapshotPolicyRequest.cc new file mode 100644 index 000000000..c1be1c5e8 --- /dev/null +++ b/ecs/src/model/CheckAutoSnapshotPolicyRequest.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CheckAutoSnapshotPolicyRequest::CheckAutoSnapshotPolicyRequest() : + EcsRequest("CheckAutoSnapshotPolicy") +{} + +CheckAutoSnapshotPolicyRequest::~CheckAutoSnapshotPolicyRequest() +{} + +bool CheckAutoSnapshotPolicyRequest::getDataDiskPolicyEnabled()const +{ + return dataDiskPolicyEnabled_; +} + +void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyEnabled(bool dataDiskPolicyEnabled) +{ + dataDiskPolicyEnabled_ = dataDiskPolicyEnabled; + setParameter("DataDiskPolicyEnabled", std::to_string(dataDiskPolicyEnabled)); +} + +long CheckAutoSnapshotPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CheckAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int CheckAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionDays()const +{ + return dataDiskPolicyRetentionDays_; +} + +void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionDays(int dataDiskPolicyRetentionDays) +{ + dataDiskPolicyRetentionDays_ = dataDiskPolicyRetentionDays; + setParameter("DataDiskPolicyRetentionDays", std::to_string(dataDiskPolicyRetentionDays)); +} + +std::string CheckAutoSnapshotPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CheckAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +bool CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionLastWeek()const +{ + return systemDiskPolicyRetentionLastWeek_; +} + +void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionLastWeek(bool systemDiskPolicyRetentionLastWeek) +{ + systemDiskPolicyRetentionLastWeek_ = systemDiskPolicyRetentionLastWeek; + setParameter("SystemDiskPolicyRetentionLastWeek", std::to_string(systemDiskPolicyRetentionLastWeek)); +} + +std::string CheckAutoSnapshotPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CheckAutoSnapshotPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyTimePeriod()const +{ + return systemDiskPolicyTimePeriod_; +} + +void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyTimePeriod(int systemDiskPolicyTimePeriod) +{ + systemDiskPolicyTimePeriod_ = systemDiskPolicyTimePeriod; + setParameter("SystemDiskPolicyTimePeriod", std::to_string(systemDiskPolicyTimePeriod)); +} + +long CheckAutoSnapshotPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void CheckAutoSnapshotPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool CheckAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionLastWeek()const +{ + return dataDiskPolicyRetentionLastWeek_; +} + +void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionLastWeek(bool dataDiskPolicyRetentionLastWeek) +{ + dataDiskPolicyRetentionLastWeek_ = dataDiskPolicyRetentionLastWeek; + setParameter("DataDiskPolicyRetentionLastWeek", std::to_string(dataDiskPolicyRetentionLastWeek)); +} + +int CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionDays()const +{ + return systemDiskPolicyRetentionDays_; +} + +void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionDays(int systemDiskPolicyRetentionDays) +{ + systemDiskPolicyRetentionDays_ = systemDiskPolicyRetentionDays; + setParameter("SystemDiskPolicyRetentionDays", std::to_string(systemDiskPolicyRetentionDays)); +} + +int CheckAutoSnapshotPolicyRequest::getDataDiskPolicyTimePeriod()const +{ + return dataDiskPolicyTimePeriod_; +} + +void CheckAutoSnapshotPolicyRequest::setDataDiskPolicyTimePeriod(int dataDiskPolicyTimePeriod) +{ + dataDiskPolicyTimePeriod_ = dataDiskPolicyTimePeriod; + setParameter("DataDiskPolicyTimePeriod", std::to_string(dataDiskPolicyTimePeriod)); +} + +bool CheckAutoSnapshotPolicyRequest::getSystemDiskPolicyEnabled()const +{ + return systemDiskPolicyEnabled_; +} + +void CheckAutoSnapshotPolicyRequest::setSystemDiskPolicyEnabled(bool systemDiskPolicyEnabled) +{ + systemDiskPolicyEnabled_ = systemDiskPolicyEnabled; + setParameter("SystemDiskPolicyEnabled", std::to_string(systemDiskPolicyEnabled)); +} + diff --git a/ecs/src/model/CheckAutoSnapshotPolicyResult.cc b/ecs/src/model/CheckAutoSnapshotPolicyResult.cc new file mode 100644 index 000000000..89087218d --- /dev/null +++ b/ecs/src/model/CheckAutoSnapshotPolicyResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CheckAutoSnapshotPolicyResult::CheckAutoSnapshotPolicyResult() : + ServiceResult() +{} + +CheckAutoSnapshotPolicyResult::CheckAutoSnapshotPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckAutoSnapshotPolicyResult::~CheckAutoSnapshotPolicyResult() +{} + +void CheckAutoSnapshotPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + autoSnapshotOccupation_ = std::stoi(value["AutoSnapshotOccupation"].asString()); + isPermittedModify_ = value["IsPermittedModify"].asString(); + +} + +int CheckAutoSnapshotPolicyResult::getAutoSnapshotOccupation()const +{ + return autoSnapshotOccupation_; +} + +void CheckAutoSnapshotPolicyResult::setAutoSnapshotOccupation(int autoSnapshotOccupation) +{ + autoSnapshotOccupation_ = autoSnapshotOccupation; +} + +std::string CheckAutoSnapshotPolicyResult::getIsPermittedModify()const +{ + return isPermittedModify_; +} + +void CheckAutoSnapshotPolicyResult::setIsPermittedModify(const std::string& isPermittedModify) +{ + isPermittedModify_ = isPermittedModify; +} + diff --git a/ecs/src/model/CheckDiskEnableAutoSnapshotValidationRequest.cc b/ecs/src/model/CheckDiskEnableAutoSnapshotValidationRequest.cc new file mode 100644 index 000000000..15d8f9351 --- /dev/null +++ b/ecs/src/model/CheckDiskEnableAutoSnapshotValidationRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CheckDiskEnableAutoSnapshotValidationRequest::CheckDiskEnableAutoSnapshotValidationRequest() : + EcsRequest("CheckDiskEnableAutoSnapshotValidation") +{} + +CheckDiskEnableAutoSnapshotValidationRequest::~CheckDiskEnableAutoSnapshotValidationRequest() +{} + +long CheckDiskEnableAutoSnapshotValidationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CheckDiskEnableAutoSnapshotValidationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CheckDiskEnableAutoSnapshotValidationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CheckDiskEnableAutoSnapshotValidationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CheckDiskEnableAutoSnapshotValidationRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CheckDiskEnableAutoSnapshotValidationRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CheckDiskEnableAutoSnapshotValidationRequest::getDiskIds()const +{ + return diskIds_; +} + +void CheckDiskEnableAutoSnapshotValidationRequest::setDiskIds(const std::string& diskIds) +{ + diskIds_ = diskIds; + setParameter("DiskIds", diskIds); +} + +long CheckDiskEnableAutoSnapshotValidationRequest::getOwnerId()const +{ + return ownerId_; +} + +void CheckDiskEnableAutoSnapshotValidationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/CheckDiskEnableAutoSnapshotValidationResult.cc b/ecs/src/model/CheckDiskEnableAutoSnapshotValidationResult.cc new file mode 100644 index 000000000..e1c08e742 --- /dev/null +++ b/ecs/src/model/CheckDiskEnableAutoSnapshotValidationResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CheckDiskEnableAutoSnapshotValidationResult::CheckDiskEnableAutoSnapshotValidationResult() : + ServiceResult() +{} + +CheckDiskEnableAutoSnapshotValidationResult::CheckDiskEnableAutoSnapshotValidationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckDiskEnableAutoSnapshotValidationResult::~CheckDiskEnableAutoSnapshotValidationResult() +{} + +void CheckDiskEnableAutoSnapshotValidationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + isPermitted_ = value["IsPermitted"].asString(); + autoSnapshotOccupation_ = std::stoi(value["AutoSnapshotOccupation"].asString()); + +} + +int CheckDiskEnableAutoSnapshotValidationResult::getAutoSnapshotOccupation()const +{ + return autoSnapshotOccupation_; +} + +void CheckDiskEnableAutoSnapshotValidationResult::setAutoSnapshotOccupation(int autoSnapshotOccupation) +{ + autoSnapshotOccupation_ = autoSnapshotOccupation; +} + +std::string CheckDiskEnableAutoSnapshotValidationResult::getIsPermitted()const +{ + return isPermitted_; +} + +void CheckDiskEnableAutoSnapshotValidationResult::setIsPermitted(const std::string& isPermitted) +{ + isPermitted_ = isPermitted; +} + diff --git a/ecs/src/model/ConnectRouterInterfaceRequest.cc b/ecs/src/model/ConnectRouterInterfaceRequest.cc new file mode 100644 index 000000000..d983e0bb5 --- /dev/null +++ b/ecs/src/model/ConnectRouterInterfaceRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ConnectRouterInterfaceRequest::ConnectRouterInterfaceRequest() : + EcsRequest("ConnectRouterInterface") +{} + +ConnectRouterInterfaceRequest::~ConnectRouterInterfaceRequest() +{} + +long ConnectRouterInterfaceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ConnectRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ConnectRouterInterfaceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ConnectRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ConnectRouterInterfaceRequest::getRegionId()const +{ + return regionId_; +} + +void ConnectRouterInterfaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long ConnectRouterInterfaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void ConnectRouterInterfaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ConnectRouterInterfaceRequest::getRouterInterfaceId()const +{ + return routerInterfaceId_; +} + +void ConnectRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) +{ + routerInterfaceId_ = routerInterfaceId; + setParameter("RouterInterfaceId", routerInterfaceId); +} + diff --git a/ecs/src/model/ConnectRouterInterfaceResult.cc b/ecs/src/model/ConnectRouterInterfaceResult.cc new file mode 100644 index 000000000..9120c5d35 --- /dev/null +++ b/ecs/src/model/ConnectRouterInterfaceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ConnectRouterInterfaceResult::ConnectRouterInterfaceResult() : + ServiceResult() +{} + +ConnectRouterInterfaceResult::ConnectRouterInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConnectRouterInterfaceResult::~ConnectRouterInterfaceResult() +{} + +void ConnectRouterInterfaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ConvertNatPublicIpToEipRequest.cc b/ecs/src/model/ConvertNatPublicIpToEipRequest.cc new file mode 100644 index 000000000..d93f54255 --- /dev/null +++ b/ecs/src/model/ConvertNatPublicIpToEipRequest.cc @@ -0,0 +1,281 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ConvertNatPublicIpToEipRequest::ConvertNatPublicIpToEipRequest() : + EcsRequest("ConvertNatPublicIpToEip") +{} + +ConvertNatPublicIpToEipRequest::~ConvertNatPublicIpToEipRequest() +{} + +std::string ConvertNatPublicIpToEipRequest::getApp_ip()const +{ + return app_ip_; +} + +void ConvertNatPublicIpToEipRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +long ConvertNatPublicIpToEipRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ConvertNatPublicIpToEipRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ConvertNatPublicIpToEipRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ConvertNatPublicIpToEipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long ConvertNatPublicIpToEipRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ConvertNatPublicIpToEipRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ConvertNatPublicIpToEipRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ConvertNatPublicIpToEipRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string ConvertNatPublicIpToEipRequest::getCallerBid()const +{ + return callerBid_; +} + +void ConvertNatPublicIpToEipRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long ConvertNatPublicIpToEipRequest::getOwnerId()const +{ + return ownerId_; +} + +void ConvertNatPublicIpToEipRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ConvertNatPublicIpToEipRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ConvertNatPublicIpToEipRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ConvertNatPublicIpToEipRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void ConvertNatPublicIpToEipRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string ConvertNatPublicIpToEipRequest::getCallerType()const +{ + return callerType_; +} + +void ConvertNatPublicIpToEipRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool ConvertNatPublicIpToEipRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ConvertNatPublicIpToEipRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool ConvertNatPublicIpToEipRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ConvertNatPublicIpToEipRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +std::string ConvertNatPublicIpToEipRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ConvertNatPublicIpToEipRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool ConvertNatPublicIpToEipRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ConvertNatPublicIpToEipRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string ConvertNatPublicIpToEipRequest::getInstanceId()const +{ + return instanceId_; +} + +void ConvertNatPublicIpToEipRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ConvertNatPublicIpToEipRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ConvertNatPublicIpToEipRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ConvertNatPublicIpToEipRequest::getRegionId()const +{ + return regionId_; +} + +void ConvertNatPublicIpToEipRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ConvertNatPublicIpToEipRequest::getRequestId()const +{ + return requestId_; +} + +void ConvertNatPublicIpToEipRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +bool ConvertNatPublicIpToEipRequest::getEnable()const +{ + return enable_; +} + +void ConvertNatPublicIpToEipRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string ConvertNatPublicIpToEipRequest::getRequestContent()const +{ + return requestContent_; +} + +void ConvertNatPublicIpToEipRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string ConvertNatPublicIpToEipRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void ConvertNatPublicIpToEipRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string ConvertNatPublicIpToEipRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void ConvertNatPublicIpToEipRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long ConvertNatPublicIpToEipRequest::getCallerUid()const +{ + return callerUid_; +} + +void ConvertNatPublicIpToEipRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/ecs/src/model/ConvertNatPublicIpToEipResult.cc b/ecs/src/model/ConvertNatPublicIpToEipResult.cc new file mode 100644 index 000000000..daaa2e471 --- /dev/null +++ b/ecs/src/model/ConvertNatPublicIpToEipResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ConvertNatPublicIpToEipResult::ConvertNatPublicIpToEipResult() : + ServiceResult() +{} + +ConvertNatPublicIpToEipResult::ConvertNatPublicIpToEipResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConvertNatPublicIpToEipResult::~ConvertNatPublicIpToEipResult() +{} + +void ConvertNatPublicIpToEipResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/CopyImageRequest.cc b/ecs/src/model/CopyImageRequest.cc new file mode 100644 index 000000000..9ea96c8ef --- /dev/null +++ b/ecs/src/model/CopyImageRequest.cc @@ -0,0 +1,248 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CopyImageRequest::CopyImageRequest() : + EcsRequest("CopyImage") +{} + +CopyImageRequest::~CopyImageRequest() +{} + +std::string CopyImageRequest::getTag4Value()const +{ + return tag4Value_; +} + +void CopyImageRequest::setTag4Value(const std::string& tag4Value) +{ + tag4Value_ = tag4Value; + setParameter("Tag4Value", tag4Value); +} + +long CopyImageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CopyImageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CopyImageRequest::getImageId()const +{ + return imageId_; +} + +void CopyImageRequest::setImageId(const std::string& imageId) +{ + imageId_ = imageId; + setParameter("ImageId", imageId); +} + +std::string CopyImageRequest::getTag2Key()const +{ + return tag2Key_; +} + +void CopyImageRequest::setTag2Key(const std::string& tag2Key) +{ + tag2Key_ = tag2Key; + setParameter("Tag2Key", tag2Key); +} + +std::string CopyImageRequest::getTag5Key()const +{ + return tag5Key_; +} + +void CopyImageRequest::setTag5Key(const std::string& tag5Key) +{ + tag5Key_ = tag5Key; + setParameter("Tag5Key", tag5Key); +} + +std::string CopyImageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CopyImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CopyImageRequest::getDestinationImageName()const +{ + return destinationImageName_; +} + +void CopyImageRequest::setDestinationImageName(const std::string& destinationImageName) +{ + destinationImageName_ = destinationImageName; + setParameter("DestinationImageName", destinationImageName); +} + +std::string CopyImageRequest::getDestinationRegionId()const +{ + return destinationRegionId_; +} + +void CopyImageRequest::setDestinationRegionId(const std::string& destinationRegionId) +{ + destinationRegionId_ = destinationRegionId; + setParameter("DestinationRegionId", destinationRegionId); +} + +std::string CopyImageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CopyImageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CopyImageRequest::getTag3Key()const +{ + return tag3Key_; +} + +void CopyImageRequest::setTag3Key(const std::string& tag3Key) +{ + tag3Key_ = tag3Key; + setParameter("Tag3Key", tag3Key); +} + +long CopyImageRequest::getOwnerId()const +{ + return ownerId_; +} + +void CopyImageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CopyImageRequest::getTag5Value()const +{ + return tag5Value_; +} + +void CopyImageRequest::setTag5Value(const std::string& tag5Value) +{ + tag5Value_ = tag5Value; + setParameter("Tag5Value", tag5Value); +} + +std::string CopyImageRequest::getTag1Key()const +{ + return tag1Key_; +} + +void CopyImageRequest::setTag1Key(const std::string& tag1Key) +{ + tag1Key_ = tag1Key; + setParameter("Tag1Key", tag1Key); +} + +std::string CopyImageRequest::getTag1Value()const +{ + return tag1Value_; +} + +void CopyImageRequest::setTag1Value(const std::string& tag1Value) +{ + tag1Value_ = tag1Value; + setParameter("Tag1Value", tag1Value); +} + +bool CopyImageRequest::getEncrypted()const +{ + return encrypted_; +} + +void CopyImageRequest::setEncrypted(bool encrypted) +{ + encrypted_ = encrypted; + setParameter("Encrypted", std::to_string(encrypted)); +} + +std::string CopyImageRequest::getRegionId()const +{ + return regionId_; +} + +void CopyImageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CopyImageRequest::getTag2Value()const +{ + return tag2Value_; +} + +void CopyImageRequest::setTag2Value(const std::string& tag2Value) +{ + tag2Value_ = tag2Value; + setParameter("Tag2Value", tag2Value); +} + +std::string CopyImageRequest::getTag4Key()const +{ + return tag4Key_; +} + +void CopyImageRequest::setTag4Key(const std::string& tag4Key) +{ + tag4Key_ = tag4Key; + setParameter("Tag4Key", tag4Key); +} + +std::string CopyImageRequest::getDestinationDescription()const +{ + return destinationDescription_; +} + +void CopyImageRequest::setDestinationDescription(const std::string& destinationDescription) +{ + destinationDescription_ = destinationDescription; + setParameter("DestinationDescription", destinationDescription); +} + +std::string CopyImageRequest::getTag3Value()const +{ + return tag3Value_; +} + +void CopyImageRequest::setTag3Value(const std::string& tag3Value) +{ + tag3Value_ = tag3Value; + setParameter("Tag3Value", tag3Value); +} + diff --git a/ecs/src/model/CopyImageResult.cc b/ecs/src/model/CopyImageResult.cc new file mode 100644 index 000000000..c9c00def5 --- /dev/null +++ b/ecs/src/model/CopyImageResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CopyImageResult::CopyImageResult() : + ServiceResult() +{} + +CopyImageResult::CopyImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CopyImageResult::~CopyImageResult() +{} + +void CopyImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + imageId_ = value["ImageId"].asString(); + +} + +std::string CopyImageResult::getImageId()const +{ + return imageId_; +} + +void CopyImageResult::setImageId(const std::string& imageId) +{ + imageId_ = imageId; +} + diff --git a/ecs/src/model/CreateAutoSnapshotPolicyRequest.cc b/ecs/src/model/CreateAutoSnapshotPolicyRequest.cc new file mode 100644 index 000000000..ef6b8bee4 --- /dev/null +++ b/ecs/src/model/CreateAutoSnapshotPolicyRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateAutoSnapshotPolicyRequest::CreateAutoSnapshotPolicyRequest() : + EcsRequest("CreateAutoSnapshotPolicy") +{} + +CreateAutoSnapshotPolicyRequest::~CreateAutoSnapshotPolicyRequest() +{} + +long CreateAutoSnapshotPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateAutoSnapshotPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateAutoSnapshotPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void CreateAutoSnapshotPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateAutoSnapshotPolicyRequest::getTimePoints()const +{ + return timePoints_; +} + +void CreateAutoSnapshotPolicyRequest::setTimePoints(const std::string& timePoints) +{ + timePoints_ = timePoints; + setParameter("TimePoints", timePoints); +} + +int CreateAutoSnapshotPolicyRequest::getRetentionDays()const +{ + return retentionDays_; +} + +void CreateAutoSnapshotPolicyRequest::setRetentionDays(int retentionDays) +{ + retentionDays_ = retentionDays; + setParameter("RetentionDays", std::to_string(retentionDays)); +} + +long CreateAutoSnapshotPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateAutoSnapshotPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateAutoSnapshotPolicyRequest::getRepeatWeekdays()const +{ + return repeatWeekdays_; +} + +void CreateAutoSnapshotPolicyRequest::setRepeatWeekdays(const std::string& repeatWeekdays) +{ + repeatWeekdays_ = repeatWeekdays; + setParameter("RepeatWeekdays", repeatWeekdays); +} + +std::string CreateAutoSnapshotPolicyRequest::getAutoSnapshotPolicyName()const +{ + return autoSnapshotPolicyName_; +} + +void CreateAutoSnapshotPolicyRequest::setAutoSnapshotPolicyName(const std::string& autoSnapshotPolicyName) +{ + autoSnapshotPolicyName_ = autoSnapshotPolicyName; + setParameter("AutoSnapshotPolicyName", autoSnapshotPolicyName); +} + diff --git a/ecs/src/model/CreateAutoSnapshotPolicyResult.cc b/ecs/src/model/CreateAutoSnapshotPolicyResult.cc new file mode 100644 index 000000000..b913fbfd0 --- /dev/null +++ b/ecs/src/model/CreateAutoSnapshotPolicyResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateAutoSnapshotPolicyResult::CreateAutoSnapshotPolicyResult() : + ServiceResult() +{} + +CreateAutoSnapshotPolicyResult::CreateAutoSnapshotPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAutoSnapshotPolicyResult::~CreateAutoSnapshotPolicyResult() +{} + +void CreateAutoSnapshotPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + autoSnapshotPolicyId_ = value["AutoSnapshotPolicyId"].asString(); + +} + +std::string CreateAutoSnapshotPolicyResult::getAutoSnapshotPolicyId()const +{ + return autoSnapshotPolicyId_; +} + +void CreateAutoSnapshotPolicyResult::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId) +{ + autoSnapshotPolicyId_ = autoSnapshotPolicyId; +} + diff --git a/ecs/src/model/CreateCommandRequest.cc b/ecs/src/model/CreateCommandRequest.cc new file mode 100644 index 000000000..96642e185 --- /dev/null +++ b/ecs/src/model/CreateCommandRequest.cc @@ -0,0 +1,358 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateCommandRequest::CreateCommandRequest() : + EcsRequest("CreateCommand") +{} + +CreateCommandRequest::~CreateCommandRequest() +{} + +long CreateCommandRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateCommandRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long CreateCommandRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateCommandRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string CreateCommandRequest::getWorkingDir()const +{ + return workingDir_; +} + +void CreateCommandRequest::setWorkingDir(const std::string& workingDir) +{ + workingDir_ = workingDir; + setParameter("WorkingDir", workingDir); +} + +bool CreateCommandRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateCommandRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string CreateCommandRequest::getDescription()const +{ + return description_; +} + +void CreateCommandRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateCommandRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateCommandRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateCommandRequest::getType()const +{ + return type_; +} + +void CreateCommandRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string CreateCommandRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CreateCommandRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CreateCommandRequest::getCallerType()const +{ + return callerType_; +} + +void CreateCommandRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string CreateCommandRequest::getCommandContent()const +{ + return commandContent_; +} + +void CreateCommandRequest::setCommandContent(const std::string& commandContent) +{ + commandContent_ = commandContent; + setParameter("CommandContent", commandContent); +} + +long CreateCommandRequest::getTimeout()const +{ + return timeout_; +} + +void CreateCommandRequest::setTimeout(long timeout) +{ + timeout_ = timeout; + setParameter("Timeout", std::to_string(timeout)); +} + +std::string CreateCommandRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateCommandRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateCommandRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CreateCommandRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string CreateCommandRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateCommandRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateCommandRequest::getRegionId()const +{ + return regionId_; +} + +void CreateCommandRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool CreateCommandRequest::getEnable()const +{ + return enable_; +} + +void CreateCommandRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string CreateCommandRequest::getRequestContent()const +{ + return requestContent_; +} + +void CreateCommandRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string CreateCommandRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CreateCommandRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string CreateCommandRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CreateCommandRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long CreateCommandRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateCommandRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateCommandRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateCommandRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string CreateCommandRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateCommandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateCommandRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateCommandRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateCommandRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateCommandRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long CreateCommandRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateCommandRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool CreateCommandRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateCommandRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool CreateCommandRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateCommandRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool CreateCommandRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateCommandRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string CreateCommandRequest::getRequestId()const +{ + return requestId_; +} + +void CreateCommandRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string CreateCommandRequest::getName()const +{ + return name_; +} + +void CreateCommandRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/ecs/src/model/CreateCommandResult.cc b/ecs/src/model/CreateCommandResult.cc new file mode 100644 index 000000000..16e0fd708 --- /dev/null +++ b/ecs/src/model/CreateCommandResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateCommandResult::CreateCommandResult() : + ServiceResult() +{} + +CreateCommandResult::CreateCommandResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCommandResult::~CreateCommandResult() +{} + +void CreateCommandResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + commandId_ = value["CommandId"].asString(); + +} + +std::string CreateCommandResult::getCommandId()const +{ + return commandId_; +} + +void CreateCommandResult::setCommandId(const std::string& commandId) +{ + commandId_ = commandId; +} + diff --git a/ecs/src/model/CreateDeploymentSetRequest.cc b/ecs/src/model/CreateDeploymentSetRequest.cc new file mode 100644 index 000000000..b3d937f71 --- /dev/null +++ b/ecs/src/model/CreateDeploymentSetRequest.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateDeploymentSetRequest::CreateDeploymentSetRequest() : + EcsRequest("CreateDeploymentSet") +{} + +CreateDeploymentSetRequest::~CreateDeploymentSetRequest() +{} + +long CreateDeploymentSetRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateDeploymentSetRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateDeploymentSetRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateDeploymentSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateDeploymentSetRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateDeploymentSetRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateDeploymentSetRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateDeploymentSetRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateDeploymentSetRequest::getDescription()const +{ + return description_; +} + +void CreateDeploymentSetRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateDeploymentSetRequest::getDeploymentSetName()const +{ + return deploymentSetName_; +} + +void CreateDeploymentSetRequest::setDeploymentSetName(const std::string& deploymentSetName) +{ + deploymentSetName_ = deploymentSetName; + setParameter("DeploymentSetName", deploymentSetName); +} + +long CreateDeploymentSetRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateDeploymentSetRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateDeploymentSetRequest::getRegionId()const +{ + return regionId_; +} + +void CreateDeploymentSetRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateDeploymentSetRequest::getGranularity()const +{ + return granularity_; +} + +void CreateDeploymentSetRequest::setGranularity(const std::string& granularity) +{ + granularity_ = granularity; + setParameter("Granularity", granularity); +} + +std::string CreateDeploymentSetRequest::getDomain()const +{ + return domain_; +} + +void CreateDeploymentSetRequest::setDomain(const std::string& domain) +{ + domain_ = domain; + setParameter("Domain", domain); +} + +std::string CreateDeploymentSetRequest::getZoneId()const +{ + return zoneId_; +} + +void CreateDeploymentSetRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string CreateDeploymentSetRequest::getStrategy()const +{ + return strategy_; +} + +void CreateDeploymentSetRequest::setStrategy(const std::string& strategy) +{ + strategy_ = strategy; + setParameter("Strategy", strategy); +} + diff --git a/ecs/src/model/CreateDeploymentSetResult.cc b/ecs/src/model/CreateDeploymentSetResult.cc new file mode 100644 index 000000000..0f4884072 --- /dev/null +++ b/ecs/src/model/CreateDeploymentSetResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateDeploymentSetResult::CreateDeploymentSetResult() : + ServiceResult() +{} + +CreateDeploymentSetResult::CreateDeploymentSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDeploymentSetResult::~CreateDeploymentSetResult() +{} + +void CreateDeploymentSetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + deploymentSetId_ = value["DeploymentSetId"].asString(); + +} + +std::string CreateDeploymentSetResult::getDeploymentSetId()const +{ + return deploymentSetId_; +} + +void CreateDeploymentSetResult::setDeploymentSetId(const std::string& deploymentSetId) +{ + deploymentSetId_ = deploymentSetId; +} + diff --git a/ecs/src/model/CreateDiskRequest.cc b/ecs/src/model/CreateDiskRequest.cc new file mode 100644 index 000000000..e32462041 --- /dev/null +++ b/ecs/src/model/CreateDiskRequest.cc @@ -0,0 +1,292 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateDiskRequest::CreateDiskRequest() : + EcsRequest("CreateDisk") +{} + +CreateDiskRequest::~CreateDiskRequest() +{} + +std::string CreateDiskRequest::getTag4Value()const +{ + return tag4Value_; +} + +void CreateDiskRequest::setTag4Value(const std::string& tag4Value) +{ + tag4Value_ = tag4Value; + setParameter("Tag4Value", tag4Value); +} + +long CreateDiskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateDiskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateDiskRequest::getSnapshotId()const +{ + return snapshotId_; +} + +void CreateDiskRequest::setSnapshotId(const std::string& snapshotId) +{ + snapshotId_ = snapshotId; + setParameter("SnapshotId", snapshotId); +} + +std::string CreateDiskRequest::getTag2Key()const +{ + return tag2Key_; +} + +void CreateDiskRequest::setTag2Key(const std::string& tag2Key) +{ + tag2Key_ = tag2Key; + setParameter("Tag2Key", tag2Key); +} + +std::string CreateDiskRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateDiskRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateDiskRequest::getDescription()const +{ + return description_; +} + +void CreateDiskRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateDiskRequest::getTag3Key()const +{ + return tag3Key_; +} + +void CreateDiskRequest::setTag3Key(const std::string& tag3Key) +{ + tag3Key_ = tag3Key; + setParameter("Tag3Key", tag3Key); +} + +std::string CreateDiskRequest::getDiskName()const +{ + return diskName_; +} + +void CreateDiskRequest::setDiskName(const std::string& diskName) +{ + diskName_ = diskName; + setParameter("DiskName", diskName); +} + +std::string CreateDiskRequest::getTag1Value()const +{ + return tag1Value_; +} + +void CreateDiskRequest::setTag1Value(const std::string& tag1Value) +{ + tag1Value_ = tag1Value; + setParameter("Tag1Value", tag1Value); +} + +std::string CreateDiskRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CreateDiskRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string CreateDiskRequest::getRegionId()const +{ + return regionId_; +} + +void CreateDiskRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateDiskRequest::getDiskCategory()const +{ + return diskCategory_; +} + +void CreateDiskRequest::setDiskCategory(const std::string& diskCategory) +{ + diskCategory_ = diskCategory; + setParameter("DiskCategory", diskCategory); +} + +std::string CreateDiskRequest::getTag3Value()const +{ + return tag3Value_; +} + +void CreateDiskRequest::setTag3Value(const std::string& tag3Value) +{ + tag3Value_ = tag3Value; + setParameter("Tag3Value", tag3Value); +} + +std::string CreateDiskRequest::getTag5Key()const +{ + return tag5Key_; +} + +void CreateDiskRequest::setTag5Key(const std::string& tag5Key) +{ + tag5Key_ = tag5Key; + setParameter("Tag5Key", tag5Key); +} + +std::string CreateDiskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateDiskRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateDiskRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CreateDiskRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateDiskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateDiskRequest::getTag5Value()const +{ + return tag5Value_; +} + +void CreateDiskRequest::setTag5Value(const std::string& tag5Value) +{ + tag5Value_ = tag5Value; + setParameter("Tag5Value", tag5Value); +} + +std::string CreateDiskRequest::getTag1Key()const +{ + return tag1Key_; +} + +void CreateDiskRequest::setTag1Key(const std::string& tag1Key) +{ + tag1Key_ = tag1Key; + setParameter("Tag1Key", tag1Key); +} + +int CreateDiskRequest::getSize()const +{ + return size_; +} + +void CreateDiskRequest::setSize(int size) +{ + size_ = size; + setParameter("Size", std::to_string(size)); +} + +bool CreateDiskRequest::getEncrypted()const +{ + return encrypted_; +} + +void CreateDiskRequest::setEncrypted(bool encrypted) +{ + encrypted_ = encrypted; + setParameter("Encrypted", std::to_string(encrypted)); +} + +std::string CreateDiskRequest::getTag2Value()const +{ + return tag2Value_; +} + +void CreateDiskRequest::setTag2Value(const std::string& tag2Value) +{ + tag2Value_ = tag2Value; + setParameter("Tag2Value", tag2Value); +} + +std::string CreateDiskRequest::getZoneId()const +{ + return zoneId_; +} + +void CreateDiskRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string CreateDiskRequest::getTag4Key()const +{ + return tag4Key_; +} + +void CreateDiskRequest::setTag4Key(const std::string& tag4Key) +{ + tag4Key_ = tag4Key; + setParameter("Tag4Key", tag4Key); +} + diff --git a/ecs/src/model/CreateDiskResult.cc b/ecs/src/model/CreateDiskResult.cc new file mode 100644 index 000000000..32887fafa --- /dev/null +++ b/ecs/src/model/CreateDiskResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateDiskResult::CreateDiskResult() : + ServiceResult() +{} + +CreateDiskResult::CreateDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDiskResult::~CreateDiskResult() +{} + +void CreateDiskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + diskId_ = value["DiskId"].asString(); + +} + +std::string CreateDiskResult::getDiskId()const +{ + return diskId_; +} + +void CreateDiskResult::setDiskId(const std::string& diskId) +{ + diskId_ = diskId; +} + diff --git a/ecs/src/model/CreateForwardEntryRequest.cc b/ecs/src/model/CreateForwardEntryRequest.cc new file mode 100644 index 000000000..6eff88c0b --- /dev/null +++ b/ecs/src/model/CreateForwardEntryRequest.cc @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateForwardEntryRequest::CreateForwardEntryRequest() : + EcsRequest("CreateForwardEntry") +{} + +CreateForwardEntryRequest::~CreateForwardEntryRequest() +{} + +long CreateForwardEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateForwardEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateForwardEntryRequest::getRegionId()const +{ + return regionId_; +} + +void CreateForwardEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateForwardEntryRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void CreateForwardEntryRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setParameter("IpProtocol", ipProtocol); +} + +std::string CreateForwardEntryRequest::getInternalPort()const +{ + return internalPort_; +} + +void CreateForwardEntryRequest::setInternalPort(const std::string& internalPort) +{ + internalPort_ = internalPort; + setParameter("InternalPort", internalPort); +} + +std::string CreateForwardEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateForwardEntryRequest::getForwardTableId()const +{ + return forwardTableId_; +} + +void CreateForwardEntryRequest::setForwardTableId(const std::string& forwardTableId) +{ + forwardTableId_ = forwardTableId; + setParameter("ForwardTableId", forwardTableId); +} + +long CreateForwardEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateForwardEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateForwardEntryRequest::getExternalIp()const +{ + return externalIp_; +} + +void CreateForwardEntryRequest::setExternalIp(const std::string& externalIp) +{ + externalIp_ = externalIp; + setParameter("ExternalIp", externalIp); +} + +std::string CreateForwardEntryRequest::getExternalPort()const +{ + return externalPort_; +} + +void CreateForwardEntryRequest::setExternalPort(const std::string& externalPort) +{ + externalPort_ = externalPort; + setParameter("ExternalPort", externalPort); +} + +std::string CreateForwardEntryRequest::getInternalIp()const +{ + return internalIp_; +} + +void CreateForwardEntryRequest::setInternalIp(const std::string& internalIp) +{ + internalIp_ = internalIp; + setParameter("InternalIp", internalIp); +} + diff --git a/ecs/src/model/CreateForwardEntryResult.cc b/ecs/src/model/CreateForwardEntryResult.cc new file mode 100644 index 000000000..0371b89ed --- /dev/null +++ b/ecs/src/model/CreateForwardEntryResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateForwardEntryResult::CreateForwardEntryResult() : + ServiceResult() +{} + +CreateForwardEntryResult::CreateForwardEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateForwardEntryResult::~CreateForwardEntryResult() +{} + +void CreateForwardEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + forwardEntryId_ = value["ForwardEntryId"].asString(); + +} + +std::string CreateForwardEntryResult::getForwardEntryId()const +{ + return forwardEntryId_; +} + +void CreateForwardEntryResult::setForwardEntryId(const std::string& forwardEntryId) +{ + forwardEntryId_ = forwardEntryId; +} + diff --git a/ecs/src/model/CreateHaVipRequest.cc b/ecs/src/model/CreateHaVipRequest.cc new file mode 100644 index 000000000..7289de6f9 --- /dev/null +++ b/ecs/src/model/CreateHaVipRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateHaVipRequest::CreateHaVipRequest() : + EcsRequest("CreateHaVip") +{} + +CreateHaVipRequest::~CreateHaVipRequest() +{} + +std::string CreateHaVipRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateHaVipRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string CreateHaVipRequest::getIpAddress()const +{ + return ipAddress_; +} + +void CreateHaVipRequest::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; + setParameter("IpAddress", ipAddress); +} + +long CreateHaVipRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateHaVipRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateHaVipRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateHaVipRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateHaVipRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateHaVipRequest::getRegionId()const +{ + return regionId_; +} + +void CreateHaVipRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateHaVipRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateHaVipRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateHaVipRequest::getDescription()const +{ + return description_; +} + +void CreateHaVipRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long CreateHaVipRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateHaVipRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/CreateHaVipResult.cc b/ecs/src/model/CreateHaVipResult.cc new file mode 100644 index 000000000..8dfe27500 --- /dev/null +++ b/ecs/src/model/CreateHaVipResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateHaVipResult::CreateHaVipResult() : + ServiceResult() +{} + +CreateHaVipResult::CreateHaVipResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateHaVipResult::~CreateHaVipResult() +{} + +void CreateHaVipResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + haVipId_ = value["HaVipId"].asString(); + +} + +std::string CreateHaVipResult::getHaVipId()const +{ + return haVipId_; +} + +void CreateHaVipResult::setHaVipId(const std::string& haVipId) +{ + haVipId_ = haVipId; +} + diff --git a/ecs/src/model/CreateHpcClusterRequest.cc b/ecs/src/model/CreateHpcClusterRequest.cc new file mode 100644 index 000000000..3fd1a1963 --- /dev/null +++ b/ecs/src/model/CreateHpcClusterRequest.cc @@ -0,0 +1,314 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateHpcClusterRequest::CreateHpcClusterRequest() : + EcsRequest("CreateHpcCluster") +{} + +CreateHpcClusterRequest::~CreateHpcClusterRequest() +{} + +long CreateHpcClusterRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateHpcClusterRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateHpcClusterRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateHpcClusterRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +long CreateHpcClusterRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateHpcClusterRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool CreateHpcClusterRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateHpcClusterRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string CreateHpcClusterRequest::getDescription()const +{ + return description_; +} + +void CreateHpcClusterRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateHpcClusterRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateHpcClusterRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateHpcClusterRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CreateHpcClusterRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CreateHpcClusterRequest::getCallerType()const +{ + return callerType_; +} + +void CreateHpcClusterRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string CreateHpcClusterRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateHpcClusterRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateHpcClusterRequest::getRegionId()const +{ + return regionId_; +} + +void CreateHpcClusterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateHpcClusterRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateHpcClusterRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +bool CreateHpcClusterRequest::getEnable()const +{ + return enable_; +} + +void CreateHpcClusterRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string CreateHpcClusterRequest::getRequestContent()const +{ + return requestContent_; +} + +void CreateHpcClusterRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string CreateHpcClusterRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CreateHpcClusterRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string CreateHpcClusterRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CreateHpcClusterRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long CreateHpcClusterRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateHpcClusterRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateHpcClusterRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateHpcClusterRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string CreateHpcClusterRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateHpcClusterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateHpcClusterRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateHpcClusterRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateHpcClusterRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateHpcClusterRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long CreateHpcClusterRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateHpcClusterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool CreateHpcClusterRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateHpcClusterRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool CreateHpcClusterRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateHpcClusterRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool CreateHpcClusterRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateHpcClusterRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string CreateHpcClusterRequest::getRequestId()const +{ + return requestId_; +} + +void CreateHpcClusterRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string CreateHpcClusterRequest::getName()const +{ + return name_; +} + +void CreateHpcClusterRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/ecs/src/model/CreateHpcClusterResult.cc b/ecs/src/model/CreateHpcClusterResult.cc new file mode 100644 index 000000000..343d64f3b --- /dev/null +++ b/ecs/src/model/CreateHpcClusterResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateHpcClusterResult::CreateHpcClusterResult() : + ServiceResult() +{} + +CreateHpcClusterResult::CreateHpcClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateHpcClusterResult::~CreateHpcClusterResult() +{} + +void CreateHpcClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + hpcClusterId_ = value["HpcClusterId"].asString(); + +} + +std::string CreateHpcClusterResult::getHpcClusterId()const +{ + return hpcClusterId_; +} + +void CreateHpcClusterResult::setHpcClusterId(const std::string& hpcClusterId) +{ + hpcClusterId_ = hpcClusterId; +} + diff --git a/ecs/src/model/CreateImageRequest.cc b/ecs/src/model/CreateImageRequest.cc new file mode 100644 index 000000000..b8b659a00 --- /dev/null +++ b/ecs/src/model/CreateImageRequest.cc @@ -0,0 +1,300 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateImageRequest::CreateImageRequest() : + EcsRequest("CreateImage") +{} + +CreateImageRequest::~CreateImageRequest() +{} + +std::vector CreateImageRequest::getDiskDeviceMapping()const +{ + return diskDeviceMapping_; +} + +void CreateImageRequest::setDiskDeviceMapping(const std::vector& diskDeviceMapping) +{ + diskDeviceMapping_ = diskDeviceMapping; + int i = 0; + for(int i = 0; i!= diskDeviceMapping.size(); i++) { + auto obj = diskDeviceMapping.at(i); + std::string str ="DiskDeviceMapping."+ std::to_string(i); + setParameter(str + ".Size", std::to_string(obj.size)); + setParameter(str + ".SnapshotId", obj.snapshotId); + setParameter(str + ".Device", obj.device); + setParameter(str + ".DiskType", obj.diskType); + } +} + +std::string CreateImageRequest::getTag4Value()const +{ + return tag4Value_; +} + +void CreateImageRequest::setTag4Value(const std::string& tag4Value) +{ + tag4Value_ = tag4Value; + setParameter("Tag4Value", tag4Value); +} + +long CreateImageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateImageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateImageRequest::getSnapshotId()const +{ + return snapshotId_; +} + +void CreateImageRequest::setSnapshotId(const std::string& snapshotId) +{ + snapshotId_ = snapshotId; + setParameter("SnapshotId", snapshotId); +} + +std::string CreateImageRequest::getTag2Key()const +{ + return tag2Key_; +} + +void CreateImageRequest::setTag2Key(const std::string& tag2Key) +{ + tag2Key_ = tag2Key; + setParameter("Tag2Key", tag2Key); +} + +std::string CreateImageRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateImageRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateImageRequest::getDescription()const +{ + return description_; +} + +void CreateImageRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateImageRequest::getTag3Key()const +{ + return tag3Key_; +} + +void CreateImageRequest::setTag3Key(const std::string& tag3Key) +{ + tag3Key_ = tag3Key; + setParameter("Tag3Key", tag3Key); +} + +std::string CreateImageRequest::getPlatform()const +{ + return platform_; +} + +void CreateImageRequest::setPlatform(const std::string& platform) +{ + platform_ = platform; + setParameter("Platform", platform); +} + +std::string CreateImageRequest::getTag1Value()const +{ + return tag1Value_; +} + +void CreateImageRequest::setTag1Value(const std::string& tag1Value) +{ + tag1Value_ = tag1Value; + setParameter("Tag1Value", tag1Value); +} + +std::string CreateImageRequest::getRegionId()const +{ + return regionId_; +} + +void CreateImageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateImageRequest::getImageName()const +{ + return imageName_; +} + +void CreateImageRequest::setImageName(const std::string& imageName) +{ + imageName_ = imageName; + setParameter("ImageName", imageName); +} + +std::string CreateImageRequest::getTag3Value()const +{ + return tag3Value_; +} + +void CreateImageRequest::setTag3Value(const std::string& tag3Value) +{ + tag3Value_ = tag3Value; + setParameter("Tag3Value", tag3Value); +} + +std::string CreateImageRequest::getArchitecture()const +{ + return architecture_; +} + +void CreateImageRequest::setArchitecture(const std::string& architecture) +{ + architecture_ = architecture; + setParameter("Architecture", architecture); +} + +std::string CreateImageRequest::getTag5Key()const +{ + return tag5Key_; +} + +void CreateImageRequest::setTag5Key(const std::string& tag5Key) +{ + tag5Key_ = tag5Key; + setParameter("Tag5Key", tag5Key); +} + +std::string CreateImageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateImageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateImageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long CreateImageRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateImageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateImageRequest::getTag5Value()const +{ + return tag5Value_; +} + +void CreateImageRequest::setTag5Value(const std::string& tag5Value) +{ + tag5Value_ = tag5Value; + setParameter("Tag5Value", tag5Value); +} + +std::string CreateImageRequest::getTag1Key()const +{ + return tag1Key_; +} + +void CreateImageRequest::setTag1Key(const std::string& tag1Key) +{ + tag1Key_ = tag1Key; + setParameter("Tag1Key", tag1Key); +} + +std::string CreateImageRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateImageRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string CreateImageRequest::getTag2Value()const +{ + return tag2Value_; +} + +void CreateImageRequest::setTag2Value(const std::string& tag2Value) +{ + tag2Value_ = tag2Value; + setParameter("Tag2Value", tag2Value); +} + +std::string CreateImageRequest::getImageVersion()const +{ + return imageVersion_; +} + +void CreateImageRequest::setImageVersion(const std::string& imageVersion) +{ + imageVersion_ = imageVersion; + setParameter("ImageVersion", imageVersion); +} + +std::string CreateImageRequest::getTag4Key()const +{ + return tag4Key_; +} + +void CreateImageRequest::setTag4Key(const std::string& tag4Key) +{ + tag4Key_ = tag4Key; + setParameter("Tag4Key", tag4Key); +} + diff --git a/ecs/src/model/CreateImageResult.cc b/ecs/src/model/CreateImageResult.cc new file mode 100644 index 000000000..12606a767 --- /dev/null +++ b/ecs/src/model/CreateImageResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateImageResult::CreateImageResult() : + ServiceResult() +{} + +CreateImageResult::CreateImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateImageResult::~CreateImageResult() +{} + +void CreateImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + imageId_ = value["ImageId"].asString(); + +} + +std::string CreateImageResult::getImageId()const +{ + return imageId_; +} + +void CreateImageResult::setImageId(const std::string& imageId) +{ + imageId_ = imageId; +} + diff --git a/ecs/src/model/CreateInstanceRequest.cc b/ecs/src/model/CreateInstanceRequest.cc new file mode 100644 index 000000000..d7b87aa48 --- /dev/null +++ b/ecs/src/model/CreateInstanceRequest.cc @@ -0,0 +1,634 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateInstanceRequest::CreateInstanceRequest() : + EcsRequest("CreateInstance") +{} + +CreateInstanceRequest::~CreateInstanceRequest() +{} + +std::string CreateInstanceRequest::getTag4Value()const +{ + return tag4Value_; +} + +void CreateInstanceRequest::setTag4Value(const std::string& tag4Value) +{ + tag4Value_ = tag4Value; + setParameter("Tag4Value", tag4Value); +} + +long CreateInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateInstanceRequest::getTag2Key()const +{ + return tag2Key_; +} + +void CreateInstanceRequest::setTag2Key(const std::string& tag2Key) +{ + tag2Key_ = tag2Key; + setParameter("Tag2Key", tag2Key); +} + +std::string CreateInstanceRequest::getHpcClusterId()const +{ + return hpcClusterId_; +} + +void CreateInstanceRequest::setHpcClusterId(const std::string& hpcClusterId) +{ + hpcClusterId_ = hpcClusterId; + setParameter("HpcClusterId", hpcClusterId); +} + +std::string CreateInstanceRequest::getTag3Key()const +{ + return tag3Key_; +} + +void CreateInstanceRequest::setTag3Key(const std::string& tag3Key) +{ + tag3Key_ = tag3Key; + setParameter("Tag3Key", tag3Key); +} + +std::string CreateInstanceRequest::getSecurityEnhancementStrategy()const +{ + return securityEnhancementStrategy_; +} + +void CreateInstanceRequest::setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy) +{ + securityEnhancementStrategy_ = securityEnhancementStrategy; + setParameter("SecurityEnhancementStrategy", securityEnhancementStrategy); +} + +std::string CreateInstanceRequest::getKeyPairName()const +{ + return keyPairName_; +} + +void CreateInstanceRequest::setKeyPairName(const std::string& keyPairName) +{ + keyPairName_ = keyPairName; + setParameter("KeyPairName", keyPairName); +} + +float CreateInstanceRequest::getSpotPriceLimit()const +{ + return spotPriceLimit_; +} + +void CreateInstanceRequest::setSpotPriceLimit(float spotPriceLimit) +{ + spotPriceLimit_ = spotPriceLimit; + setParameter("SpotPriceLimit", std::to_string(spotPriceLimit)); +} + +std::string CreateInstanceRequest::getTag1Value()const +{ + return tag1Value_; +} + +void CreateInstanceRequest::setTag1Value(const std::string& tag1Value) +{ + tag1Value_ = tag1Value; + setParameter("Tag1Value", tag1Value); +} + +std::string CreateInstanceRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CreateInstanceRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string CreateInstanceRequest::getHostName()const +{ + return hostName_; +} + +void CreateInstanceRequest::setHostName(const std::string& hostName) +{ + hostName_ = hostName; + setParameter("HostName", hostName); +} + +std::string CreateInstanceRequest::getPassword()const +{ + return password_; +} + +void CreateInstanceRequest::setPassword(const std::string& password) +{ + password_ = password; + setParameter("Password", password); +} + +int CreateInstanceRequest::getAutoRenewPeriod()const +{ + return autoRenewPeriod_; +} + +void CreateInstanceRequest::setAutoRenewPeriod(int autoRenewPeriod) +{ + autoRenewPeriod_ = autoRenewPeriod; + setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod)); +} + +std::string CreateInstanceRequest::getNodeControllerId()const +{ + return nodeControllerId_; +} + +void CreateInstanceRequest::setNodeControllerId(const std::string& nodeControllerId) +{ + nodeControllerId_ = nodeControllerId; + setParameter("NodeControllerId", nodeControllerId); +} + +int CreateInstanceRequest::getPeriod()const +{ + return period_; +} + +void CreateInstanceRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +std::string CreateInstanceRequest::getTag5Key()const +{ + return tag5Key_; +} + +void CreateInstanceRequest::setTag5Key(const std::string& tag5Key) +{ + tag5Key_ = tag5Key; + setParameter("Tag5Key", tag5Key); +} + +long CreateInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateInstanceRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateInstanceRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string CreateInstanceRequest::getPrivateIpAddress()const +{ + return privateIpAddress_; +} + +void CreateInstanceRequest::setPrivateIpAddress(const std::string& privateIpAddress) +{ + privateIpAddress_ = privateIpAddress; + setParameter("PrivateIpAddress", privateIpAddress); +} + +std::string CreateInstanceRequest::getSpotStrategy()const +{ + return spotStrategy_; +} + +void CreateInstanceRequest::setSpotStrategy(const std::string& spotStrategy) +{ + spotStrategy_ = spotStrategy; + setParameter("SpotStrategy", spotStrategy); +} + +std::string CreateInstanceRequest::getPeriodUnit()const +{ + return periodUnit_; +} + +void CreateInstanceRequest::setPeriodUnit(const std::string& periodUnit) +{ + periodUnit_ = periodUnit; + setParameter("PeriodUnit", periodUnit); +} + +std::string CreateInstanceRequest::getInstanceName()const +{ + return instanceName_; +} + +void CreateInstanceRequest::setInstanceName(const std::string& instanceName) +{ + instanceName_ = instanceName; + setParameter("InstanceName", instanceName); +} + +bool CreateInstanceRequest::getAutoRenew()const +{ + return autoRenew_; +} + +void CreateInstanceRequest::setAutoRenew(bool autoRenew) +{ + autoRenew_ = autoRenew; + setParameter("AutoRenew", std::to_string(autoRenew)); +} + +std::string CreateInstanceRequest::getInternetChargeType()const +{ + return internetChargeType_; +} + +void CreateInstanceRequest::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; + setParameter("InternetChargeType", internetChargeType); +} + +std::string CreateInstanceRequest::getZoneId()const +{ + return zoneId_; +} + +void CreateInstanceRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string CreateInstanceRequest::getTag4Key()const +{ + return tag4Key_; +} + +void CreateInstanceRequest::setTag4Key(const std::string& tag4Key) +{ + tag4Key_ = tag4Key; + setParameter("Tag4Key", tag4Key); +} + +int CreateInstanceRequest::getInternetMaxBandwidthIn()const +{ + return internetMaxBandwidthIn_; +} + +void CreateInstanceRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) +{ + internetMaxBandwidthIn_ = internetMaxBandwidthIn; + setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn)); +} + +bool CreateInstanceRequest::getUseAdditionalService()const +{ + return useAdditionalService_; +} + +void CreateInstanceRequest::setUseAdditionalService(bool useAdditionalService) +{ + useAdditionalService_ = useAdditionalService; + setParameter("UseAdditionalService", std::to_string(useAdditionalService)); +} + +std::string CreateInstanceRequest::getImageId()const +{ + return imageId_; +} + +void CreateInstanceRequest::setImageId(const std::string& imageId) +{ + imageId_ = imageId; + setParameter("ImageId", imageId); +} + +std::string CreateInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateInstanceRequest::getVlanId()const +{ + return vlanId_; +} + +void CreateInstanceRequest::setVlanId(const std::string& vlanId) +{ + vlanId_ = vlanId; + setParameter("VlanId", vlanId); +} + +std::string CreateInstanceRequest::getIoOptimized()const +{ + return ioOptimized_; +} + +void CreateInstanceRequest::setIoOptimized(const std::string& ioOptimized) +{ + ioOptimized_ = ioOptimized; + setParameter("IoOptimized", ioOptimized); +} + +std::string CreateInstanceRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void CreateInstanceRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +int CreateInstanceRequest::getInternetMaxBandwidthOut()const +{ + return internetMaxBandwidthOut_; +} + +void CreateInstanceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) +{ + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut)); +} + +std::string CreateInstanceRequest::getDescription()const +{ + return description_; +} + +void CreateInstanceRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateInstanceRequest::getSystemDiskCategory()const +{ + return systemDiskCategory_; +} + +void CreateInstanceRequest::setSystemDiskCategory(const std::string& systemDiskCategory) +{ + systemDiskCategory_ = systemDiskCategory; + setParameter("SystemDiskCategory", systemDiskCategory); +} + +std::string CreateInstanceRequest::getUserData()const +{ + return userData_; +} + +void CreateInstanceRequest::setUserData(const std::string& userData) +{ + userData_ = userData; + setParameter("UserData", userData); +} + +std::string CreateInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void CreateInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateInstanceRequest::getInstanceType()const +{ + return instanceType_; +} + +void CreateInstanceRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::string CreateInstanceRequest::getInstanceChargeType()const +{ + return instanceChargeType_; +} + +void CreateInstanceRequest::setInstanceChargeType(const std::string& instanceChargeType) +{ + instanceChargeType_ = instanceChargeType; + setParameter("InstanceChargeType", instanceChargeType); +} + +std::string CreateInstanceRequest::getTag3Value()const +{ + return tag3Value_; +} + +void CreateInstanceRequest::setTag3Value(const std::string& tag3Value) +{ + tag3Value_ = tag3Value; + setParameter("Tag3Value", tag3Value); +} + +std::string CreateInstanceRequest::getDeploymentSetId()const +{ + return deploymentSetId_; +} + +void CreateInstanceRequest::setDeploymentSetId(const std::string& deploymentSetId) +{ + deploymentSetId_ = deploymentSetId; + setParameter("DeploymentSetId", deploymentSetId); +} + +std::string CreateInstanceRequest::getInnerIpAddress()const +{ + return innerIpAddress_; +} + +void CreateInstanceRequest::setInnerIpAddress(const std::string& innerIpAddress) +{ + innerIpAddress_ = innerIpAddress; + setParameter("InnerIpAddress", innerIpAddress); +} + +std::string CreateInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateInstanceRequest::getSystemDiskDiskName()const +{ + return systemDiskDiskName_; +} + +void CreateInstanceRequest::setSystemDiskDiskName(const std::string& systemDiskDiskName) +{ + systemDiskDiskName_ = systemDiskDiskName; + setParameter("SystemDiskDiskName", systemDiskDiskName); +} + +std::string CreateInstanceRequest::getRamRoleName()const +{ + return ramRoleName_; +} + +void CreateInstanceRequest::setRamRoleName(const std::string& ramRoleName) +{ + ramRoleName_ = ramRoleName; + setParameter("RamRoleName", ramRoleName); +} + +std::string CreateInstanceRequest::getClusterId()const +{ + return clusterId_; +} + +void CreateInstanceRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +std::vector CreateInstanceRequest::getDataDisk()const +{ + return dataDisk_; +} + +void CreateInstanceRequest::setDataDisk(const std::vector& dataDisk) +{ + dataDisk_ = dataDisk; + int i = 0; + for(int i = 0; i!= dataDisk.size(); i++) { + auto obj = dataDisk.at(i); + std::string str ="DataDisk."+ std::to_string(i); + setParameter(str + ".Size", std::to_string(obj.size)); + setParameter(str + ".SnapshotId", obj.snapshotId); + setParameter(str + ".Category", obj.category); + setParameter(str + ".DiskName", obj.diskName); + setParameter(str + ".Description", obj.description); + setParameter(str + ".Device", obj.device); + setParameter(str + ".DeleteWithInstance", std::to_string(obj.deleteWithInstance)); + setParameter(str + ".Encrypted", std::to_string(obj.encrypted)); + } +} + +std::string CreateInstanceRequest::getTag5Value()const +{ + return tag5Value_; +} + +void CreateInstanceRequest::setTag5Value(const std::string& tag5Value) +{ + tag5Value_ = tag5Value; + setParameter("Tag5Value", tag5Value); +} + +std::string CreateInstanceRequest::getTag1Key()const +{ + return tag1Key_; +} + +void CreateInstanceRequest::setTag1Key(const std::string& tag1Key) +{ + tag1Key_ = tag1Key; + setParameter("Tag1Key", tag1Key); +} + +int CreateInstanceRequest::getSystemDiskSize()const +{ + return systemDiskSize_; +} + +void CreateInstanceRequest::setSystemDiskSize(int systemDiskSize) +{ + systemDiskSize_ = systemDiskSize; + setParameter("SystemDiskSize", std::to_string(systemDiskSize)); +} + +std::string CreateInstanceRequest::getTag2Value()const +{ + return tag2Value_; +} + +void CreateInstanceRequest::setTag2Value(const std::string& tag2Value) +{ + tag2Value_ = tag2Value; + setParameter("Tag2Value", tag2Value); +} + +std::string CreateInstanceRequest::getSystemDiskDescription()const +{ + return systemDiskDescription_; +} + +void CreateInstanceRequest::setSystemDiskDescription(const std::string& systemDiskDescription) +{ + systemDiskDescription_ = systemDiskDescription; + setParameter("SystemDiskDescription", systemDiskDescription); +} + diff --git a/ecs/src/model/CreateInstanceResult.cc b/ecs/src/model/CreateInstanceResult.cc new file mode 100644 index 000000000..6ee9475c7 --- /dev/null +++ b/ecs/src/model/CreateInstanceResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateInstanceResult::CreateInstanceResult() : + ServiceResult() +{} + +CreateInstanceResult::CreateInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateInstanceResult::~CreateInstanceResult() +{} + +void CreateInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + instanceId_ = value["InstanceId"].asString(); + +} + +std::string CreateInstanceResult::getInstanceId()const +{ + return instanceId_; +} + +void CreateInstanceResult::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; +} + diff --git a/ecs/src/model/CreateKeyPairRequest.cc b/ecs/src/model/CreateKeyPairRequest.cc new file mode 100644 index 000000000..c29252e10 --- /dev/null +++ b/ecs/src/model/CreateKeyPairRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateKeyPairRequest::CreateKeyPairRequest() : + EcsRequest("CreateKeyPair") +{} + +CreateKeyPairRequest::~CreateKeyPairRequest() +{} + +long CreateKeyPairRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateKeyPairRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateKeyPairRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateKeyPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateKeyPairRequest::getRegionId()const +{ + return regionId_; +} + +void CreateKeyPairRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateKeyPairRequest::getKeyPairName()const +{ + return keyPairName_; +} + +void CreateKeyPairRequest::setKeyPairName(const std::string& keyPairName) +{ + keyPairName_ = keyPairName; + setParameter("KeyPairName", keyPairName); +} + +long CreateKeyPairRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateKeyPairRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/CreateKeyPairResult.cc b/ecs/src/model/CreateKeyPairResult.cc new file mode 100644 index 000000000..54a303c8c --- /dev/null +++ b/ecs/src/model/CreateKeyPairResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateKeyPairResult::CreateKeyPairResult() : + ServiceResult() +{} + +CreateKeyPairResult::CreateKeyPairResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateKeyPairResult::~CreateKeyPairResult() +{} + +void CreateKeyPairResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + keyPairName_ = value["KeyPairName"].asString(); + keyPairFingerPrint_ = value["KeyPairFingerPrint"].asString(); + privateKeyBody_ = value["PrivateKeyBody"].asString(); + +} + +std::string CreateKeyPairResult::getKeyPairFingerPrint()const +{ + return keyPairFingerPrint_; +} + +void CreateKeyPairResult::setKeyPairFingerPrint(const std::string& keyPairFingerPrint) +{ + keyPairFingerPrint_ = keyPairFingerPrint; +} + +std::string CreateKeyPairResult::getKeyPairName()const +{ + return keyPairName_; +} + +void CreateKeyPairResult::setKeyPairName(const std::string& keyPairName) +{ + keyPairName_ = keyPairName; +} + +std::string CreateKeyPairResult::getPrivateKeyBody()const +{ + return privateKeyBody_; +} + +void CreateKeyPairResult::setPrivateKeyBody(const std::string& privateKeyBody) +{ + privateKeyBody_ = privateKeyBody; +} + diff --git a/ecs/src/model/CreateNatGatewayRequest.cc b/ecs/src/model/CreateNatGatewayRequest.cc new file mode 100644 index 000000000..c281dc4b0 --- /dev/null +++ b/ecs/src/model/CreateNatGatewayRequest.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 namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateNatGatewayRequest::CreateNatGatewayRequest() : + EcsRequest("CreateNatGateway") +{} + +CreateNatGatewayRequest::~CreateNatGatewayRequest() +{} + +long CreateNatGatewayRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateNatGatewayRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateNatGatewayRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateNatGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateNatGatewayRequest::getRegionId()const +{ + return regionId_; +} + +void CreateNatGatewayRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateNatGatewayRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateNatGatewayRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateNatGatewayRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateNatGatewayRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateNatGatewayRequest::getVpcId()const +{ + return vpcId_; +} + +void CreateNatGatewayRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string CreateNatGatewayRequest::getName()const +{ + return name_; +} + +void CreateNatGatewayRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateNatGatewayRequest::getDescription()const +{ + return description_; +} + +void CreateNatGatewayRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long CreateNatGatewayRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateNatGatewayRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::vector CreateNatGatewayRequest::getBandwidthPackage()const +{ + return bandwidthPackage_; +} + +void CreateNatGatewayRequest::setBandwidthPackage(const std::vector& bandwidthPackage) +{ + bandwidthPackage_ = bandwidthPackage; + int i = 0; + for(int i = 0; i!= bandwidthPackage.size(); i++) { + auto obj = bandwidthPackage.at(i); + std::string str ="BandwidthPackage."+ std::to_string(i); + setParameter(str + ".IpCount", std::to_string(obj.ipCount)); + setParameter(str + ".Bandwidth", std::to_string(obj.bandwidth)); + setParameter(str + ".Zone", obj.zone); + } +} + diff --git a/ecs/src/model/CreateNatGatewayResult.cc b/ecs/src/model/CreateNatGatewayResult.cc new file mode 100644 index 000000000..53cc10f4a --- /dev/null +++ b/ecs/src/model/CreateNatGatewayResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateNatGatewayResult::CreateNatGatewayResult() : + ServiceResult() +{} + +CreateNatGatewayResult::CreateNatGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNatGatewayResult::~CreateNatGatewayResult() +{} + +void CreateNatGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allForwardTableIds = value["ForwardTableIds"]["ForwardTableId"]; + for (const auto &item : allForwardTableIds) + forwardTableIds_.push_back(item.asString()); + auto allBandwidthPackageIds = value["BandwidthPackageIds"]["BandwidthPackageId"]; + for (const auto &item : allBandwidthPackageIds) + bandwidthPackageIds_.push_back(item.asString()); + natGatewayId_ = value["NatGatewayId"].asString(); + +} + +std::vector CreateNatGatewayResult::getForwardTableIds()const +{ + return forwardTableIds_; +} + +void CreateNatGatewayResult::setForwardTableIds(const std::vector& forwardTableIds) +{ + forwardTableIds_ = forwardTableIds; +} + +std::vector CreateNatGatewayResult::getBandwidthPackageIds()const +{ + return bandwidthPackageIds_; +} + +void CreateNatGatewayResult::setBandwidthPackageIds(const std::vector& bandwidthPackageIds) +{ + bandwidthPackageIds_ = bandwidthPackageIds; +} + +std::string CreateNatGatewayResult::getNatGatewayId()const +{ + return natGatewayId_; +} + +void CreateNatGatewayResult::setNatGatewayId(const std::string& natGatewayId) +{ + natGatewayId_ = natGatewayId; +} + diff --git a/ecs/src/model/CreateNetworkInterfaceRequest.cc b/ecs/src/model/CreateNetworkInterfaceRequest.cc new file mode 100644 index 000000000..56ad669bb --- /dev/null +++ b/ecs/src/model/CreateNetworkInterfaceRequest.cc @@ -0,0 +1,358 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateNetworkInterfaceRequest::CreateNetworkInterfaceRequest() : + EcsRequest("CreateNetworkInterface") +{} + +CreateNetworkInterfaceRequest::~CreateNetworkInterfaceRequest() +{} + +long CreateNetworkInterfaceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateNetworkInterfaceRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateNetworkInterfaceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +long CreateNetworkInterfaceRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void CreateNetworkInterfaceRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string CreateNetworkInterfaceRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void CreateNetworkInterfaceRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +bool CreateNetworkInterfaceRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void CreateNetworkInterfaceRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string CreateNetworkInterfaceRequest::getDescription()const +{ + return description_; +} + +void CreateNetworkInterfaceRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateNetworkInterfaceRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void CreateNetworkInterfaceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string CreateNetworkInterfaceRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void CreateNetworkInterfaceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string CreateNetworkInterfaceRequest::getCallerType()const +{ + return callerType_; +} + +void CreateNetworkInterfaceRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string CreateNetworkInterfaceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateNetworkInterfaceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateNetworkInterfaceRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CreateNetworkInterfaceRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string CreateNetworkInterfaceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateNetworkInterfaceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateNetworkInterfaceRequest::getRegionId()const +{ + return regionId_; +} + +void CreateNetworkInterfaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool CreateNetworkInterfaceRequest::getEnable()const +{ + return enable_; +} + +void CreateNetworkInterfaceRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string CreateNetworkInterfaceRequest::getRequestContent()const +{ + return requestContent_; +} + +void CreateNetworkInterfaceRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string CreateNetworkInterfaceRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void CreateNetworkInterfaceRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string CreateNetworkInterfaceRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void CreateNetworkInterfaceRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +std::string CreateNetworkInterfaceRequest::getNetworkInterfaceName()const +{ + return networkInterfaceName_; +} + +void CreateNetworkInterfaceRequest::setNetworkInterfaceName(const std::string& networkInterfaceName) +{ + networkInterfaceName_ = networkInterfaceName; + setParameter("NetworkInterfaceName", networkInterfaceName); +} + +long CreateNetworkInterfaceRequest::getCallerUid()const +{ + return callerUid_; +} + +void CreateNetworkInterfaceRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string CreateNetworkInterfaceRequest::getApp_ip()const +{ + return app_ip_; +} + +void CreateNetworkInterfaceRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string CreateNetworkInterfaceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateNetworkInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateNetworkInterfaceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateNetworkInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateNetworkInterfaceRequest::getCallerBid()const +{ + return callerBid_; +} + +void CreateNetworkInterfaceRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long CreateNetworkInterfaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateNetworkInterfaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool CreateNetworkInterfaceRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void CreateNetworkInterfaceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool CreateNetworkInterfaceRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void CreateNetworkInterfaceRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool CreateNetworkInterfaceRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void CreateNetworkInterfaceRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string CreateNetworkInterfaceRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateNetworkInterfaceRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string CreateNetworkInterfaceRequest::getRequestId()const +{ + return requestId_; +} + +void CreateNetworkInterfaceRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string CreateNetworkInterfaceRequest::getPrimaryIpAddress()const +{ + return primaryIpAddress_; +} + +void CreateNetworkInterfaceRequest::setPrimaryIpAddress(const std::string& primaryIpAddress) +{ + primaryIpAddress_ = primaryIpAddress; + setParameter("PrimaryIpAddress", primaryIpAddress); +} + diff --git a/ecs/src/model/CreateNetworkInterfaceResult.cc b/ecs/src/model/CreateNetworkInterfaceResult.cc new file mode 100644 index 000000000..df1be342f --- /dev/null +++ b/ecs/src/model/CreateNetworkInterfaceResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateNetworkInterfaceResult::CreateNetworkInterfaceResult() : + ServiceResult() +{} + +CreateNetworkInterfaceResult::CreateNetworkInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNetworkInterfaceResult::~CreateNetworkInterfaceResult() +{} + +void CreateNetworkInterfaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + networkInterfaceId_ = value["NetworkInterfaceId"].asString(); + +} + +std::string CreateNetworkInterfaceResult::getNetworkInterfaceId()const +{ + return networkInterfaceId_; +} + +void CreateNetworkInterfaceResult::setNetworkInterfaceId(const std::string& networkInterfaceId) +{ + networkInterfaceId_ = networkInterfaceId; +} + diff --git a/ecs/src/model/CreatePhysicalConnectionRequest.cc b/ecs/src/model/CreatePhysicalConnectionRequest.cc new file mode 100644 index 000000000..95a37fb19 --- /dev/null +++ b/ecs/src/model/CreatePhysicalConnectionRequest.cc @@ -0,0 +1,215 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreatePhysicalConnectionRequest::CreatePhysicalConnectionRequest() : + EcsRequest("CreatePhysicalConnection") +{} + +CreatePhysicalConnectionRequest::~CreatePhysicalConnectionRequest() +{} + +std::string CreatePhysicalConnectionRequest::getAccessPointId()const +{ + return accessPointId_; +} + +void CreatePhysicalConnectionRequest::setAccessPointId(const std::string& accessPointId) +{ + accessPointId_ = accessPointId; + setParameter("AccessPointId", accessPointId); +} + +std::string CreatePhysicalConnectionRequest::getRedundantPhysicalConnectionId()const +{ + return redundantPhysicalConnectionId_; +} + +void CreatePhysicalConnectionRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId) +{ + redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; + setParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); +} + +std::string CreatePhysicalConnectionRequest::getPeerLocation()const +{ + return peerLocation_; +} + +void CreatePhysicalConnectionRequest::setPeerLocation(const std::string& peerLocation) +{ + peerLocation_ = peerLocation; + setParameter("PeerLocation", peerLocation); +} + +long CreatePhysicalConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreatePhysicalConnectionRequest::getPortType()const +{ + return portType_; +} + +void CreatePhysicalConnectionRequest::setPortType(const std::string& portType) +{ + portType_ = portType; + setParameter("PortType", portType); +} + +std::string CreatePhysicalConnectionRequest::getCircuitCode()const +{ + return circuitCode_; +} + +void CreatePhysicalConnectionRequest::setCircuitCode(const std::string& circuitCode) +{ + circuitCode_ = circuitCode; + setParameter("CircuitCode", circuitCode); +} + +int CreatePhysicalConnectionRequest::getBandwidth()const +{ + return bandwidth_; +} + +void CreatePhysicalConnectionRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string CreatePhysicalConnectionRequest::getClientToken()const +{ + return clientToken_; +} + +void CreatePhysicalConnectionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreatePhysicalConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreatePhysicalConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreatePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreatePhysicalConnectionRequest::getDescription()const +{ + return description_; +} + +void CreatePhysicalConnectionRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreatePhysicalConnectionRequest::getType()const +{ + return type_; +} + +void CreatePhysicalConnectionRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +long CreatePhysicalConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreatePhysicalConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreatePhysicalConnectionRequest::getLineOperator()const +{ + return lineOperator_; +} + +void CreatePhysicalConnectionRequest::setLineOperator(const std::string& lineOperator) +{ + lineOperator_ = lineOperator; + setParameter("LineOperator", lineOperator); +} + +std::string CreatePhysicalConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void CreatePhysicalConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreatePhysicalConnectionRequest::getName()const +{ + return name_; +} + +void CreatePhysicalConnectionRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreatePhysicalConnectionRequest::getUserCidr()const +{ + return userCidr_; +} + +void CreatePhysicalConnectionRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + diff --git a/ecs/src/model/CreatePhysicalConnectionResult.cc b/ecs/src/model/CreatePhysicalConnectionResult.cc new file mode 100644 index 000000000..aeaaf0567 --- /dev/null +++ b/ecs/src/model/CreatePhysicalConnectionResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreatePhysicalConnectionResult::CreatePhysicalConnectionResult() : + ServiceResult() +{} + +CreatePhysicalConnectionResult::CreatePhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePhysicalConnectionResult::~CreatePhysicalConnectionResult() +{} + +void CreatePhysicalConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + physicalConnectionId_ = value["PhysicalConnectionId"].asString(); + +} + +std::string CreatePhysicalConnectionResult::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void CreatePhysicalConnectionResult::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; +} + diff --git a/ecs/src/model/CreateRouteEntryRequest.cc b/ecs/src/model/CreateRouteEntryRequest.cc new file mode 100644 index 000000000..6730f7ca6 --- /dev/null +++ b/ecs/src/model/CreateRouteEntryRequest.cc @@ -0,0 +1,144 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateRouteEntryRequest::CreateRouteEntryRequest() : + EcsRequest("CreateRouteEntry") +{} + +CreateRouteEntryRequest::~CreateRouteEntryRequest() +{} + +long CreateRouteEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateRouteEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateRouteEntryRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateRouteEntryRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateRouteEntryRequest::getDestinationCidrBlock()const +{ + return destinationCidrBlock_; +} + +void CreateRouteEntryRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) +{ + destinationCidrBlock_ = destinationCidrBlock; + setParameter("DestinationCidrBlock", destinationCidrBlock); +} + +std::string CreateRouteEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateRouteEntryRequest::getNextHopId()const +{ + return nextHopId_; +} + +void CreateRouteEntryRequest::setNextHopId(const std::string& nextHopId) +{ + nextHopId_ = nextHopId; + setParameter("NextHopId", nextHopId); +} + +long CreateRouteEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateRouteEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateRouteEntryRequest::getNextHopType()const +{ + return nextHopType_; +} + +void CreateRouteEntryRequest::setNextHopType(const std::string& nextHopType) +{ + nextHopType_ = nextHopType; + setParameter("NextHopType", nextHopType); +} + +std::vector CreateRouteEntryRequest::getNextHopList()const +{ + return nextHopList_; +} + +void CreateRouteEntryRequest::setNextHopList(const std::vector& nextHopList) +{ + nextHopList_ = nextHopList; + int i = 0; + for(int i = 0; i!= nextHopList.size(); i++) { + auto obj = nextHopList.at(i); + std::string str ="NextHopList."+ std::to_string(i); + setParameter(str + ".NextHopType", obj.nextHopType); + setParameter(str + ".NextHopId", obj.nextHopId); + } +} + +std::string CreateRouteEntryRequest::getRouteTableId()const +{ + return routeTableId_; +} + +void CreateRouteEntryRequest::setRouteTableId(const std::string& routeTableId) +{ + routeTableId_ = routeTableId; + setParameter("RouteTableId", routeTableId); +} + diff --git a/ecs/src/model/CreateRouteEntryResult.cc b/ecs/src/model/CreateRouteEntryResult.cc new file mode 100644 index 000000000..699643521 --- /dev/null +++ b/ecs/src/model/CreateRouteEntryResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateRouteEntryResult::CreateRouteEntryResult() : + ServiceResult() +{} + +CreateRouteEntryResult::CreateRouteEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRouteEntryResult::~CreateRouteEntryResult() +{} + +void CreateRouteEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/CreateRouterInterfaceRequest.cc b/ecs/src/model/CreateRouterInterfaceRequest.cc new file mode 100644 index 000000000..92031d943 --- /dev/null +++ b/ecs/src/model/CreateRouterInterfaceRequest.cc @@ -0,0 +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 namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateRouterInterfaceRequest::CreateRouterInterfaceRequest() : + EcsRequest("CreateRouterInterface") +{} + +CreateRouterInterfaceRequest::~CreateRouterInterfaceRequest() +{} + +std::string CreateRouterInterfaceRequest::getAccessPointId()const +{ + return accessPointId_; +} + +void CreateRouterInterfaceRequest::setAccessPointId(const std::string& accessPointId) +{ + accessPointId_ = accessPointId; + setParameter("AccessPointId", accessPointId); +} + +std::string CreateRouterInterfaceRequest::getOppositeRouterId()const +{ + return oppositeRouterId_; +} + +void CreateRouterInterfaceRequest::setOppositeRouterId(const std::string& oppositeRouterId) +{ + oppositeRouterId_ = oppositeRouterId; + setParameter("OppositeRouterId", oppositeRouterId); +} + +std::string CreateRouterInterfaceRequest::getOppositeAccessPointId()const +{ + return oppositeAccessPointId_; +} + +void CreateRouterInterfaceRequest::setOppositeAccessPointId(const std::string& oppositeAccessPointId) +{ + oppositeAccessPointId_ = oppositeAccessPointId; + setParameter("OppositeAccessPointId", oppositeAccessPointId); +} + +long CreateRouterInterfaceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateRouterInterfaceRequest::getRole()const +{ + return role_; +} + +void CreateRouterInterfaceRequest::setRole(const std::string& role) +{ + role_ = role; + setParameter("Role", role); +} + +std::string CreateRouterInterfaceRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateRouterInterfaceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateRouterInterfaceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateRouterInterfaceRequest::getOppositeRegionId()const +{ + return oppositeRegionId_; +} + +void CreateRouterInterfaceRequest::setOppositeRegionId(const std::string& oppositeRegionId) +{ + oppositeRegionId_ = oppositeRegionId; + setParameter("OppositeRegionId", oppositeRegionId); +} + +std::string CreateRouterInterfaceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp()const +{ + return healthCheckTargetIp_; +} + +void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp) +{ + healthCheckTargetIp_ = healthCheckTargetIp; + setParameter("HealthCheckTargetIp", healthCheckTargetIp); +} + +std::string CreateRouterInterfaceRequest::getDescription()const +{ + return description_; +} + +void CreateRouterInterfaceRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long CreateRouterInterfaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateRouterInterfaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateRouterInterfaceRequest::getSpec()const +{ + return spec_; +} + +void CreateRouterInterfaceRequest::setSpec(const std::string& spec) +{ + spec_ = spec; + setParameter("Spec", spec); +} + +std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId()const +{ + return oppositeInterfaceOwnerId_; +} + +void CreateRouterInterfaceRequest::setOppositeInterfaceOwnerId(const std::string& oppositeInterfaceOwnerId) +{ + oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId; + setParameter("OppositeInterfaceOwnerId", oppositeInterfaceOwnerId); +} + +std::string CreateRouterInterfaceRequest::getRouterType()const +{ + return routerType_; +} + +void CreateRouterInterfaceRequest::setRouterType(const std::string& routerType) +{ + routerType_ = routerType; + setParameter("RouterType", routerType); +} + +std::string CreateRouterInterfaceRequest::getRegionId()const +{ + return regionId_; +} + +void CreateRouterInterfaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp()const +{ + return healthCheckSourceIp_; +} + +void CreateRouterInterfaceRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp) +{ + healthCheckSourceIp_ = healthCheckSourceIp; + setParameter("HealthCheckSourceIp", healthCheckSourceIp); +} + +std::string CreateRouterInterfaceRequest::getRouterId()const +{ + return routerId_; +} + +void CreateRouterInterfaceRequest::setRouterId(const std::string& routerId) +{ + routerId_ = routerId; + setParameter("RouterId", routerId); +} + +std::string CreateRouterInterfaceRequest::getOppositeRouterType()const +{ + return oppositeRouterType_; +} + +void CreateRouterInterfaceRequest::setOppositeRouterType(const std::string& oppositeRouterType) +{ + oppositeRouterType_ = oppositeRouterType; + setParameter("OppositeRouterType", oppositeRouterType); +} + +std::string CreateRouterInterfaceRequest::getName()const +{ + return name_; +} + +void CreateRouterInterfaceRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateRouterInterfaceRequest::getUserCidr()const +{ + return userCidr_; +} + +void CreateRouterInterfaceRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +std::string CreateRouterInterfaceRequest::getOppositeInterfaceId()const +{ + return oppositeInterfaceId_; +} + +void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId) +{ + oppositeInterfaceId_ = oppositeInterfaceId; + setParameter("OppositeInterfaceId", oppositeInterfaceId); +} + diff --git a/ecs/src/model/CreateRouterInterfaceResult.cc b/ecs/src/model/CreateRouterInterfaceResult.cc new file mode 100644 index 000000000..421e0e5b2 --- /dev/null +++ b/ecs/src/model/CreateRouterInterfaceResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateRouterInterfaceResult::CreateRouterInterfaceResult() : + ServiceResult() +{} + +CreateRouterInterfaceResult::CreateRouterInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRouterInterfaceResult::~CreateRouterInterfaceResult() +{} + +void CreateRouterInterfaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + routerInterfaceId_ = value["RouterInterfaceId"].asString(); + +} + +std::string CreateRouterInterfaceResult::getRouterInterfaceId()const +{ + return routerInterfaceId_; +} + +void CreateRouterInterfaceResult::setRouterInterfaceId(const std::string& routerInterfaceId) +{ + routerInterfaceId_ = routerInterfaceId; +} + diff --git a/ecs/src/model/CreateSecurityGroupRequest.cc b/ecs/src/model/CreateSecurityGroupRequest.cc new file mode 100644 index 000000000..7f61c5ebf --- /dev/null +++ b/ecs/src/model/CreateSecurityGroupRequest.cc @@ -0,0 +1,237 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateSecurityGroupRequest::CreateSecurityGroupRequest() : + EcsRequest("CreateSecurityGroup") +{} + +CreateSecurityGroupRequest::~CreateSecurityGroupRequest() +{} + +std::string CreateSecurityGroupRequest::getTag4Value()const +{ + return tag4Value_; +} + +void CreateSecurityGroupRequest::setTag4Value(const std::string& tag4Value) +{ + tag4Value_ = tag4Value; + setParameter("Tag4Value", tag4Value); +} + +long CreateSecurityGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateSecurityGroupRequest::getTag2Key()const +{ + return tag2Key_; +} + +void CreateSecurityGroupRequest::setTag2Key(const std::string& tag2Key) +{ + tag2Key_ = tag2Key; + setParameter("Tag2Key", tag2Key); +} + +std::string CreateSecurityGroupRequest::getTag5Key()const +{ + return tag5Key_; +} + +void CreateSecurityGroupRequest::setTag5Key(const std::string& tag5Key) +{ + tag5Key_ = tag5Key; + setParameter("Tag5Key", tag5Key); +} + +std::string CreateSecurityGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateSecurityGroupRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateSecurityGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateSecurityGroupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateSecurityGroupRequest::getDescription()const +{ + return description_; +} + +void CreateSecurityGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateSecurityGroupRequest::getTag3Key()const +{ + return tag3Key_; +} + +void CreateSecurityGroupRequest::setTag3Key(const std::string& tag3Key) +{ + tag3Key_ = tag3Key; + setParameter("Tag3Key", tag3Key); +} + +long CreateSecurityGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateSecurityGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateSecurityGroupRequest::getSecurityGroupName()const +{ + return securityGroupName_; +} + +void CreateSecurityGroupRequest::setSecurityGroupName(const std::string& securityGroupName) +{ + securityGroupName_ = securityGroupName; + setParameter("SecurityGroupName", securityGroupName); +} + +std::string CreateSecurityGroupRequest::getTag5Value()const +{ + return tag5Value_; +} + +void CreateSecurityGroupRequest::setTag5Value(const std::string& tag5Value) +{ + tag5Value_ = tag5Value; + setParameter("Tag5Value", tag5Value); +} + +std::string CreateSecurityGroupRequest::getTag1Key()const +{ + return tag1Key_; +} + +void CreateSecurityGroupRequest::setTag1Key(const std::string& tag1Key) +{ + tag1Key_ = tag1Key; + setParameter("Tag1Key", tag1Key); +} + +std::string CreateSecurityGroupRequest::getTag1Value()const +{ + return tag1Value_; +} + +void CreateSecurityGroupRequest::setTag1Value(const std::string& tag1Value) +{ + tag1Value_ = tag1Value; + setParameter("Tag1Value", tag1Value); +} + +std::string CreateSecurityGroupRequest::getRegionId()const +{ + return regionId_; +} + +void CreateSecurityGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateSecurityGroupRequest::getVpcId()const +{ + return vpcId_; +} + +void CreateSecurityGroupRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string CreateSecurityGroupRequest::getTag2Value()const +{ + return tag2Value_; +} + +void CreateSecurityGroupRequest::setTag2Value(const std::string& tag2Value) +{ + tag2Value_ = tag2Value; + setParameter("Tag2Value", tag2Value); +} + +std::string CreateSecurityGroupRequest::getTag4Key()const +{ + return tag4Key_; +} + +void CreateSecurityGroupRequest::setTag4Key(const std::string& tag4Key) +{ + tag4Key_ = tag4Key; + setParameter("Tag4Key", tag4Key); +} + +std::string CreateSecurityGroupRequest::getTag3Value()const +{ + return tag3Value_; +} + +void CreateSecurityGroupRequest::setTag3Value(const std::string& tag3Value) +{ + tag3Value_ = tag3Value; + setParameter("Tag3Value", tag3Value); +} + diff --git a/ecs/src/model/CreateSecurityGroupResult.cc b/ecs/src/model/CreateSecurityGroupResult.cc new file mode 100644 index 000000000..56d216cda --- /dev/null +++ b/ecs/src/model/CreateSecurityGroupResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateSecurityGroupResult::CreateSecurityGroupResult() : + ServiceResult() +{} + +CreateSecurityGroupResult::CreateSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSecurityGroupResult::~CreateSecurityGroupResult() +{} + +void CreateSecurityGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + securityGroupId_ = value["SecurityGroupId"].asString(); + +} + +std::string CreateSecurityGroupResult::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void CreateSecurityGroupResult::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; +} + diff --git a/ecs/src/model/CreateSnapshotRequest.cc b/ecs/src/model/CreateSnapshotRequest.cc new file mode 100644 index 000000000..e4dc5d6b0 --- /dev/null +++ b/ecs/src/model/CreateSnapshotRequest.cc @@ -0,0 +1,226 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateSnapshotRequest::CreateSnapshotRequest() : + EcsRequest("CreateSnapshot") +{} + +CreateSnapshotRequest::~CreateSnapshotRequest() +{} + +std::string CreateSnapshotRequest::getTag4Value()const +{ + return tag4Value_; +} + +void CreateSnapshotRequest::setTag4Value(const std::string& tag4Value) +{ + tag4Value_ = tag4Value; + setParameter("Tag4Value", tag4Value); +} + +long CreateSnapshotRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateSnapshotRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateSnapshotRequest::getTag2Key()const +{ + return tag2Key_; +} + +void CreateSnapshotRequest::setTag2Key(const std::string& tag2Key) +{ + tag2Key_ = tag2Key; + setParameter("Tag2Key", tag2Key); +} + +std::string CreateSnapshotRequest::getTag5Key()const +{ + return tag5Key_; +} + +void CreateSnapshotRequest::setTag5Key(const std::string& tag5Key) +{ + tag5Key_ = tag5Key; + setParameter("Tag5Key", tag5Key); +} + +std::string CreateSnapshotRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateSnapshotRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateSnapshotRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateSnapshotRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateSnapshotRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateSnapshotRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateSnapshotRequest::getDescription()const +{ + return description_; +} + +void CreateSnapshotRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateSnapshotRequest::getSnapshotName()const +{ + return snapshotName_; +} + +void CreateSnapshotRequest::setSnapshotName(const std::string& snapshotName) +{ + snapshotName_ = snapshotName; + setParameter("SnapshotName", snapshotName); +} + +std::string CreateSnapshotRequest::getTag3Key()const +{ + return tag3Key_; +} + +void CreateSnapshotRequest::setTag3Key(const std::string& tag3Key) +{ + tag3Key_ = tag3Key; + setParameter("Tag3Key", tag3Key); +} + +long CreateSnapshotRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateSnapshotRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateSnapshotRequest::getTag5Value()const +{ + return tag5Value_; +} + +void CreateSnapshotRequest::setTag5Value(const std::string& tag5Value) +{ + tag5Value_ = tag5Value; + setParameter("Tag5Value", tag5Value); +} + +std::string CreateSnapshotRequest::getTag1Key()const +{ + return tag1Key_; +} + +void CreateSnapshotRequest::setTag1Key(const std::string& tag1Key) +{ + tag1Key_ = tag1Key; + setParameter("Tag1Key", tag1Key); +} + +std::string CreateSnapshotRequest::getTag1Value()const +{ + return tag1Value_; +} + +void CreateSnapshotRequest::setTag1Value(const std::string& tag1Value) +{ + tag1Value_ = tag1Value; + setParameter("Tag1Value", tag1Value); +} + +std::string CreateSnapshotRequest::getTag2Value()const +{ + return tag2Value_; +} + +void CreateSnapshotRequest::setTag2Value(const std::string& tag2Value) +{ + tag2Value_ = tag2Value; + setParameter("Tag2Value", tag2Value); +} + +std::string CreateSnapshotRequest::getTag4Key()const +{ + return tag4Key_; +} + +void CreateSnapshotRequest::setTag4Key(const std::string& tag4Key) +{ + tag4Key_ = tag4Key; + setParameter("Tag4Key", tag4Key); +} + +std::string CreateSnapshotRequest::getDiskId()const +{ + return diskId_; +} + +void CreateSnapshotRequest::setDiskId(const std::string& diskId) +{ + diskId_ = diskId; + setParameter("DiskId", diskId); +} + +std::string CreateSnapshotRequest::getTag3Value()const +{ + return tag3Value_; +} + +void CreateSnapshotRequest::setTag3Value(const std::string& tag3Value) +{ + tag3Value_ = tag3Value; + setParameter("Tag3Value", tag3Value); +} + diff --git a/ecs/src/model/CreateSnapshotResult.cc b/ecs/src/model/CreateSnapshotResult.cc new file mode 100644 index 000000000..698b142e3 --- /dev/null +++ b/ecs/src/model/CreateSnapshotResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateSnapshotResult::CreateSnapshotResult() : + ServiceResult() +{} + +CreateSnapshotResult::CreateSnapshotResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSnapshotResult::~CreateSnapshotResult() +{} + +void CreateSnapshotResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + snapshotId_ = value["SnapshotId"].asString(); + +} + +std::string CreateSnapshotResult::getSnapshotId()const +{ + return snapshotId_; +} + +void CreateSnapshotResult::setSnapshotId(const std::string& snapshotId) +{ + snapshotId_ = snapshotId; +} + diff --git a/ecs/src/model/CreateVSwitchRequest.cc b/ecs/src/model/CreateVSwitchRequest.cc new file mode 100644 index 000000000..9c7092845 --- /dev/null +++ b/ecs/src/model/CreateVSwitchRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateVSwitchRequest::CreateVSwitchRequest() : + EcsRequest("CreateVSwitch") +{} + +CreateVSwitchRequest::~CreateVSwitchRequest() +{} + +long CreateVSwitchRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateVSwitchRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateVSwitchRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateVSwitchRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateVSwitchRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateVSwitchRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateVSwitchRequest::getVpcId()const +{ + return vpcId_; +} + +void CreateVSwitchRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string CreateVSwitchRequest::getVSwitchName()const +{ + return vSwitchName_; +} + +void CreateVSwitchRequest::setVSwitchName(const std::string& vSwitchName) +{ + vSwitchName_ = vSwitchName; + setParameter("VSwitchName", vSwitchName); +} + +std::string CreateVSwitchRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateVSwitchRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateVSwitchRequest::getCidrBlock()const +{ + return cidrBlock_; +} + +void CreateVSwitchRequest::setCidrBlock(const std::string& cidrBlock) +{ + cidrBlock_ = cidrBlock; + setParameter("CidrBlock", cidrBlock); +} + +std::string CreateVSwitchRequest::getZoneId()const +{ + return zoneId_; +} + +void CreateVSwitchRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string CreateVSwitchRequest::getDescription()const +{ + return description_; +} + +void CreateVSwitchRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long CreateVSwitchRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateVSwitchRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/CreateVSwitchResult.cc b/ecs/src/model/CreateVSwitchResult.cc new file mode 100644 index 000000000..fc246f481 --- /dev/null +++ b/ecs/src/model/CreateVSwitchResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateVSwitchResult::CreateVSwitchResult() : + ServiceResult() +{} + +CreateVSwitchResult::CreateVSwitchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVSwitchResult::~CreateVSwitchResult() +{} + +void CreateVSwitchResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + vSwitchId_ = value["VSwitchId"].asString(); + +} + +std::string CreateVSwitchResult::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateVSwitchResult::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; +} + diff --git a/ecs/src/model/CreateVirtualBorderRouterRequest.cc b/ecs/src/model/CreateVirtualBorderRouterRequest.cc new file mode 100644 index 000000000..879b0958c --- /dev/null +++ b/ecs/src/model/CreateVirtualBorderRouterRequest.cc @@ -0,0 +1,204 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateVirtualBorderRouterRequest::CreateVirtualBorderRouterRequest() : + EcsRequest("CreateVirtualBorderRouter") +{} + +CreateVirtualBorderRouterRequest::~CreateVirtualBorderRouterRequest() +{} + +long CreateVirtualBorderRouterRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateVirtualBorderRouterRequest::getCircuitCode()const +{ + return circuitCode_; +} + +void CreateVirtualBorderRouterRequest::setCircuitCode(const std::string& circuitCode) +{ + circuitCode_ = circuitCode; + setParameter("CircuitCode", circuitCode); +} + +int CreateVirtualBorderRouterRequest::getVlanId()const +{ + return vlanId_; +} + +void CreateVirtualBorderRouterRequest::setVlanId(int vlanId) +{ + vlanId_ = vlanId; + setParameter("VlanId", std::to_string(vlanId)); +} + +std::string CreateVirtualBorderRouterRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateVirtualBorderRouterRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateVirtualBorderRouterRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateVirtualBorderRouterRequest::getDescription()const +{ + return description_; +} + +void CreateVirtualBorderRouterRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long CreateVirtualBorderRouterRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateVirtualBorderRouterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateVirtualBorderRouterRequest::getPeerGatewayIp()const +{ + return peerGatewayIp_; +} + +void CreateVirtualBorderRouterRequest::setPeerGatewayIp(const std::string& peerGatewayIp) +{ + peerGatewayIp_ = peerGatewayIp; + setParameter("PeerGatewayIp", peerGatewayIp); +} + +std::string CreateVirtualBorderRouterRequest::getPeeringSubnetMask()const +{ + return peeringSubnetMask_; +} + +void CreateVirtualBorderRouterRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask) +{ + peeringSubnetMask_ = peeringSubnetMask; + setParameter("PeeringSubnetMask", peeringSubnetMask); +} + +std::string CreateVirtualBorderRouterRequest::getRegionId()const +{ + return regionId_; +} + +void CreateVirtualBorderRouterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateVirtualBorderRouterRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void CreateVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + +std::string CreateVirtualBorderRouterRequest::getName()const +{ + return name_; +} + +void CreateVirtualBorderRouterRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateVirtualBorderRouterRequest::getLocalGatewayIp()const +{ + return localGatewayIp_; +} + +void CreateVirtualBorderRouterRequest::setLocalGatewayIp(const std::string& localGatewayIp) +{ + localGatewayIp_ = localGatewayIp; + setParameter("LocalGatewayIp", localGatewayIp); +} + +std::string CreateVirtualBorderRouterRequest::getUserCidr()const +{ + return userCidr_; +} + +void CreateVirtualBorderRouterRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +long CreateVirtualBorderRouterRequest::getVbrOwnerId()const +{ + return vbrOwnerId_; +} + +void CreateVirtualBorderRouterRequest::setVbrOwnerId(long vbrOwnerId) +{ + vbrOwnerId_ = vbrOwnerId; + setParameter("VbrOwnerId", std::to_string(vbrOwnerId)); +} + diff --git a/ecs/src/model/CreateVirtualBorderRouterResult.cc b/ecs/src/model/CreateVirtualBorderRouterResult.cc new file mode 100644 index 000000000..d6104695d --- /dev/null +++ b/ecs/src/model/CreateVirtualBorderRouterResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateVirtualBorderRouterResult::CreateVirtualBorderRouterResult() : + ServiceResult() +{} + +CreateVirtualBorderRouterResult::CreateVirtualBorderRouterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVirtualBorderRouterResult::~CreateVirtualBorderRouterResult() +{} + +void CreateVirtualBorderRouterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + vbrId_ = value["VbrId"].asString(); + +} + +std::string CreateVirtualBorderRouterResult::getVbrId()const +{ + return vbrId_; +} + +void CreateVirtualBorderRouterResult::setVbrId(const std::string& vbrId) +{ + vbrId_ = vbrId; +} + diff --git a/ecs/src/model/CreateVpcRequest.cc b/ecs/src/model/CreateVpcRequest.cc new file mode 100644 index 000000000..933e58307 --- /dev/null +++ b/ecs/src/model/CreateVpcRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateVpcRequest::CreateVpcRequest() : + EcsRequest("CreateVpc") +{} + +CreateVpcRequest::~CreateVpcRequest() +{} + +std::string CreateVpcRequest::getVpcName()const +{ + return vpcName_; +} + +void CreateVpcRequest::setVpcName(const std::string& vpcName) +{ + vpcName_ = vpcName; + setParameter("VpcName", vpcName); +} + +long CreateVpcRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateVpcRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateVpcRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateVpcRequest::getRegionId()const +{ + return regionId_; +} + +void CreateVpcRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateVpcRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateVpcRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateVpcRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateVpcRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateVpcRequest::getCidrBlock()const +{ + return cidrBlock_; +} + +void CreateVpcRequest::setCidrBlock(const std::string& cidrBlock) +{ + cidrBlock_ = cidrBlock; + setParameter("CidrBlock", cidrBlock); +} + +std::string CreateVpcRequest::getDescription()const +{ + return description_; +} + +void CreateVpcRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateVpcRequest::getUserCidr()const +{ + return userCidr_; +} + +void CreateVpcRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +long CreateVpcRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateVpcRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/CreateVpcResult.cc b/ecs/src/model/CreateVpcResult.cc new file mode 100644 index 000000000..047574000 --- /dev/null +++ b/ecs/src/model/CreateVpcResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +CreateVpcResult::CreateVpcResult() : + ServiceResult() +{} + +CreateVpcResult::CreateVpcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVpcResult::~CreateVpcResult() +{} + +void CreateVpcResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + vpcId_ = value["VpcId"].asString(); + vRouterId_ = value["VRouterId"].asString(); + routeTableId_ = value["RouteTableId"].asString(); + +} + +std::string CreateVpcResult::getVRouterId()const +{ + return vRouterId_; +} + +void CreateVpcResult::setVRouterId(const std::string& vRouterId) +{ + vRouterId_ = vRouterId; +} + +std::string CreateVpcResult::getRouteTableId()const +{ + return routeTableId_; +} + +void CreateVpcResult::setRouteTableId(const std::string& routeTableId) +{ + routeTableId_ = routeTableId; +} + +std::string CreateVpcResult::getVpcId()const +{ + return vpcId_; +} + +void CreateVpcResult::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; +} + diff --git a/ecs/src/model/DeactivateRouterInterfaceRequest.cc b/ecs/src/model/DeactivateRouterInterfaceRequest.cc new file mode 100644 index 000000000..8681575f7 --- /dev/null +++ b/ecs/src/model/DeactivateRouterInterfaceRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeactivateRouterInterfaceRequest::DeactivateRouterInterfaceRequest() : + EcsRequest("DeactivateRouterInterface") +{} + +DeactivateRouterInterfaceRequest::~DeactivateRouterInterfaceRequest() +{} + +long DeactivateRouterInterfaceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeactivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeactivateRouterInterfaceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeactivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeactivateRouterInterfaceRequest::getRegionId()const +{ + return regionId_; +} + +void DeactivateRouterInterfaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long DeactivateRouterInterfaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeactivateRouterInterfaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeactivateRouterInterfaceRequest::getRouterInterfaceId()const +{ + return routerInterfaceId_; +} + +void DeactivateRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) +{ + routerInterfaceId_ = routerInterfaceId; + setParameter("RouterInterfaceId", routerInterfaceId); +} + diff --git a/ecs/src/model/DeactivateRouterInterfaceResult.cc b/ecs/src/model/DeactivateRouterInterfaceResult.cc new file mode 100644 index 000000000..384dffc5d --- /dev/null +++ b/ecs/src/model/DeactivateRouterInterfaceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeactivateRouterInterfaceResult::DeactivateRouterInterfaceResult() : + ServiceResult() +{} + +DeactivateRouterInterfaceResult::DeactivateRouterInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeactivateRouterInterfaceResult::~DeactivateRouterInterfaceResult() +{} + +void DeactivateRouterInterfaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteAutoSnapshotPolicyRequest.cc b/ecs/src/model/DeleteAutoSnapshotPolicyRequest.cc new file mode 100644 index 000000000..38ae53f58 --- /dev/null +++ b/ecs/src/model/DeleteAutoSnapshotPolicyRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteAutoSnapshotPolicyRequest::DeleteAutoSnapshotPolicyRequest() : + EcsRequest("DeleteAutoSnapshotPolicy") +{} + +DeleteAutoSnapshotPolicyRequest::~DeleteAutoSnapshotPolicyRequest() +{} + +long DeleteAutoSnapshotPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteAutoSnapshotPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteAutoSnapshotPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteAutoSnapshotPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteAutoSnapshotPolicyRequest::getAutoSnapshotPolicyId()const +{ + return autoSnapshotPolicyId_; +} + +void DeleteAutoSnapshotPolicyRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId) +{ + autoSnapshotPolicyId_ = autoSnapshotPolicyId; + setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId); +} + +long DeleteAutoSnapshotPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteAutoSnapshotPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteAutoSnapshotPolicyResult.cc b/ecs/src/model/DeleteAutoSnapshotPolicyResult.cc new file mode 100644 index 000000000..46609e811 --- /dev/null +++ b/ecs/src/model/DeleteAutoSnapshotPolicyResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteAutoSnapshotPolicyResult::DeleteAutoSnapshotPolicyResult() : + ServiceResult() +{} + +DeleteAutoSnapshotPolicyResult::DeleteAutoSnapshotPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAutoSnapshotPolicyResult::~DeleteAutoSnapshotPolicyResult() +{} + +void DeleteAutoSnapshotPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteBandwidthPackageRequest.cc b/ecs/src/model/DeleteBandwidthPackageRequest.cc new file mode 100644 index 000000000..4e6733c6d --- /dev/null +++ b/ecs/src/model/DeleteBandwidthPackageRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteBandwidthPackageRequest::DeleteBandwidthPackageRequest() : + EcsRequest("DeleteBandwidthPackage") +{} + +DeleteBandwidthPackageRequest::~DeleteBandwidthPackageRequest() +{} + +long DeleteBandwidthPackageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteBandwidthPackageRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void DeleteBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string DeleteBandwidthPackageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteBandwidthPackageRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteBandwidthPackageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteBandwidthPackageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteBandwidthPackageRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteBandwidthPackageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteBandwidthPackageResult.cc b/ecs/src/model/DeleteBandwidthPackageResult.cc new file mode 100644 index 000000000..b18a3a511 --- /dev/null +++ b/ecs/src/model/DeleteBandwidthPackageResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteBandwidthPackageResult::DeleteBandwidthPackageResult() : + ServiceResult() +{} + +DeleteBandwidthPackageResult::DeleteBandwidthPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBandwidthPackageResult::~DeleteBandwidthPackageResult() +{} + +void DeleteBandwidthPackageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteCommandRequest.cc b/ecs/src/model/DeleteCommandRequest.cc new file mode 100644 index 000000000..c3deb7243 --- /dev/null +++ b/ecs/src/model/DeleteCommandRequest.cc @@ -0,0 +1,303 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteCommandRequest::DeleteCommandRequest() : + EcsRequest("DeleteCommand") +{} + +DeleteCommandRequest::~DeleteCommandRequest() +{} + +long DeleteCommandRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteCommandRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DeleteCommandRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeleteCommandRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DeleteCommandRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeleteCommandRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DeleteCommandRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeleteCommandRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DeleteCommandRequest::getCommandId()const +{ + return commandId_; +} + +void DeleteCommandRequest::setCommandId(const std::string& commandId) +{ + commandId_ = commandId; + setParameter("CommandId", commandId); +} + +std::string DeleteCommandRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DeleteCommandRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DeleteCommandRequest::getCallerType()const +{ + return callerType_; +} + +void DeleteCommandRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DeleteCommandRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteCommandRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteCommandRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DeleteCommandRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DeleteCommandRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteCommandRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteCommandRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteCommandRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DeleteCommandRequest::getEnable()const +{ + return enable_; +} + +void DeleteCommandRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DeleteCommandRequest::getRequestContent()const +{ + return requestContent_; +} + +void DeleteCommandRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DeleteCommandRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DeleteCommandRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DeleteCommandRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DeleteCommandRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DeleteCommandRequest::getCallerUid()const +{ + return callerUid_; +} + +void DeleteCommandRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DeleteCommandRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteCommandRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DeleteCommandRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteCommandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteCommandRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteCommandRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteCommandRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteCommandRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DeleteCommandRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteCommandRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool DeleteCommandRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteCommandRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DeleteCommandRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteCommandRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DeleteCommandRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteCommandRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DeleteCommandRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteCommandRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ecs/src/model/DeleteCommandResult.cc b/ecs/src/model/DeleteCommandResult.cc new file mode 100644 index 000000000..7df2736a5 --- /dev/null +++ b/ecs/src/model/DeleteCommandResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteCommandResult::DeleteCommandResult() : + ServiceResult() +{} + +DeleteCommandResult::DeleteCommandResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCommandResult::~DeleteCommandResult() +{} + +void DeleteCommandResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteDeploymentSetRequest.cc b/ecs/src/model/DeleteDeploymentSetRequest.cc new file mode 100644 index 000000000..745c2b180 --- /dev/null +++ b/ecs/src/model/DeleteDeploymentSetRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteDeploymentSetRequest::DeleteDeploymentSetRequest() : + EcsRequest("DeleteDeploymentSet") +{} + +DeleteDeploymentSetRequest::~DeleteDeploymentSetRequest() +{} + +std::string DeleteDeploymentSetRequest::getDeploymentSetId()const +{ + return deploymentSetId_; +} + +void DeleteDeploymentSetRequest::setDeploymentSetId(const std::string& deploymentSetId) +{ + deploymentSetId_ = deploymentSetId; + setParameter("DeploymentSetId", deploymentSetId); +} + +long DeleteDeploymentSetRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteDeploymentSetRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteDeploymentSetRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteDeploymentSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteDeploymentSetRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteDeploymentSetRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteDeploymentSetRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteDeploymentSetRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteDeploymentSetRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteDeploymentSetRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteDeploymentSetResult.cc b/ecs/src/model/DeleteDeploymentSetResult.cc new file mode 100644 index 000000000..9c893ff74 --- /dev/null +++ b/ecs/src/model/DeleteDeploymentSetResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteDeploymentSetResult::DeleteDeploymentSetResult() : + ServiceResult() +{} + +DeleteDeploymentSetResult::DeleteDeploymentSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDeploymentSetResult::~DeleteDeploymentSetResult() +{} + +void DeleteDeploymentSetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteDiskRequest.cc b/ecs/src/model/DeleteDiskRequest.cc new file mode 100644 index 000000000..32f072d84 --- /dev/null +++ b/ecs/src/model/DeleteDiskRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteDiskRequest::DeleteDiskRequest() : + EcsRequest("DeleteDisk") +{} + +DeleteDiskRequest::~DeleteDiskRequest() +{} + +long DeleteDiskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteDiskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteDiskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteDiskRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteDiskRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteDiskRequest::getDiskId()const +{ + return diskId_; +} + +void DeleteDiskRequest::setDiskId(const std::string& diskId) +{ + diskId_ = diskId; + setParameter("DiskId", diskId); +} + +long DeleteDiskRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteDiskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteDiskResult.cc b/ecs/src/model/DeleteDiskResult.cc new file mode 100644 index 000000000..e15123f57 --- /dev/null +++ b/ecs/src/model/DeleteDiskResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteDiskResult::DeleteDiskResult() : + ServiceResult() +{} + +DeleteDiskResult::DeleteDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDiskResult::~DeleteDiskResult() +{} + +void DeleteDiskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteForwardEntryRequest.cc b/ecs/src/model/DeleteForwardEntryRequest.cc new file mode 100644 index 000000000..6d063a4d5 --- /dev/null +++ b/ecs/src/model/DeleteForwardEntryRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteForwardEntryRequest::DeleteForwardEntryRequest() : + EcsRequest("DeleteForwardEntry") +{} + +DeleteForwardEntryRequest::~DeleteForwardEntryRequest() +{} + +long DeleteForwardEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteForwardEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteForwardEntryRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteForwardEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteForwardEntryRequest::getForwardEntryId()const +{ + return forwardEntryId_; +} + +void DeleteForwardEntryRequest::setForwardEntryId(const std::string& forwardEntryId) +{ + forwardEntryId_ = forwardEntryId; + setParameter("ForwardEntryId", forwardEntryId); +} + +std::string DeleteForwardEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteForwardEntryRequest::getForwardTableId()const +{ + return forwardTableId_; +} + +void DeleteForwardEntryRequest::setForwardTableId(const std::string& forwardTableId) +{ + forwardTableId_ = forwardTableId; + setParameter("ForwardTableId", forwardTableId); +} + +long DeleteForwardEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteForwardEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteForwardEntryResult.cc b/ecs/src/model/DeleteForwardEntryResult.cc new file mode 100644 index 000000000..158519ec1 --- /dev/null +++ b/ecs/src/model/DeleteForwardEntryResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteForwardEntryResult::DeleteForwardEntryResult() : + ServiceResult() +{} + +DeleteForwardEntryResult::DeleteForwardEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteForwardEntryResult::~DeleteForwardEntryResult() +{} + +void DeleteForwardEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteHaVipRequest.cc b/ecs/src/model/DeleteHaVipRequest.cc new file mode 100644 index 000000000..f237f9c17 --- /dev/null +++ b/ecs/src/model/DeleteHaVipRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteHaVipRequest::DeleteHaVipRequest() : + EcsRequest("DeleteHaVip") +{} + +DeleteHaVipRequest::~DeleteHaVipRequest() +{} + +std::string DeleteHaVipRequest::getHaVipId()const +{ + return haVipId_; +} + +void DeleteHaVipRequest::setHaVipId(const std::string& haVipId) +{ + haVipId_ = haVipId; + setParameter("HaVipId", haVipId); +} + +long DeleteHaVipRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteHaVipRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteHaVipRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteHaVipRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteHaVipRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteHaVipRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteHaVipRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteHaVipRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteHaVipRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteHaVipRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteHaVipRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteHaVipResult.cc b/ecs/src/model/DeleteHaVipResult.cc new file mode 100644 index 000000000..f60ed5d0c --- /dev/null +++ b/ecs/src/model/DeleteHaVipResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteHaVipResult::DeleteHaVipResult() : + ServiceResult() +{} + +DeleteHaVipResult::DeleteHaVipResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteHaVipResult::~DeleteHaVipResult() +{} + +void DeleteHaVipResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteHpcClusterRequest.cc b/ecs/src/model/DeleteHpcClusterRequest.cc new file mode 100644 index 000000000..e974b4c57 --- /dev/null +++ b/ecs/src/model/DeleteHpcClusterRequest.cc @@ -0,0 +1,303 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteHpcClusterRequest::DeleteHpcClusterRequest() : + EcsRequest("DeleteHpcCluster") +{} + +DeleteHpcClusterRequest::~DeleteHpcClusterRequest() +{} + +long DeleteHpcClusterRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteHpcClusterRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteHpcClusterRequest::getHpcClusterId()const +{ + return hpcClusterId_; +} + +void DeleteHpcClusterRequest::setHpcClusterId(const std::string& hpcClusterId) +{ + hpcClusterId_ = hpcClusterId; + setParameter("HpcClusterId", hpcClusterId); +} + +std::string DeleteHpcClusterRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteHpcClusterRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +long DeleteHpcClusterRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeleteHpcClusterRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DeleteHpcClusterRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeleteHpcClusterRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DeleteHpcClusterRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeleteHpcClusterRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DeleteHpcClusterRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DeleteHpcClusterRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DeleteHpcClusterRequest::getCallerType()const +{ + return callerType_; +} + +void DeleteHpcClusterRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DeleteHpcClusterRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteHpcClusterRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteHpcClusterRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteHpcClusterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteHpcClusterRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteHpcClusterRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +bool DeleteHpcClusterRequest::getEnable()const +{ + return enable_; +} + +void DeleteHpcClusterRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DeleteHpcClusterRequest::getRequestContent()const +{ + return requestContent_; +} + +void DeleteHpcClusterRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DeleteHpcClusterRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DeleteHpcClusterRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DeleteHpcClusterRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DeleteHpcClusterRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DeleteHpcClusterRequest::getCallerUid()const +{ + return callerUid_; +} + +void DeleteHpcClusterRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DeleteHpcClusterRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteHpcClusterRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DeleteHpcClusterRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteHpcClusterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteHpcClusterRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteHpcClusterRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteHpcClusterRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteHpcClusterRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DeleteHpcClusterRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteHpcClusterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool DeleteHpcClusterRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteHpcClusterRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DeleteHpcClusterRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteHpcClusterRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DeleteHpcClusterRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteHpcClusterRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DeleteHpcClusterRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteHpcClusterRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ecs/src/model/DeleteHpcClusterResult.cc b/ecs/src/model/DeleteHpcClusterResult.cc new file mode 100644 index 000000000..627744b0c --- /dev/null +++ b/ecs/src/model/DeleteHpcClusterResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteHpcClusterResult::DeleteHpcClusterResult() : + ServiceResult() +{} + +DeleteHpcClusterResult::DeleteHpcClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteHpcClusterResult::~DeleteHpcClusterResult() +{} + +void DeleteHpcClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteImageRequest.cc b/ecs/src/model/DeleteImageRequest.cc new file mode 100644 index 000000000..6b9fb6562 --- /dev/null +++ b/ecs/src/model/DeleteImageRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteImageRequest::DeleteImageRequest() : + EcsRequest("DeleteImage") +{} + +DeleteImageRequest::~DeleteImageRequest() +{} + +long DeleteImageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteImageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteImageRequest::getImageId()const +{ + return imageId_; +} + +void DeleteImageRequest::setImageId(const std::string& imageId) +{ + imageId_ = imageId; + setParameter("ImageId", imageId); +} + +std::string DeleteImageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteImageRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteImageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteImageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteImageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +bool DeleteImageRequest::getForce()const +{ + return force_; +} + +void DeleteImageRequest::setForce(bool force) +{ + force_ = force; + setParameter("Force", std::to_string(force)); +} + +long DeleteImageRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteImageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteImageResult.cc b/ecs/src/model/DeleteImageResult.cc new file mode 100644 index 000000000..d991441f0 --- /dev/null +++ b/ecs/src/model/DeleteImageResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteImageResult::DeleteImageResult() : + ServiceResult() +{} + +DeleteImageResult::DeleteImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteImageResult::~DeleteImageResult() +{} + +void DeleteImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteInstanceRequest.cc b/ecs/src/model/DeleteInstanceRequest.cc new file mode 100644 index 000000000..f0a34b380 --- /dev/null +++ b/ecs/src/model/DeleteInstanceRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteInstanceRequest::DeleteInstanceRequest() : + EcsRequest("DeleteInstance") +{} + +DeleteInstanceRequest::~DeleteInstanceRequest() +{} + +long DeleteInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DeleteInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +bool DeleteInstanceRequest::getTerminateSubscription()const +{ + return terminateSubscription_; +} + +void DeleteInstanceRequest::setTerminateSubscription(bool terminateSubscription) +{ + terminateSubscription_ = terminateSubscription; + setParameter("TerminateSubscription", std::to_string(terminateSubscription)); +} + +bool DeleteInstanceRequest::getForce()const +{ + return force_; +} + +void DeleteInstanceRequest::setForce(bool force) +{ + force_ = force; + setParameter("Force", std::to_string(force)); +} + +long DeleteInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteInstanceResult.cc b/ecs/src/model/DeleteInstanceResult.cc new file mode 100644 index 000000000..7398b5a98 --- /dev/null +++ b/ecs/src/model/DeleteInstanceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteInstanceResult::DeleteInstanceResult() : + ServiceResult() +{} + +DeleteInstanceResult::DeleteInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteInstanceResult::~DeleteInstanceResult() +{} + +void DeleteInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteKeyPairsRequest.cc b/ecs/src/model/DeleteKeyPairsRequest.cc new file mode 100644 index 000000000..8ff426a39 --- /dev/null +++ b/ecs/src/model/DeleteKeyPairsRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteKeyPairsRequest::DeleteKeyPairsRequest() : + EcsRequest("DeleteKeyPairs") +{} + +DeleteKeyPairsRequest::~DeleteKeyPairsRequest() +{} + +long DeleteKeyPairsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteKeyPairsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteKeyPairsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteKeyPairsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteKeyPairsRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteKeyPairsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteKeyPairsRequest::getKeyPairNames()const +{ + return keyPairNames_; +} + +void DeleteKeyPairsRequest::setKeyPairNames(const std::string& keyPairNames) +{ + keyPairNames_ = keyPairNames; + setParameter("KeyPairNames", keyPairNames); +} + +long DeleteKeyPairsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteKeyPairsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteKeyPairsResult.cc b/ecs/src/model/DeleteKeyPairsResult.cc new file mode 100644 index 000000000..cd2f6ac62 --- /dev/null +++ b/ecs/src/model/DeleteKeyPairsResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteKeyPairsResult::DeleteKeyPairsResult() : + ServiceResult() +{} + +DeleteKeyPairsResult::DeleteKeyPairsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteKeyPairsResult::~DeleteKeyPairsResult() +{} + +void DeleteKeyPairsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteNatGatewayRequest.cc b/ecs/src/model/DeleteNatGatewayRequest.cc new file mode 100644 index 000000000..9f736f399 --- /dev/null +++ b/ecs/src/model/DeleteNatGatewayRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteNatGatewayRequest::DeleteNatGatewayRequest() : + EcsRequest("DeleteNatGateway") +{} + +DeleteNatGatewayRequest::~DeleteNatGatewayRequest() +{} + +long DeleteNatGatewayRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteNatGatewayRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteNatGatewayRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteNatGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteNatGatewayRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteNatGatewayRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteNatGatewayRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteNatGatewayRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteNatGatewayRequest::getNatGatewayId()const +{ + return natGatewayId_; +} + +void DeleteNatGatewayRequest::setNatGatewayId(const std::string& natGatewayId) +{ + natGatewayId_ = natGatewayId; + setParameter("NatGatewayId", natGatewayId); +} + +long DeleteNatGatewayRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteNatGatewayRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteNatGatewayResult.cc b/ecs/src/model/DeleteNatGatewayResult.cc new file mode 100644 index 000000000..254652e27 --- /dev/null +++ b/ecs/src/model/DeleteNatGatewayResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteNatGatewayResult::DeleteNatGatewayResult() : + ServiceResult() +{} + +DeleteNatGatewayResult::DeleteNatGatewayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNatGatewayResult::~DeleteNatGatewayResult() +{} + +void DeleteNatGatewayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteNetworkInterfaceRequest.cc b/ecs/src/model/DeleteNetworkInterfaceRequest.cc new file mode 100644 index 000000000..33ba2bd20 --- /dev/null +++ b/ecs/src/model/DeleteNetworkInterfaceRequest.cc @@ -0,0 +1,303 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteNetworkInterfaceRequest::DeleteNetworkInterfaceRequest() : + EcsRequest("DeleteNetworkInterface") +{} + +DeleteNetworkInterfaceRequest::~DeleteNetworkInterfaceRequest() +{} + +long DeleteNetworkInterfaceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DeleteNetworkInterfaceRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DeleteNetworkInterfaceRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DeleteNetworkInterfaceRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DeleteNetworkInterfaceRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DeleteNetworkInterfaceRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DeleteNetworkInterfaceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DeleteNetworkInterfaceRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DeleteNetworkInterfaceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DeleteNetworkInterfaceRequest::getCallerType()const +{ + return callerType_; +} + +void DeleteNetworkInterfaceRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DeleteNetworkInterfaceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteNetworkInterfaceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteNetworkInterfaceRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DeleteNetworkInterfaceRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DeleteNetworkInterfaceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteNetworkInterfaceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteNetworkInterfaceRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteNetworkInterfaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DeleteNetworkInterfaceRequest::getEnable()const +{ + return enable_; +} + +void DeleteNetworkInterfaceRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DeleteNetworkInterfaceRequest::getRequestContent()const +{ + return requestContent_; +} + +void DeleteNetworkInterfaceRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DeleteNetworkInterfaceRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DeleteNetworkInterfaceRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DeleteNetworkInterfaceRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DeleteNetworkInterfaceRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DeleteNetworkInterfaceRequest::getCallerUid()const +{ + return callerUid_; +} + +void DeleteNetworkInterfaceRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DeleteNetworkInterfaceRequest::getApp_ip()const +{ + return app_ip_; +} + +void DeleteNetworkInterfaceRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DeleteNetworkInterfaceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteNetworkInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteNetworkInterfaceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteNetworkInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteNetworkInterfaceRequest::getCallerBid()const +{ + return callerBid_; +} + +void DeleteNetworkInterfaceRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DeleteNetworkInterfaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteNetworkInterfaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool DeleteNetworkInterfaceRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DeleteNetworkInterfaceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DeleteNetworkInterfaceRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DeleteNetworkInterfaceRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DeleteNetworkInterfaceRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DeleteNetworkInterfaceRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DeleteNetworkInterfaceRequest::getRequestId()const +{ + return requestId_; +} + +void DeleteNetworkInterfaceRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DeleteNetworkInterfaceRequest::getNetworkInterfaceId()const +{ + return networkInterfaceId_; +} + +void DeleteNetworkInterfaceRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) +{ + networkInterfaceId_ = networkInterfaceId; + setParameter("NetworkInterfaceId", networkInterfaceId); +} + diff --git a/ecs/src/model/DeleteNetworkInterfaceResult.cc b/ecs/src/model/DeleteNetworkInterfaceResult.cc new file mode 100644 index 000000000..8396f573b --- /dev/null +++ b/ecs/src/model/DeleteNetworkInterfaceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteNetworkInterfaceResult::DeleteNetworkInterfaceResult() : + ServiceResult() +{} + +DeleteNetworkInterfaceResult::DeleteNetworkInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNetworkInterfaceResult::~DeleteNetworkInterfaceResult() +{} + +void DeleteNetworkInterfaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeletePhysicalConnectionRequest.cc b/ecs/src/model/DeletePhysicalConnectionRequest.cc new file mode 100644 index 000000000..f868bc163 --- /dev/null +++ b/ecs/src/model/DeletePhysicalConnectionRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeletePhysicalConnectionRequest::DeletePhysicalConnectionRequest() : + EcsRequest("DeletePhysicalConnection") +{} + +DeletePhysicalConnectionRequest::~DeletePhysicalConnectionRequest() +{} + +long DeletePhysicalConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeletePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeletePhysicalConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void DeletePhysicalConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeletePhysicalConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeletePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeletePhysicalConnectionRequest::getClientToken()const +{ + return clientToken_; +} + +void DeletePhysicalConnectionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeletePhysicalConnectionRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void DeletePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + +std::string DeletePhysicalConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeletePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeletePhysicalConnectionRequest::getUserCidr()const +{ + return userCidr_; +} + +void DeletePhysicalConnectionRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +long DeletePhysicalConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeletePhysicalConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeletePhysicalConnectionResult.cc b/ecs/src/model/DeletePhysicalConnectionResult.cc new file mode 100644 index 000000000..e00fbe5f1 --- /dev/null +++ b/ecs/src/model/DeletePhysicalConnectionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeletePhysicalConnectionResult::DeletePhysicalConnectionResult() : + ServiceResult() +{} + +DeletePhysicalConnectionResult::DeletePhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePhysicalConnectionResult::~DeletePhysicalConnectionResult() +{} + +void DeletePhysicalConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteRecycleBinRequest.cc b/ecs/src/model/DeleteRecycleBinRequest.cc new file mode 100644 index 000000000..7d1835390 --- /dev/null +++ b/ecs/src/model/DeleteRecycleBinRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteRecycleBinRequest::DeleteRecycleBinRequest() : + EcsRequest("DeleteRecycleBin") +{} + +DeleteRecycleBinRequest::~DeleteRecycleBinRequest() +{} + +long DeleteRecycleBinRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteRecycleBinRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteRecycleBinRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteRecycleBinRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteRecycleBinRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteRecycleBinRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteRecycleBinRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteRecycleBinRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteRecycleBinRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteRecycleBinRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteRecycleBinRequest::getResourceIds()const +{ + return resourceIds_; +} + +void DeleteRecycleBinRequest::setResourceIds(const std::string& resourceIds) +{ + resourceIds_ = resourceIds; + setParameter("ResourceIds", resourceIds); +} + diff --git a/ecs/src/model/DeleteRecycleBinResult.cc b/ecs/src/model/DeleteRecycleBinResult.cc new file mode 100644 index 000000000..b3d451cf8 --- /dev/null +++ b/ecs/src/model/DeleteRecycleBinResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteRecycleBinResult::DeleteRecycleBinResult() : + ServiceResult() +{} + +DeleteRecycleBinResult::DeleteRecycleBinResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRecycleBinResult::~DeleteRecycleBinResult() +{} + +void DeleteRecycleBinResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteRouteEntryRequest.cc b/ecs/src/model/DeleteRouteEntryRequest.cc new file mode 100644 index 000000000..c6e8be9c0 --- /dev/null +++ b/ecs/src/model/DeleteRouteEntryRequest.cc @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteRouteEntryRequest::DeleteRouteEntryRequest() : + EcsRequest("DeleteRouteEntry") +{} + +DeleteRouteEntryRequest::~DeleteRouteEntryRequest() +{} + +long DeleteRouteEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteRouteEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteRouteEntryRequest::getDestinationCidrBlock()const +{ + return destinationCidrBlock_; +} + +void DeleteRouteEntryRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) +{ + destinationCidrBlock_ = destinationCidrBlock; + setParameter("DestinationCidrBlock", destinationCidrBlock); +} + +std::string DeleteRouteEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteRouteEntryRequest::getNextHopId()const +{ + return nextHopId_; +} + +void DeleteRouteEntryRequest::setNextHopId(const std::string& nextHopId) +{ + nextHopId_ = nextHopId; + setParameter("NextHopId", nextHopId); +} + +long DeleteRouteEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteRouteEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::vector DeleteRouteEntryRequest::getNextHopList()const +{ + return nextHopList_; +} + +void DeleteRouteEntryRequest::setNextHopList(const std::vector& nextHopList) +{ + nextHopList_ = nextHopList; + int i = 0; + for(int i = 0; i!= nextHopList.size(); i++) { + auto obj = nextHopList.at(i); + std::string str ="NextHopList."+ std::to_string(i); + setParameter(str + ".NextHopType", obj.nextHopType); + setParameter(str + ".NextHopId", obj.nextHopId); + } +} + +std::string DeleteRouteEntryRequest::getRouteTableId()const +{ + return routeTableId_; +} + +void DeleteRouteEntryRequest::setRouteTableId(const std::string& routeTableId) +{ + routeTableId_ = routeTableId; + setParameter("RouteTableId", routeTableId); +} + diff --git a/ecs/src/model/DeleteRouteEntryResult.cc b/ecs/src/model/DeleteRouteEntryResult.cc new file mode 100644 index 000000000..9ad0a672a --- /dev/null +++ b/ecs/src/model/DeleteRouteEntryResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteRouteEntryResult::DeleteRouteEntryResult() : + ServiceResult() +{} + +DeleteRouteEntryResult::DeleteRouteEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRouteEntryResult::~DeleteRouteEntryResult() +{} + +void DeleteRouteEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteRouterInterfaceRequest.cc b/ecs/src/model/DeleteRouterInterfaceRequest.cc new file mode 100644 index 000000000..2ac13189e --- /dev/null +++ b/ecs/src/model/DeleteRouterInterfaceRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteRouterInterfaceRequest::DeleteRouterInterfaceRequest() : + EcsRequest("DeleteRouterInterface") +{} + +DeleteRouterInterfaceRequest::~DeleteRouterInterfaceRequest() +{} + +long DeleteRouterInterfaceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteRouterInterfaceRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteRouterInterfaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteRouterInterfaceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteRouterInterfaceRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteRouterInterfaceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteRouterInterfaceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteRouterInterfaceRequest::getUserCidr()const +{ + return userCidr_; +} + +void DeleteRouterInterfaceRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +std::string DeleteRouterInterfaceRequest::getRouterInterfaceId()const +{ + return routerInterfaceId_; +} + +void DeleteRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) +{ + routerInterfaceId_ = routerInterfaceId; + setParameter("RouterInterfaceId", routerInterfaceId); +} + +long DeleteRouterInterfaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteRouterInterfaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteRouterInterfaceResult.cc b/ecs/src/model/DeleteRouterInterfaceResult.cc new file mode 100644 index 000000000..87216f960 --- /dev/null +++ b/ecs/src/model/DeleteRouterInterfaceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteRouterInterfaceResult::DeleteRouterInterfaceResult() : + ServiceResult() +{} + +DeleteRouterInterfaceResult::DeleteRouterInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRouterInterfaceResult::~DeleteRouterInterfaceResult() +{} + +void DeleteRouterInterfaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteSecurityGroupRequest.cc b/ecs/src/model/DeleteSecurityGroupRequest.cc new file mode 100644 index 000000000..bfb36f596 --- /dev/null +++ b/ecs/src/model/DeleteSecurityGroupRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteSecurityGroupRequest::DeleteSecurityGroupRequest() : + EcsRequest("DeleteSecurityGroup") +{} + +DeleteSecurityGroupRequest::~DeleteSecurityGroupRequest() +{} + +long DeleteSecurityGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteSecurityGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteSecurityGroupRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteSecurityGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteSecurityGroupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteSecurityGroupRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void DeleteSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +long DeleteSecurityGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteSecurityGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteSecurityGroupResult.cc b/ecs/src/model/DeleteSecurityGroupResult.cc new file mode 100644 index 000000000..ab5c6b7d4 --- /dev/null +++ b/ecs/src/model/DeleteSecurityGroupResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteSecurityGroupResult::DeleteSecurityGroupResult() : + ServiceResult() +{} + +DeleteSecurityGroupResult::DeleteSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSecurityGroupResult::~DeleteSecurityGroupResult() +{} + +void DeleteSecurityGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteSnapshotRequest.cc b/ecs/src/model/DeleteSnapshotRequest.cc new file mode 100644 index 000000000..0e9effc00 --- /dev/null +++ b/ecs/src/model/DeleteSnapshotRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteSnapshotRequest::DeleteSnapshotRequest() : + EcsRequest("DeleteSnapshot") +{} + +DeleteSnapshotRequest::~DeleteSnapshotRequest() +{} + +long DeleteSnapshotRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteSnapshotRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteSnapshotRequest::getSnapshotId()const +{ + return snapshotId_; +} + +void DeleteSnapshotRequest::setSnapshotId(const std::string& snapshotId) +{ + snapshotId_ = snapshotId; + setParameter("SnapshotId", snapshotId); +} + +std::string DeleteSnapshotRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteSnapshotRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteSnapshotRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteSnapshotRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +bool DeleteSnapshotRequest::getForce()const +{ + return force_; +} + +void DeleteSnapshotRequest::setForce(bool force) +{ + force_ = force; + setParameter("Force", std::to_string(force)); +} + +long DeleteSnapshotRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteSnapshotRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteSnapshotResult.cc b/ecs/src/model/DeleteSnapshotResult.cc new file mode 100644 index 000000000..3ce097f47 --- /dev/null +++ b/ecs/src/model/DeleteSnapshotResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteSnapshotResult::DeleteSnapshotResult() : + ServiceResult() +{} + +DeleteSnapshotResult::DeleteSnapshotResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSnapshotResult::~DeleteSnapshotResult() +{} + +void DeleteSnapshotResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteVSwitchRequest.cc b/ecs/src/model/DeleteVSwitchRequest.cc new file mode 100644 index 000000000..b162596fc --- /dev/null +++ b/ecs/src/model/DeleteVSwitchRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteVSwitchRequest::DeleteVSwitchRequest() : + EcsRequest("DeleteVSwitch") +{} + +DeleteVSwitchRequest::~DeleteVSwitchRequest() +{} + +std::string DeleteVSwitchRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void DeleteVSwitchRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +long DeleteVSwitchRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteVSwitchRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteVSwitchRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteVSwitchRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteVSwitchRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteVSwitchRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteVSwitchRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteVSwitchRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteVSwitchResult.cc b/ecs/src/model/DeleteVSwitchResult.cc new file mode 100644 index 000000000..1c2a3ce83 --- /dev/null +++ b/ecs/src/model/DeleteVSwitchResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteVSwitchResult::DeleteVSwitchResult() : + ServiceResult() +{} + +DeleteVSwitchResult::DeleteVSwitchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVSwitchResult::~DeleteVSwitchResult() +{} + +void DeleteVSwitchResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteVirtualBorderRouterRequest.cc b/ecs/src/model/DeleteVirtualBorderRouterRequest.cc new file mode 100644 index 000000000..c359012a9 --- /dev/null +++ b/ecs/src/model/DeleteVirtualBorderRouterRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteVirtualBorderRouterRequest::DeleteVirtualBorderRouterRequest() : + EcsRequest("DeleteVirtualBorderRouter") +{} + +DeleteVirtualBorderRouterRequest::~DeleteVirtualBorderRouterRequest() +{} + +long DeleteVirtualBorderRouterRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteVirtualBorderRouterRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteVirtualBorderRouterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DeleteVirtualBorderRouterRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteVirtualBorderRouterRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteVirtualBorderRouterRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DeleteVirtualBorderRouterRequest::getUserCidr()const +{ + return userCidr_; +} + +void DeleteVirtualBorderRouterRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +std::string DeleteVirtualBorderRouterRequest::getVbrId()const +{ + return vbrId_; +} + +void DeleteVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) +{ + vbrId_ = vbrId; + setParameter("VbrId", vbrId); +} + +long DeleteVirtualBorderRouterRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteVirtualBorderRouterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteVirtualBorderRouterResult.cc b/ecs/src/model/DeleteVirtualBorderRouterResult.cc new file mode 100644 index 000000000..940949199 --- /dev/null +++ b/ecs/src/model/DeleteVirtualBorderRouterResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteVirtualBorderRouterResult::DeleteVirtualBorderRouterResult() : + ServiceResult() +{} + +DeleteVirtualBorderRouterResult::DeleteVirtualBorderRouterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVirtualBorderRouterResult::~DeleteVirtualBorderRouterResult() +{} + +void DeleteVirtualBorderRouterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DeleteVpcRequest.cc b/ecs/src/model/DeleteVpcRequest.cc new file mode 100644 index 000000000..6eee1a51a --- /dev/null +++ b/ecs/src/model/DeleteVpcRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteVpcRequest::DeleteVpcRequest() : + EcsRequest("DeleteVpc") +{} + +DeleteVpcRequest::~DeleteVpcRequest() +{} + +long DeleteVpcRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteVpcRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteVpcRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteVpcRequest::getVpcId()const +{ + return vpcId_; +} + +void DeleteVpcRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string DeleteVpcRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteVpcRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteVpcRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteVpcRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DeleteVpcResult.cc b/ecs/src/model/DeleteVpcResult.cc new file mode 100644 index 000000000..6f8a0845d --- /dev/null +++ b/ecs/src/model/DeleteVpcResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DeleteVpcResult::DeleteVpcResult() : + ServiceResult() +{} + +DeleteVpcResult::DeleteVpcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVpcResult::~DeleteVpcResult() +{} + +void DeleteVpcResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DescribeAccessPointsRequest.cc b/ecs/src/model/DescribeAccessPointsRequest.cc new file mode 100644 index 000000000..fb58ef320 --- /dev/null +++ b/ecs/src/model/DescribeAccessPointsRequest.cc @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeAccessPointsRequest::DescribeAccessPointsRequest() : + EcsRequest("DescribeAccessPoints") +{} + +DescribeAccessPointsRequest::~DescribeAccessPointsRequest() +{} + +std::vector DescribeAccessPointsRequest::getFilter()const +{ + return filter_; +} + +void DescribeAccessPointsRequest::setFilter(const std::vector& filter) +{ + filter_ = filter; + int i = 0; + for(int i = 0; i!= filter.size(); i++) { + auto obj = filter.at(i); + std::string str ="Filter."+ std::to_string(i); + setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + } +} + +long DescribeAccessPointsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAccessPointsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAccessPointsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAccessPointsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAccessPointsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAccessPointsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int DescribeAccessPointsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAccessPointsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeAccessPointsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAccessPointsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAccessPointsRequest::getType()const +{ + return type_; +} + +void DescribeAccessPointsRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +int DescribeAccessPointsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeAccessPointsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeAccessPointsResult.cc b/ecs/src/model/DescribeAccessPointsResult.cc new file mode 100644 index 000000000..d555bc22f --- /dev/null +++ b/ecs/src/model/DescribeAccessPointsResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeAccessPointsResult::DescribeAccessPointsResult() : + ServiceResult() +{} + +DescribeAccessPointsResult::DescribeAccessPointsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccessPointsResult::~DescribeAccessPointsResult() +{} + +void DescribeAccessPointsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allAccessPointSet = value["AccessPointSet"]["AccessPointType"]; + for (auto value : allAccessPointSet) + { + AccessPointType accessPointTypeObject; + accessPointTypeObject.accessPointId = value["AccessPointId"].asString(); + accessPointTypeObject.status = value["Status"].asString(); + accessPointTypeObject.type = value["Type"].asString(); + accessPointTypeObject.attachedRegionNo = value["AttachedRegionNo"].asString(); + accessPointTypeObject.location = value["Location"].asString(); + accessPointTypeObject.hostOperator = value["HostOperator"].asString(); + accessPointTypeObject.name = value["Name"].asString(); + accessPointTypeObject.description = value["Description"].asString(); + accessPointSet_.push_back(accessPointTypeObject); + } + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeAccessPointsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeAccessPointsResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeAccessPointsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeAccessPointsResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeAccessPointsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeAccessPointsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeAutoSnapshotPolicyExRequest.cc b/ecs/src/model/DescribeAutoSnapshotPolicyExRequest.cc new file mode 100644 index 000000000..ebd1632a3 --- /dev/null +++ b/ecs/src/model/DescribeAutoSnapshotPolicyExRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeAutoSnapshotPolicyExRequest::DescribeAutoSnapshotPolicyExRequest() : + EcsRequest("DescribeAutoSnapshotPolicyEx") +{} + +DescribeAutoSnapshotPolicyExRequest::~DescribeAutoSnapshotPolicyExRequest() +{} + +long DescribeAutoSnapshotPolicyExRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAutoSnapshotPolicyExRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAutoSnapshotPolicyExRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAutoSnapshotPolicyExRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAutoSnapshotPolicyExRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAutoSnapshotPolicyExRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeAutoSnapshotPolicyExRequest::getAutoSnapshotPolicyId()const +{ + return autoSnapshotPolicyId_; +} + +void DescribeAutoSnapshotPolicyExRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId) +{ + autoSnapshotPolicyId_ = autoSnapshotPolicyId; + setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId); +} + +std::string DescribeAutoSnapshotPolicyExRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAutoSnapshotPolicyExRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeAutoSnapshotPolicyExRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAutoSnapshotPolicyExRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeAutoSnapshotPolicyExRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAutoSnapshotPolicyExRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeAutoSnapshotPolicyExRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeAutoSnapshotPolicyExRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeAutoSnapshotPolicyExResult.cc b/ecs/src/model/DescribeAutoSnapshotPolicyExResult.cc new file mode 100644 index 000000000..e5b2c49a6 --- /dev/null +++ b/ecs/src/model/DescribeAutoSnapshotPolicyExResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeAutoSnapshotPolicyExResult::DescribeAutoSnapshotPolicyExResult() : + ServiceResult() +{} + +DescribeAutoSnapshotPolicyExResult::DescribeAutoSnapshotPolicyExResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAutoSnapshotPolicyExResult::~DescribeAutoSnapshotPolicyExResult() +{} + +void DescribeAutoSnapshotPolicyExResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allAutoSnapshotPolicies = value["AutoSnapshotPolicies"]["AutoSnapshotPolicy"]; + for (auto value : allAutoSnapshotPolicies) + { + AutoSnapshotPolicy autoSnapshotPolicyObject; + autoSnapshotPolicyObject.autoSnapshotPolicyId = value["AutoSnapshotPolicyId"].asString(); + autoSnapshotPolicyObject.regionId = value["RegionId"].asString(); + autoSnapshotPolicyObject.autoSnapshotPolicyName = value["AutoSnapshotPolicyName"].asString(); + autoSnapshotPolicyObject.timePoints = value["TimePoints"].asString(); + autoSnapshotPolicyObject.repeatWeekdays = value["RepeatWeekdays"].asString(); + autoSnapshotPolicyObject.retentionDays = std::stoi(value["RetentionDays"].asString()); + autoSnapshotPolicyObject.diskNums = std::stoi(value["DiskNums"].asString()); + autoSnapshotPolicyObject.volumeNums = std::stoi(value["VolumeNums"].asString()); + autoSnapshotPolicyObject.creationTime = value["CreationTime"].asString(); + autoSnapshotPolicyObject.status = value["Status"].asString(); + autoSnapshotPolicies_.push_back(autoSnapshotPolicyObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeAutoSnapshotPolicyExResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeAutoSnapshotPolicyExResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeAutoSnapshotPolicyExResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeAutoSnapshotPolicyExResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeAutoSnapshotPolicyExResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeAutoSnapshotPolicyExResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeAutoSnapshotPolicyRequest.cc b/ecs/src/model/DescribeAutoSnapshotPolicyRequest.cc new file mode 100644 index 000000000..328ecfbef --- /dev/null +++ b/ecs/src/model/DescribeAutoSnapshotPolicyRequest.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 namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeAutoSnapshotPolicyRequest::DescribeAutoSnapshotPolicyRequest() : + EcsRequest("DescribeAutoSnapshotPolicy") +{} + +DescribeAutoSnapshotPolicyRequest::~DescribeAutoSnapshotPolicyRequest() +{} + +long DescribeAutoSnapshotPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAutoSnapshotPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAutoSnapshotPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAutoSnapshotPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeAutoSnapshotPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAutoSnapshotPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeAutoSnapshotPolicyResult.cc b/ecs/src/model/DescribeAutoSnapshotPolicyResult.cc new file mode 100644 index 000000000..94328ed21 --- /dev/null +++ b/ecs/src/model/DescribeAutoSnapshotPolicyResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeAutoSnapshotPolicyResult::DescribeAutoSnapshotPolicyResult() : + ServiceResult() +{} + +DescribeAutoSnapshotPolicyResult::DescribeAutoSnapshotPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAutoSnapshotPolicyResult::~DescribeAutoSnapshotPolicyResult() +{} + +void DescribeAutoSnapshotPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allAutoSnapshotPolicy = value["AutoSnapshotPolicy"]; + for (auto value : allAutoSnapshotPolicy) + { + AutoSnapshotPolicy autoSnapshotPolicyObject; + autoSnapshotPolicyObject.systemDiskPolicyEnabled = value["SystemDiskPolicyEnabled"].asString(); + autoSnapshotPolicyObject.systemDiskPolicyTimePeriod = value["SystemDiskPolicyTimePeriod"].asString(); + autoSnapshotPolicyObject.systemDiskPolicyRetentionDays = value["SystemDiskPolicyRetentionDays"].asString(); + autoSnapshotPolicyObject.systemDiskPolicyRetentionLastWeek = value["SystemDiskPolicyRetentionLastWeek"].asString(); + autoSnapshotPolicyObject.dataDiskPolicyEnabled = value["DataDiskPolicyEnabled"].asString(); + autoSnapshotPolicyObject.dataDiskPolicyTimePeriod = value["DataDiskPolicyTimePeriod"].asString(); + autoSnapshotPolicyObject.dataDiskPolicyRetentionDays = value["DataDiskPolicyRetentionDays"].asString(); + autoSnapshotPolicyObject.dataDiskPolicyRetentionLastWeek = value["DataDiskPolicyRetentionLastWeek"].asString(); + autoSnapshotPolicy_.push_back(autoSnapshotPolicyObject); + } + auto allAutoSnapshotExcutionStatus = value["AutoSnapshotExcutionStatus"]; + for (auto value : allAutoSnapshotExcutionStatus) + { + AutoSnapshotExcutionStatus autoSnapshotExcutionStatusObject; + autoSnapshotExcutionStatusObject.systemDiskExcutionStatus = value["SystemDiskExcutionStatus"].asString(); + autoSnapshotExcutionStatusObject.dataDiskExcutionStatus = value["DataDiskExcutionStatus"].asString(); + autoSnapshotExcutionStatus_.push_back(autoSnapshotExcutionStatusObject); + } + autoSnapshotOccupation_ = std::stoi(value["AutoSnapshotOccupation"].asString()); + +} + +int DescribeAutoSnapshotPolicyResult::getAutoSnapshotOccupation()const +{ + return autoSnapshotOccupation_; +} + +void DescribeAutoSnapshotPolicyResult::setAutoSnapshotOccupation(int autoSnapshotOccupation) +{ + autoSnapshotOccupation_ = autoSnapshotOccupation; +} + diff --git a/ecs/src/model/DescribeBandwidthPackagesRequest.cc b/ecs/src/model/DescribeBandwidthPackagesRequest.cc new file mode 100644 index 000000000..ce46a2851 --- /dev/null +++ b/ecs/src/model/DescribeBandwidthPackagesRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeBandwidthPackagesRequest::DescribeBandwidthPackagesRequest() : + EcsRequest("DescribeBandwidthPackages") +{} + +DescribeBandwidthPackagesRequest::~DescribeBandwidthPackagesRequest() +{} + +long DescribeBandwidthPackagesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeBandwidthPackagesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeBandwidthPackagesRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void DescribeBandwidthPackagesRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string DescribeBandwidthPackagesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeBandwidthPackagesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeBandwidthPackagesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeBandwidthPackagesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeBandwidthPackagesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeBandwidthPackagesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeBandwidthPackagesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeBandwidthPackagesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeBandwidthPackagesRequest::getNatGatewayId()const +{ + return natGatewayId_; +} + +void DescribeBandwidthPackagesRequest::setNatGatewayId(const std::string& natGatewayId) +{ + natGatewayId_ = natGatewayId; + setParameter("NatGatewayId", natGatewayId); +} + +long DescribeBandwidthPackagesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeBandwidthPackagesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeBandwidthPackagesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBandwidthPackagesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeBandwidthPackagesResult.cc b/ecs/src/model/DescribeBandwidthPackagesResult.cc new file mode 100644 index 000000000..c2793fcd4 --- /dev/null +++ b/ecs/src/model/DescribeBandwidthPackagesResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeBandwidthPackagesResult::DescribeBandwidthPackagesResult() : + ServiceResult() +{} + +DescribeBandwidthPackagesResult::DescribeBandwidthPackagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBandwidthPackagesResult::~DescribeBandwidthPackagesResult() +{} + +void DescribeBandwidthPackagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allBandwidthPackages = value["BandwidthPackages"]["BandwidthPackage"]; + for (auto value : allBandwidthPackages) + { + BandwidthPackage bandwidthPackageObject; + bandwidthPackageObject.bandwidthPackageId = value["BandwidthPackageId"].asString(); + bandwidthPackageObject.regionId = value["RegionId"].asString(); + bandwidthPackageObject.name = value["Name"].asString(); + bandwidthPackageObject.description = value["Description"].asString(); + bandwidthPackageObject.zoneId = value["ZoneId"].asString(); + bandwidthPackageObject.natGatewayId = value["NatGatewayId"].asString(); + bandwidthPackageObject.bandwidth = value["Bandwidth"].asString(); + bandwidthPackageObject.instanceChargeType = value["InstanceChargeType"].asString(); + bandwidthPackageObject.internetChargeType = value["InternetChargeType"].asString(); + bandwidthPackageObject.businessStatus = value["BusinessStatus"].asString(); + bandwidthPackageObject.ipCount = value["IpCount"].asString(); + bandwidthPackageObject.creationTime = value["CreationTime"].asString(); + bandwidthPackageObject.status = value["Status"].asString(); + auto allPublicIpAddresses = value["PublicIpAddresses"]["PublicIpAddresse"]; + for (auto value : allPublicIpAddresses) + { + BandwidthPackage::PublicIpAddresse publicIpAddresseObject; + publicIpAddresseObject.allocationId = value["AllocationId"].asString(); + publicIpAddresseObject.ipAddress = value["IpAddress"].asString(); + bandwidthPackageObject.publicIpAddresses.push_back(publicIpAddresseObject); + } + bandwidthPackages_.push_back(bandwidthPackageObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeBandwidthPackagesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeBandwidthPackagesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeBandwidthPackagesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeBandwidthPackagesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeBandwidthPackagesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeBandwidthPackagesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeClassicLinkInstancesRequest.cc b/ecs/src/model/DescribeClassicLinkInstancesRequest.cc new file mode 100644 index 000000000..41ee3e70d --- /dev/null +++ b/ecs/src/model/DescribeClassicLinkInstancesRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeClassicLinkInstancesRequest::DescribeClassicLinkInstancesRequest() : + EcsRequest("DescribeClassicLinkInstances") +{} + +DescribeClassicLinkInstancesRequest::~DescribeClassicLinkInstancesRequest() +{} + +long DescribeClassicLinkInstancesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeClassicLinkInstancesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeClassicLinkInstancesRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeClassicLinkInstancesRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeClassicLinkInstancesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeClassicLinkInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeClassicLinkInstancesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeClassicLinkInstancesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeClassicLinkInstancesRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeClassicLinkInstancesRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string DescribeClassicLinkInstancesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeClassicLinkInstancesRequest::setPageSize(const std::string& pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", pageSize); +} + +long DescribeClassicLinkInstancesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeClassicLinkInstancesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeClassicLinkInstancesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeClassicLinkInstancesRequest::setPageNumber(const std::string& pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", pageNumber); +} + diff --git a/ecs/src/model/DescribeClassicLinkInstancesResult.cc b/ecs/src/model/DescribeClassicLinkInstancesResult.cc new file mode 100644 index 000000000..f5a0346f0 --- /dev/null +++ b/ecs/src/model/DescribeClassicLinkInstancesResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeClassicLinkInstancesResult::DescribeClassicLinkInstancesResult() : + ServiceResult() +{} + +DescribeClassicLinkInstancesResult::DescribeClassicLinkInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeClassicLinkInstancesResult::~DescribeClassicLinkInstancesResult() +{} + +void DescribeClassicLinkInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allLinks = value["Links"]["Link"]; + for (auto value : allLinks) + { + Link linkObject; + linkObject.instanceId = value["InstanceId"].asString(); + linkObject.vpcId = value["VpcId"].asString(); + links_.push_back(linkObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeClassicLinkInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeClassicLinkInstancesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeClassicLinkInstancesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeClassicLinkInstancesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeClassicLinkInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeClassicLinkInstancesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeClustersRequest.cc b/ecs/src/model/DescribeClustersRequest.cc new file mode 100644 index 000000000..7f455231d --- /dev/null +++ b/ecs/src/model/DescribeClustersRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeClustersRequest::DescribeClustersRequest() : + EcsRequest("DescribeClusters") +{} + +DescribeClustersRequest::~DescribeClustersRequest() +{} + +long DescribeClustersRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeClustersRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeClustersRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeClustersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeClustersRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeClustersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeClustersRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeClustersRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeClustersRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeClustersRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeClustersResult.cc b/ecs/src/model/DescribeClustersResult.cc new file mode 100644 index 000000000..0c1f450c7 --- /dev/null +++ b/ecs/src/model/DescribeClustersResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeClustersResult::DescribeClustersResult() : + ServiceResult() +{} + +DescribeClustersResult::DescribeClustersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeClustersResult::~DescribeClustersResult() +{} + +void DescribeClustersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allClusters = value["Clusters"]["Cluster"]; + for (auto value : allClusters) + { + Cluster clusterObject; + clusterObject.clusterId = value["ClusterId"].asString(); + clusters_.push_back(clusterObject); + } + +} + diff --git a/ecs/src/model/DescribeCommandsRequest.cc b/ecs/src/model/DescribeCommandsRequest.cc new file mode 100644 index 000000000..b96d5723c --- /dev/null +++ b/ecs/src/model/DescribeCommandsRequest.cc @@ -0,0 +1,358 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeCommandsRequest::DescribeCommandsRequest() : + EcsRequest("DescribeCommands") +{} + +DescribeCommandsRequest::~DescribeCommandsRequest() +{} + +long DescribeCommandsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeCommandsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeCommandsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeCommandsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeCommandsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeCommandsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeCommandsRequest::getDescription()const +{ + return description_; +} + +void DescribeCommandsRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string DescribeCommandsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeCommandsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeCommandsRequest::getType()const +{ + return type_; +} + +void DescribeCommandsRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string DescribeCommandsRequest::getCommandId()const +{ + return commandId_; +} + +void DescribeCommandsRequest::setCommandId(const std::string& commandId) +{ + commandId_ = commandId; + setParameter("CommandId", commandId); +} + +std::string DescribeCommandsRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeCommandsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeCommandsRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeCommandsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +long DescribeCommandsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCommandsRequest::setPageNumber(long pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeCommandsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeCommandsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeCommandsRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeCommandsRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeCommandsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeCommandsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeCommandsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeCommandsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DescribeCommandsRequest::getEnable()const +{ + return enable_; +} + +void DescribeCommandsRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DescribeCommandsRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeCommandsRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +long DescribeCommandsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCommandsRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeCommandsRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeCommandsRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeCommandsRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeCommandsRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeCommandsRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeCommandsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeCommandsRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeCommandsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeCommandsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeCommandsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeCommandsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeCommandsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeCommandsRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeCommandsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeCommandsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeCommandsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool DescribeCommandsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeCommandsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeCommandsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeCommandsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DescribeCommandsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeCommandsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeCommandsRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeCommandsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribeCommandsRequest::getName()const +{ + return name_; +} + +void DescribeCommandsRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/ecs/src/model/DescribeCommandsResult.cc b/ecs/src/model/DescribeCommandsResult.cc new file mode 100644 index 000000000..241743530 --- /dev/null +++ b/ecs/src/model/DescribeCommandsResult.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 +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeCommandsResult::DescribeCommandsResult() : + ServiceResult() +{} + +DescribeCommandsResult::DescribeCommandsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCommandsResult::~DescribeCommandsResult() +{} + +void DescribeCommandsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allCommands = value["Commands"]["Command"]; + for (auto value : allCommands) + { + Command commandObject; + commandObject.commandId = value["CommandId"].asString(); + commandObject.name = value["Name"].asString(); + commandObject.type = value["Type"].asString(); + commandObject.description = value["Description"].asString(); + commandObject.commandContent = value["CommandContent"].asString(); + commandObject.workingDir = value["WorkingDir"].asString(); + commandObject.timeout = std::stol(value["Timeout"].asString()); + commands_.push_back(commandObject); + } + totalCount_ = std::stol(value["TotalCount"].asString()); + pageNumber_ = std::stol(value["PageNumber"].asString()); + pageSize_ = std::stol(value["PageSize"].asString()); + +} + +long DescribeCommandsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeCommandsResult::setTotalCount(long totalCount) +{ + totalCount_ = totalCount; +} + +long DescribeCommandsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeCommandsResult::setPageSize(long pageSize) +{ + pageSize_ = pageSize; +} + +long DescribeCommandsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCommandsResult::setPageNumber(long pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeDeploymentSetTopologyRequest.cc b/ecs/src/model/DescribeDeploymentSetTopologyRequest.cc new file mode 100644 index 000000000..49081f61e --- /dev/null +++ b/ecs/src/model/DescribeDeploymentSetTopologyRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDeploymentSetTopologyRequest::DescribeDeploymentSetTopologyRequest() : + EcsRequest("DescribeDeploymentSetTopology") +{} + +DescribeDeploymentSetTopologyRequest::~DescribeDeploymentSetTopologyRequest() +{} + +std::string DescribeDeploymentSetTopologyRequest::getDeploymentSetId()const +{ + return deploymentSetId_; +} + +void DescribeDeploymentSetTopologyRequest::setDeploymentSetId(const std::string& deploymentSetId) +{ + deploymentSetId_ = deploymentSetId; + setParameter("DeploymentSetId", deploymentSetId); +} + +long DescribeDeploymentSetTopologyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDeploymentSetTopologyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDeploymentSetTopologyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDeploymentSetTopologyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDeploymentSetTopologyRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDeploymentSetTopologyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeDeploymentSetTopologyRequest::getGranularity()const +{ + return granularity_; +} + +void DescribeDeploymentSetTopologyRequest::setGranularity(const std::string& granularity) +{ + granularity_ = granularity; + setParameter("Granularity", granularity); +} + +std::string DescribeDeploymentSetTopologyRequest::getDomain()const +{ + return domain_; +} + +void DescribeDeploymentSetTopologyRequest::setDomain(const std::string& domain) +{ + domain_ = domain; + setParameter("Domain", domain); +} + +std::string DescribeDeploymentSetTopologyRequest::getNetworkType()const +{ + return networkType_; +} + +void DescribeDeploymentSetTopologyRequest::setNetworkType(const std::string& networkType) +{ + networkType_ = networkType; + setParameter("NetworkType", networkType); +} + +std::string DescribeDeploymentSetTopologyRequest::getDeploymentSetName()const +{ + return deploymentSetName_; +} + +void DescribeDeploymentSetTopologyRequest::setDeploymentSetName(const std::string& deploymentSetName) +{ + deploymentSetName_ = deploymentSetName; + setParameter("DeploymentSetName", deploymentSetName); +} + +long DescribeDeploymentSetTopologyRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDeploymentSetTopologyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDeploymentSetTopologyRequest::getStrategy()const +{ + return strategy_; +} + +void DescribeDeploymentSetTopologyRequest::setStrategy(const std::string& strategy) +{ + strategy_ = strategy; + setParameter("Strategy", strategy); +} + diff --git a/ecs/src/model/DescribeDeploymentSetTopologyResult.cc b/ecs/src/model/DescribeDeploymentSetTopologyResult.cc new file mode 100644 index 000000000..e8715496b --- /dev/null +++ b/ecs/src/model/DescribeDeploymentSetTopologyResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDeploymentSetTopologyResult::DescribeDeploymentSetTopologyResult() : + ServiceResult() +{} + +DescribeDeploymentSetTopologyResult::DescribeDeploymentSetTopologyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDeploymentSetTopologyResult::~DescribeDeploymentSetTopologyResult() +{} + +void DescribeDeploymentSetTopologyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSwitchs = value["Switchs"]["Switch"]; + for (auto value : allSwitchs) + { + Switch switchObject; + switchObject.switchId = value["SwitchId"].asString(); + auto allHosts = value["Hosts"]["Host"]; + for (auto value : allHosts) + { + Switch::Host hostObject; + hostObject.hostId = value["HostId"].asString(); + auto allInstanceIds = value["InstanceIds"]["InstanceId"]; + for (auto value : allInstanceIds) + hostObject.instanceIds.push_back(value.asString()); + switchObject.hosts.push_back(hostObject); + } + switchs_.push_back(switchObject); + } + auto allRacks = value["Racks"]["Rack"]; + for (auto value : allRacks) + { + Rack rackObject; + rackObject.rackId = value["RackId"].asString(); + auto allHosts = value["Hosts"]["Host"]; + for (auto value : allHosts) + { + Rack::Host hostObject; + hostObject.hostId = value["HostId"].asString(); + auto allInstanceIds3 = value["InstanceIds"]["InstanceId"]; + for (auto value : allInstanceIds3) + hostObject.instanceIds3.push_back(value.asString()); + rackObject.hosts1.push_back(hostObject); + } + racks_.push_back(rackObject); + } + +} + diff --git a/ecs/src/model/DescribeDeploymentSetsRequest.cc b/ecs/src/model/DescribeDeploymentSetsRequest.cc new file mode 100644 index 000000000..be4704e03 --- /dev/null +++ b/ecs/src/model/DescribeDeploymentSetsRequest.cc @@ -0,0 +1,171 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDeploymentSetsRequest::DescribeDeploymentSetsRequest() : + EcsRequest("DescribeDeploymentSets") +{} + +DescribeDeploymentSetsRequest::~DescribeDeploymentSetsRequest() +{} + +long DescribeDeploymentSetsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDeploymentSetsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDeploymentSetsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDeploymentSetsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDeploymentSetsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDeploymentSetsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDeploymentSetsRequest::getNetworkType()const +{ + return networkType_; +} + +void DescribeDeploymentSetsRequest::setNetworkType(const std::string& networkType) +{ + networkType_ = networkType; + setParameter("NetworkType", networkType); +} + +std::string DescribeDeploymentSetsRequest::getDeploymentSetName()const +{ + return deploymentSetName_; +} + +void DescribeDeploymentSetsRequest::setDeploymentSetName(const std::string& deploymentSetName) +{ + deploymentSetName_ = deploymentSetName; + setParameter("DeploymentSetName", deploymentSetName); +} + +long DescribeDeploymentSetsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDeploymentSetsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeDeploymentSetsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDeploymentSetsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeDeploymentSetsRequest::getDeploymentSetIds()const +{ + return deploymentSetIds_; +} + +void DescribeDeploymentSetsRequest::setDeploymentSetIds(const std::string& deploymentSetIds) +{ + deploymentSetIds_ = deploymentSetIds; + setParameter("DeploymentSetIds", deploymentSetIds); +} + +std::string DescribeDeploymentSetsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDeploymentSetsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeDeploymentSetsRequest::getGranularity()const +{ + return granularity_; +} + +void DescribeDeploymentSetsRequest::setGranularity(const std::string& granularity) +{ + granularity_ = granularity; + setParameter("Granularity", granularity); +} + +std::string DescribeDeploymentSetsRequest::getDomain()const +{ + return domain_; +} + +void DescribeDeploymentSetsRequest::setDomain(const std::string& domain) +{ + domain_ = domain; + setParameter("Domain", domain); +} + +int DescribeDeploymentSetsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDeploymentSetsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeDeploymentSetsRequest::getStrategy()const +{ + return strategy_; +} + +void DescribeDeploymentSetsRequest::setStrategy(const std::string& strategy) +{ + strategy_ = strategy; + setParameter("Strategy", strategy); +} + diff --git a/ecs/src/model/DescribeDeploymentSetsResult.cc b/ecs/src/model/DescribeDeploymentSetsResult.cc new file mode 100644 index 000000000..27f2c05cb --- /dev/null +++ b/ecs/src/model/DescribeDeploymentSetsResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDeploymentSetsResult::DescribeDeploymentSetsResult() : + ServiceResult() +{} + +DescribeDeploymentSetsResult::DescribeDeploymentSetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDeploymentSetsResult::~DescribeDeploymentSetsResult() +{} + +void DescribeDeploymentSetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDeploymentSets = value["DeploymentSets"]["DeploymentSet"]; + for (auto value : allDeploymentSets) + { + DeploymentSet deploymentSetObject; + deploymentSetObject.deploymentSetId = value["DeploymentSetId"].asString(); + deploymentSetObject.deploymentSetDescription = value["DeploymentSetDescription"].asString(); + deploymentSetObject.deploymentSetName = value["DeploymentSetName"].asString(); + deploymentSetObject.strategy = value["Strategy"].asString(); + deploymentSetObject.domain = value["Domain"].asString(); + deploymentSetObject.granularity = value["Granularity"].asString(); + deploymentSetObject.instanceAmount = std::stoi(value["InstanceAmount"].asString()); + deploymentSetObject.creationTime = value["CreationTime"].asString(); + deploymentSets_.push_back(deploymentSetObject); + } + regionId_ = value["RegionId"].asString(); + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeDeploymentSetsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeDeploymentSetsResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeDeploymentSetsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeDeploymentSetsResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeDeploymentSetsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDeploymentSetsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + +std::string DescribeDeploymentSetsResult::getRegionId()const +{ + return regionId_; +} + +void DescribeDeploymentSetsResult::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; +} + diff --git a/ecs/src/model/DescribeDiskMonitorDataRequest.cc b/ecs/src/model/DescribeDiskMonitorDataRequest.cc new file mode 100644 index 000000000..414fe24b2 --- /dev/null +++ b/ecs/src/model/DescribeDiskMonitorDataRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDiskMonitorDataRequest::DescribeDiskMonitorDataRequest() : + EcsRequest("DescribeDiskMonitorData") +{} + +DescribeDiskMonitorDataRequest::~DescribeDiskMonitorDataRequest() +{} + +long DescribeDiskMonitorDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDiskMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribeDiskMonitorDataRequest::getPeriod()const +{ + return period_; +} + +void DescribeDiskMonitorDataRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +std::string DescribeDiskMonitorDataRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDiskMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDiskMonitorDataRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDiskMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDiskMonitorDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDiskMonitorDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeDiskMonitorDataRequest::getDiskId()const +{ + return diskId_; +} + +void DescribeDiskMonitorDataRequest::setDiskId(const std::string& diskId) +{ + diskId_ = diskId; + setParameter("DiskId", diskId); +} + +std::string DescribeDiskMonitorDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDiskMonitorDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeDiskMonitorDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDiskMonitorDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeDiskMonitorDataResult.cc b/ecs/src/model/DescribeDiskMonitorDataResult.cc new file mode 100644 index 000000000..22dc4705d --- /dev/null +++ b/ecs/src/model/DescribeDiskMonitorDataResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDiskMonitorDataResult::DescribeDiskMonitorDataResult() : + ServiceResult() +{} + +DescribeDiskMonitorDataResult::DescribeDiskMonitorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDiskMonitorDataResult::~DescribeDiskMonitorDataResult() +{} + +void DescribeDiskMonitorDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allMonitorData = value["MonitorData"]["DiskMonitorData"]; + for (auto value : allMonitorData) + { + DiskMonitorData diskMonitorDataObject; + diskMonitorDataObject.diskId = value["DiskId"].asString(); + diskMonitorDataObject.iOPSRead = std::stoi(value["IOPSRead"].asString()); + diskMonitorDataObject.iOPSWrite = std::stoi(value["IOPSWrite"].asString()); + diskMonitorDataObject.iOPSTotal = std::stoi(value["IOPSTotal"].asString()); + diskMonitorDataObject.bPSRead = std::stoi(value["BPSRead"].asString()); + diskMonitorDataObject.bPSWrite = std::stoi(value["BPSWrite"].asString()); + diskMonitorDataObject.bPSTotal = std::stoi(value["BPSTotal"].asString()); + diskMonitorDataObject.latencyRead = std::stoi(value["LatencyRead"].asString()); + diskMonitorDataObject.latencyWrite = std::stoi(value["LatencyWrite"].asString()); + diskMonitorDataObject.timeStamp = value["TimeStamp"].asString(); + monitorData_.push_back(diskMonitorDataObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeDiskMonitorDataResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeDiskMonitorDataResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + diff --git a/ecs/src/model/DescribeDisksFullStatusRequest.cc b/ecs/src/model/DescribeDisksFullStatusRequest.cc new file mode 100644 index 000000000..f2f81fa20 --- /dev/null +++ b/ecs/src/model/DescribeDisksFullStatusRequest.cc @@ -0,0 +1,393 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDisksFullStatusRequest::DescribeDisksFullStatusRequest() : + EcsRequest("DescribeDisksFullStatus") +{} + +DescribeDisksFullStatusRequest::~DescribeDisksFullStatusRequest() +{} + +std::vector DescribeDisksFullStatusRequest::getEventId()const +{ + return eventId_; +} + +void DescribeDisksFullStatusRequest::setEventId(const std::vector& eventId) +{ + eventId_ = eventId; + for(int i = 0; i!= eventId.size(); i++) + setParameter("EventId."+ std::to_string(i), eventId.at(i)); +} + +long DescribeDisksFullStatusRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDisksFullStatusRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeDisksFullStatusRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeDisksFullStatusRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeDisksFullStatusRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeDisksFullStatusRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeDisksFullStatusRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeDisksFullStatusRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeDisksFullStatusRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeDisksFullStatusRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeDisksFullStatusRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeDisksFullStatusRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +int DescribeDisksFullStatusRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDisksFullStatusRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeDisksFullStatusRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDisksFullStatusRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDisksFullStatusRequest::getEventTimeStart()const +{ + return eventTimeStart_; +} + +void DescribeDisksFullStatusRequest::setEventTimeStart(const std::string& eventTimeStart) +{ + eventTimeStart_ = eventTimeStart; + setParameter("EventTimeStart", eventTimeStart); +} + +std::string DescribeDisksFullStatusRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeDisksFullStatusRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeDisksFullStatusRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeDisksFullStatusRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeDisksFullStatusRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDisksFullStatusRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DescribeDisksFullStatusRequest::getEnable()const +{ + return enable_; +} + +void DescribeDisksFullStatusRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DescribeDisksFullStatusRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeDisksFullStatusRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +int DescribeDisksFullStatusRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDisksFullStatusRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeDisksFullStatusRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeDisksFullStatusRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::vector DescribeDisksFullStatusRequest::getDiskId()const +{ + return diskId_; +} + +void DescribeDisksFullStatusRequest::setDiskId(const std::vector& diskId) +{ + diskId_ = diskId; + for(int i = 0; i!= diskId.size(); i++) + setParameter("DiskId."+ std::to_string(i), diskId.at(i)); +} + +std::string DescribeDisksFullStatusRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeDisksFullStatusRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeDisksFullStatusRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeDisksFullStatusRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeDisksFullStatusRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeDisksFullStatusRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeDisksFullStatusRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDisksFullStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDisksFullStatusRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDisksFullStatusRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDisksFullStatusRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeDisksFullStatusRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeDisksFullStatusRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDisksFullStatusRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool DescribeDisksFullStatusRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeDisksFullStatusRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeDisksFullStatusRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeDisksFullStatusRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +std::string DescribeDisksFullStatusRequest::getEventTimeEnd()const +{ + return eventTimeEnd_; +} + +void DescribeDisksFullStatusRequest::setEventTimeEnd(const std::string& eventTimeEnd) +{ + eventTimeEnd_ = eventTimeEnd; + setParameter("EventTimeEnd", eventTimeEnd); +} + +bool DescribeDisksFullStatusRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeDisksFullStatusRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeDisksFullStatusRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeDisksFullStatusRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribeDisksFullStatusRequest::getHealthStatus()const +{ + return healthStatus_; +} + +void DescribeDisksFullStatusRequest::setHealthStatus(const std::string& healthStatus) +{ + healthStatus_ = healthStatus; + setParameter("HealthStatus", healthStatus); +} + +std::string DescribeDisksFullStatusRequest::getEventType()const +{ + return eventType_; +} + +void DescribeDisksFullStatusRequest::setEventType(const std::string& eventType) +{ + eventType_ = eventType; + setParameter("EventType", eventType); +} + +std::string DescribeDisksFullStatusRequest::getStatus()const +{ + return status_; +} + +void DescribeDisksFullStatusRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/ecs/src/model/DescribeDisksFullStatusResult.cc b/ecs/src/model/DescribeDisksFullStatusResult.cc new file mode 100644 index 000000000..6ea76ed0c --- /dev/null +++ b/ecs/src/model/DescribeDisksFullStatusResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDisksFullStatusResult::DescribeDisksFullStatusResult() : + ServiceResult() +{} + +DescribeDisksFullStatusResult::DescribeDisksFullStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDisksFullStatusResult::~DescribeDisksFullStatusResult() +{} + +void DescribeDisksFullStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDiskFullStatusSet = value["DiskFullStatusSet"]["DiskFullStatusType"]; + for (auto value : allDiskFullStatusSet) + { + DiskFullStatusType diskFullStatusTypeObject; + diskFullStatusTypeObject.diskId = value["DiskId"].asString(); + auto allDiskEventSet = value["DiskEventSet"]["DiskEventType"]; + for (auto value : allDiskEventSet) + { + DiskFullStatusType::DiskEventType diskEventTypeObject; + diskEventTypeObject.eventId = value["EventId"].asString(); + diskEventTypeObject.eventTime = value["EventTime"].asString(); + auto allEventType = value["EventType"]; + for (auto value : allEventType) + { + DiskFullStatusType::DiskEventType::EventType eventTypeObject; + eventTypeObject.code = std::stoi(value["Code"].asString()); + eventTypeObject.name = value["Name"].asString(); + diskEventTypeObject.eventType.push_back(eventTypeObject); + } + diskFullStatusTypeObject.diskEventSet.push_back(diskEventTypeObject); + } + auto allStatus = value["Status"]; + for (auto value : allStatus) + { + DiskFullStatusType::Status statusObject; + statusObject.code = std::stoi(value["Code"].asString()); + statusObject.name = value["Name"].asString(); + diskFullStatusTypeObject.status.push_back(statusObject); + } + auto allHealthStatus = value["HealthStatus"]; + for (auto value : allHealthStatus) + { + DiskFullStatusType::HealthStatus healthStatusObject; + healthStatusObject.code = std::stoi(value["Code"].asString()); + healthStatusObject.name = value["Name"].asString(); + diskFullStatusTypeObject.healthStatus.push_back(healthStatusObject); + } + diskFullStatusSet_.push_back(diskFullStatusTypeObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeDisksFullStatusResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeDisksFullStatusResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeDisksFullStatusResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeDisksFullStatusResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeDisksFullStatusResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDisksFullStatusResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeDisksRequest.cc b/ecs/src/model/DescribeDisksRequest.cc new file mode 100644 index 000000000..333b6810b --- /dev/null +++ b/ecs/src/model/DescribeDisksRequest.cc @@ -0,0 +1,491 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDisksRequest::DescribeDisksRequest() : + EcsRequest("DescribeDisks") +{} + +DescribeDisksRequest::~DescribeDisksRequest() +{} + +std::string DescribeDisksRequest::getTag4Value()const +{ + return tag4Value_; +} + +void DescribeDisksRequest::setTag4Value(const std::string& tag4Value) +{ + tag4Value_ = tag4Value; + setParameter("Tag4Value", tag4Value); +} + +long DescribeDisksRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDisksRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDisksRequest::getSnapshotId()const +{ + return snapshotId_; +} + +void DescribeDisksRequest::setSnapshotId(const std::string& snapshotId) +{ + snapshotId_ = snapshotId; + setParameter("SnapshotId", snapshotId); +} + +std::string DescribeDisksRequest::getTag2Key()const +{ + return tag2Key_; +} + +void DescribeDisksRequest::setTag2Key(const std::string& tag2Key) +{ + tag2Key_ = tag2Key; + setParameter("Tag2Key", tag2Key); +} + +std::string DescribeDisksRequest::getFilter2Value()const +{ + return filter2Value_; +} + +void DescribeDisksRequest::setFilter2Value(const std::string& filter2Value) +{ + filter2Value_ = filter2Value; + setParameter("Filter2Value", filter2Value); +} + +std::string DescribeDisksRequest::getAutoSnapshotPolicyId()const +{ + return autoSnapshotPolicyId_; +} + +void DescribeDisksRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId) +{ + autoSnapshotPolicyId_ = autoSnapshotPolicyId; + setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId); +} + +std::string DescribeDisksRequest::getTag3Key()const +{ + return tag3Key_; +} + +void DescribeDisksRequest::setTag3Key(const std::string& tag3Key) +{ + tag3Key_ = tag3Key; + setParameter("Tag3Key", tag3Key); +} + +int DescribeDisksRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDisksRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeDisksRequest::getDiskName()const +{ + return diskName_; +} + +void DescribeDisksRequest::setDiskName(const std::string& diskName) +{ + diskName_ = diskName; + setParameter("DiskName", diskName); +} + +std::string DescribeDisksRequest::getTag1Value()const +{ + return tag1Value_; +} + +void DescribeDisksRequest::setTag1Value(const std::string& tag1Value) +{ + tag1Value_ = tag1Value; + setParameter("Tag1Value", tag1Value); +} + +bool DescribeDisksRequest::getDeleteAutoSnapshot()const +{ + return deleteAutoSnapshot_; +} + +void DescribeDisksRequest::setDeleteAutoSnapshot(bool deleteAutoSnapshot) +{ + deleteAutoSnapshot_ = deleteAutoSnapshot; + setParameter("DeleteAutoSnapshot", std::to_string(deleteAutoSnapshot)); +} + +std::string DescribeDisksRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeDisksRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeDisksRequest::getDiskChargeType()const +{ + return diskChargeType_; +} + +void DescribeDisksRequest::setDiskChargeType(const std::string& diskChargeType) +{ + diskChargeType_ = diskChargeType; + setParameter("DiskChargeType", diskChargeType); +} + +std::string DescribeDisksRequest::getLockReason()const +{ + return lockReason_; +} + +void DescribeDisksRequest::setLockReason(const std::string& lockReason) +{ + lockReason_ = lockReason; + setParameter("LockReason", lockReason); +} + +std::string DescribeDisksRequest::getFilter1Key()const +{ + return filter1Key_; +} + +void DescribeDisksRequest::setFilter1Key(const std::string& filter1Key) +{ + filter1Key_ = filter1Key; + setParameter("Filter1Key", filter1Key); +} + +std::string DescribeDisksRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDisksRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int DescribeDisksRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDisksRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeDisksRequest::getDiskIds()const +{ + return diskIds_; +} + +void DescribeDisksRequest::setDiskIds(const std::string& diskIds) +{ + diskIds_ = diskIds; + setParameter("DiskIds", diskIds); +} + +bool DescribeDisksRequest::getDeleteWithInstance()const +{ + return deleteWithInstance_; +} + +void DescribeDisksRequest::setDeleteWithInstance(bool deleteWithInstance) +{ + deleteWithInstance_ = deleteWithInstance; + setParameter("DeleteWithInstance", std::to_string(deleteWithInstance)); +} + +std::string DescribeDisksRequest::getTag3Value()const +{ + return tag3Value_; +} + +void DescribeDisksRequest::setTag3Value(const std::string& tag3Value) +{ + tag3Value_ = tag3Value; + setParameter("Tag3Value", tag3Value); +} + +bool DescribeDisksRequest::getEnableAutoSnapshot()const +{ + return enableAutoSnapshot_; +} + +void DescribeDisksRequest::setEnableAutoSnapshot(bool enableAutoSnapshot) +{ + enableAutoSnapshot_ = enableAutoSnapshot; + setParameter("EnableAutoSnapshot", std::to_string(enableAutoSnapshot)); +} + +bool DescribeDisksRequest::getDryRun()const +{ + return dryRun_; +} + +void DescribeDisksRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", std::to_string(dryRun)); +} + +std::string DescribeDisksRequest::getTag5Key()const +{ + return tag5Key_; +} + +void DescribeDisksRequest::setTag5Key(const std::string& tag5Key) +{ + tag5Key_ = tag5Key; + setParameter("Tag5Key", tag5Key); +} + +std::string DescribeDisksRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDisksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDisksRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDisksRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeDisksRequest::getFilter1Value()const +{ + return filter1Value_; +} + +void DescribeDisksRequest::setFilter1Value(const std::string& filter1Value) +{ + filter1Value_ = filter1Value; + setParameter("Filter1Value", filter1Value); +} + +bool DescribeDisksRequest::getPortable()const +{ + return portable_; +} + +void DescribeDisksRequest::setPortable(bool portable) +{ + portable_ = portable; + setParameter("Portable", std::to_string(portable)); +} + +bool DescribeDisksRequest::getEnableAutomatedSnapshotPolicy()const +{ + return enableAutomatedSnapshotPolicy_; +} + +void DescribeDisksRequest::setEnableAutomatedSnapshotPolicy(bool enableAutomatedSnapshotPolicy) +{ + enableAutomatedSnapshotPolicy_ = enableAutomatedSnapshotPolicy; + setParameter("EnableAutomatedSnapshotPolicy", std::to_string(enableAutomatedSnapshotPolicy)); +} + +std::string DescribeDisksRequest::getFilter2Key()const +{ + return filter2Key_; +} + +void DescribeDisksRequest::setFilter2Key(const std::string& filter2Key) +{ + filter2Key_ = filter2Key; + setParameter("Filter2Key", filter2Key); +} + +long DescribeDisksRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDisksRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDisksRequest::getDiskType()const +{ + return diskType_; +} + +void DescribeDisksRequest::setDiskType(const std::string& diskType) +{ + diskType_ = diskType; + setParameter("DiskType", diskType); +} + +std::string DescribeDisksRequest::getTag5Value()const +{ + return tag5Value_; +} + +void DescribeDisksRequest::setTag5Value(const std::string& tag5Value) +{ + tag5Value_ = tag5Value; + setParameter("Tag5Value", tag5Value); +} + +std::string DescribeDisksRequest::getTag1Key()const +{ + return tag1Key_; +} + +void DescribeDisksRequest::setTag1Key(const std::string& tag1Key) +{ + tag1Key_ = tag1Key; + setParameter("Tag1Key", tag1Key); +} + +std::vector DescribeDisksRequest::getAdditionalAttributes()const +{ + return additionalAttributes_; +} + +void DescribeDisksRequest::setAdditionalAttributes(const std::vector& additionalAttributes) +{ + additionalAttributes_ = additionalAttributes; + for(int i = 0; i!= additionalAttributes.size(); i++) + setParameter("AdditionalAttributes."+ std::to_string(i), std::to_string(additionalAttributes.at(i))); +} + +bool DescribeDisksRequest::getEnableShared()const +{ + return enableShared_; +} + +void DescribeDisksRequest::setEnableShared(bool enableShared) +{ + enableShared_ = enableShared; + setParameter("EnableShared", std::to_string(enableShared)); +} + +std::string DescribeDisksRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeDisksRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +bool DescribeDisksRequest::getEncrypted()const +{ + return encrypted_; +} + +void DescribeDisksRequest::setEncrypted(bool encrypted) +{ + encrypted_ = encrypted; + setParameter("Encrypted", std::to_string(encrypted)); +} + +std::string DescribeDisksRequest::getTag2Value()const +{ + return tag2Value_; +} + +void DescribeDisksRequest::setTag2Value(const std::string& tag2Value) +{ + tag2Value_ = tag2Value; + setParameter("Tag2Value", tag2Value); +} + +std::string DescribeDisksRequest::getZoneId()const +{ + return zoneId_; +} + +void DescribeDisksRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string DescribeDisksRequest::getTag4Key()const +{ + return tag4Key_; +} + +void DescribeDisksRequest::setTag4Key(const std::string& tag4Key) +{ + tag4Key_ = tag4Key; + setParameter("Tag4Key", tag4Key); +} + +std::string DescribeDisksRequest::getCategory()const +{ + return category_; +} + +void DescribeDisksRequest::setCategory(const std::string& category) +{ + category_ = category; + setParameter("Category", category); +} + +std::string DescribeDisksRequest::getStatus()const +{ + return status_; +} + +void DescribeDisksRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/ecs/src/model/DescribeDisksResult.cc b/ecs/src/model/DescribeDisksResult.cc new file mode 100644 index 000000000..f0d8cd15a --- /dev/null +++ b/ecs/src/model/DescribeDisksResult.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeDisksResult::DescribeDisksResult() : + ServiceResult() +{} + +DescribeDisksResult::DescribeDisksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDisksResult::~DescribeDisksResult() +{} + +void DescribeDisksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDisks = value["Disks"]["Disk"]; + for (auto value : allDisks) + { + Disk diskObject; + diskObject.diskId = value["DiskId"].asString(); + diskObject.regionId = value["RegionId"].asString(); + diskObject.zoneId = value["ZoneId"].asString(); + diskObject.diskName = value["DiskName"].asString(); + diskObject.description = value["Description"].asString(); + diskObject.type = value["Type"].asString(); + diskObject.category = value["Category"].asString(); + diskObject.size = std::stoi(value["Size"].asString()); + diskObject.imageId = value["ImageId"].asString(); + diskObject.sourceSnapshotId = value["SourceSnapshotId"].asString(); + diskObject.autoSnapshotPolicyId = value["AutoSnapshotPolicyId"].asString(); + diskObject.productCode = value["ProductCode"].asString(); + diskObject.portable = std::stoi(value["Portable"].asString()); + diskObject.status = value["Status"].asString(); + diskObject.instanceId = value["InstanceId"].asString(); + diskObject.device = value["Device"].asString(); + diskObject.deleteWithInstance = std::stoi(value["DeleteWithInstance"].asString()); + diskObject.deleteAutoSnapshot = std::stoi(value["DeleteAutoSnapshot"].asString()); + diskObject.enableAutoSnapshot = std::stoi(value["EnableAutoSnapshot"].asString()); + diskObject.enableAutomatedSnapshotPolicy = std::stoi(value["EnableAutomatedSnapshotPolicy"].asString()); + diskObject.creationTime = value["CreationTime"].asString(); + diskObject.attachedTime = value["AttachedTime"].asString(); + diskObject.detachedTime = value["DetachedTime"].asString(); + diskObject.diskChargeType = value["DiskChargeType"].asString(); + diskObject.expiredTime = value["ExpiredTime"].asString(); + diskObject.resourceGroupId = value["ResourceGroupId"].asString(); + diskObject.encrypted = std::stoi(value["Encrypted"].asString()); + diskObject.mountInstanceNum = std::stoi(value["MountInstanceNum"].asString()); + diskObject.iOPS = std::stoi(value["IOPS"].asString()); + diskObject.iOPSRead = std::stoi(value["IOPSRead"].asString()); + diskObject.iOPSWrite = std::stoi(value["IOPSWrite"].asString()); + auto allOperationLocks = value["OperationLocks"]["OperationLock"]; + for (auto value : allOperationLocks) + { + Disk::OperationLock operationLockObject; + operationLockObject.lockReason = value["LockReason"].asString(); + diskObject.operationLocks.push_back(operationLockObject); + } + auto allMountInstances = value["MountInstances"]["MountInstance"]; + for (auto value : allMountInstances) + { + Disk::MountInstance mountInstanceObject; + mountInstanceObject.instanceId = value["InstanceId"].asString(); + mountInstanceObject.device = value["Device"].asString(); + mountInstanceObject.attachedTime = value["AttachedTime"].asString(); + diskObject.mountInstances.push_back(mountInstanceObject); + } + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + Disk::Tag tagObject; + tagObject.tagKey = value["TagKey"].asString(); + tagObject.tagValue = value["TagValue"].asString(); + diskObject.tags.push_back(tagObject); + } + disks_.push_back(diskObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeDisksResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeDisksResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeDisksResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeDisksResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeDisksResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDisksResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeEipAddressesRequest.cc b/ecs/src/model/DescribeEipAddressesRequest.cc new file mode 100644 index 000000000..d354b490f --- /dev/null +++ b/ecs/src/model/DescribeEipAddressesRequest.cc @@ -0,0 +1,226 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeEipAddressesRequest::DescribeEipAddressesRequest() : + EcsRequest("DescribeEipAddresses") +{} + +DescribeEipAddressesRequest::~DescribeEipAddressesRequest() +{} + +long DescribeEipAddressesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeEipAddressesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeEipAddressesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeEipAddressesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeEipAddressesRequest::getFilter2Value()const +{ + return filter2Value_; +} + +void DescribeEipAddressesRequest::setFilter2Value(const std::string& filter2Value) +{ + filter2Value_ = filter2Value; + setParameter("Filter2Value", filter2Value); +} + +std::string DescribeEipAddressesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeEipAddressesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeEipAddressesRequest::getAllocationId()const +{ + return allocationId_; +} + +void DescribeEipAddressesRequest::setAllocationId(const std::string& allocationId) +{ + allocationId_ = allocationId; + setParameter("AllocationId", allocationId); +} + +std::string DescribeEipAddressesRequest::getFilter1Value()const +{ + return filter1Value_; +} + +void DescribeEipAddressesRequest::setFilter1Value(const std::string& filter1Value) +{ + filter1Value_ = filter1Value; + setParameter("Filter1Value", filter1Value); +} + +std::string DescribeEipAddressesRequest::getFilter2Key()const +{ + return filter2Key_; +} + +void DescribeEipAddressesRequest::setFilter2Key(const std::string& filter2Key) +{ + filter2Key_ = filter2Key; + setParameter("Filter2Key", filter2Key); +} + +long DescribeEipAddressesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeEipAddressesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeEipAddressesRequest::getEipAddress()const +{ + return eipAddress_; +} + +void DescribeEipAddressesRequest::setEipAddress(const std::string& eipAddress) +{ + eipAddress_ = eipAddress; + setParameter("EipAddress", eipAddress); +} + +int DescribeEipAddressesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeEipAddressesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeEipAddressesRequest::getLockReason()const +{ + return lockReason_; +} + +void DescribeEipAddressesRequest::setLockReason(const std::string& lockReason) +{ + lockReason_ = lockReason; + setParameter("LockReason", lockReason); +} + +std::string DescribeEipAddressesRequest::getFilter1Key()const +{ + return filter1Key_; +} + +void DescribeEipAddressesRequest::setFilter1Key(const std::string& filter1Key) +{ + filter1Key_ = filter1Key; + setParameter("Filter1Key", filter1Key); +} + +std::string DescribeEipAddressesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeEipAddressesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeEipAddressesRequest::getAssociatedInstanceType()const +{ + return associatedInstanceType_; +} + +void DescribeEipAddressesRequest::setAssociatedInstanceType(const std::string& associatedInstanceType) +{ + associatedInstanceType_ = associatedInstanceType; + setParameter("AssociatedInstanceType", associatedInstanceType); +} + +int DescribeEipAddressesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeEipAddressesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeEipAddressesRequest::getChargeType()const +{ + return chargeType_; +} + +void DescribeEipAddressesRequest::setChargeType(const std::string& chargeType) +{ + chargeType_ = chargeType; + setParameter("ChargeType", chargeType); +} + +std::string DescribeEipAddressesRequest::getAssociatedInstanceId()const +{ + return associatedInstanceId_; +} + +void DescribeEipAddressesRequest::setAssociatedInstanceId(const std::string& associatedInstanceId) +{ + associatedInstanceId_ = associatedInstanceId; + setParameter("AssociatedInstanceId", associatedInstanceId); +} + +std::string DescribeEipAddressesRequest::getStatus()const +{ + return status_; +} + +void DescribeEipAddressesRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/ecs/src/model/DescribeEipAddressesResult.cc b/ecs/src/model/DescribeEipAddressesResult.cc new file mode 100644 index 000000000..8e8002c85 --- /dev/null +++ b/ecs/src/model/DescribeEipAddressesResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeEipAddressesResult::DescribeEipAddressesResult() : + ServiceResult() +{} + +DescribeEipAddressesResult::DescribeEipAddressesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEipAddressesResult::~DescribeEipAddressesResult() +{} + +void DescribeEipAddressesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allEipAddresses = value["EipAddresses"]["EipAddress"]; + for (auto value : allEipAddresses) + { + EipAddress eipAddressObject; + eipAddressObject.regionId = value["RegionId"].asString(); + eipAddressObject.ipAddress = value["IpAddress"].asString(); + eipAddressObject.allocationId = value["AllocationId"].asString(); + eipAddressObject.status = value["Status"].asString(); + eipAddressObject.instanceId = value["InstanceId"].asString(); + eipAddressObject.bandwidth = value["Bandwidth"].asString(); + eipAddressObject.eipBandwidth = value["EipBandwidth"].asString(); + eipAddressObject.internetChargeType = value["InternetChargeType"].asString(); + eipAddressObject.allocationTime = value["AllocationTime"].asString(); + eipAddressObject.instanceType = value["InstanceType"].asString(); + eipAddressObject.chargeType = value["ChargeType"].asString(); + eipAddressObject.expiredTime = value["ExpiredTime"].asString(); + auto allOperationLocks = value["OperationLocks"]["LockReason"]; + for (auto value : allOperationLocks) + { + EipAddress::LockReason lockReasonObject; + lockReasonObject.lockReason = value["LockReason"].asString(); + eipAddressObject.operationLocks.push_back(lockReasonObject); + } + eipAddresses_.push_back(eipAddressObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeEipAddressesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeEipAddressesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeEipAddressesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeEipAddressesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeEipAddressesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeEipAddressesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeEipMonitorDataRequest.cc b/ecs/src/model/DescribeEipMonitorDataRequest.cc new file mode 100644 index 000000000..ed79412cb --- /dev/null +++ b/ecs/src/model/DescribeEipMonitorDataRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeEipMonitorDataRequest::DescribeEipMonitorDataRequest() : + EcsRequest("DescribeEipMonitorData") +{} + +DescribeEipMonitorDataRequest::~DescribeEipMonitorDataRequest() +{} + +long DescribeEipMonitorDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeEipMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribeEipMonitorDataRequest::getPeriod()const +{ + return period_; +} + +void DescribeEipMonitorDataRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +std::string DescribeEipMonitorDataRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeEipMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeEipMonitorDataRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeEipMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeEipMonitorDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeEipMonitorDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeEipMonitorDataRequest::getAllocationId()const +{ + return allocationId_; +} + +void DescribeEipMonitorDataRequest::setAllocationId(const std::string& allocationId) +{ + allocationId_ = allocationId; + setParameter("AllocationId", allocationId); +} + +std::string DescribeEipMonitorDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeEipMonitorDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeEipMonitorDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeEipMonitorDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeEipMonitorDataResult.cc b/ecs/src/model/DescribeEipMonitorDataResult.cc new file mode 100644 index 000000000..dd88f989c --- /dev/null +++ b/ecs/src/model/DescribeEipMonitorDataResult.cc @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeEipMonitorDataResult::DescribeEipMonitorDataResult() : + ServiceResult() +{} + +DescribeEipMonitorDataResult::DescribeEipMonitorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEipMonitorDataResult::~DescribeEipMonitorDataResult() +{} + +void DescribeEipMonitorDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allEipMonitorDatas = value["EipMonitorDatas"]["EipMonitorData"]; + for (auto value : allEipMonitorDatas) + { + EipMonitorData eipMonitorDataObject; + eipMonitorDataObject.eipRX = std::stoi(value["EipRX"].asString()); + eipMonitorDataObject.eipTX = std::stoi(value["EipTX"].asString()); + eipMonitorDataObject.eipFlow = std::stoi(value["EipFlow"].asString()); + eipMonitorDataObject.eipBandwidth = std::stoi(value["EipBandwidth"].asString()); + eipMonitorDataObject.eipPackets = std::stoi(value["EipPackets"].asString()); + eipMonitorDataObject.timeStamp = value["TimeStamp"].asString(); + eipMonitorDatas_.push_back(eipMonitorDataObject); + } + +} + diff --git a/ecs/src/model/DescribeForwardTableEntriesRequest.cc b/ecs/src/model/DescribeForwardTableEntriesRequest.cc new file mode 100644 index 000000000..fba10b126 --- /dev/null +++ b/ecs/src/model/DescribeForwardTableEntriesRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeForwardTableEntriesRequest::DescribeForwardTableEntriesRequest() : + EcsRequest("DescribeForwardTableEntries") +{} + +DescribeForwardTableEntriesRequest::~DescribeForwardTableEntriesRequest() +{} + +long DescribeForwardTableEntriesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeForwardTableEntriesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeForwardTableEntriesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeForwardTableEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeForwardTableEntriesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeForwardTableEntriesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeForwardTableEntriesRequest::getForwardEntryId()const +{ + return forwardEntryId_; +} + +void DescribeForwardTableEntriesRequest::setForwardEntryId(const std::string& forwardEntryId) +{ + forwardEntryId_ = forwardEntryId; + setParameter("ForwardEntryId", forwardEntryId); +} + +std::string DescribeForwardTableEntriesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeForwardTableEntriesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeForwardTableEntriesRequest::getForwardTableId()const +{ + return forwardTableId_; +} + +void DescribeForwardTableEntriesRequest::setForwardTableId(const std::string& forwardTableId) +{ + forwardTableId_ = forwardTableId; + setParameter("ForwardTableId", forwardTableId); +} + +int DescribeForwardTableEntriesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeForwardTableEntriesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeForwardTableEntriesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeForwardTableEntriesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeForwardTableEntriesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeForwardTableEntriesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeForwardTableEntriesResult.cc b/ecs/src/model/DescribeForwardTableEntriesResult.cc new file mode 100644 index 000000000..d9a964ab2 --- /dev/null +++ b/ecs/src/model/DescribeForwardTableEntriesResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeForwardTableEntriesResult::DescribeForwardTableEntriesResult() : + ServiceResult() +{} + +DescribeForwardTableEntriesResult::DescribeForwardTableEntriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeForwardTableEntriesResult::~DescribeForwardTableEntriesResult() +{} + +void DescribeForwardTableEntriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allForwardTableEntries = value["ForwardTableEntries"]["ForwardTableEntry"]; + for (auto value : allForwardTableEntries) + { + ForwardTableEntry forwardTableEntryObject; + forwardTableEntryObject.forwardTableId = value["ForwardTableId"].asString(); + forwardTableEntryObject.forwardEntryId = value["ForwardEntryId"].asString(); + forwardTableEntryObject.externalIp = value["ExternalIp"].asString(); + forwardTableEntryObject.externalPort = value["ExternalPort"].asString(); + forwardTableEntryObject.ipProtocol = value["IpProtocol"].asString(); + forwardTableEntryObject.internalIp = value["InternalIp"].asString(); + forwardTableEntryObject.internalPort = value["InternalPort"].asString(); + forwardTableEntryObject.status = value["Status"].asString(); + forwardTableEntries_.push_back(forwardTableEntryObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeForwardTableEntriesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeForwardTableEntriesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeForwardTableEntriesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeForwardTableEntriesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeForwardTableEntriesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeForwardTableEntriesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeHaVipsRequest.cc b/ecs/src/model/DescribeHaVipsRequest.cc new file mode 100644 index 000000000..eaef5f11e --- /dev/null +++ b/ecs/src/model/DescribeHaVipsRequest.cc @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeHaVipsRequest::DescribeHaVipsRequest() : + EcsRequest("DescribeHaVips") +{} + +DescribeHaVipsRequest::~DescribeHaVipsRequest() +{} + +std::vector DescribeHaVipsRequest::getFilter()const +{ + return filter_; +} + +void DescribeHaVipsRequest::setFilter(const std::vector& filter) +{ + filter_ = filter; + int i = 0; + for(int i = 0; i!= filter.size(); i++) { + auto obj = filter.at(i); + std::string str ="Filter."+ std::to_string(i); + setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + } +} + +long DescribeHaVipsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeHaVipsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeHaVipsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeHaVipsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeHaVipsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeHaVipsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeHaVipsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeHaVipsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeHaVipsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeHaVipsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeHaVipsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeHaVipsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeHaVipsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeHaVipsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeHaVipsResult.cc b/ecs/src/model/DescribeHaVipsResult.cc new file mode 100644 index 000000000..6bc7393cc --- /dev/null +++ b/ecs/src/model/DescribeHaVipsResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeHaVipsResult::DescribeHaVipsResult() : + ServiceResult() +{} + +DescribeHaVipsResult::DescribeHaVipsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHaVipsResult::~DescribeHaVipsResult() +{} + +void DescribeHaVipsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allHaVips = value["HaVips"]["HaVip"]; + for (auto value : allHaVips) + { + HaVip haVipObject; + haVipObject.haVipId = value["HaVipId"].asString(); + haVipObject.regionId = value["RegionId"].asString(); + haVipObject.vpcId = value["VpcId"].asString(); + haVipObject.vSwitchId = value["VSwitchId"].asString(); + haVipObject.ipAddress = value["IpAddress"].asString(); + haVipObject.status = value["Status"].asString(); + haVipObject.masterInstanceId = value["MasterInstanceId"].asString(); + haVipObject.description = value["Description"].asString(); + haVipObject.createTime = value["CreateTime"].asString(); + auto allAssociatedInstances = value["AssociatedInstances"]["associatedInstance"]; + for (auto value : allAssociatedInstances) + haVipObject.associatedInstances.push_back(value.asString()); + auto allAssociatedEipAddresses = value["AssociatedEipAddresses"]["associatedEipAddresse"]; + for (auto value : allAssociatedEipAddresses) + haVipObject.associatedEipAddresses.push_back(value.asString()); + haVips_.push_back(haVipObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeHaVipsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeHaVipsResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeHaVipsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeHaVipsResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeHaVipsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeHaVipsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeHpcClustersRequest.cc b/ecs/src/model/DescribeHpcClustersRequest.cc new file mode 100644 index 000000000..0c6fbcec7 --- /dev/null +++ b/ecs/src/model/DescribeHpcClustersRequest.cc @@ -0,0 +1,325 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeHpcClustersRequest::DescribeHpcClustersRequest() : + EcsRequest("DescribeHpcClusters") +{} + +DescribeHpcClustersRequest::~DescribeHpcClustersRequest() +{} + +long DescribeHpcClustersRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeHpcClustersRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeHpcClustersRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribeHpcClustersRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +long DescribeHpcClustersRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeHpcClustersRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeHpcClustersRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeHpcClustersRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeHpcClustersRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeHpcClustersRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeHpcClustersRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeHpcClustersRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeHpcClustersRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeHpcClustersRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +int DescribeHpcClustersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeHpcClustersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeHpcClustersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeHpcClustersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeHpcClustersRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeHpcClustersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeHpcClustersRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeHpcClustersRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +bool DescribeHpcClustersRequest::getEnable()const +{ + return enable_; +} + +void DescribeHpcClustersRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DescribeHpcClustersRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeHpcClustersRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +int DescribeHpcClustersRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeHpcClustersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeHpcClustersRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeHpcClustersRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeHpcClustersRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeHpcClustersRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeHpcClustersRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeHpcClustersRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeHpcClustersRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeHpcClustersRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeHpcClustersRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeHpcClustersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeHpcClustersRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeHpcClustersRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeHpcClustersRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeHpcClustersRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeHpcClustersRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeHpcClustersRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool DescribeHpcClustersRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeHpcClustersRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeHpcClustersRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeHpcClustersRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +std::string DescribeHpcClustersRequest::getHpcClusterIds()const +{ + return hpcClusterIds_; +} + +void DescribeHpcClustersRequest::setHpcClusterIds(const std::string& hpcClusterIds) +{ + hpcClusterIds_ = hpcClusterIds; + setParameter("HpcClusterIds", hpcClusterIds); +} + +bool DescribeHpcClustersRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeHpcClustersRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeHpcClustersRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeHpcClustersRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ecs/src/model/DescribeHpcClustersResult.cc b/ecs/src/model/DescribeHpcClustersResult.cc new file mode 100644 index 000000000..48f1426ad --- /dev/null +++ b/ecs/src/model/DescribeHpcClustersResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeHpcClustersResult::DescribeHpcClustersResult() : + ServiceResult() +{} + +DescribeHpcClustersResult::DescribeHpcClustersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHpcClustersResult::~DescribeHpcClustersResult() +{} + +void DescribeHpcClustersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allHpcClusters = value["HpcClusters"]["HpcCluster"]; + for (auto value : allHpcClusters) + { + HpcCluster hpcClusterObject; + hpcClusterObject.hpcClusterId = value["HpcClusterId"].asString(); + hpcClusterObject.name = value["Name"].asString(); + hpcClusterObject.description = value["Description"].asString(); + hpcClusters_.push_back(hpcClusterObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeHpcClustersResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeHpcClustersResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeHpcClustersResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeHpcClustersResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeHpcClustersResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeHpcClustersResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeImageSharePermissionRequest.cc b/ecs/src/model/DescribeImageSharePermissionRequest.cc new file mode 100644 index 000000000..32004c187 --- /dev/null +++ b/ecs/src/model/DescribeImageSharePermissionRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeImageSharePermissionRequest::DescribeImageSharePermissionRequest() : + EcsRequest("DescribeImageSharePermission") +{} + +DescribeImageSharePermissionRequest::~DescribeImageSharePermissionRequest() +{} + +long DescribeImageSharePermissionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeImageSharePermissionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeImageSharePermissionRequest::getImageId()const +{ + return imageId_; +} + +void DescribeImageSharePermissionRequest::setImageId(const std::string& imageId) +{ + imageId_ = imageId; + setParameter("ImageId", imageId); +} + +std::string DescribeImageSharePermissionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeImageSharePermissionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeImageSharePermissionRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeImageSharePermissionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeImageSharePermissionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeImageSharePermissionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeImageSharePermissionRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeImageSharePermissionRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeImageSharePermissionRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeImageSharePermissionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeImageSharePermissionRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeImageSharePermissionRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeImageSharePermissionResult.cc b/ecs/src/model/DescribeImageSharePermissionResult.cc new file mode 100644 index 000000000..a79348960 --- /dev/null +++ b/ecs/src/model/DescribeImageSharePermissionResult.cc @@ -0,0 +1,114 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeImageSharePermissionResult::DescribeImageSharePermissionResult() : + ServiceResult() +{} + +DescribeImageSharePermissionResult::DescribeImageSharePermissionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeImageSharePermissionResult::~DescribeImageSharePermissionResult() +{} + +void DescribeImageSharePermissionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allShareGroups = value["ShareGroups"]["ShareGroup"]; + for (auto value : allShareGroups) + { + ShareGroup shareGroupObject; + shareGroupObject.group = value["Group"].asString(); + shareGroups_.push_back(shareGroupObject); + } + auto allAccounts = value["Accounts"]["Account"]; + for (auto value : allAccounts) + { + Account accountObject; + accountObject.aliyunId = value["AliyunId"].asString(); + accounts_.push_back(accountObject); + } + regionId_ = value["RegionId"].asString(); + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + imageId_ = value["ImageId"].asString(); + +} + +int DescribeImageSharePermissionResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeImageSharePermissionResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeImageSharePermissionResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeImageSharePermissionResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeImageSharePermissionResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeImageSharePermissionResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + +std::string DescribeImageSharePermissionResult::getImageId()const +{ + return imageId_; +} + +void DescribeImageSharePermissionResult::setImageId(const std::string& imageId) +{ + imageId_ = imageId; +} + +std::string DescribeImageSharePermissionResult::getRegionId()const +{ + return regionId_; +} + +void DescribeImageSharePermissionResult::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; +} + diff --git a/ecs/src/model/DescribeImageSupportInstanceTypesRequest.cc b/ecs/src/model/DescribeImageSupportInstanceTypesRequest.cc new file mode 100644 index 000000000..f9d6c4fe3 --- /dev/null +++ b/ecs/src/model/DescribeImageSupportInstanceTypesRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeImageSupportInstanceTypesRequest::DescribeImageSupportInstanceTypesRequest() : + EcsRequest("DescribeImageSupportInstanceTypes") +{} + +DescribeImageSupportInstanceTypesRequest::~DescribeImageSupportInstanceTypesRequest() +{} + +long DescribeImageSupportInstanceTypesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeImageSupportInstanceTypesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeImageSupportInstanceTypesRequest::getImageId()const +{ + return imageId_; +} + +void DescribeImageSupportInstanceTypesRequest::setImageId(const std::string& imageId) +{ + imageId_ = imageId; + setParameter("ImageId", imageId); +} + +std::string DescribeImageSupportInstanceTypesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeImageSupportInstanceTypesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeImageSupportInstanceTypesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeImageSupportInstanceTypesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long DescribeImageSupportInstanceTypesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeImageSupportInstanceTypesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeImageSupportInstanceTypesResult.cc b/ecs/src/model/DescribeImageSupportInstanceTypesResult.cc new file mode 100644 index 000000000..195f98492 --- /dev/null +++ b/ecs/src/model/DescribeImageSupportInstanceTypesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeImageSupportInstanceTypesResult::DescribeImageSupportInstanceTypesResult() : + ServiceResult() +{} + +DescribeImageSupportInstanceTypesResult::DescribeImageSupportInstanceTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeImageSupportInstanceTypesResult::~DescribeImageSupportInstanceTypesResult() +{} + +void DescribeImageSupportInstanceTypesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allInstanceTypes = value["InstanceTypes"]["InstanceType"]; + for (auto value : allInstanceTypes) + { + InstanceType instanceTypeObject; + instanceTypeObject.instanceTypeId = value["InstanceTypeId"].asString(); + instanceTypeObject.cpuCoreCount = std::stoi(value["CpuCoreCount"].asString()); + instanceTypeObject.memorySize = std::stof(value["MemorySize"].asString()); + instanceTypeObject.instanceTypeFamily = value["InstanceTypeFamily"].asString(); + instanceTypes_.push_back(instanceTypeObject); + } + regionId_ = value["RegionId"].asString(); + imageId_ = value["ImageId"].asString(); + +} + +std::string DescribeImageSupportInstanceTypesResult::getImageId()const +{ + return imageId_; +} + +void DescribeImageSupportInstanceTypesResult::setImageId(const std::string& imageId) +{ + imageId_ = imageId; +} + +std::string DescribeImageSupportInstanceTypesResult::getRegionId()const +{ + return regionId_; +} + +void DescribeImageSupportInstanceTypesResult::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; +} + diff --git a/ecs/src/model/DescribeImagesRequest.cc b/ecs/src/model/DescribeImagesRequest.cc new file mode 100644 index 000000000..6e573e77d --- /dev/null +++ b/ecs/src/model/DescribeImagesRequest.cc @@ -0,0 +1,402 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeImagesRequest::DescribeImagesRequest() : + EcsRequest("DescribeImages") +{} + +DescribeImagesRequest::~DescribeImagesRequest() +{} + +std::string DescribeImagesRequest::getTag4Value()const +{ + return tag4Value_; +} + +void DescribeImagesRequest::setTag4Value(const std::string& tag4Value) +{ + tag4Value_ = tag4Value; + setParameter("Tag4Value", tag4Value); +} + +long DescribeImagesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeImagesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeImagesRequest::getImageId()const +{ + return imageId_; +} + +void DescribeImagesRequest::setImageId(const std::string& imageId) +{ + imageId_ = imageId; + setParameter("ImageId", imageId); +} + +std::string DescribeImagesRequest::getSnapshotId()const +{ + return snapshotId_; +} + +void DescribeImagesRequest::setSnapshotId(const std::string& snapshotId) +{ + snapshotId_ = snapshotId; + setParameter("SnapshotId", snapshotId); +} + +std::string DescribeImagesRequest::getTag2Key()const +{ + return tag2Key_; +} + +void DescribeImagesRequest::setTag2Key(const std::string& tag2Key) +{ + tag2Key_ = tag2Key; + setParameter("Tag2Key", tag2Key); +} + +std::string DescribeImagesRequest::getFilter2Value()const +{ + return filter2Value_; +} + +void DescribeImagesRequest::setFilter2Value(const std::string& filter2Value) +{ + filter2Value_ = filter2Value; + setParameter("Filter2Value", filter2Value); +} + +std::string DescribeImagesRequest::getUsage()const +{ + return usage_; +} + +void DescribeImagesRequest::setUsage(const std::string& usage) +{ + usage_ = usage; + setParameter("Usage", usage); +} + +std::string DescribeImagesRequest::getTag3Key()const +{ + return tag3Key_; +} + +void DescribeImagesRequest::setTag3Key(const std::string& tag3Key) +{ + tag3Key_ = tag3Key; + setParameter("Tag3Key", tag3Key); +} + +int DescribeImagesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeImagesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeImagesRequest::getImageOwnerAlias()const +{ + return imageOwnerAlias_; +} + +void DescribeImagesRequest::setImageOwnerAlias(const std::string& imageOwnerAlias) +{ + imageOwnerAlias_ = imageOwnerAlias; + setParameter("ImageOwnerAlias", imageOwnerAlias); +} + +std::string DescribeImagesRequest::getTag1Value()const +{ + return tag1Value_; +} + +void DescribeImagesRequest::setTag1Value(const std::string& tag1Value) +{ + tag1Value_ = tag1Value; + setParameter("Tag1Value", tag1Value); +} + +bool DescribeImagesRequest::getIsSupportIoOptimized()const +{ + return isSupportIoOptimized_; +} + +void DescribeImagesRequest::setIsSupportIoOptimized(bool isSupportIoOptimized) +{ + isSupportIoOptimized_ = isSupportIoOptimized; + setParameter("IsSupportIoOptimized", std::to_string(isSupportIoOptimized)); +} + +std::string DescribeImagesRequest::getFilter1Key()const +{ + return filter1Key_; +} + +void DescribeImagesRequest::setFilter1Key(const std::string& filter1Key) +{ + filter1Key_ = filter1Key; + setParameter("Filter1Key", filter1Key); +} + +std::string DescribeImagesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeImagesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeImagesRequest::getImageName()const +{ + return imageName_; +} + +void DescribeImagesRequest::setImageName(const std::string& imageName) +{ + imageName_ = imageName; + setParameter("ImageName", imageName); +} + +bool DescribeImagesRequest::getIsSupportCloudinit()const +{ + return isSupportCloudinit_; +} + +void DescribeImagesRequest::setIsSupportCloudinit(bool isSupportCloudinit) +{ + isSupportCloudinit_ = isSupportCloudinit; + setParameter("IsSupportCloudinit", std::to_string(isSupportCloudinit)); +} + +int DescribeImagesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeImagesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeImagesRequest::getInstanceType()const +{ + return instanceType_; +} + +void DescribeImagesRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::string DescribeImagesRequest::getTag3Value()const +{ + return tag3Value_; +} + +void DescribeImagesRequest::setTag3Value(const std::string& tag3Value) +{ + tag3Value_ = tag3Value; + setParameter("Tag3Value", tag3Value); +} + +std::string DescribeImagesRequest::getArchitecture()const +{ + return architecture_; +} + +void DescribeImagesRequest::setArchitecture(const std::string& architecture) +{ + architecture_ = architecture; + setParameter("Architecture", architecture); +} + +bool DescribeImagesRequest::getDryRun()const +{ + return dryRun_; +} + +void DescribeImagesRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", std::to_string(dryRun)); +} + +std::string DescribeImagesRequest::getTag5Key()const +{ + return tag5Key_; +} + +void DescribeImagesRequest::setTag5Key(const std::string& tag5Key) +{ + tag5Key_ = tag5Key; + setParameter("Tag5Key", tag5Key); +} + +std::string DescribeImagesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeImagesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeImagesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeImagesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +bool DescribeImagesRequest::getShowExpired()const +{ + return showExpired_; +} + +void DescribeImagesRequest::setShowExpired(bool showExpired) +{ + showExpired_ = showExpired; + setParameter("ShowExpired", std::to_string(showExpired)); +} + +std::string DescribeImagesRequest::getFilter1Value()const +{ + return filter1Value_; +} + +void DescribeImagesRequest::setFilter1Value(const std::string& filter1Value) +{ + filter1Value_ = filter1Value; + setParameter("Filter1Value", filter1Value); +} + +std::string DescribeImagesRequest::getOSType()const +{ + return oSType_; +} + +void DescribeImagesRequest::setOSType(const std::string& oSType) +{ + oSType_ = oSType; + setParameter("OSType", oSType); +} + +std::string DescribeImagesRequest::getFilter2Key()const +{ + return filter2Key_; +} + +void DescribeImagesRequest::setFilter2Key(const std::string& filter2Key) +{ + filter2Key_ = filter2Key; + setParameter("Filter2Key", filter2Key); +} + +long DescribeImagesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeImagesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeImagesRequest::getTag5Value()const +{ + return tag5Value_; +} + +void DescribeImagesRequest::setTag5Value(const std::string& tag5Value) +{ + tag5Value_ = tag5Value; + setParameter("Tag5Value", tag5Value); +} + +std::string DescribeImagesRequest::getTag1Key()const +{ + return tag1Key_; +} + +void DescribeImagesRequest::setTag1Key(const std::string& tag1Key) +{ + tag1Key_ = tag1Key; + setParameter("Tag1Key", tag1Key); +} + +std::string DescribeImagesRequest::getTag2Value()const +{ + return tag2Value_; +} + +void DescribeImagesRequest::setTag2Value(const std::string& tag2Value) +{ + tag2Value_ = tag2Value; + setParameter("Tag2Value", tag2Value); +} + +std::string DescribeImagesRequest::getTag4Key()const +{ + return tag4Key_; +} + +void DescribeImagesRequest::setTag4Key(const std::string& tag4Key) +{ + tag4Key_ = tag4Key; + setParameter("Tag4Key", tag4Key); +} + +std::string DescribeImagesRequest::getStatus()const +{ + return status_; +} + +void DescribeImagesRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/ecs/src/model/DescribeImagesResult.cc b/ecs/src/model/DescribeImagesResult.cc new file mode 100644 index 000000000..2d793bde0 --- /dev/null +++ b/ecs/src/model/DescribeImagesResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeImagesResult::DescribeImagesResult() : + ServiceResult() +{} + +DescribeImagesResult::DescribeImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeImagesResult::~DescribeImagesResult() +{} + +void DescribeImagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allImages = value["Images"]["Image"]; + for (auto value : allImages) + { + Image imageObject; + imageObject.progress = value["Progress"].asString(); + imageObject.imageId = value["ImageId"].asString(); + imageObject.imageName = value["ImageName"].asString(); + imageObject.imageVersion = value["ImageVersion"].asString(); + imageObject.description = value["Description"].asString(); + imageObject.size = std::stoi(value["Size"].asString()); + imageObject.imageOwnerAlias = value["ImageOwnerAlias"].asString(); + imageObject.isSupportIoOptimized = std::stoi(value["IsSupportIoOptimized"].asString()); + imageObject.isSupportCloudinit = std::stoi(value["IsSupportCloudinit"].asString()); + imageObject.oSName = value["OSName"].asString(); + imageObject.architecture = value["Architecture"].asString(); + imageObject.status = value["Status"].asString(); + imageObject.productCode = value["ProductCode"].asString(); + imageObject.isSubscribed = std::stoi(value["IsSubscribed"].asString()); + imageObject.creationTime = value["CreationTime"].asString(); + imageObject.isSelfShared = value["IsSelfShared"].asString(); + imageObject.oSType = value["OSType"].asString(); + imageObject.platform = value["Platform"].asString(); + imageObject.usage = value["Usage"].asString(); + imageObject.isCopied = std::stoi(value["IsCopied"].asString()); + auto allDiskDeviceMappings = value["DiskDeviceMappings"]["DiskDeviceMapping"]; + for (auto value : allDiskDeviceMappings) + { + Image::DiskDeviceMapping diskDeviceMappingObject; + diskDeviceMappingObject.snapshotId = value["SnapshotId"].asString(); + diskDeviceMappingObject.size = value["Size"].asString(); + diskDeviceMappingObject.device = value["Device"].asString(); + diskDeviceMappingObject.type = value["Type"].asString(); + diskDeviceMappingObject.format = value["Format"].asString(); + diskDeviceMappingObject.importOSSBucket = value["ImportOSSBucket"].asString(); + diskDeviceMappingObject.importOSSObject = value["ImportOSSObject"].asString(); + imageObject.diskDeviceMappings.push_back(diskDeviceMappingObject); + } + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + Image::Tag tagObject; + tagObject.tagKey = value["TagKey"].asString(); + tagObject.tagValue = value["TagValue"].asString(); + imageObject.tags.push_back(tagObject); + } + images_.push_back(imageObject); + } + regionId_ = value["RegionId"].asString(); + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeImagesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeImagesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeImagesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeImagesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeImagesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeImagesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + +std::string DescribeImagesResult::getRegionId()const +{ + return regionId_; +} + +void DescribeImagesResult::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; +} + diff --git a/ecs/src/model/DescribeInstanceAttributeRequest.cc b/ecs/src/model/DescribeInstanceAttributeRequest.cc new file mode 100644 index 000000000..2d485620c --- /dev/null +++ b/ecs/src/model/DescribeInstanceAttributeRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceAttributeRequest::DescribeInstanceAttributeRequest() : + EcsRequest("DescribeInstanceAttribute") +{} + +DescribeInstanceAttributeRequest::~DescribeInstanceAttributeRequest() +{} + +long DescribeInstanceAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstanceAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeInstanceAttributeRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeInstanceAttributeRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeInstanceAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstanceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInstanceAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeInstanceAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeInstanceAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstanceAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeInstanceAttributeResult.cc b/ecs/src/model/DescribeInstanceAttributeResult.cc new file mode 100644 index 000000000..b3830d172 --- /dev/null +++ b/ecs/src/model/DescribeInstanceAttributeResult.cc @@ -0,0 +1,366 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceAttributeResult::DescribeInstanceAttributeResult() : + ServiceResult() +{} + +DescribeInstanceAttributeResult::DescribeInstanceAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceAttributeResult::~DescribeInstanceAttributeResult() +{} + +void DescribeInstanceAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allOperationLocks = value["OperationLocks"]["LockReason"]; + for (auto value : allOperationLocks) + { + LockReason lockReasonObject; + lockReasonObject.lockReason = value["LockReason"].asString(); + operationLocks_.push_back(lockReasonObject); + } + auto allVpcAttributes = value["VpcAttributes"]; + for (auto value : allVpcAttributes) + { + VpcAttributes vpcAttributesObject; + vpcAttributesObject.vpcId = value["VpcId"].asString(); + vpcAttributesObject.vSwitchId = value["VSwitchId"].asString(); + vpcAttributesObject.natIpAddress = value["NatIpAddress"].asString(); + auto allPrivateIpAddress = value["PrivateIpAddress"]["IpAddress"]; + for (auto value : allPrivateIpAddress) + vpcAttributesObject.privateIpAddress.push_back(value.asString()); + vpcAttributes_.push_back(vpcAttributesObject); + } + auto allEipAddress = value["EipAddress"]; + for (auto value : allEipAddress) + { + EipAddress eipAddressObject; + eipAddressObject.allocationId = value["AllocationId"].asString(); + eipAddressObject.ipAddress = value["IpAddress"].asString(); + eipAddressObject.bandwidth = std::stoi(value["Bandwidth"].asString()); + eipAddressObject.internetChargeType = value["InternetChargeType"].asString(); + eipAddress_.push_back(eipAddressObject); + } + auto allSecurityGroupIds = value["SecurityGroupIds"]["SecurityGroupId"]; + for (const auto &item : allSecurityGroupIds) + securityGroupIds_.push_back(item.asString()); + auto allPublicIpAddress = value["PublicIpAddress"]["IpAddress"]; + for (const auto &item : allPublicIpAddress) + publicIpAddress_.push_back(item.asString()); + auto allInnerIpAddress = value["InnerIpAddress"]["IpAddress"]; + for (const auto &item : allInnerIpAddress) + innerIpAddress_.push_back(item.asString()); + instanceId_ = value["InstanceId"].asString(); + instanceName_ = value["InstanceName"].asString(); + imageId_ = value["ImageId"].asString(); + regionId_ = value["RegionId"].asString(); + zoneId_ = value["ZoneId"].asString(); + clusterId_ = value["ClusterId"].asString(); + instanceType_ = value["InstanceType"].asString(); + cpu_ = std::stoi(value["Cpu"].asString()); + memory_ = std::stoi(value["Memory"].asString()); + hostName_ = value["HostName"].asString(); + status_ = value["Status"].asString(); + internetChargeType_ = value["InternetChargeType"].asString(); + internetMaxBandwidthIn_ = std::stoi(value["InternetMaxBandwidthIn"].asString()); + internetMaxBandwidthOut_ = std::stoi(value["InternetMaxBandwidthOut"].asString()); + vlanId_ = value["VlanId"].asString(); + serialNumber_ = value["SerialNumber"].asString(); + creationTime_ = value["CreationTime"].asString(); + description_ = value["Description"].asString(); + instanceNetworkType_ = value["InstanceNetworkType"].asString(); + ioOptimized_ = value["IoOptimized"].asString(); + instanceChargeType_ = value["InstanceChargeType"].asString(); + expiredTime_ = value["ExpiredTime"].asString(); + stoppedMode_ = value["StoppedMode"].asString(); + +} + +std::string DescribeInstanceAttributeResult::getDescription()const +{ + return description_; +} + +void DescribeInstanceAttributeResult::setDescription(const std::string& description) +{ + description_ = description; +} + +int DescribeInstanceAttributeResult::getMemory()const +{ + return memory_; +} + +void DescribeInstanceAttributeResult::setMemory(int memory) +{ + memory_ = memory; +} + +std::string DescribeInstanceAttributeResult::getInstanceChargeType()const +{ + return instanceChargeType_; +} + +void DescribeInstanceAttributeResult::setInstanceChargeType(const std::string& instanceChargeType) +{ + instanceChargeType_ = instanceChargeType; +} + +int DescribeInstanceAttributeResult::getCpu()const +{ + return cpu_; +} + +void DescribeInstanceAttributeResult::setCpu(int cpu) +{ + cpu_ = cpu; +} + +std::string DescribeInstanceAttributeResult::getInstanceNetworkType()const +{ + return instanceNetworkType_; +} + +void DescribeInstanceAttributeResult::setInstanceNetworkType(const std::string& instanceNetworkType) +{ + instanceNetworkType_ = instanceNetworkType; +} + +std::vector DescribeInstanceAttributeResult::getPublicIpAddress()const +{ + return publicIpAddress_; +} + +void DescribeInstanceAttributeResult::setPublicIpAddress(const std::vector& publicIpAddress) +{ + publicIpAddress_ = publicIpAddress; +} + +std::vector DescribeInstanceAttributeResult::getInnerIpAddress()const +{ + return innerIpAddress_; +} + +void DescribeInstanceAttributeResult::setInnerIpAddress(const std::vector& innerIpAddress) +{ + innerIpAddress_ = innerIpAddress; +} + +std::string DescribeInstanceAttributeResult::getExpiredTime()const +{ + return expiredTime_; +} + +void DescribeInstanceAttributeResult::setExpiredTime(const std::string& expiredTime) +{ + expiredTime_ = expiredTime; +} + +std::string DescribeInstanceAttributeResult::getImageId()const +{ + return imageId_; +} + +void DescribeInstanceAttributeResult::setImageId(const std::string& imageId) +{ + imageId_ = imageId; +} + +std::string DescribeInstanceAttributeResult::getInstanceType()const +{ + return instanceType_; +} + +void DescribeInstanceAttributeResult::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; +} + +std::string DescribeInstanceAttributeResult::getHostName()const +{ + return hostName_; +} + +void DescribeInstanceAttributeResult::setHostName(const std::string& hostName) +{ + hostName_ = hostName; +} + +std::string DescribeInstanceAttributeResult::getVlanId()const +{ + return vlanId_; +} + +void DescribeInstanceAttributeResult::setVlanId(const std::string& vlanId) +{ + vlanId_ = vlanId; +} + +std::string DescribeInstanceAttributeResult::getStatus()const +{ + return status_; +} + +void DescribeInstanceAttributeResult::setStatus(const std::string& status) +{ + status_ = status; +} + +std::string DescribeInstanceAttributeResult::getIoOptimized()const +{ + return ioOptimized_; +} + +void DescribeInstanceAttributeResult::setIoOptimized(const std::string& ioOptimized) +{ + ioOptimized_ = ioOptimized; +} + +std::string DescribeInstanceAttributeResult::getZoneId()const +{ + return zoneId_; +} + +void DescribeInstanceAttributeResult::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; +} + +std::string DescribeInstanceAttributeResult::getInstanceId()const +{ + return instanceId_; +} + +void DescribeInstanceAttributeResult::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; +} + +std::string DescribeInstanceAttributeResult::getClusterId()const +{ + return clusterId_; +} + +void DescribeInstanceAttributeResult::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; +} + +std::string DescribeInstanceAttributeResult::getStoppedMode()const +{ + return stoppedMode_; +} + +void DescribeInstanceAttributeResult::setStoppedMode(const std::string& stoppedMode) +{ + stoppedMode_ = stoppedMode; +} + +std::vector DescribeInstanceAttributeResult::getSecurityGroupIds()const +{ + return securityGroupIds_; +} + +void DescribeInstanceAttributeResult::setSecurityGroupIds(const std::vector& securityGroupIds) +{ + securityGroupIds_ = securityGroupIds; +} + +std::string DescribeInstanceAttributeResult::getInternetChargeType()const +{ + return internetChargeType_; +} + +void DescribeInstanceAttributeResult::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; +} + +std::string DescribeInstanceAttributeResult::getInstanceName()const +{ + return instanceName_; +} + +void DescribeInstanceAttributeResult::setInstanceName(const std::string& instanceName) +{ + instanceName_ = instanceName; +} + +int DescribeInstanceAttributeResult::getInternetMaxBandwidthOut()const +{ + return internetMaxBandwidthOut_; +} + +void DescribeInstanceAttributeResult::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) +{ + internetMaxBandwidthOut_ = internetMaxBandwidthOut; +} + +int DescribeInstanceAttributeResult::getInternetMaxBandwidthIn()const +{ + return internetMaxBandwidthIn_; +} + +void DescribeInstanceAttributeResult::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) +{ + internetMaxBandwidthIn_ = internetMaxBandwidthIn; +} + +std::string DescribeInstanceAttributeResult::getSerialNumber()const +{ + return serialNumber_; +} + +void DescribeInstanceAttributeResult::setSerialNumber(const std::string& serialNumber) +{ + serialNumber_ = serialNumber; +} + +std::string DescribeInstanceAttributeResult::getCreationTime()const +{ + return creationTime_; +} + +void DescribeInstanceAttributeResult::setCreationTime(const std::string& creationTime) +{ + creationTime_ = creationTime; +} + +std::string DescribeInstanceAttributeResult::getRegionId()const +{ + return regionId_; +} + +void DescribeInstanceAttributeResult::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; +} + diff --git a/ecs/src/model/DescribeInstanceAutoRenewAttributeRequest.cc b/ecs/src/model/DescribeInstanceAutoRenewAttributeRequest.cc new file mode 100644 index 000000000..8a1af7d1c --- /dev/null +++ b/ecs/src/model/DescribeInstanceAutoRenewAttributeRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceAutoRenewAttributeRequest::DescribeInstanceAutoRenewAttributeRequest() : + EcsRequest("DescribeInstanceAutoRenewAttribute") +{} + +DescribeInstanceAutoRenewAttributeRequest::~DescribeInstanceAutoRenewAttributeRequest() +{} + +long DescribeInstanceAutoRenewAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeInstanceAutoRenewAttributeRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeInstanceAutoRenewAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInstanceAutoRenewAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeInstanceAutoRenewAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeInstanceAutoRenewAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeInstanceAutoRenewAttributeResult.cc b/ecs/src/model/DescribeInstanceAutoRenewAttributeResult.cc new file mode 100644 index 000000000..439efa480 --- /dev/null +++ b/ecs/src/model/DescribeInstanceAutoRenewAttributeResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::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 allInstanceRenewAttributes = value["InstanceRenewAttributes"]["InstanceRenewAttribute"]; + for (auto value : allInstanceRenewAttributes) + { + InstanceRenewAttribute instanceRenewAttributeObject; + instanceRenewAttributeObject.instanceId = value["InstanceId"].asString(); + instanceRenewAttributeObject.autoRenewEnabled = std::stoi(value["AutoRenewEnabled"].asString()); + instanceRenewAttributeObject.duration = std::stoi(value["Duration"].asString()); + instanceRenewAttributeObject.periodUnit = value["PeriodUnit"].asString(); + instanceRenewAttributeObject.renewalStatus = value["RenewalStatus"].asString(); + instanceRenewAttributes_.push_back(instanceRenewAttributeObject); + } + +} + diff --git a/ecs/src/model/DescribeInstanceHistoryEventsRequest.cc b/ecs/src/model/DescribeInstanceHistoryEventsRequest.cc new file mode 100644 index 000000000..697c88862 --- /dev/null +++ b/ecs/src/model/DescribeInstanceHistoryEventsRequest.cc @@ -0,0 +1,403 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceHistoryEventsRequest::DescribeInstanceHistoryEventsRequest() : + EcsRequest("DescribeInstanceHistoryEvents") +{} + +DescribeInstanceHistoryEventsRequest::~DescribeInstanceHistoryEventsRequest() +{} + +std::vector DescribeInstanceHistoryEventsRequest::getEventId()const +{ + return eventId_; +} + +void DescribeInstanceHistoryEventsRequest::setEventId(const std::vector& eventId) +{ + eventId_ = eventId; + for(int i = 0; i!= eventId.size(); i++) + setParameter("EventId."+ std::to_string(i), eventId.at(i)); +} + +long DescribeInstanceHistoryEventsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstanceHistoryEventsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeInstanceHistoryEventsRequest::getEventCycleStatus()const +{ + return eventCycleStatus_; +} + +void DescribeInstanceHistoryEventsRequest::setEventCycleStatus(const std::string& eventCycleStatus) +{ + eventCycleStatus_ = eventCycleStatus; + setParameter("EventCycleStatus", eventCycleStatus); +} + +long DescribeInstanceHistoryEventsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeInstanceHistoryEventsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeInstanceHistoryEventsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeInstanceHistoryEventsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeInstanceHistoryEventsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeInstanceHistoryEventsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeInstanceHistoryEventsRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeInstanceHistoryEventsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeInstanceHistoryEventsRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeInstanceHistoryEventsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +int DescribeInstanceHistoryEventsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInstanceHistoryEventsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeInstanceHistoryEventsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeInstanceHistoryEventsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeInstanceHistoryEventsRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeInstanceHistoryEventsRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeInstanceHistoryEventsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeInstanceHistoryEventsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeInstanceHistoryEventsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeInstanceHistoryEventsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DescribeInstanceHistoryEventsRequest::getEnable()const +{ + return enable_; +} + +void DescribeInstanceHistoryEventsRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DescribeInstanceHistoryEventsRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeInstanceHistoryEventsRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +int DescribeInstanceHistoryEventsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeInstanceHistoryEventsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeInstanceHistoryEventsRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeInstanceHistoryEventsRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeInstanceHistoryEventsRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeInstanceHistoryEventsRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +std::string DescribeInstanceHistoryEventsRequest::getEventPublishTimeEnd()const +{ + return eventPublishTimeEnd_; +} + +void DescribeInstanceHistoryEventsRequest::setEventPublishTimeEnd(const std::string& eventPublishTimeEnd) +{ + eventPublishTimeEnd_ = eventPublishTimeEnd; + setParameter("EventPublishTimeEnd", eventPublishTimeEnd); +} + +long DescribeInstanceHistoryEventsRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeInstanceHistoryEventsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeInstanceHistoryEventsRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeInstanceHistoryEventsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeInstanceHistoryEventsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstanceHistoryEventsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInstanceHistoryEventsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeInstanceHistoryEventsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeInstanceHistoryEventsRequest::getNotBeforeStart()const +{ + return notBeforeStart_; +} + +void DescribeInstanceHistoryEventsRequest::setNotBeforeStart(const std::string& notBeforeStart) +{ + notBeforeStart_ = notBeforeStart; + setParameter("NotBeforeStart", notBeforeStart); +} + +std::string DescribeInstanceHistoryEventsRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeInstanceHistoryEventsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeInstanceHistoryEventsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstanceHistoryEventsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool DescribeInstanceHistoryEventsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeInstanceHistoryEventsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeInstanceHistoryEventsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeInstanceHistoryEventsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DescribeInstanceHistoryEventsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeInstanceHistoryEventsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeInstanceHistoryEventsRequest::getEventPublishTimeStart()const +{ + return eventPublishTimeStart_; +} + +void DescribeInstanceHistoryEventsRequest::setEventPublishTimeStart(const std::string& eventPublishTimeStart) +{ + eventPublishTimeStart_ = eventPublishTimeStart; + setParameter("EventPublishTimeStart", eventPublishTimeStart); +} + +std::string DescribeInstanceHistoryEventsRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeInstanceHistoryEventsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeInstanceHistoryEventsRequest::getNotBeforeEnd()const +{ + return notBeforeEnd_; +} + +void DescribeInstanceHistoryEventsRequest::setNotBeforeEnd(const std::string& notBeforeEnd) +{ + notBeforeEnd_ = notBeforeEnd; + setParameter("NotBeforeEnd", notBeforeEnd); +} + +std::string DescribeInstanceHistoryEventsRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeInstanceHistoryEventsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribeInstanceHistoryEventsRequest::getEventType()const +{ + return eventType_; +} + +void DescribeInstanceHistoryEventsRequest::setEventType(const std::string& eventType) +{ + eventType_ = eventType; + setParameter("EventType", eventType); +} + diff --git a/ecs/src/model/DescribeInstanceHistoryEventsResult.cc b/ecs/src/model/DescribeInstanceHistoryEventsResult.cc new file mode 100644 index 000000000..6da333192 --- /dev/null +++ b/ecs/src/model/DescribeInstanceHistoryEventsResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceHistoryEventsResult::DescribeInstanceHistoryEventsResult() : + ServiceResult() +{} + +DescribeInstanceHistoryEventsResult::DescribeInstanceHistoryEventsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceHistoryEventsResult::~DescribeInstanceHistoryEventsResult() +{} + +void DescribeInstanceHistoryEventsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allInstanceSystemEventSet = value["InstanceSystemEventSet"]["InstanceSystemEventType"]; + for (auto value : allInstanceSystemEventSet) + { + InstanceSystemEventType instanceSystemEventTypeObject; + instanceSystemEventTypeObject.instanceId = value["InstanceId"].asString(); + instanceSystemEventTypeObject.eventId = value["EventId"].asString(); + instanceSystemEventTypeObject.eventPublishTime = value["EventPublishTime"].asString(); + instanceSystemEventTypeObject.notBefore = value["NotBefore"].asString(); + auto allEventType = value["EventType"]; + for (auto value : allEventType) + { + InstanceSystemEventType::EventType eventTypeObject; + eventTypeObject.code = std::stoi(value["Code"].asString()); + eventTypeObject.name = value["Name"].asString(); + instanceSystemEventTypeObject.eventType.push_back(eventTypeObject); + } + instanceSystemEventSet_.push_back(instanceSystemEventTypeObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeInstanceHistoryEventsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeInstanceHistoryEventsResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeInstanceHistoryEventsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeInstanceHistoryEventsResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeInstanceHistoryEventsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInstanceHistoryEventsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeInstanceMonitorDataRequest.cc b/ecs/src/model/DescribeInstanceMonitorDataRequest.cc new file mode 100644 index 000000000..ac633662e --- /dev/null +++ b/ecs/src/model/DescribeInstanceMonitorDataRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceMonitorDataRequest::DescribeInstanceMonitorDataRequest() : + EcsRequest("DescribeInstanceMonitorData") +{} + +DescribeInstanceMonitorDataRequest::~DescribeInstanceMonitorDataRequest() +{} + +long DescribeInstanceMonitorDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstanceMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribeInstanceMonitorDataRequest::getPeriod()const +{ + return period_; +} + +void DescribeInstanceMonitorDataRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +std::string DescribeInstanceMonitorDataRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeInstanceMonitorDataRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeInstanceMonitorDataRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstanceMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInstanceMonitorDataRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeInstanceMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeInstanceMonitorDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeInstanceMonitorDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeInstanceMonitorDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeInstanceMonitorDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeInstanceMonitorDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstanceMonitorDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeInstanceMonitorDataResult.cc b/ecs/src/model/DescribeInstanceMonitorDataResult.cc new file mode 100644 index 000000000..6d19b70ff --- /dev/null +++ b/ecs/src/model/DescribeInstanceMonitorDataResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceMonitorDataResult::DescribeInstanceMonitorDataResult() : + ServiceResult() +{} + +DescribeInstanceMonitorDataResult::DescribeInstanceMonitorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceMonitorDataResult::~DescribeInstanceMonitorDataResult() +{} + +void DescribeInstanceMonitorDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allMonitorData = value["MonitorData"]["InstanceMonitorData"]; + for (auto value : allMonitorData) + { + InstanceMonitorData instanceMonitorDataObject; + instanceMonitorDataObject.instanceId = value["InstanceId"].asString(); + instanceMonitorDataObject.cPU = std::stoi(value["CPU"].asString()); + instanceMonitorDataObject.intranetRX = std::stoi(value["IntranetRX"].asString()); + instanceMonitorDataObject.intranetTX = std::stoi(value["IntranetTX"].asString()); + instanceMonitorDataObject.intranetBandwidth = std::stoi(value["IntranetBandwidth"].asString()); + instanceMonitorDataObject.internetRX = std::stoi(value["InternetRX"].asString()); + instanceMonitorDataObject.internetTX = std::stoi(value["InternetTX"].asString()); + instanceMonitorDataObject.internetBandwidth = std::stoi(value["InternetBandwidth"].asString()); + instanceMonitorDataObject.iOPSRead = std::stoi(value["IOPSRead"].asString()); + instanceMonitorDataObject.iOPSWrite = std::stoi(value["IOPSWrite"].asString()); + instanceMonitorDataObject.bPSRead = std::stoi(value["BPSRead"].asString()); + instanceMonitorDataObject.bPSWrite = std::stoi(value["BPSWrite"].asString()); + instanceMonitorDataObject.cPUCreditUsage = std::stof(value["CPUCreditUsage"].asString()); + instanceMonitorDataObject.cPUCreditBalance = std::stof(value["CPUCreditBalance"].asString()); + instanceMonitorDataObject.timeStamp = value["TimeStamp"].asString(); + monitorData_.push_back(instanceMonitorDataObject); + } + +} + diff --git a/ecs/src/model/DescribeInstancePhysicalAttributeRequest.cc b/ecs/src/model/DescribeInstancePhysicalAttributeRequest.cc new file mode 100644 index 000000000..6fd089535 --- /dev/null +++ b/ecs/src/model/DescribeInstancePhysicalAttributeRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstancePhysicalAttributeRequest::DescribeInstancePhysicalAttributeRequest() : + EcsRequest("DescribeInstancePhysicalAttribute") +{} + +DescribeInstancePhysicalAttributeRequest::~DescribeInstancePhysicalAttributeRequest() +{} + +long DescribeInstancePhysicalAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstancePhysicalAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeInstancePhysicalAttributeRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeInstancePhysicalAttributeRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeInstancePhysicalAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstancePhysicalAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInstancePhysicalAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeInstancePhysicalAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeInstancePhysicalAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstancePhysicalAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeInstancePhysicalAttributeResult.cc b/ecs/src/model/DescribeInstancePhysicalAttributeResult.cc new file mode 100644 index 000000000..3a6a16839 --- /dev/null +++ b/ecs/src/model/DescribeInstancePhysicalAttributeResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstancePhysicalAttributeResult::DescribeInstancePhysicalAttributeResult() : + ServiceResult() +{} + +DescribeInstancePhysicalAttributeResult::DescribeInstancePhysicalAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstancePhysicalAttributeResult::~DescribeInstancePhysicalAttributeResult() +{} + +void DescribeInstancePhysicalAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + instanceId_ = value["InstanceId"].asString(); + vlanId_ = value["VlanId"].asString(); + nodeControllerId_ = value["NodeControllerId"].asString(); + rackId_ = value["RackId"].asString(); + +} + +std::string DescribeInstancePhysicalAttributeResult::getRackId()const +{ + return rackId_; +} + +void DescribeInstancePhysicalAttributeResult::setRackId(const std::string& rackId) +{ + rackId_ = rackId; +} + +std::string DescribeInstancePhysicalAttributeResult::getNodeControllerId()const +{ + return nodeControllerId_; +} + +void DescribeInstancePhysicalAttributeResult::setNodeControllerId(const std::string& nodeControllerId) +{ + nodeControllerId_ = nodeControllerId; +} + +std::string DescribeInstancePhysicalAttributeResult::getInstanceId()const +{ + return instanceId_; +} + +void DescribeInstancePhysicalAttributeResult::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; +} + +std::string DescribeInstancePhysicalAttributeResult::getVlanId()const +{ + return vlanId_; +} + +void DescribeInstancePhysicalAttributeResult::setVlanId(const std::string& vlanId) +{ + vlanId_ = vlanId; +} + diff --git a/ecs/src/model/DescribeInstanceRamRoleRequest.cc b/ecs/src/model/DescribeInstanceRamRoleRequest.cc new file mode 100644 index 000000000..af844bb37 --- /dev/null +++ b/ecs/src/model/DescribeInstanceRamRoleRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceRamRoleRequest::DescribeInstanceRamRoleRequest() : + EcsRequest("DescribeInstanceRamRole") +{} + +DescribeInstanceRamRoleRequest::~DescribeInstanceRamRoleRequest() +{} + +long DescribeInstanceRamRoleRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstanceRamRoleRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeInstanceRamRoleRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstanceRamRoleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInstanceRamRoleRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeInstanceRamRoleRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeInstanceRamRoleRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void DescribeInstanceRamRoleRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setParameter("InstanceIds", instanceIds); +} + +int DescribeInstanceRamRoleRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeInstanceRamRoleRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeInstanceRamRoleRequest::getRamRoleName()const +{ + return ramRoleName_; +} + +void DescribeInstanceRamRoleRequest::setRamRoleName(const std::string& ramRoleName) +{ + ramRoleName_ = ramRoleName; + setParameter("RamRoleName", ramRoleName); +} + +long DescribeInstanceRamRoleRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstanceRamRoleRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeInstanceRamRoleRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInstanceRamRoleRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeInstanceRamRoleResult.cc b/ecs/src/model/DescribeInstanceRamRoleResult.cc new file mode 100644 index 000000000..b7fffbe65 --- /dev/null +++ b/ecs/src/model/DescribeInstanceRamRoleResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceRamRoleResult::DescribeInstanceRamRoleResult() : + ServiceResult() +{} + +DescribeInstanceRamRoleResult::DescribeInstanceRamRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceRamRoleResult::~DescribeInstanceRamRoleResult() +{} + +void DescribeInstanceRamRoleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allInstanceRamRoleSets = value["InstanceRamRoleSets"]["InstanceRamRoleSet"]; + for (auto value : allInstanceRamRoleSets) + { + InstanceRamRoleSet instanceRamRoleSetObject; + instanceRamRoleSetObject.instanceId = value["InstanceId"].asString(); + instanceRamRoleSetObject.ramRoleName = value["RamRoleName"].asString(); + instanceRamRoleSets_.push_back(instanceRamRoleSetObject); + } + regionId_ = value["RegionId"].asString(); + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeInstanceRamRoleResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeInstanceRamRoleResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +std::string DescribeInstanceRamRoleResult::getRegionId()const +{ + return regionId_; +} + +void DescribeInstanceRamRoleResult::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; +} + diff --git a/ecs/src/model/DescribeInstanceStatusRequest.cc b/ecs/src/model/DescribeInstanceStatusRequest.cc new file mode 100644 index 000000000..c9507b6b5 --- /dev/null +++ b/ecs/src/model/DescribeInstanceStatusRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceStatusRequest::DescribeInstanceStatusRequest() : + EcsRequest("DescribeInstanceStatus") +{} + +DescribeInstanceStatusRequest::~DescribeInstanceStatusRequest() +{} + +long DescribeInstanceStatusRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstanceStatusRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeInstanceStatusRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstanceStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInstanceStatusRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeInstanceStatusRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeInstanceStatusRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeInstanceStatusRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeInstanceStatusRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeInstanceStatusRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeInstanceStatusRequest::getZoneId()const +{ + return zoneId_; +} + +void DescribeInstanceStatusRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string DescribeInstanceStatusRequest::getClusterId()const +{ + return clusterId_; +} + +void DescribeInstanceStatusRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +long DescribeInstanceStatusRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstanceStatusRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeInstanceStatusRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInstanceStatusRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeInstanceStatusResult.cc b/ecs/src/model/DescribeInstanceStatusResult.cc new file mode 100644 index 000000000..175db4b27 --- /dev/null +++ b/ecs/src/model/DescribeInstanceStatusResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceStatusResult::DescribeInstanceStatusResult() : + ServiceResult() +{} + +DescribeInstanceStatusResult::DescribeInstanceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceStatusResult::~DescribeInstanceStatusResult() +{} + +void DescribeInstanceStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allInstanceStatuses = value["InstanceStatuses"]["InstanceStatus"]; + for (auto value : allInstanceStatuses) + { + InstanceStatus instanceStatusObject; + instanceStatusObject.instanceId = value["InstanceId"].asString(); + instanceStatusObject.status = value["Status"].asString(); + instanceStatuses_.push_back(instanceStatusObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeInstanceStatusResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeInstanceStatusResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeInstanceStatusResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeInstanceStatusResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeInstanceStatusResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInstanceStatusResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeInstanceTypeFamiliesRequest.cc b/ecs/src/model/DescribeInstanceTypeFamiliesRequest.cc new file mode 100644 index 000000000..1a5fd30ae --- /dev/null +++ b/ecs/src/model/DescribeInstanceTypeFamiliesRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceTypeFamiliesRequest::DescribeInstanceTypeFamiliesRequest() : + EcsRequest("DescribeInstanceTypeFamilies") +{} + +DescribeInstanceTypeFamiliesRequest::~DescribeInstanceTypeFamiliesRequest() +{} + +std::string DescribeInstanceTypeFamiliesRequest::getGeneration()const +{ + return generation_; +} + +void DescribeInstanceTypeFamiliesRequest::setGeneration(const std::string& generation) +{ + generation_ = generation; + setParameter("Generation", generation); +} + +long DescribeInstanceTypeFamiliesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstanceTypeFamiliesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeInstanceTypeFamiliesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstanceTypeFamiliesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInstanceTypeFamiliesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeInstanceTypeFamiliesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeInstanceTypeFamiliesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeInstanceTypeFamiliesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeInstanceTypeFamiliesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstanceTypeFamiliesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeInstanceTypeFamiliesResult.cc b/ecs/src/model/DescribeInstanceTypeFamiliesResult.cc new file mode 100644 index 000000000..ab37a1f3e --- /dev/null +++ b/ecs/src/model/DescribeInstanceTypeFamiliesResult.cc @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceTypeFamiliesResult::DescribeInstanceTypeFamiliesResult() : + ServiceResult() +{} + +DescribeInstanceTypeFamiliesResult::DescribeInstanceTypeFamiliesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceTypeFamiliesResult::~DescribeInstanceTypeFamiliesResult() +{} + +void DescribeInstanceTypeFamiliesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allInstanceTypeFamilies = value["InstanceTypeFamilies"]["InstanceTypeFamily"]; + for (auto value : allInstanceTypeFamilies) + { + InstanceTypeFamily instanceTypeFamilyObject; + instanceTypeFamilyObject.instanceTypeFamilyId = value["InstanceTypeFamilyId"].asString(); + instanceTypeFamilyObject.generation = value["Generation"].asString(); + instanceTypeFamilies_.push_back(instanceTypeFamilyObject); + } + +} + diff --git a/ecs/src/model/DescribeInstanceTypesRequest.cc b/ecs/src/model/DescribeInstanceTypesRequest.cc new file mode 100644 index 000000000..9e6390726 --- /dev/null +++ b/ecs/src/model/DescribeInstanceTypesRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceTypesRequest::DescribeInstanceTypesRequest() : + EcsRequest("DescribeInstanceTypes") +{} + +DescribeInstanceTypesRequest::~DescribeInstanceTypesRequest() +{} + +long DescribeInstanceTypesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstanceTypesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeInstanceTypesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstanceTypesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInstanceTypesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeInstanceTypesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeInstanceTypesRequest::getInstanceTypeFamily()const +{ + return instanceTypeFamily_; +} + +void DescribeInstanceTypesRequest::setInstanceTypeFamily(const std::string& instanceTypeFamily) +{ + instanceTypeFamily_ = instanceTypeFamily; + setParameter("InstanceTypeFamily", instanceTypeFamily); +} + +long DescribeInstanceTypesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstanceTypesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeInstanceTypesResult.cc b/ecs/src/model/DescribeInstanceTypesResult.cc new file mode 100644 index 000000000..b2fd84baa --- /dev/null +++ b/ecs/src/model/DescribeInstanceTypesResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceTypesResult::DescribeInstanceTypesResult() : + ServiceResult() +{} + +DescribeInstanceTypesResult::DescribeInstanceTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceTypesResult::~DescribeInstanceTypesResult() +{} + +void DescribeInstanceTypesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allInstanceTypes = value["InstanceTypes"]["InstanceType"]; + for (auto value : allInstanceTypes) + { + InstanceType instanceTypeObject; + instanceTypeObject.instanceTypeId = value["InstanceTypeId"].asString(); + instanceTypeObject.cpuCoreCount = std::stoi(value["CpuCoreCount"].asString()); + instanceTypeObject.memorySize = std::stof(value["MemorySize"].asString()); + instanceTypeObject.instanceTypeFamily = value["InstanceTypeFamily"].asString(); + instanceTypeObject.localStorageCapacity = std::stol(value["LocalStorageCapacity"].asString()); + instanceTypeObject.localStorageAmount = std::stoi(value["LocalStorageAmount"].asString()); + instanceTypeObject.localStorageCategory = value["LocalStorageCategory"].asString(); + instanceTypeObject.gPUAmount = std::stoi(value["GPUAmount"].asString()); + instanceTypeObject.gPUSpec = value["GPUSpec"].asString(); + instanceTypeObject.initialCredit = std::stoi(value["InitialCredit"].asString()); + instanceTypeObject.baselineCredit = std::stoi(value["BaselineCredit"].asString()); + instanceTypes_.push_back(instanceTypeObject); + } + +} + diff --git a/ecs/src/model/DescribeInstanceVncPasswdRequest.cc b/ecs/src/model/DescribeInstanceVncPasswdRequest.cc new file mode 100644 index 000000000..e24652016 --- /dev/null +++ b/ecs/src/model/DescribeInstanceVncPasswdRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceVncPasswdRequest::DescribeInstanceVncPasswdRequest() : + EcsRequest("DescribeInstanceVncPasswd") +{} + +DescribeInstanceVncPasswdRequest::~DescribeInstanceVncPasswdRequest() +{} + +long DescribeInstanceVncPasswdRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstanceVncPasswdRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeInstanceVncPasswdRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeInstanceVncPasswdRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeInstanceVncPasswdRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstanceVncPasswdRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInstanceVncPasswdRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeInstanceVncPasswdRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeInstanceVncPasswdRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeInstanceVncPasswdRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeInstanceVncPasswdRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstanceVncPasswdRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeInstanceVncPasswdResult.cc b/ecs/src/model/DescribeInstanceVncPasswdResult.cc new file mode 100644 index 000000000..599303585 --- /dev/null +++ b/ecs/src/model/DescribeInstanceVncPasswdResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceVncPasswdResult::DescribeInstanceVncPasswdResult() : + ServiceResult() +{} + +DescribeInstanceVncPasswdResult::DescribeInstanceVncPasswdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceVncPasswdResult::~DescribeInstanceVncPasswdResult() +{} + +void DescribeInstanceVncPasswdResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + vncPasswd_ = value["VncPasswd"].asString(); + +} + +std::string DescribeInstanceVncPasswdResult::getVncPasswd()const +{ + return vncPasswd_; +} + +void DescribeInstanceVncPasswdResult::setVncPasswd(const std::string& vncPasswd) +{ + vncPasswd_ = vncPasswd; +} + diff --git a/ecs/src/model/DescribeInstanceVncUrlRequest.cc b/ecs/src/model/DescribeInstanceVncUrlRequest.cc new file mode 100644 index 000000000..61731a2fc --- /dev/null +++ b/ecs/src/model/DescribeInstanceVncUrlRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceVncUrlRequest::DescribeInstanceVncUrlRequest() : + EcsRequest("DescribeInstanceVncUrl") +{} + +DescribeInstanceVncUrlRequest::~DescribeInstanceVncUrlRequest() +{} + +long DescribeInstanceVncUrlRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstanceVncUrlRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeInstanceVncUrlRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeInstanceVncUrlRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeInstanceVncUrlRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstanceVncUrlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInstanceVncUrlRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeInstanceVncUrlRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeInstanceVncUrlRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeInstanceVncUrlRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeInstanceVncUrlRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstanceVncUrlRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeInstanceVncUrlResult.cc b/ecs/src/model/DescribeInstanceVncUrlResult.cc new file mode 100644 index 000000000..31300e9ab --- /dev/null +++ b/ecs/src/model/DescribeInstanceVncUrlResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstanceVncUrlResult::DescribeInstanceVncUrlResult() : + ServiceResult() +{} + +DescribeInstanceVncUrlResult::DescribeInstanceVncUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceVncUrlResult::~DescribeInstanceVncUrlResult() +{} + +void DescribeInstanceVncUrlResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + vncUrl_ = value["VncUrl"].asString(); + +} + +std::string DescribeInstanceVncUrlResult::getVncUrl()const +{ + return vncUrl_; +} + +void DescribeInstanceVncUrlResult::setVncUrl(const std::string& vncUrl) +{ + vncUrl_ = vncUrl; +} + diff --git a/ecs/src/model/DescribeInstancesFullStatusRequest.cc b/ecs/src/model/DescribeInstancesFullStatusRequest.cc new file mode 100644 index 000000000..597d44147 --- /dev/null +++ b/ecs/src/model/DescribeInstancesFullStatusRequest.cc @@ -0,0 +1,415 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstancesFullStatusRequest::DescribeInstancesFullStatusRequest() : + EcsRequest("DescribeInstancesFullStatus") +{} + +DescribeInstancesFullStatusRequest::~DescribeInstancesFullStatusRequest() +{} + +std::vector DescribeInstancesFullStatusRequest::getEventId()const +{ + return eventId_; +} + +void DescribeInstancesFullStatusRequest::setEventId(const std::vector& eventId) +{ + eventId_ = eventId; + for(int i = 0; i!= eventId.size(); i++) + setParameter("EventId."+ std::to_string(i), eventId.at(i)); +} + +long DescribeInstancesFullStatusRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstancesFullStatusRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeInstancesFullStatusRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeInstancesFullStatusRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeInstancesFullStatusRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeInstancesFullStatusRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeInstancesFullStatusRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeInstancesFullStatusRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeInstancesFullStatusRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeInstancesFullStatusRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeInstancesFullStatusRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeInstancesFullStatusRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +int DescribeInstancesFullStatusRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInstancesFullStatusRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeInstancesFullStatusRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeInstancesFullStatusRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeInstancesFullStatusRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeInstancesFullStatusRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeInstancesFullStatusRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeInstancesFullStatusRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeInstancesFullStatusRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeInstancesFullStatusRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DescribeInstancesFullStatusRequest::getEnable()const +{ + return enable_; +} + +void DescribeInstancesFullStatusRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DescribeInstancesFullStatusRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeInstancesFullStatusRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +int DescribeInstancesFullStatusRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeInstancesFullStatusRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeInstancesFullStatusRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeInstancesFullStatusRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeInstancesFullStatusRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeInstancesFullStatusRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +std::string DescribeInstancesFullStatusRequest::getEventPublishTimeEnd()const +{ + return eventPublishTimeEnd_; +} + +void DescribeInstancesFullStatusRequest::setEventPublishTimeEnd(const std::string& eventPublishTimeEnd) +{ + eventPublishTimeEnd_ = eventPublishTimeEnd; + setParameter("EventPublishTimeEnd", eventPublishTimeEnd); +} + +long DescribeInstancesFullStatusRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeInstancesFullStatusRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeInstancesFullStatusRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeInstancesFullStatusRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeInstancesFullStatusRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstancesFullStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInstancesFullStatusRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeInstancesFullStatusRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeInstancesFullStatusRequest::getNotBeforeStart()const +{ + return notBeforeStart_; +} + +void DescribeInstancesFullStatusRequest::setNotBeforeStart(const std::string& notBeforeStart) +{ + notBeforeStart_ = notBeforeStart; + setParameter("NotBeforeStart", notBeforeStart); +} + +std::string DescribeInstancesFullStatusRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeInstancesFullStatusRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeInstancesFullStatusRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstancesFullStatusRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool DescribeInstancesFullStatusRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeInstancesFullStatusRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeInstancesFullStatusRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeInstancesFullStatusRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DescribeInstancesFullStatusRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeInstancesFullStatusRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeInstancesFullStatusRequest::getEventPublishTimeStart()const +{ + return eventPublishTimeStart_; +} + +void DescribeInstancesFullStatusRequest::setEventPublishTimeStart(const std::string& eventPublishTimeStart) +{ + eventPublishTimeStart_ = eventPublishTimeStart; + setParameter("EventPublishTimeStart", eventPublishTimeStart); +} + +std::vector DescribeInstancesFullStatusRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeInstancesFullStatusRequest::setInstanceId(const std::vector& instanceId) +{ + instanceId_ = instanceId; + for(int i = 0; i!= instanceId.size(); i++) + setParameter("InstanceId."+ std::to_string(i), instanceId.at(i)); +} + +std::string DescribeInstancesFullStatusRequest::getNotBeforeEnd()const +{ + return notBeforeEnd_; +} + +void DescribeInstancesFullStatusRequest::setNotBeforeEnd(const std::string& notBeforeEnd) +{ + notBeforeEnd_ = notBeforeEnd; + setParameter("NotBeforeEnd", notBeforeEnd); +} + +std::string DescribeInstancesFullStatusRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeInstancesFullStatusRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribeInstancesFullStatusRequest::getHealthStatus()const +{ + return healthStatus_; +} + +void DescribeInstancesFullStatusRequest::setHealthStatus(const std::string& healthStatus) +{ + healthStatus_ = healthStatus; + setParameter("HealthStatus", healthStatus); +} + +std::string DescribeInstancesFullStatusRequest::getEventType()const +{ + return eventType_; +} + +void DescribeInstancesFullStatusRequest::setEventType(const std::string& eventType) +{ + eventType_ = eventType; + setParameter("EventType", eventType); +} + +std::string DescribeInstancesFullStatusRequest::getStatus()const +{ + return status_; +} + +void DescribeInstancesFullStatusRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/ecs/src/model/DescribeInstancesFullStatusResult.cc b/ecs/src/model/DescribeInstancesFullStatusResult.cc new file mode 100644 index 000000000..92b44ec6a --- /dev/null +++ b/ecs/src/model/DescribeInstancesFullStatusResult.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 +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstancesFullStatusResult::DescribeInstancesFullStatusResult() : + ServiceResult() +{} + +DescribeInstancesFullStatusResult::DescribeInstancesFullStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstancesFullStatusResult::~DescribeInstancesFullStatusResult() +{} + +void DescribeInstancesFullStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allInstanceFullStatusSet = value["InstanceFullStatusSet"]["InstanceFullStatusType"]; + for (auto value : allInstanceFullStatusSet) + { + InstanceFullStatusType instanceFullStatusTypeObject; + instanceFullStatusTypeObject.instanceId = value["InstanceId"].asString(); + auto allScheduledSystemEventSet = value["ScheduledSystemEventSet"]["ScheduledSystemEventType"]; + for (auto value : allScheduledSystemEventSet) + { + InstanceFullStatusType::ScheduledSystemEventType scheduledSystemEventTypeObject; + scheduledSystemEventTypeObject.eventId = value["EventId"].asString(); + scheduledSystemEventTypeObject.eventPublishTime = value["EventPublishTime"].asString(); + scheduledSystemEventTypeObject.notBefore = value["NotBefore"].asString(); + auto allEventCycleStatus = value["EventCycleStatus"]; + for (auto value : allEventCycleStatus) + { + InstanceFullStatusType::ScheduledSystemEventType::EventCycleStatus eventCycleStatusObject; + eventCycleStatusObject.code = std::stoi(value["Code"].asString()); + eventCycleStatusObject.name = value["Name"].asString(); + scheduledSystemEventTypeObject.eventCycleStatus.push_back(eventCycleStatusObject); + } + auto allEventType = value["EventType"]; + for (auto value : allEventType) + { + InstanceFullStatusType::ScheduledSystemEventType::EventType eventTypeObject; + eventTypeObject.code = std::stoi(value["Code"].asString()); + eventTypeObject.name = value["Name"].asString(); + scheduledSystemEventTypeObject.eventType.push_back(eventTypeObject); + } + instanceFullStatusTypeObject.scheduledSystemEventSet.push_back(scheduledSystemEventTypeObject); + } + auto allStatus = value["Status"]; + for (auto value : allStatus) + { + InstanceFullStatusType::Status statusObject; + statusObject.code = std::stoi(value["Code"].asString()); + statusObject.name = value["Name"].asString(); + instanceFullStatusTypeObject.status.push_back(statusObject); + } + auto allHealthStatus = value["HealthStatus"]; + for (auto value : allHealthStatus) + { + InstanceFullStatusType::HealthStatus healthStatusObject; + healthStatusObject.code = std::stoi(value["Code"].asString()); + healthStatusObject.name = value["Name"].asString(); + instanceFullStatusTypeObject.healthStatus.push_back(healthStatusObject); + } + instanceFullStatusSet_.push_back(instanceFullStatusTypeObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeInstancesFullStatusResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeInstancesFullStatusResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeInstancesFullStatusResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeInstancesFullStatusResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeInstancesFullStatusResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInstancesFullStatusResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeInstancesRequest.cc b/ecs/src/model/DescribeInstancesRequest.cc new file mode 100644 index 000000000..5d43d1499 --- /dev/null +++ b/ecs/src/model/DescribeInstancesRequest.cc @@ -0,0 +1,578 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstancesRequest::DescribeInstancesRequest() : + EcsRequest("DescribeInstances") +{} + +DescribeInstancesRequest::~DescribeInstancesRequest() +{} + +std::string DescribeInstancesRequest::getTag4Value()const +{ + return tag4Value_; +} + +void DescribeInstancesRequest::setTag4Value(const std::string& tag4Value) +{ + tag4Value_ = tag4Value; + setParameter("Tag4Value", tag4Value); +} + +std::string DescribeInstancesRequest::getInnerIpAddresses()const +{ + return innerIpAddresses_; +} + +void DescribeInstancesRequest::setInnerIpAddresses(const std::string& innerIpAddresses) +{ + innerIpAddresses_ = innerIpAddresses; + setParameter("InnerIpAddresses", innerIpAddresses); +} + +long DescribeInstancesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInstancesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeInstancesRequest::getTag2Key()const +{ + return tag2Key_; +} + +void DescribeInstancesRequest::setTag2Key(const std::string& tag2Key) +{ + tag2Key_ = tag2Key; + setParameter("Tag2Key", tag2Key); +} + +std::string DescribeInstancesRequest::getPrivateIpAddresses()const +{ + return privateIpAddresses_; +} + +void DescribeInstancesRequest::setPrivateIpAddresses(const std::string& privateIpAddresses) +{ + privateIpAddresses_ = privateIpAddresses; + setParameter("PrivateIpAddresses", privateIpAddresses); +} + +std::string DescribeInstancesRequest::getHpcClusterId()const +{ + return hpcClusterId_; +} + +void DescribeInstancesRequest::setHpcClusterId(const std::string& hpcClusterId) +{ + hpcClusterId_ = hpcClusterId; + setParameter("HpcClusterId", hpcClusterId); +} + +std::string DescribeInstancesRequest::getFilter2Value()const +{ + return filter2Value_; +} + +void DescribeInstancesRequest::setFilter2Value(const std::string& filter2Value) +{ + filter2Value_ = filter2Value; + setParameter("Filter2Value", filter2Value); +} + +std::string DescribeInstancesRequest::getTag3Key()const +{ + return tag3Key_; +} + +void DescribeInstancesRequest::setTag3Key(const std::string& tag3Key) +{ + tag3Key_ = tag3Key; + setParameter("Tag3Key", tag3Key); +} + +std::string DescribeInstancesRequest::getKeyPairName()const +{ + return keyPairName_; +} + +void DescribeInstancesRequest::setKeyPairName(const std::string& keyPairName) +{ + keyPairName_ = keyPairName; + setParameter("KeyPairName", keyPairName); +} + +std::string DescribeInstancesRequest::getTag1Value()const +{ + return tag1Value_; +} + +void DescribeInstancesRequest::setTag1Value(const std::string& tag1Value) +{ + tag1Value_ = tag1Value; + setParameter("Tag1Value", tag1Value); +} + +std::string DescribeInstancesRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeInstancesRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeInstancesRequest::getLockReason()const +{ + return lockReason_; +} + +void DescribeInstancesRequest::setLockReason(const std::string& lockReason) +{ + lockReason_ = lockReason; + setParameter("LockReason", lockReason); +} + +std::string DescribeInstancesRequest::getFilter1Key()const +{ + return filter1Key_; +} + +void DescribeInstancesRequest::setFilter1Key(const std::string& filter1Key) +{ + filter1Key_ = filter1Key; + setParameter("Filter1Key", filter1Key); +} + +bool DescribeInstancesRequest::getDeviceAvailable()const +{ + return deviceAvailable_; +} + +void DescribeInstancesRequest::setDeviceAvailable(bool deviceAvailable) +{ + deviceAvailable_ = deviceAvailable; + setParameter("DeviceAvailable", std::to_string(deviceAvailable)); +} + +std::string DescribeInstancesRequest::getFilter3Value()const +{ + return filter3Value_; +} + +void DescribeInstancesRequest::setFilter3Value(const std::string& filter3Value) +{ + filter3Value_ = filter3Value; + setParameter("Filter3Value", filter3Value); +} + +bool DescribeInstancesRequest::getDryRun()const +{ + return dryRun_; +} + +void DescribeInstancesRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", std::to_string(dryRun)); +} + +std::string DescribeInstancesRequest::getTag5Key()const +{ + return tag5Key_; +} + +void DescribeInstancesRequest::setTag5Key(const std::string& tag5Key) +{ + tag5Key_ = tag5Key; + setParameter("Tag5Key", tag5Key); +} + +std::string DescribeInstancesRequest::getFilter1Value()const +{ + return filter1Value_; +} + +void DescribeInstancesRequest::setFilter1Value(const std::string& filter1Value) +{ + filter1Value_ = filter1Value; + setParameter("Filter1Value", filter1Value); +} + +long DescribeInstancesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInstancesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeInstancesRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void DescribeInstancesRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string DescribeInstancesRequest::getInstanceName()const +{ + return instanceName_; +} + +void DescribeInstancesRequest::setInstanceName(const std::string& instanceName) +{ + instanceName_ = instanceName; + setParameter("InstanceName", instanceName); +} + +std::string DescribeInstancesRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void DescribeInstancesRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setParameter("InstanceIds", instanceIds); +} + +std::string DescribeInstancesRequest::getInternetChargeType()const +{ + return internetChargeType_; +} + +void DescribeInstancesRequest::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; + setParameter("InternetChargeType", internetChargeType); +} + +std::string DescribeInstancesRequest::getZoneId()const +{ + return zoneId_; +} + +void DescribeInstancesRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string DescribeInstancesRequest::getTag4Key()const +{ + return tag4Key_; +} + +void DescribeInstancesRequest::setTag4Key(const std::string& tag4Key) +{ + tag4Key_ = tag4Key; + setParameter("Tag4Key", tag4Key); +} + +std::string DescribeInstancesRequest::getInstanceNetworkType()const +{ + return instanceNetworkType_; +} + +void DescribeInstancesRequest::setInstanceNetworkType(const std::string& instanceNetworkType) +{ + instanceNetworkType_ = instanceNetworkType; + setParameter("InstanceNetworkType", instanceNetworkType); +} + +std::string DescribeInstancesRequest::getStatus()const +{ + return status_; +} + +void DescribeInstancesRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + +std::string DescribeInstancesRequest::getImageId()const +{ + return imageId_; +} + +void DescribeInstancesRequest::setImageId(const std::string& imageId) +{ + imageId_ = imageId; + setParameter("ImageId", imageId); +} + +std::string DescribeInstancesRequest::getFilter4Value()const +{ + return filter4Value_; +} + +void DescribeInstancesRequest::setFilter4Value(const std::string& filter4Value) +{ + filter4Value_ = filter4Value; + setParameter("Filter4Value", filter4Value); +} + +bool DescribeInstancesRequest::getIoOptimized()const +{ + return ioOptimized_; +} + +void DescribeInstancesRequest::setIoOptimized(bool ioOptimized) +{ + ioOptimized_ = ioOptimized; + setParameter("IoOptimized", std::to_string(ioOptimized)); +} + +std::string DescribeInstancesRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void DescribeInstancesRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +std::string DescribeInstancesRequest::getFilter4Key()const +{ + return filter4Key_; +} + +void DescribeInstancesRequest::setFilter4Key(const std::string& filter4Key) +{ + filter4Key_ = filter4Key; + setParameter("Filter4Key", filter4Key); +} + +int DescribeInstancesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInstancesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeInstancesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeInstancesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeInstancesRequest::getRdmaIpAddresses()const +{ + return rdmaIpAddresses_; +} + +void DescribeInstancesRequest::setRdmaIpAddresses(const std::string& rdmaIpAddresses) +{ + rdmaIpAddresses_ = rdmaIpAddresses; + setParameter("RdmaIpAddresses", rdmaIpAddresses); +} + +int DescribeInstancesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeInstancesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeInstancesRequest::getPublicIpAddresses()const +{ + return publicIpAddresses_; +} + +void DescribeInstancesRequest::setPublicIpAddresses(const std::string& publicIpAddresses) +{ + publicIpAddresses_ = publicIpAddresses; + setParameter("PublicIpAddresses", publicIpAddresses); +} + +std::string DescribeInstancesRequest::getInstanceType()const +{ + return instanceType_; +} + +void DescribeInstancesRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::string DescribeInstancesRequest::getInstanceChargeType()const +{ + return instanceChargeType_; +} + +void DescribeInstancesRequest::setInstanceChargeType(const std::string& instanceChargeType) +{ + instanceChargeType_ = instanceChargeType; + setParameter("InstanceChargeType", instanceChargeType); +} + +std::string DescribeInstancesRequest::getTag3Value()const +{ + return tag3Value_; +} + +void DescribeInstancesRequest::setTag3Value(const std::string& tag3Value) +{ + tag3Value_ = tag3Value; + setParameter("Tag3Value", tag3Value); +} + +std::string DescribeInstancesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInstancesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeInstancesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeInstancesRequest::getInstanceTypeFamily()const +{ + return instanceTypeFamily_; +} + +void DescribeInstancesRequest::setInstanceTypeFamily(const std::string& instanceTypeFamily) +{ + instanceTypeFamily_ = instanceTypeFamily; + setParameter("InstanceTypeFamily", instanceTypeFamily); +} + +std::string DescribeInstancesRequest::getFilter2Key()const +{ + return filter2Key_; +} + +void DescribeInstancesRequest::setFilter2Key(const std::string& filter2Key) +{ + filter2Key_ = filter2Key; + setParameter("Filter2Key", filter2Key); +} + +std::string DescribeInstancesRequest::getTag5Value()const +{ + return tag5Value_; +} + +void DescribeInstancesRequest::setTag5Value(const std::string& tag5Value) +{ + tag5Value_ = tag5Value; + setParameter("Tag5Value", tag5Value); +} + +std::string DescribeInstancesRequest::getTag1Key()const +{ + return tag1Key_; +} + +void DescribeInstancesRequest::setTag1Key(const std::string& tag1Key) +{ + tag1Key_ = tag1Key; + setParameter("Tag1Key", tag1Key); +} + +std::string DescribeInstancesRequest::getEipAddresses()const +{ + return eipAddresses_; +} + +void DescribeInstancesRequest::setEipAddresses(const std::string& eipAddresses) +{ + eipAddresses_ = eipAddresses; + setParameter("EipAddresses", eipAddresses); +} + +std::string DescribeInstancesRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeInstancesRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string DescribeInstancesRequest::getTag2Value()const +{ + return tag2Value_; +} + +void DescribeInstancesRequest::setTag2Value(const std::string& tag2Value) +{ + tag2Value_ = tag2Value; + setParameter("Tag2Value", tag2Value); +} + +std::string DescribeInstancesRequest::getFilter3Key()const +{ + return filter3Key_; +} + +void DescribeInstancesRequest::setFilter3Key(const std::string& filter3Key) +{ + filter3Key_ = filter3Key; + setParameter("Filter3Key", filter3Key); +} + diff --git a/ecs/src/model/DescribeInstancesResult.cc b/ecs/src/model/DescribeInstancesResult.cc new file mode 100644 index 000000000..af411646b --- /dev/null +++ b/ecs/src/model/DescribeInstancesResult.cc @@ -0,0 +1,184 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInstancesResult::DescribeInstancesResult() : + ServiceResult() +{} + +DescribeInstancesResult::DescribeInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstancesResult::~DescribeInstancesResult() +{} + +void DescribeInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allInstances = value["Instances"]["Instance"]; + for (auto value : allInstances) + { + Instance instanceObject; + instanceObject.instanceId = value["InstanceId"].asString(); + instanceObject.instanceName = value["InstanceName"].asString(); + instanceObject.description = value["Description"].asString(); + instanceObject.imageId = value["ImageId"].asString(); + instanceObject.oSName = value["OSName"].asString(); + instanceObject.oSType = value["OSType"].asString(); + instanceObject.regionId = value["RegionId"].asString(); + instanceObject.zoneId = value["ZoneId"].asString(); + instanceObject.clusterId = value["ClusterId"].asString(); + instanceObject.instanceType = value["InstanceType"].asString(); + instanceObject.cpu = std::stoi(value["Cpu"].asString()); + instanceObject.memory = std::stoi(value["Memory"].asString()); + instanceObject.hostName = value["HostName"].asString(); + instanceObject.status = value["Status"].asString(); + instanceObject.serialNumber = value["SerialNumber"].asString(); + instanceObject.internetChargeType = value["InternetChargeType"].asString(); + instanceObject.internetMaxBandwidthIn = std::stoi(value["InternetMaxBandwidthIn"].asString()); + instanceObject.internetMaxBandwidthOut = std::stoi(value["InternetMaxBandwidthOut"].asString()); + instanceObject.vlanId = value["VlanId"].asString(); + instanceObject.creationTime = value["CreationTime"].asString(); + instanceObject.startTime = value["StartTime"].asString(); + instanceObject.instanceNetworkType = value["InstanceNetworkType"].asString(); + instanceObject.instanceChargeType = value["InstanceChargeType"].asString(); + instanceObject.saleCycle = value["SaleCycle"].asString(); + instanceObject.expiredTime = value["ExpiredTime"].asString(); + instanceObject.autoReleaseTime = value["AutoReleaseTime"].asString(); + instanceObject.ioOptimized = std::stoi(value["IoOptimized"].asString()); + instanceObject.deviceAvailable = std::stoi(value["DeviceAvailable"].asString()); + instanceObject.instanceTypeFamily = value["InstanceTypeFamily"].asString(); + instanceObject.localStorageCapacity = std::stol(value["LocalStorageCapacity"].asString()); + instanceObject.localStorageAmount = std::stoi(value["LocalStorageAmount"].asString()); + instanceObject.gPUAmount = std::stoi(value["GPUAmount"].asString()); + instanceObject.gPUSpec = value["GPUSpec"].asString(); + instanceObject.spotStrategy = value["SpotStrategy"].asString(); + instanceObject.spotPriceLimit = std::stof(value["SpotPriceLimit"].asString()); + instanceObject.resourceGroupId = value["ResourceGroupId"].asString(); + instanceObject.keyPairName = value["KeyPairName"].asString(); + instanceObject.recyclable = std::stoi(value["Recyclable"].asString()); + instanceObject.hpcClusterId = value["HpcClusterId"].asString(); + instanceObject.stoppedMode = value["StoppedMode"].asString(); + auto allNetworkInterfaces = value["NetworkInterfaces"]["NetworkInterface"]; + for (auto value : allNetworkInterfaces) + { + Instance::NetworkInterface networkInterfaceObject; + networkInterfaceObject.networkInterfaceId = value["NetworkInterfaceId"].asString(); + networkInterfaceObject.macAddress = value["MacAddress"].asString(); + networkInterfaceObject.primaryIpAddress = value["PrimaryIpAddress"].asString(); + instanceObject.networkInterfaces.push_back(networkInterfaceObject); + } + auto allOperationLocks = value["OperationLocks"]["LockReason"]; + for (auto value : allOperationLocks) + { + Instance::LockReason lockReasonObject; + lockReasonObject.lockReason = value["LockReason"].asString(); + lockReasonObject.lockMsg = value["LockMsg"].asString(); + instanceObject.operationLocks.push_back(lockReasonObject); + } + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + Instance::Tag tagObject; + tagObject.tagKey = value["TagKey"].asString(); + tagObject.tagValue = value["TagValue"].asString(); + instanceObject.tags.push_back(tagObject); + } + auto allVpcAttributes = value["VpcAttributes"]; + for (auto value : allVpcAttributes) + { + Instance::VpcAttributes vpcAttributesObject; + vpcAttributesObject.vpcId = value["VpcId"].asString(); + vpcAttributesObject.vSwitchId = value["VSwitchId"].asString(); + vpcAttributesObject.natIpAddress = value["NatIpAddress"].asString(); + auto allPrivateIpAddress = value["PrivateIpAddress"]["IpAddress"]; + for (auto value : allPrivateIpAddress) + vpcAttributesObject.privateIpAddress.push_back(value.asString()); + instanceObject.vpcAttributes.push_back(vpcAttributesObject); + } + auto allEipAddress = value["EipAddress"]; + for (auto value : allEipAddress) + { + Instance::EipAddress eipAddressObject; + eipAddressObject.allocationId = value["AllocationId"].asString(); + eipAddressObject.ipAddress = value["IpAddress"].asString(); + eipAddressObject.bandwidth = std::stoi(value["Bandwidth"].asString()); + eipAddressObject.internetChargeType = value["InternetChargeType"].asString(); + eipAddressObject.isSupportUnassociate = std::stoi(value["IsSupportUnassociate"].asString()); + instanceObject.eipAddress.push_back(eipAddressObject); + } + auto allSecurityGroupIds = value["SecurityGroupIds"]["SecurityGroupId"]; + for (auto value : allSecurityGroupIds) + instanceObject.securityGroupIds.push_back(value.asString()); + auto allPublicIpAddress = value["PublicIpAddress"]["IpAddress"]; + for (auto value : allPublicIpAddress) + instanceObject.publicIpAddress.push_back(value.asString()); + auto allInnerIpAddress = value["InnerIpAddress"]["IpAddress"]; + for (auto value : allInnerIpAddress) + instanceObject.innerIpAddress.push_back(value.asString()); + auto allRdmaIpAddress = value["RdmaIpAddress"]["IpAddress"]; + for (auto value : allRdmaIpAddress) + instanceObject.rdmaIpAddress.push_back(value.asString()); + instances_.push_back(instanceObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeInstancesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeInstancesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeInstancesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInstancesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeIntranetAttributeKbRequest.cc b/ecs/src/model/DescribeIntranetAttributeKbRequest.cc new file mode 100644 index 000000000..22fe0c603 --- /dev/null +++ b/ecs/src/model/DescribeIntranetAttributeKbRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeIntranetAttributeKbRequest::DescribeIntranetAttributeKbRequest() : + EcsRequest("DescribeIntranetAttributeKb") +{} + +DescribeIntranetAttributeKbRequest::~DescribeIntranetAttributeKbRequest() +{} + +long DescribeIntranetAttributeKbRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeIntranetAttributeKbRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeIntranetAttributeKbRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeIntranetAttributeKbRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeIntranetAttributeKbRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeIntranetAttributeKbRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeIntranetAttributeKbRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeIntranetAttributeKbRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeIntranetAttributeKbRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeIntranetAttributeKbRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeIntranetAttributeKbResult.cc b/ecs/src/model/DescribeIntranetAttributeKbResult.cc new file mode 100644 index 000000000..0159adcc4 --- /dev/null +++ b/ecs/src/model/DescribeIntranetAttributeKbResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeIntranetAttributeKbResult::DescribeIntranetAttributeKbResult() : + ServiceResult() +{} + +DescribeIntranetAttributeKbResult::DescribeIntranetAttributeKbResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIntranetAttributeKbResult::~DescribeIntranetAttributeKbResult() +{} + +void DescribeIntranetAttributeKbResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + instanceId_ = value["InstanceId"].asString(); + vlanId_ = value["VlanId"].asString(); + intranetIpAddress_ = value["IntranetIpAddress"].asString(); + intranetMaxBandwidthIn_ = std::stoi(value["IntranetMaxBandwidthIn"].asString()); + intranetMaxBandwidthOut_ = std::stoi(value["IntranetMaxBandwidthOut"].asString()); + +} + +std::string DescribeIntranetAttributeKbResult::getInstanceId()const +{ + return instanceId_; +} + +void DescribeIntranetAttributeKbResult::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; +} + +int DescribeIntranetAttributeKbResult::getIntranetMaxBandwidthOut()const +{ + return intranetMaxBandwidthOut_; +} + +void DescribeIntranetAttributeKbResult::setIntranetMaxBandwidthOut(int intranetMaxBandwidthOut) +{ + intranetMaxBandwidthOut_ = intranetMaxBandwidthOut; +} + +std::string DescribeIntranetAttributeKbResult::getVlanId()const +{ + return vlanId_; +} + +void DescribeIntranetAttributeKbResult::setVlanId(const std::string& vlanId) +{ + vlanId_ = vlanId; +} + +std::string DescribeIntranetAttributeKbResult::getIntranetIpAddress()const +{ + return intranetIpAddress_; +} + +void DescribeIntranetAttributeKbResult::setIntranetIpAddress(const std::string& intranetIpAddress) +{ + intranetIpAddress_ = intranetIpAddress; +} + +int DescribeIntranetAttributeKbResult::getIntranetMaxBandwidthIn()const +{ + return intranetMaxBandwidthIn_; +} + +void DescribeIntranetAttributeKbResult::setIntranetMaxBandwidthIn(int intranetMaxBandwidthIn) +{ + intranetMaxBandwidthIn_ = intranetMaxBandwidthIn; +} + diff --git a/ecs/src/model/DescribeInvocationResultsRequest.cc b/ecs/src/model/DescribeInvocationResultsRequest.cc new file mode 100644 index 000000000..ae02094c3 --- /dev/null +++ b/ecs/src/model/DescribeInvocationResultsRequest.cc @@ -0,0 +1,358 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInvocationResultsRequest::DescribeInvocationResultsRequest() : + EcsRequest("DescribeInvocationResults") +{} + +DescribeInvocationResultsRequest::~DescribeInvocationResultsRequest() +{} + +long DescribeInvocationResultsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInvocationResultsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeInvocationResultsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeInvocationResultsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeInvocationResultsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeInvocationResultsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeInvocationResultsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeInvocationResultsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeInvocationResultsRequest::getCommandId()const +{ + return commandId_; +} + +void DescribeInvocationResultsRequest::setCommandId(const std::string& commandId) +{ + commandId_ = commandId; + setParameter("CommandId", commandId); +} + +std::string DescribeInvocationResultsRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeInvocationResultsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeInvocationResultsRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeInvocationResultsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +long DescribeInvocationResultsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInvocationResultsRequest::setPageNumber(long pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeInvocationResultsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeInvocationResultsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeInvocationResultsRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeInvocationResultsRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeInvocationResultsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeInvocationResultsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeInvocationResultsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeInvocationResultsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DescribeInvocationResultsRequest::getEnable()const +{ + return enable_; +} + +void DescribeInvocationResultsRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DescribeInvocationResultsRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeInvocationResultsRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +long DescribeInvocationResultsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeInvocationResultsRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeInvocationResultsRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeInvocationResultsRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeInvocationResultsRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeInvocationResultsRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeInvocationResultsRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeInvocationResultsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeInvocationResultsRequest::getInvokeId()const +{ + return invokeId_; +} + +void DescribeInvocationResultsRequest::setInvokeId(const std::string& invokeId) +{ + invokeId_ = invokeId; + setParameter("InvokeId", invokeId); +} + +std::string DescribeInvocationResultsRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeInvocationResultsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeInvocationResultsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInvocationResultsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInvocationResultsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeInvocationResultsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeInvocationResultsRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeInvocationResultsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeInvocationResultsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInvocationResultsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool DescribeInvocationResultsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeInvocationResultsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeInvocationResultsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeInvocationResultsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DescribeInvocationResultsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeInvocationResultsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeInvocationResultsRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeInvocationResultsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeInvocationResultsRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeInvocationResultsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribeInvocationResultsRequest::getInvokeRecordStatus()const +{ + return invokeRecordStatus_; +} + +void DescribeInvocationResultsRequest::setInvokeRecordStatus(const std::string& invokeRecordStatus) +{ + invokeRecordStatus_ = invokeRecordStatus; + setParameter("InvokeRecordStatus", invokeRecordStatus); +} + diff --git a/ecs/src/model/DescribeInvocationResultsResult.cc b/ecs/src/model/DescribeInvocationResultsResult.cc new file mode 100644 index 000000000..c2b93d304 --- /dev/null +++ b/ecs/src/model/DescribeInvocationResultsResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInvocationResultsResult::DescribeInvocationResultsResult() : + ServiceResult() +{} + +DescribeInvocationResultsResult::DescribeInvocationResultsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInvocationResultsResult::~DescribeInvocationResultsResult() +{} + +void DescribeInvocationResultsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allInvocation = value["Invocation"]; + for (auto value : allInvocation) + { + Invocation invocationObject; + invocationObject.pageSize = std::stol(value["PageSize"].asString()); + invocationObject.pageNumber = std::stol(value["PageNumber"].asString()); + invocationObject.totalCount = std::stol(value["TotalCount"].asString()); + auto allInvocationResults = value["InvocationResults"]["InvocationResult"]; + for (auto value : allInvocationResults) + { + Invocation::InvocationResult invocationResultObject; + invocationResultObject.commandId = value["CommandId"].asString(); + invocationResultObject.invokeId = value["InvokeId"].asString(); + invocationResultObject.instanceId = value["InstanceId"].asString(); + invocationResultObject.finishedTime = value["FinishedTime"].asString(); + invocationResultObject.output = value["Output"].asString(); + invocationResultObject.invokeRecordStatus = value["InvokeRecordStatus"].asString(); + invocationResultObject.exitCode = std::stol(value["ExitCode"].asString()); + invocationObject.invocationResults.push_back(invocationResultObject); + } + invocation_.push_back(invocationObject); + } + +} + diff --git a/ecs/src/model/DescribeInvocationsRequest.cc b/ecs/src/model/DescribeInvocationsRequest.cc new file mode 100644 index 000000000..5e073c5e0 --- /dev/null +++ b/ecs/src/model/DescribeInvocationsRequest.cc @@ -0,0 +1,391 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInvocationsRequest::DescribeInvocationsRequest() : + EcsRequest("DescribeInvocations") +{} + +DescribeInvocationsRequest::~DescribeInvocationsRequest() +{} + +long DescribeInvocationsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeInvocationsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeInvocationsRequest::getInvokeStatus()const +{ + return invokeStatus_; +} + +void DescribeInvocationsRequest::setInvokeStatus(const std::string& invokeStatus) +{ + invokeStatus_ = invokeStatus; + setParameter("InvokeStatus", invokeStatus); +} + +long DescribeInvocationsRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeInvocationsRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeInvocationsRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeInvocationsRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeInvocationsRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeInvocationsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeInvocationsRequest::getCommandId()const +{ + return commandId_; +} + +void DescribeInvocationsRequest::setCommandId(const std::string& commandId) +{ + commandId_ = commandId; + setParameter("CommandId", commandId); +} + +std::string DescribeInvocationsRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeInvocationsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeInvocationsRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeInvocationsRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +long DescribeInvocationsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInvocationsRequest::setPageNumber(long pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeInvocationsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeInvocationsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeInvocationsRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeInvocationsRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeInvocationsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeInvocationsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeInvocationsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeInvocationsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DescribeInvocationsRequest::getEnable()const +{ + return enable_; +} + +void DescribeInvocationsRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DescribeInvocationsRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeInvocationsRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +long DescribeInvocationsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeInvocationsRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeInvocationsRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeInvocationsRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeInvocationsRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeInvocationsRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeInvocationsRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeInvocationsRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeInvocationsRequest::getInvokeId()const +{ + return invokeId_; +} + +void DescribeInvocationsRequest::setInvokeId(const std::string& invokeId) +{ + invokeId_ = invokeId; + setParameter("InvokeId", invokeId); +} + +std::string DescribeInvocationsRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeInvocationsRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +bool DescribeInvocationsRequest::getTimed()const +{ + return timed_; +} + +void DescribeInvocationsRequest::setTimed(bool timed) +{ + timed_ = timed; + setParameter("Timed", std::to_string(timed)); +} + +std::string DescribeInvocationsRequest::getCommandName()const +{ + return commandName_; +} + +void DescribeInvocationsRequest::setCommandName(const std::string& commandName) +{ + commandName_ = commandName; + setParameter("CommandName", commandName); +} + +std::string DescribeInvocationsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeInvocationsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeInvocationsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeInvocationsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeInvocationsRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeInvocationsRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeInvocationsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeInvocationsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool DescribeInvocationsRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeInvocationsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeInvocationsRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeInvocationsRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DescribeInvocationsRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeInvocationsRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeInvocationsRequest::getCommandType()const +{ + return commandType_; +} + +void DescribeInvocationsRequest::setCommandType(const std::string& commandType) +{ + commandType_ = commandType; + setParameter("CommandType", commandType); +} + +std::string DescribeInvocationsRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeInvocationsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeInvocationsRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeInvocationsRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ecs/src/model/DescribeInvocationsResult.cc b/ecs/src/model/DescribeInvocationsResult.cc new file mode 100644 index 000000000..a511f3aae --- /dev/null +++ b/ecs/src/model/DescribeInvocationsResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeInvocationsResult::DescribeInvocationsResult() : + ServiceResult() +{} + +DescribeInvocationsResult::DescribeInvocationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInvocationsResult::~DescribeInvocationsResult() +{} + +void DescribeInvocationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allInvocations = value["Invocations"]["Invocation"]; + for (auto value : allInvocations) + { + Invocation invocationObject; + invocationObject.invokeId = value["InvokeId"].asString(); + invocationObject.commandId = value["CommandId"].asString(); + invocationObject.commandType = value["CommandType"].asString(); + invocationObject.commandName = value["CommandName"].asString(); + invocationObject.frequency = value["Frequency"].asString(); + invocationObject.timed = std::stoi(value["Timed"].asString()); + invocationObject.invokeStatus = value["InvokeStatus"].asString(); + auto allInvokeInstances = value["InvokeInstances"]["InvokeInstance"]; + for (auto value : allInvokeInstances) + { + Invocation::InvokeInstance invokeInstanceObject; + invokeInstanceObject.instanceId = value["InstanceId"].asString(); + invokeInstanceObject.instanceInvokeStatus = value["InstanceInvokeStatus"].asString(); + invocationObject.invokeInstances.push_back(invokeInstanceObject); + } + invocations_.push_back(invocationObject); + } + totalCount_ = std::stol(value["TotalCount"].asString()); + pageNumber_ = std::stol(value["PageNumber"].asString()); + pageSize_ = std::stol(value["PageSize"].asString()); + +} + +long DescribeInvocationsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeInvocationsResult::setTotalCount(long totalCount) +{ + totalCount_ = totalCount; +} + +long DescribeInvocationsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeInvocationsResult::setPageSize(long pageSize) +{ + pageSize_ = pageSize; +} + +long DescribeInvocationsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeInvocationsResult::setPageNumber(long pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeIpRangesRequest.cc b/ecs/src/model/DescribeIpRangesRequest.cc new file mode 100644 index 000000000..6ca1bd67e --- /dev/null +++ b/ecs/src/model/DescribeIpRangesRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeIpRangesRequest::DescribeIpRangesRequest() : + EcsRequest("DescribeIpRanges") +{} + +DescribeIpRangesRequest::~DescribeIpRangesRequest() +{} + +std::string DescribeIpRangesRequest::getNicType()const +{ + return nicType_; +} + +void DescribeIpRangesRequest::setNicType(const std::string& nicType) +{ + nicType_ = nicType; + setParameter("NicType", nicType); +} + +long DescribeIpRangesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeIpRangesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeIpRangesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeIpRangesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeIpRangesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeIpRangesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeIpRangesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeIpRangesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeIpRangesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeIpRangesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeIpRangesRequest::getClusterId()const +{ + return clusterId_; +} + +void DescribeIpRangesRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +long DescribeIpRangesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeIpRangesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeIpRangesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeIpRangesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeIpRangesResult.cc b/ecs/src/model/DescribeIpRangesResult.cc new file mode 100644 index 000000000..7b3f26621 --- /dev/null +++ b/ecs/src/model/DescribeIpRangesResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeIpRangesResult::DescribeIpRangesResult() : + ServiceResult() +{} + +DescribeIpRangesResult::DescribeIpRangesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIpRangesResult::~DescribeIpRangesResult() +{} + +void DescribeIpRangesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allIpRanges = value["IpRanges"]["IpRange"]; + for (auto value : allIpRanges) + { + IpRange ipRangeObject; + ipRangeObject.ipAddress = value["IpAddress"].asString(); + ipRangeObject.nicType = value["NicType"].asString(); + ipRanges_.push_back(ipRangeObject); + } + regionId_ = value["RegionId"].asString(); + clusterId_ = value["ClusterId"].asString(); + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeIpRangesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeIpRangesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeIpRangesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeIpRangesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +std::string DescribeIpRangesResult::getClusterId()const +{ + return clusterId_; +} + +void DescribeIpRangesResult::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; +} + +int DescribeIpRangesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeIpRangesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + +std::string DescribeIpRangesResult::getRegionId()const +{ + return regionId_; +} + +void DescribeIpRangesResult::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; +} + diff --git a/ecs/src/model/DescribeKeyPairsRequest.cc b/ecs/src/model/DescribeKeyPairsRequest.cc new file mode 100644 index 000000000..71fe64ccd --- /dev/null +++ b/ecs/src/model/DescribeKeyPairsRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeKeyPairsRequest::DescribeKeyPairsRequest() : + EcsRequest("DescribeKeyPairs") +{} + +DescribeKeyPairsRequest::~DescribeKeyPairsRequest() +{} + +long DescribeKeyPairsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeKeyPairsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeKeyPairsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeKeyPairsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeKeyPairsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeKeyPairsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeKeyPairsRequest::getKeyPairFingerPrint()const +{ + return keyPairFingerPrint_; +} + +void DescribeKeyPairsRequest::setKeyPairFingerPrint(const std::string& keyPairFingerPrint) +{ + keyPairFingerPrint_ = keyPairFingerPrint; + setParameter("KeyPairFingerPrint", keyPairFingerPrint); +} + +int DescribeKeyPairsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeKeyPairsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeKeyPairsRequest::getKeyPairName()const +{ + return keyPairName_; +} + +void DescribeKeyPairsRequest::setKeyPairName(const std::string& keyPairName) +{ + keyPairName_ = keyPairName; + setParameter("KeyPairName", keyPairName); +} + +long DescribeKeyPairsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeKeyPairsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeKeyPairsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeKeyPairsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeKeyPairsResult.cc b/ecs/src/model/DescribeKeyPairsResult.cc new file mode 100644 index 000000000..1af28b7ca --- /dev/null +++ b/ecs/src/model/DescribeKeyPairsResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeKeyPairsResult::DescribeKeyPairsResult() : + ServiceResult() +{} + +DescribeKeyPairsResult::DescribeKeyPairsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeKeyPairsResult::~DescribeKeyPairsResult() +{} + +void DescribeKeyPairsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allKeyPairs = value["KeyPairs"]["KeyPair"]; + for (auto value : allKeyPairs) + { + KeyPair keyPairObject; + keyPairObject.keyPairName = value["KeyPairName"].asString(); + keyPairObject.keyPairFingerPrint = value["KeyPairFingerPrint"].asString(); + keyPairs_.push_back(keyPairObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeKeyPairsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeKeyPairsResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeKeyPairsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeKeyPairsResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeKeyPairsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeKeyPairsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeLimitationRequest.cc b/ecs/src/model/DescribeLimitationRequest.cc new file mode 100644 index 000000000..9eaab4c02 --- /dev/null +++ b/ecs/src/model/DescribeLimitationRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeLimitationRequest::DescribeLimitationRequest() : + EcsRequest("DescribeLimitation") +{} + +DescribeLimitationRequest::~DescribeLimitationRequest() +{} + +std::string DescribeLimitationRequest::getLimitation()const +{ + return limitation_; +} + +void DescribeLimitationRequest::setLimitation(const std::string& limitation) +{ + limitation_ = limitation; + setParameter("Limitation", limitation); +} + +long DescribeLimitationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeLimitationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeLimitationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeLimitationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeLimitationRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeLimitationRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeLimitationRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeLimitationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeLimitationResult.cc b/ecs/src/model/DescribeLimitationResult.cc new file mode 100644 index 000000000..b10f9eb4d --- /dev/null +++ b/ecs/src/model/DescribeLimitationResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeLimitationResult::DescribeLimitationResult() : + ServiceResult() +{} + +DescribeLimitationResult::DescribeLimitationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLimitationResult::~DescribeLimitationResult() +{} + +void DescribeLimitationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + limitation_ = value["Limitation"].asString(); + value_ = value["Value"].asString(); + +} + +std::string DescribeLimitationResult::getLimitation()const +{ + return limitation_; +} + +void DescribeLimitationResult::setLimitation(const std::string& limitation) +{ + limitation_ = limitation; +} + +std::string DescribeLimitationResult::getValue()const +{ + return value_; +} + +void DescribeLimitationResult::setValue(const std::string& value) +{ + value_ = value; +} + diff --git a/ecs/src/model/DescribeNatGatewaysRequest.cc b/ecs/src/model/DescribeNatGatewaysRequest.cc new file mode 100644 index 000000000..684b48770 --- /dev/null +++ b/ecs/src/model/DescribeNatGatewaysRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeNatGatewaysRequest::DescribeNatGatewaysRequest() : + EcsRequest("DescribeNatGateways") +{} + +DescribeNatGatewaysRequest::~DescribeNatGatewaysRequest() +{} + +long DescribeNatGatewaysRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeNatGatewaysRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeNatGatewaysRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeNatGatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeNatGatewaysRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeNatGatewaysRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeNatGatewaysRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeNatGatewaysRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeNatGatewaysRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeNatGatewaysRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +int DescribeNatGatewaysRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeNatGatewaysRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeNatGatewaysRequest::getNatGatewayId()const +{ + return natGatewayId_; +} + +void DescribeNatGatewaysRequest::setNatGatewayId(const std::string& natGatewayId) +{ + natGatewayId_ = natGatewayId; + setParameter("NatGatewayId", natGatewayId); +} + +long DescribeNatGatewaysRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeNatGatewaysRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeNatGatewaysRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeNatGatewaysRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeNatGatewaysResult.cc b/ecs/src/model/DescribeNatGatewaysResult.cc new file mode 100644 index 000000000..cb79e5b0f --- /dev/null +++ b/ecs/src/model/DescribeNatGatewaysResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeNatGatewaysResult::DescribeNatGatewaysResult() : + ServiceResult() +{} + +DescribeNatGatewaysResult::DescribeNatGatewaysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNatGatewaysResult::~DescribeNatGatewaysResult() +{} + +void DescribeNatGatewaysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allNatGateways = value["NatGateways"]["NatGateway"]; + for (auto value : allNatGateways) + { + NatGateway natGatewayObject; + natGatewayObject.natGatewayId = value["NatGatewayId"].asString(); + natGatewayObject.regionId = value["RegionId"].asString(); + natGatewayObject.name = value["Name"].asString(); + natGatewayObject.description = value["Description"].asString(); + natGatewayObject.vpcId = value["VpcId"].asString(); + natGatewayObject.spec = value["Spec"].asString(); + natGatewayObject.instanceChargeType = value["InstanceChargeType"].asString(); + natGatewayObject.businessStatus = value["BusinessStatus"].asString(); + natGatewayObject.creationTime = value["CreationTime"].asString(); + natGatewayObject.status = value["Status"].asString(); + auto allForwardTableIds = value["ForwardTableIds"]["ForwardTableId"]; + for (auto value : allForwardTableIds) + natGatewayObject.forwardTableIds.push_back(value.asString()); + auto allBandwidthPackageIds = value["BandwidthPackageIds"]["BandwidthPackageId"]; + for (auto value : allBandwidthPackageIds) + natGatewayObject.bandwidthPackageIds.push_back(value.asString()); + natGateways_.push_back(natGatewayObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeNatGatewaysResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeNatGatewaysResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeNatGatewaysResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeNatGatewaysResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeNatGatewaysResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeNatGatewaysResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeNetworkInterfacesRequest.cc b/ecs/src/model/DescribeNetworkInterfacesRequest.cc new file mode 100644 index 000000000..8c1477f81 --- /dev/null +++ b/ecs/src/model/DescribeNetworkInterfacesRequest.cc @@ -0,0 +1,392 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeNetworkInterfacesRequest::DescribeNetworkInterfacesRequest() : + EcsRequest("DescribeNetworkInterfaces") +{} + +DescribeNetworkInterfacesRequest::~DescribeNetworkInterfacesRequest() +{} + +long DescribeNetworkInterfacesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeNetworkInterfacesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeNetworkInterfacesRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeNetworkInterfacesRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string DescribeNetworkInterfacesRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void DescribeNetworkInterfacesRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +bool DescribeNetworkInterfacesRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeNetworkInterfacesRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeNetworkInterfacesRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeNetworkInterfacesRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeNetworkInterfacesRequest::getType()const +{ + return type_; +} + +void DescribeNetworkInterfacesRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string DescribeNetworkInterfacesRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeNetworkInterfacesRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeNetworkInterfacesRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeNetworkInterfacesRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +int DescribeNetworkInterfacesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeNetworkInterfacesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeNetworkInterfacesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeNetworkInterfacesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeNetworkInterfacesRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeNetworkInterfacesRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeNetworkInterfacesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeNetworkInterfacesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeNetworkInterfacesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeNetworkInterfacesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DescribeNetworkInterfacesRequest::getEnable()const +{ + return enable_; +} + +void DescribeNetworkInterfacesRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DescribeNetworkInterfacesRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeNetworkInterfacesRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +int DescribeNetworkInterfacesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeNetworkInterfacesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeNetworkInterfacesRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeNetworkInterfacesRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeNetworkInterfacesRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeNetworkInterfacesRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +std::string DescribeNetworkInterfacesRequest::getNetworkInterfaceName()const +{ + return networkInterfaceName_; +} + +void DescribeNetworkInterfacesRequest::setNetworkInterfaceName(const std::string& networkInterfaceName) +{ + networkInterfaceName_ = networkInterfaceName; + setParameter("NetworkInterfaceName", networkInterfaceName); +} + +long DescribeNetworkInterfacesRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeNetworkInterfacesRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeNetworkInterfacesRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeNetworkInterfacesRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeNetworkInterfacesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeNetworkInterfacesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeNetworkInterfacesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeNetworkInterfacesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeNetworkInterfacesRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeNetworkInterfacesRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeNetworkInterfacesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeNetworkInterfacesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool DescribeNetworkInterfacesRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeNetworkInterfacesRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeNetworkInterfacesRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeNetworkInterfacesRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DescribeNetworkInterfacesRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeNetworkInterfacesRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeNetworkInterfacesRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void DescribeNetworkInterfacesRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string DescribeNetworkInterfacesRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeNetworkInterfacesRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeNetworkInterfacesRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeNetworkInterfacesRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribeNetworkInterfacesRequest::getPrimaryIpAddress()const +{ + return primaryIpAddress_; +} + +void DescribeNetworkInterfacesRequest::setPrimaryIpAddress(const std::string& primaryIpAddress) +{ + primaryIpAddress_ = primaryIpAddress; + setParameter("PrimaryIpAddress", primaryIpAddress); +} + +std::vector DescribeNetworkInterfacesRequest::getNetworkInterfaceId()const +{ + return networkInterfaceId_; +} + +void DescribeNetworkInterfacesRequest::setNetworkInterfaceId(const std::vector& networkInterfaceId) +{ + networkInterfaceId_ = networkInterfaceId; + for(int i = 0; i!= networkInterfaceId.size(); i++) + setParameter("NetworkInterfaceId."+ std::to_string(i), networkInterfaceId.at(i)); +} + diff --git a/ecs/src/model/DescribeNetworkInterfacesResult.cc b/ecs/src/model/DescribeNetworkInterfacesResult.cc new file mode 100644 index 000000000..3e22d466a --- /dev/null +++ b/ecs/src/model/DescribeNetworkInterfacesResult.cc @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeNetworkInterfacesResult::DescribeNetworkInterfacesResult() : + ServiceResult() +{} + +DescribeNetworkInterfacesResult::DescribeNetworkInterfacesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNetworkInterfacesResult::~DescribeNetworkInterfacesResult() +{} + +void DescribeNetworkInterfacesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allNetworkInterfaceSets = value["NetworkInterfaceSets"]["NetworkInterfaceSet"]; + for (auto value : allNetworkInterfaceSets) + { + NetworkInterfaceSet networkInterfaceSetObject; + networkInterfaceSetObject.networkInterfaceId = value["NetworkInterfaceId"].asString(); + networkInterfaceSetObject.status = value["Status"].asString(); + networkInterfaceSetObject.type = value["Type"].asString(); + networkInterfaceSetObject.vpcId = value["VpcId"].asString(); + networkInterfaceSetObject.vSwitchId = value["VSwitchId"].asString(); + networkInterfaceSetObject.zoneId = value["ZoneId"].asString(); + networkInterfaceSetObject.privateIpAddress = value["PrivateIpAddress"].asString(); + networkInterfaceSetObject.macAddress = value["MacAddress"].asString(); + networkInterfaceSetObject.networkInterfaceName = value["NetworkInterfaceName"].asString(); + networkInterfaceSetObject.description = value["Description"].asString(); + networkInterfaceSetObject.instanceId = value["InstanceId"].asString(); + networkInterfaceSetObject.creationTime = value["CreationTime"].asString(); + auto allPrivateIpSets = value["PrivateIpSets"]["PrivateIpSet"]; + for (auto value : allPrivateIpSets) + { + NetworkInterfaceSet::PrivateIpSet privateIpSetObject; + privateIpSetObject.privateIpAddress = value["PrivateIpAddress"].asString(); + privateIpSetObject.primary = std::stoi(value["Primary"].asString()); + auto allAssociatedPublicIp = value["AssociatedPublicIp"]; + for (auto value : allAssociatedPublicIp) + { + NetworkInterfaceSet::PrivateIpSet::AssociatedPublicIp1 associatedPublicIp1Object; + associatedPublicIp1Object.publicIpAddress = value["PublicIpAddress"].asString(); + associatedPublicIp1Object.allocationId = value["AllocationId"].asString(); + privateIpSetObject.associatedPublicIp1.push_back(associatedPublicIp1Object); + } + networkInterfaceSetObject.privateIpSets.push_back(privateIpSetObject); + } + auto allAssociatedPublicIp = value["AssociatedPublicIp"]; + for (auto value : allAssociatedPublicIp) + { + NetworkInterfaceSet::AssociatedPublicIp associatedPublicIpObject; + associatedPublicIpObject.publicIpAddress = value["PublicIpAddress"].asString(); + associatedPublicIpObject.allocationId = value["AllocationId"].asString(); + networkInterfaceSetObject.associatedPublicIp.push_back(associatedPublicIpObject); + } + auto allSecurityGroupIds = value["SecurityGroupIds"]["SecurityGroupId"]; + for (auto value : allSecurityGroupIds) + networkInterfaceSetObject.securityGroupIds.push_back(value.asString()); + networkInterfaceSets_.push_back(networkInterfaceSetObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeNetworkInterfacesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeNetworkInterfacesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeNetworkInterfacesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeNetworkInterfacesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeNetworkInterfacesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeNetworkInterfacesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeNewProjectEipMonitorDataRequest.cc b/ecs/src/model/DescribeNewProjectEipMonitorDataRequest.cc new file mode 100644 index 000000000..00b7b4353 --- /dev/null +++ b/ecs/src/model/DescribeNewProjectEipMonitorDataRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeNewProjectEipMonitorDataRequest::DescribeNewProjectEipMonitorDataRequest() : + EcsRequest("DescribeNewProjectEipMonitorData") +{} + +DescribeNewProjectEipMonitorDataRequest::~DescribeNewProjectEipMonitorDataRequest() +{} + +long DescribeNewProjectEipMonitorDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeNewProjectEipMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribeNewProjectEipMonitorDataRequest::getPeriod()const +{ + return period_; +} + +void DescribeNewProjectEipMonitorDataRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +std::string DescribeNewProjectEipMonitorDataRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeNewProjectEipMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeNewProjectEipMonitorDataRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeNewProjectEipMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeNewProjectEipMonitorDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeNewProjectEipMonitorDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeNewProjectEipMonitorDataRequest::getAllocationId()const +{ + return allocationId_; +} + +void DescribeNewProjectEipMonitorDataRequest::setAllocationId(const std::string& allocationId) +{ + allocationId_ = allocationId; + setParameter("AllocationId", allocationId); +} + +std::string DescribeNewProjectEipMonitorDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeNewProjectEipMonitorDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeNewProjectEipMonitorDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeNewProjectEipMonitorDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeNewProjectEipMonitorDataResult.cc b/ecs/src/model/DescribeNewProjectEipMonitorDataResult.cc new file mode 100644 index 000000000..5c9b16d53 --- /dev/null +++ b/ecs/src/model/DescribeNewProjectEipMonitorDataResult.cc @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeNewProjectEipMonitorDataResult::DescribeNewProjectEipMonitorDataResult() : + ServiceResult() +{} + +DescribeNewProjectEipMonitorDataResult::DescribeNewProjectEipMonitorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNewProjectEipMonitorDataResult::~DescribeNewProjectEipMonitorDataResult() +{} + +void DescribeNewProjectEipMonitorDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allEipMonitorDatas = value["EipMonitorDatas"]["EipMonitorData"]; + for (auto value : allEipMonitorDatas) + { + EipMonitorData eipMonitorDataObject; + eipMonitorDataObject.eipRX = std::stoi(value["EipRX"].asString()); + eipMonitorDataObject.eipTX = std::stoi(value["EipTX"].asString()); + eipMonitorDataObject.eipFlow = std::stoi(value["EipFlow"].asString()); + eipMonitorDataObject.eipBandwidth = std::stoi(value["EipBandwidth"].asString()); + eipMonitorDataObject.eipPackets = std::stoi(value["EipPackets"].asString()); + eipMonitorDataObject.timeStamp = value["TimeStamp"].asString(); + eipMonitorDatas_.push_back(eipMonitorDataObject); + } + +} + diff --git a/ecs/src/model/DescribePhysicalConnectionsRequest.cc b/ecs/src/model/DescribePhysicalConnectionsRequest.cc new file mode 100644 index 000000000..52df39b7d --- /dev/null +++ b/ecs/src/model/DescribePhysicalConnectionsRequest.cc @@ -0,0 +1,144 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribePhysicalConnectionsRequest::DescribePhysicalConnectionsRequest() : + EcsRequest("DescribePhysicalConnections") +{} + +DescribePhysicalConnectionsRequest::~DescribePhysicalConnectionsRequest() +{} + +std::vector DescribePhysicalConnectionsRequest::getFilter()const +{ + return filter_; +} + +void DescribePhysicalConnectionsRequest::setFilter(const std::vector& filter) +{ + filter_ = filter; + int i = 0; + for(int i = 0; i!= filter.size(); i++) { + auto obj = filter.at(i); + std::string str ="Filter."+ std::to_string(i); + setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + } +} + +long DescribePhysicalConnectionsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribePhysicalConnectionsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribePhysicalConnectionsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribePhysicalConnectionsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribePhysicalConnectionsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribePhysicalConnectionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribePhysicalConnectionsRequest::getClientToken()const +{ + return clientToken_; +} + +void DescribePhysicalConnectionsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DescribePhysicalConnectionsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribePhysicalConnectionsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribePhysicalConnectionsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribePhysicalConnectionsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribePhysicalConnectionsRequest::getUserCidr()const +{ + return userCidr_; +} + +void DescribePhysicalConnectionsRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +long DescribePhysicalConnectionsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribePhysicalConnectionsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribePhysicalConnectionsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribePhysicalConnectionsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribePhysicalConnectionsResult.cc b/ecs/src/model/DescribePhysicalConnectionsResult.cc new file mode 100644 index 000000000..e581042f0 --- /dev/null +++ b/ecs/src/model/DescribePhysicalConnectionsResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribePhysicalConnectionsResult::DescribePhysicalConnectionsResult() : + ServiceResult() +{} + +DescribePhysicalConnectionsResult::DescribePhysicalConnectionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePhysicalConnectionsResult::~DescribePhysicalConnectionsResult() +{} + +void DescribePhysicalConnectionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPhysicalConnectionSet = value["PhysicalConnectionSet"]["PhysicalConnectionType"]; + for (auto value : allPhysicalConnectionSet) + { + PhysicalConnectionType physicalConnectionTypeObject; + physicalConnectionTypeObject.physicalConnectionId = value["PhysicalConnectionId"].asString(); + physicalConnectionTypeObject.accessPointId = value["AccessPointId"].asString(); + physicalConnectionTypeObject.type = value["Type"].asString(); + physicalConnectionTypeObject.status = value["Status"].asString(); + physicalConnectionTypeObject.businessStatus = value["BusinessStatus"].asString(); + physicalConnectionTypeObject.creationTime = value["CreationTime"].asString(); + physicalConnectionTypeObject.enabledTime = value["EnabledTime"].asString(); + physicalConnectionTypeObject.lineOperator = value["LineOperator"].asString(); + physicalConnectionTypeObject.spec = value["Spec"].asString(); + physicalConnectionTypeObject.peerLocation = value["PeerLocation"].asString(); + physicalConnectionTypeObject.portType = value["PortType"].asString(); + physicalConnectionTypeObject.redundantPhysicalConnectionId = value["RedundantPhysicalConnectionId"].asString(); + physicalConnectionTypeObject.name = value["Name"].asString(); + physicalConnectionTypeObject.description = value["Description"].asString(); + physicalConnectionTypeObject.adLocation = value["AdLocation"].asString(); + physicalConnectionTypeObject.portNumber = value["PortNumber"].asString(); + physicalConnectionTypeObject.circuitCode = value["CircuitCode"].asString(); + physicalConnectionTypeObject.bandwidth = std::stol(value["Bandwidth"].asString()); + physicalConnectionSet_.push_back(physicalConnectionTypeObject); + } + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribePhysicalConnectionsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribePhysicalConnectionsResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribePhysicalConnectionsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribePhysicalConnectionsResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribePhysicalConnectionsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribePhysicalConnectionsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribePriceRequest.cc b/ecs/src/model/DescribePriceRequest.cc new file mode 100644 index 000000000..fbff2b49b --- /dev/null +++ b/ecs/src/model/DescribePriceRequest.cc @@ -0,0 +1,303 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribePriceRequest::DescribePriceRequest() : + EcsRequest("DescribePrice") +{} + +DescribePriceRequest::~DescribePriceRequest() +{} + +int DescribePriceRequest::getDataDisk3Size()const +{ + return dataDisk3Size_; +} + +void DescribePriceRequest::setDataDisk3Size(int dataDisk3Size) +{ + dataDisk3Size_ = dataDisk3Size; + setParameter("DataDisk3Size", std::to_string(dataDisk3Size)); +} + +long DescribePriceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribePriceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribePriceRequest::getImageId()const +{ + return imageId_; +} + +void DescribePriceRequest::setImageId(const std::string& imageId) +{ + imageId_ = imageId; + setParameter("ImageId", imageId); +} + +std::string DescribePriceRequest::getDataDisk3Category()const +{ + return dataDisk3Category_; +} + +void DescribePriceRequest::setDataDisk3Category(const std::string& dataDisk3Category) +{ + dataDisk3Category_ = dataDisk3Category; + setParameter("DataDisk3Category", dataDisk3Category); +} + +std::string DescribePriceRequest::getIoOptimized()const +{ + return ioOptimized_; +} + +void DescribePriceRequest::setIoOptimized(const std::string& ioOptimized) +{ + ioOptimized_ = ioOptimized; + setParameter("IoOptimized", ioOptimized); +} + +int DescribePriceRequest::getInternetMaxBandwidthOut()const +{ + return internetMaxBandwidthOut_; +} + +void DescribePriceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) +{ + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut)); +} + +std::string DescribePriceRequest::getSystemDiskCategory()const +{ + return systemDiskCategory_; +} + +void DescribePriceRequest::setSystemDiskCategory(const std::string& systemDiskCategory) +{ + systemDiskCategory_ = systemDiskCategory; + setParameter("SystemDiskCategory", systemDiskCategory); +} + +std::string DescribePriceRequest::getDataDisk4Category()const +{ + return dataDisk4Category_; +} + +void DescribePriceRequest::setDataDisk4Category(const std::string& dataDisk4Category) +{ + dataDisk4Category_ = dataDisk4Category; + setParameter("DataDisk4Category", dataDisk4Category); +} + +std::string DescribePriceRequest::getRegionId()const +{ + return regionId_; +} + +void DescribePriceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int DescribePriceRequest::getDataDisk4Size()const +{ + return dataDisk4Size_; +} + +void DescribePriceRequest::setDataDisk4Size(int dataDisk4Size) +{ + dataDisk4Size_ = dataDisk4Size; + setParameter("DataDisk4Size", std::to_string(dataDisk4Size)); +} + +std::string DescribePriceRequest::getPriceUnit()const +{ + return priceUnit_; +} + +void DescribePriceRequest::setPriceUnit(const std::string& priceUnit) +{ + priceUnit_ = priceUnit; + setParameter("PriceUnit", priceUnit); +} + +std::string DescribePriceRequest::getInstanceType()const +{ + return instanceType_; +} + +void DescribePriceRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::string DescribePriceRequest::getDataDisk2Category()const +{ + return dataDisk2Category_; +} + +void DescribePriceRequest::setDataDisk2Category(const std::string& dataDisk2Category) +{ + dataDisk2Category_ = dataDisk2Category; + setParameter("DataDisk2Category", dataDisk2Category); +} + +int DescribePriceRequest::getDataDisk1Size()const +{ + return dataDisk1Size_; +} + +void DescribePriceRequest::setDataDisk1Size(int dataDisk1Size) +{ + dataDisk1Size_ = dataDisk1Size; + setParameter("DataDisk1Size", std::to_string(dataDisk1Size)); +} + +int DescribePriceRequest::getPeriod()const +{ + return period_; +} + +void DescribePriceRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +int DescribePriceRequest::getAmount()const +{ + return amount_; +} + +void DescribePriceRequest::setAmount(int amount) +{ + amount_ = amount; + setParameter("Amount", std::to_string(amount)); +} + +std::string DescribePriceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribePriceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribePriceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribePriceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribePriceRequest::getDataDisk2Size()const +{ + return dataDisk2Size_; +} + +void DescribePriceRequest::setDataDisk2Size(int dataDisk2Size) +{ + dataDisk2Size_ = dataDisk2Size; + setParameter("DataDisk2Size", std::to_string(dataDisk2Size)); +} + +long DescribePriceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribePriceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribePriceRequest::getResourceType()const +{ + return resourceType_; +} + +void DescribePriceRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string DescribePriceRequest::getDataDisk1Category()const +{ + return dataDisk1Category_; +} + +void DescribePriceRequest::setDataDisk1Category(const std::string& dataDisk1Category) +{ + dataDisk1Category_ = dataDisk1Category; + setParameter("DataDisk1Category", dataDisk1Category); +} + +int DescribePriceRequest::getSystemDiskSize()const +{ + return systemDiskSize_; +} + +void DescribePriceRequest::setSystemDiskSize(int systemDiskSize) +{ + systemDiskSize_ = systemDiskSize; + setParameter("SystemDiskSize", std::to_string(systemDiskSize)); +} + +std::string DescribePriceRequest::getInternetChargeType()const +{ + return internetChargeType_; +} + +void DescribePriceRequest::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; + setParameter("InternetChargeType", internetChargeType); +} + +std::string DescribePriceRequest::getInstanceNetworkType()const +{ + return instanceNetworkType_; +} + +void DescribePriceRequest::setInstanceNetworkType(const std::string& instanceNetworkType) +{ + instanceNetworkType_ = instanceNetworkType; + setParameter("InstanceNetworkType", instanceNetworkType); +} + diff --git a/ecs/src/model/DescribePriceResult.cc b/ecs/src/model/DescribePriceResult.cc new file mode 100644 index 000000000..870e068bf --- /dev/null +++ b/ecs/src/model/DescribePriceResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribePriceResult::DescribePriceResult() : + ServiceResult() +{} + +DescribePriceResult::DescribePriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePriceResult::~DescribePriceResult() +{} + +void DescribePriceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPriceInfo = value["PriceInfo"]; + for (auto value : allPriceInfo) + { + PriceInfo priceInfoObject; + auto allRules = value["Rules"]["Rule"]; + for (auto value : allRules) + { + PriceInfo::Rule ruleObject; + ruleObject.ruleId = std::stol(value["RuleId"].asString()); + ruleObject.description = value["Description"].asString(); + priceInfoObject.rules.push_back(ruleObject); + } + auto allPrice = value["Price"]; + for (auto value : allPrice) + { + PriceInfo::Price priceObject; + priceObject.originalPrice = std::stof(value["OriginalPrice"].asString()); + priceObject.discountPrice = std::stof(value["DiscountPrice"].asString()); + priceObject.tradePrice = std::stof(value["TradePrice"].asString()); + priceObject.currency = value["Currency"].asString(); + priceInfoObject.price.push_back(priceObject); + } + priceInfo_.push_back(priceInfoObject); + } + +} + diff --git a/ecs/src/model/DescribeRecommendInstanceTypeRequest.cc b/ecs/src/model/DescribeRecommendInstanceTypeRequest.cc new file mode 100644 index 000000000..a58b71c4f --- /dev/null +++ b/ecs/src/model/DescribeRecommendInstanceTypeRequest.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeRecommendInstanceTypeRequest::DescribeRecommendInstanceTypeRequest() : + EcsRequest("DescribeRecommendInstanceType") +{} + +DescribeRecommendInstanceTypeRequest::~DescribeRecommendInstanceTypeRequest() +{} + +long DescribeRecommendInstanceTypeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRecommendInstanceTypeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRecommendInstanceTypeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRecommendInstanceTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRecommendInstanceTypeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRecommendInstanceTypeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeRecommendInstanceTypeRequest::getChannel()const +{ + return channel_; +} + +void DescribeRecommendInstanceTypeRequest::setChannel(const std::string& channel) +{ + channel_ = channel; + setParameter("Channel", channel); +} + +std::string DescribeRecommendInstanceTypeRequest::getNetworkType()const +{ + return networkType_; +} + +void DescribeRecommendInstanceTypeRequest::setNetworkType(const std::string& networkType) +{ + networkType_ = networkType; + setParameter("NetworkType", networkType); +} + +long DescribeRecommendInstanceTypeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRecommendInstanceTypeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRecommendInstanceTypeRequest::get_Operator()const +{ + return _operator_; +} + +void DescribeRecommendInstanceTypeRequest::set_Operator(const std::string& _operator) +{ + _operator_ = _operator; + setParameter("_Operator", _operator); +} + +std::string DescribeRecommendInstanceTypeRequest::getToken()const +{ + return token_; +} + +void DescribeRecommendInstanceTypeRequest::setToken(const std::string& token) +{ + token_ = token; + setParameter("Token", token); +} + +std::string DescribeRecommendInstanceTypeRequest::getScene()const +{ + return scene_; +} + +void DescribeRecommendInstanceTypeRequest::setScene(const std::string& scene) +{ + scene_ = scene; + setParameter("Scene", scene); +} + +std::string DescribeRecommendInstanceTypeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeRecommendInstanceTypeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeRecommendInstanceTypeRequest::getInstanceType()const +{ + return instanceType_; +} + +void DescribeRecommendInstanceTypeRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::string DescribeRecommendInstanceTypeRequest::getProxyId()const +{ + return proxyId_; +} + +void DescribeRecommendInstanceTypeRequest::setProxyId(const std::string& proxyId) +{ + proxyId_ = proxyId; + setParameter("ProxyId", proxyId); +} + diff --git a/ecs/src/model/DescribeRecommendInstanceTypeResult.cc b/ecs/src/model/DescribeRecommendInstanceTypeResult.cc new file mode 100644 index 000000000..8f7883ed1 --- /dev/null +++ b/ecs/src/model/DescribeRecommendInstanceTypeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeRecommendInstanceTypeResult::DescribeRecommendInstanceTypeResult() : + ServiceResult() +{} + +DescribeRecommendInstanceTypeResult::DescribeRecommendInstanceTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRecommendInstanceTypeResult::~DescribeRecommendInstanceTypeResult() +{} + +void DescribeRecommendInstanceTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["RecommendInstanceType"]; + for (auto value : allData) + { + RecommendInstanceType recommendInstanceTypeObject; + recommendInstanceTypeObject.regionNo = value["RegionNo"].asString(); + recommendInstanceTypeObject.commodityCode = value["CommodityCode"].asString(); + recommendInstanceTypeObject.scene = value["Scene"].asString(); + auto allZones = value["Zones"]["zone"]; + for (auto value : allZones) + { + RecommendInstanceType::zone zoneObject; + zoneObject.zoneNo = value["ZoneNo"].asString(); + auto allNetworkTypes = value["NetworkTypes"]["NetworkType"]; + for (auto value : allNetworkTypes) + zoneObject.networkTypes.push_back(value.asString()); + recommendInstanceTypeObject.zones.push_back(zoneObject); + } + auto allInstanceType = value["InstanceType"]; + for (auto value : allInstanceType) + { + RecommendInstanceType::InstanceType instanceTypeObject; + instanceTypeObject.generation = value["Generation"].asString(); + instanceTypeObject.instanceTypeFamily = value["InstanceTypeFamily"].asString(); + instanceTypeObject.instanceType = value["InstanceType"].asString(); + instanceTypeObject.supportIoOptimized = value["SupportIoOptimized"].asString(); + instanceTypeObject.cores = std::stoi(value["Cores"].asString()); + instanceTypeObject.memory = std::stoi(value["Memory"].asString()); + recommendInstanceTypeObject.instanceType.push_back(instanceTypeObject); + } + data_.push_back(recommendInstanceTypeObject); + } + +} + diff --git a/ecs/src/model/DescribeRecycleBinRequest.cc b/ecs/src/model/DescribeRecycleBinRequest.cc new file mode 100644 index 000000000..86bb5d390 --- /dev/null +++ b/ecs/src/model/DescribeRecycleBinRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeRecycleBinRequest::DescribeRecycleBinRequest() : + EcsRequest("DescribeRecycleBin") +{} + +DescribeRecycleBinRequest::~DescribeRecycleBinRequest() +{} + +long DescribeRecycleBinRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRecycleBinRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRecycleBinRequest::getResourceId()const +{ + return resourceId_; +} + +void DescribeRecycleBinRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setParameter("ResourceId", resourceId); +} + +std::string DescribeRecycleBinRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRecycleBinRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRecycleBinRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeRecycleBinRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeRecycleBinRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRecycleBinRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeRecycleBinRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRecycleBinRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeRecycleBinRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRecycleBinRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeRecycleBinRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRecycleBinRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeRecycleBinRequest::getStatus()const +{ + return status_; +} + +void DescribeRecycleBinRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/ecs/src/model/DescribeRecycleBinResult.cc b/ecs/src/model/DescribeRecycleBinResult.cc new file mode 100644 index 000000000..17075feb2 --- /dev/null +++ b/ecs/src/model/DescribeRecycleBinResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeRecycleBinResult::DescribeRecycleBinResult() : + ServiceResult() +{} + +DescribeRecycleBinResult::DescribeRecycleBinResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRecycleBinResult::~DescribeRecycleBinResult() +{} + +void DescribeRecycleBinResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRecycleBinModels = value["RecycleBinModels"]["RecycleBinModel"]; + for (auto value : allRecycleBinModels) + { + RecycleBinModel recycleBinModelObject; + recycleBinModelObject.resourceId = value["ResourceId"].asString(); + recycleBinModelObject.regionId = value["RegionId"].asString(); + recycleBinModelObject.resourceType = value["ResourceType"].asString(); + recycleBinModelObject.creationTime = value["CreationTime"].asString(); + recycleBinModelObject.status = value["Status"].asString(); + auto allRelationResources = value["RelationResources"]["relationResource"]; + for (auto value : allRelationResources) + { + RecycleBinModel::relationResource relationResourceObject; + relationResourceObject.relationResourceId = value["RelationResourceId"].asString(); + relationResourceObject.relationResourceType = value["RelationResourceType"].asString(); + recycleBinModelObject.relationResources.push_back(relationResourceObject); + } + recycleBinModels_.push_back(recycleBinModelObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeRecycleBinResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeRecycleBinResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + diff --git a/ecs/src/model/DescribeRegionsRequest.cc b/ecs/src/model/DescribeRegionsRequest.cc new file mode 100644 index 000000000..0809af921 --- /dev/null +++ b/ecs/src/model/DescribeRegionsRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeRegionsRequest::DescribeRegionsRequest() : + EcsRequest("DescribeRegions") +{} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + +long DescribeRegionsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRegionsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRegionsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRegionsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeRegionsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRegionsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRegionsRequest::getInstanceChargeType()const +{ + return instanceChargeType_; +} + +void DescribeRegionsRequest::setInstanceChargeType(const std::string& instanceChargeType) +{ + instanceChargeType_ = instanceChargeType; + setParameter("InstanceChargeType", instanceChargeType); +} + +std::string DescribeRegionsRequest::getResourceType()const +{ + return resourceType_; +} + +void DescribeRegionsRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + diff --git a/ecs/src/model/DescribeRegionsResult.cc b/ecs/src/model/DescribeRegionsResult.cc new file mode 100644 index 000000000..c0b8a96a3 --- /dev/null +++ b/ecs/src/model/DescribeRegionsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRegions = value["Regions"]["Region"]; + for (auto value : allRegions) + { + Region regionObject; + regionObject.regionId = value["RegionId"].asString(); + regionObject.localName = value["LocalName"].asString(); + regionObject.status = value["Status"].asString(); + regions_.push_back(regionObject); + } + +} + diff --git a/ecs/src/model/DescribeRenewalPriceRequest.cc b/ecs/src/model/DescribeRenewalPriceRequest.cc new file mode 100644 index 000000000..1afce292d --- /dev/null +++ b/ecs/src/model/DescribeRenewalPriceRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeRenewalPriceRequest::DescribeRenewalPriceRequest() : + EcsRequest("DescribeRenewalPrice") +{} + +DescribeRenewalPriceRequest::~DescribeRenewalPriceRequest() +{} + +long DescribeRenewalPriceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRenewalPriceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRenewalPriceRequest::getResourceId()const +{ + return resourceId_; +} + +void DescribeRenewalPriceRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setParameter("ResourceId", resourceId); +} + +int DescribeRenewalPriceRequest::getPeriod()const +{ + return period_; +} + +void DescribeRenewalPriceRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +std::string DescribeRenewalPriceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRenewalPriceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRenewalPriceRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeRenewalPriceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeRenewalPriceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRenewalPriceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeRenewalPriceRequest::getPriceUnit()const +{ + return priceUnit_; +} + +void DescribeRenewalPriceRequest::setPriceUnit(const std::string& priceUnit) +{ + priceUnit_ = priceUnit; + setParameter("PriceUnit", priceUnit); +} + +long DescribeRenewalPriceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRenewalPriceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRenewalPriceRequest::getResourceType()const +{ + return resourceType_; +} + +void DescribeRenewalPriceRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + diff --git a/ecs/src/model/DescribeRenewalPriceResult.cc b/ecs/src/model/DescribeRenewalPriceResult.cc new file mode 100644 index 000000000..08fb52075 --- /dev/null +++ b/ecs/src/model/DescribeRenewalPriceResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeRenewalPriceResult::DescribeRenewalPriceResult() : + ServiceResult() +{} + +DescribeRenewalPriceResult::DescribeRenewalPriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRenewalPriceResult::~DescribeRenewalPriceResult() +{} + +void DescribeRenewalPriceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPriceInfo = value["PriceInfo"]; + for (auto value : allPriceInfo) + { + PriceInfo priceInfoObject; + auto allRules = value["Rules"]["Rule"]; + for (auto value : allRules) + { + PriceInfo::Rule ruleObject; + ruleObject.ruleId = std::stol(value["RuleId"].asString()); + ruleObject.description = value["Description"].asString(); + priceInfoObject.rules.push_back(ruleObject); + } + auto allPrice = value["Price"]; + for (auto value : allPrice) + { + PriceInfo::Price priceObject; + priceObject.originalPrice = std::stof(value["OriginalPrice"].asString()); + priceObject.discountPrice = std::stof(value["DiscountPrice"].asString()); + priceObject.tradePrice = std::stof(value["TradePrice"].asString()); + priceObject.currency = value["Currency"].asString(); + priceInfoObject.price.push_back(priceObject); + } + priceInfo_.push_back(priceInfoObject); + } + +} + diff --git a/ecs/src/model/DescribeResourceByTagsRequest.cc b/ecs/src/model/DescribeResourceByTagsRequest.cc new file mode 100644 index 000000000..198ad88aa --- /dev/null +++ b/ecs/src/model/DescribeResourceByTagsRequest.cc @@ -0,0 +1,215 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeResourceByTagsRequest::DescribeResourceByTagsRequest() : + EcsRequest("DescribeResourceByTags") +{} + +DescribeResourceByTagsRequest::~DescribeResourceByTagsRequest() +{} + +std::string DescribeResourceByTagsRequest::getTag4Value()const +{ + return tag4Value_; +} + +void DescribeResourceByTagsRequest::setTag4Value(const std::string& tag4Value) +{ + tag4Value_ = tag4Value; + setParameter("Tag4Value", tag4Value); +} + +long DescribeResourceByTagsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeResourceByTagsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeResourceByTagsRequest::getTag2Key()const +{ + return tag2Key_; +} + +void DescribeResourceByTagsRequest::setTag2Key(const std::string& tag2Key) +{ + tag2Key_ = tag2Key; + setParameter("Tag2Key", tag2Key); +} + +std::string DescribeResourceByTagsRequest::getTag5Key()const +{ + return tag5Key_; +} + +void DescribeResourceByTagsRequest::setTag5Key(const std::string& tag5Key) +{ + tag5Key_ = tag5Key; + setParameter("Tag5Key", tag5Key); +} + +std::string DescribeResourceByTagsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeResourceByTagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeResourceByTagsRequest::getTag3Key()const +{ + return tag3Key_; +} + +void DescribeResourceByTagsRequest::setTag3Key(const std::string& tag3Key) +{ + tag3Key_ = tag3Key; + setParameter("Tag3Key", tag3Key); +} + +long DescribeResourceByTagsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeResourceByTagsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeResourceByTagsRequest::getResourceType()const +{ + return resourceType_; +} + +void DescribeResourceByTagsRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string DescribeResourceByTagsRequest::getTag5Value()const +{ + return tag5Value_; +} + +void DescribeResourceByTagsRequest::setTag5Value(const std::string& tag5Value) +{ + tag5Value_ = tag5Value; + setParameter("Tag5Value", tag5Value); +} + +int DescribeResourceByTagsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeResourceByTagsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeResourceByTagsRequest::getTag1Key()const +{ + return tag1Key_; +} + +void DescribeResourceByTagsRequest::setTag1Key(const std::string& tag1Key) +{ + tag1Key_ = tag1Key; + setParameter("Tag1Key", tag1Key); +} + +std::string DescribeResourceByTagsRequest::getTag1Value()const +{ + return tag1Value_; +} + +void DescribeResourceByTagsRequest::setTag1Value(const std::string& tag1Value) +{ + tag1Value_ = tag1Value; + setParameter("Tag1Value", tag1Value); +} + +std::string DescribeResourceByTagsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeResourceByTagsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeResourceByTagsRequest::getTag2Value()const +{ + return tag2Value_; +} + +void DescribeResourceByTagsRequest::setTag2Value(const std::string& tag2Value) +{ + tag2Value_ = tag2Value; + setParameter("Tag2Value", tag2Value); +} + +int DescribeResourceByTagsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeResourceByTagsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeResourceByTagsRequest::getTag4Key()const +{ + return tag4Key_; +} + +void DescribeResourceByTagsRequest::setTag4Key(const std::string& tag4Key) +{ + tag4Key_ = tag4Key; + setParameter("Tag4Key", tag4Key); +} + +std::string DescribeResourceByTagsRequest::getTag3Value()const +{ + return tag3Value_; +} + +void DescribeResourceByTagsRequest::setTag3Value(const std::string& tag3Value) +{ + tag3Value_ = tag3Value; + setParameter("Tag3Value", tag3Value); +} + diff --git a/ecs/src/model/DescribeResourceByTagsResult.cc b/ecs/src/model/DescribeResourceByTagsResult.cc new file mode 100644 index 000000000..9d69b3cac --- /dev/null +++ b/ecs/src/model/DescribeResourceByTagsResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeResourceByTagsResult::DescribeResourceByTagsResult() : + ServiceResult() +{} + +DescribeResourceByTagsResult::DescribeResourceByTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeResourceByTagsResult::~DescribeResourceByTagsResult() +{} + +void DescribeResourceByTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allResources = value["Resources"]["Resource"]; + for (auto value : allResources) + { + Resource resourceObject; + resourceObject.resourceId = value["ResourceId"].asString(); + resourceObject.resourceType = value["ResourceType"].asString(); + resourceObject.regionId = value["RegionId"].asString(); + resources_.push_back(resourceObject); + } + pageSize_ = std::stoi(value["PageSize"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeResourceByTagsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeResourceByTagsResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeResourceByTagsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeResourceByTagsResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeResourceByTagsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeResourceByTagsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeRouteTablesRequest.cc b/ecs/src/model/DescribeRouteTablesRequest.cc new file mode 100644 index 000000000..aa93472e8 --- /dev/null +++ b/ecs/src/model/DescribeRouteTablesRequest.cc @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeRouteTablesRequest::DescribeRouteTablesRequest() : + EcsRequest("DescribeRouteTables") +{} + +DescribeRouteTablesRequest::~DescribeRouteTablesRequest() +{} + +std::string DescribeRouteTablesRequest::getRouterType()const +{ + return routerType_; +} + +void DescribeRouteTablesRequest::setRouterType(const std::string& routerType) +{ + routerType_ = routerType; + setParameter("RouterType", routerType); +} + +long DescribeRouteTablesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRouteTablesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRouteTablesRequest::getRouteTableName()const +{ + return routeTableName_; +} + +void DescribeRouteTablesRequest::setRouteTableName(const std::string& routeTableName) +{ + routeTableName_ = routeTableName; + setParameter("RouteTableName", routeTableName); +} + +std::string DescribeRouteTablesRequest::getVRouterId()const +{ + return vRouterId_; +} + +void DescribeRouteTablesRequest::setVRouterId(const std::string& vRouterId) +{ + vRouterId_ = vRouterId; + setParameter("VRouterId", vRouterId); +} + +std::string DescribeRouteTablesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRouteTablesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRouteTablesRequest::getRouterId()const +{ + return routerId_; +} + +void DescribeRouteTablesRequest::setRouterId(const std::string& routerId) +{ + routerId_ = routerId; + setParameter("RouterId", routerId); +} + +std::string DescribeRouteTablesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRouteTablesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeRouteTablesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRouteTablesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeRouteTablesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRouteTablesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeRouteTablesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRouteTablesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeRouteTablesRequest::getRouteTableId()const +{ + return routeTableId_; +} + +void DescribeRouteTablesRequest::setRouteTableId(const std::string& routeTableId) +{ + routeTableId_ = routeTableId; + setParameter("RouteTableId", routeTableId); +} + diff --git a/ecs/src/model/DescribeRouteTablesResult.cc b/ecs/src/model/DescribeRouteTablesResult.cc new file mode 100644 index 000000000..300ae80e1 --- /dev/null +++ b/ecs/src/model/DescribeRouteTablesResult.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeRouteTablesResult::DescribeRouteTablesResult() : + ServiceResult() +{} + +DescribeRouteTablesResult::DescribeRouteTablesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRouteTablesResult::~DescribeRouteTablesResult() +{} + +void DescribeRouteTablesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRouteTables = value["RouteTables"]["RouteTable"]; + for (auto value : allRouteTables) + { + RouteTable routeTableObject; + routeTableObject.vRouterId = value["VRouterId"].asString(); + routeTableObject.routeTableId = value["RouteTableId"].asString(); + routeTableObject.routeTableType = value["RouteTableType"].asString(); + routeTableObject.creationTime = value["CreationTime"].asString(); + auto allRouteEntrys = value["RouteEntrys"]["RouteEntry"]; + for (auto value : allRouteEntrys) + { + RouteTable::RouteEntry routeEntryObject; + routeEntryObject.routeTableId = value["RouteTableId"].asString(); + routeEntryObject.destinationCidrBlock = value["DestinationCidrBlock"].asString(); + routeEntryObject.type = value["Type"].asString(); + routeEntryObject.status = value["Status"].asString(); + routeEntryObject.instanceId = value["InstanceId"].asString(); + routeEntryObject.nextHopType = value["NextHopType"].asString(); + auto allNextHops = value["NextHops"]["NextHop"]; + for (auto value : allNextHops) + { + RouteTable::RouteEntry::NextHop nextHopObject; + nextHopObject.nextHopType = value["NextHopType"].asString(); + nextHopObject.nextHopId = value["NextHopId"].asString(); + nextHopObject.enabled = std::stoi(value["Enabled"].asString()); + nextHopObject.weight = std::stoi(value["Weight"].asString()); + routeEntryObject.nextHops.push_back(nextHopObject); + } + routeTableObject.routeEntrys.push_back(routeEntryObject); + } + routeTables_.push_back(routeTableObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeRouteTablesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeRouteTablesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeRouteTablesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeRouteTablesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeRouteTablesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRouteTablesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeRouterInterfacesRequest.cc b/ecs/src/model/DescribeRouterInterfacesRequest.cc new file mode 100644 index 000000000..a1ad8872d --- /dev/null +++ b/ecs/src/model/DescribeRouterInterfacesRequest.cc @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeRouterInterfacesRequest::DescribeRouterInterfacesRequest() : + EcsRequest("DescribeRouterInterfaces") +{} + +DescribeRouterInterfacesRequest::~DescribeRouterInterfacesRequest() +{} + +std::vector DescribeRouterInterfacesRequest::getFilter()const +{ + return filter_; +} + +void DescribeRouterInterfacesRequest::setFilter(const std::vector& filter) +{ + filter_ = filter; + int i = 0; + for(int i = 0; i!= filter.size(); i++) { + auto obj = filter.at(i); + std::string str ="Filter."+ std::to_string(i); + setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + } +} + +long DescribeRouterInterfacesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRouterInterfacesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRouterInterfacesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRouterInterfacesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRouterInterfacesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeRouterInterfacesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int DescribeRouterInterfacesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeRouterInterfacesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeRouterInterfacesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRouterInterfacesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeRouterInterfacesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRouterInterfacesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeRouterInterfacesResult.cc b/ecs/src/model/DescribeRouterInterfacesResult.cc new file mode 100644 index 000000000..6407aee2e --- /dev/null +++ b/ecs/src/model/DescribeRouterInterfacesResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeRouterInterfacesResult::DescribeRouterInterfacesResult() : + ServiceResult() +{} + +DescribeRouterInterfacesResult::DescribeRouterInterfacesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRouterInterfacesResult::~DescribeRouterInterfacesResult() +{} + +void DescribeRouterInterfacesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRouterInterfaceSet = value["RouterInterfaceSet"]["RouterInterfaceType"]; + for (auto value : allRouterInterfaceSet) + { + RouterInterfaceType routerInterfaceTypeObject; + routerInterfaceTypeObject.routerInterfaceId = value["RouterInterfaceId"].asString(); + routerInterfaceTypeObject.oppositeRegionId = value["OppositeRegionId"].asString(); + routerInterfaceTypeObject.role = value["Role"].asString(); + routerInterfaceTypeObject.spec = value["Spec"].asString(); + routerInterfaceTypeObject.name = value["Name"].asString(); + routerInterfaceTypeObject.description = value["Description"].asString(); + routerInterfaceTypeObject.routerId = value["RouterId"].asString(); + routerInterfaceTypeObject.routerType = value["RouterType"].asString(); + routerInterfaceTypeObject.creationTime = value["CreationTime"].asString(); + routerInterfaceTypeObject.endTime = value["EndTime"].asString(); + routerInterfaceTypeObject.chargeType = value["ChargeType"].asString(); + routerInterfaceTypeObject.status = value["Status"].asString(); + routerInterfaceTypeObject.businessStatus = value["BusinessStatus"].asString(); + routerInterfaceTypeObject.connectedTime = value["ConnectedTime"].asString(); + routerInterfaceTypeObject.oppositeInterfaceId = value["OppositeInterfaceId"].asString(); + routerInterfaceTypeObject.oppositeInterfaceSpec = value["OppositeInterfaceSpec"].asString(); + routerInterfaceTypeObject.oppositeInterfaceStatus = value["OppositeInterfaceStatus"].asString(); + routerInterfaceTypeObject.oppositeInterfaceBusinessStatus = value["OppositeInterfaceBusinessStatus"].asString(); + routerInterfaceTypeObject.oppositeRouterId = value["OppositeRouterId"].asString(); + routerInterfaceTypeObject.oppositeRouterType = value["OppositeRouterType"].asString(); + routerInterfaceTypeObject.oppositeInterfaceOwnerId = value["OppositeInterfaceOwnerId"].asString(); + routerInterfaceTypeObject.accessPointId = value["AccessPointId"].asString(); + routerInterfaceTypeObject.oppositeAccessPointId = value["OppositeAccessPointId"].asString(); + routerInterfaceTypeObject.healthCheckSourceIp = value["HealthCheckSourceIp"].asString(); + routerInterfaceTypeObject.healthCheckTargetIp = value["HealthCheckTargetIp"].asString(); + routerInterfaceSet_.push_back(routerInterfaceTypeObject); + } + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeRouterInterfacesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeRouterInterfacesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeRouterInterfacesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeRouterInterfacesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeRouterInterfacesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeRouterInterfacesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeSecurityGroupAttributeRequest.cc b/ecs/src/model/DescribeSecurityGroupAttributeRequest.cc new file mode 100644 index 000000000..fbc149f7d --- /dev/null +++ b/ecs/src/model/DescribeSecurityGroupAttributeRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSecurityGroupAttributeRequest::DescribeSecurityGroupAttributeRequest() : + EcsRequest("DescribeSecurityGroupAttribute") +{} + +DescribeSecurityGroupAttributeRequest::~DescribeSecurityGroupAttributeRequest() +{} + +std::string DescribeSecurityGroupAttributeRequest::getNicType()const +{ + return nicType_; +} + +void DescribeSecurityGroupAttributeRequest::setNicType(const std::string& nicType) +{ + nicType_ = nicType; + setParameter("NicType", nicType); +} + +long DescribeSecurityGroupAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSecurityGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSecurityGroupAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSecurityGroupAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSecurityGroupAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSecurityGroupAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeSecurityGroupAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSecurityGroupAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeSecurityGroupAttributeRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void DescribeSecurityGroupAttributeRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +long DescribeSecurityGroupAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSecurityGroupAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeSecurityGroupAttributeRequest::getDirection()const +{ + return direction_; +} + +void DescribeSecurityGroupAttributeRequest::setDirection(const std::string& direction) +{ + direction_ = direction; + setParameter("Direction", direction); +} + diff --git a/ecs/src/model/DescribeSecurityGroupAttributeResult.cc b/ecs/src/model/DescribeSecurityGroupAttributeResult.cc new file mode 100644 index 000000000..30995b91f --- /dev/null +++ b/ecs/src/model/DescribeSecurityGroupAttributeResult.cc @@ -0,0 +1,133 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSecurityGroupAttributeResult::DescribeSecurityGroupAttributeResult() : + ServiceResult() +{} + +DescribeSecurityGroupAttributeResult::DescribeSecurityGroupAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSecurityGroupAttributeResult::~DescribeSecurityGroupAttributeResult() +{} + +void DescribeSecurityGroupAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPermissions = value["Permissions"]["Permission"]; + for (auto value : allPermissions) + { + Permission permissionObject; + permissionObject.ipProtocol = value["IpProtocol"].asString(); + permissionObject.portRange = value["PortRange"].asString(); + permissionObject.sourceGroupId = value["SourceGroupId"].asString(); + permissionObject.sourceGroupName = value["SourceGroupName"].asString(); + permissionObject.sourceCidrIp = value["SourceCidrIp"].asString(); + permissionObject.policy = value["Policy"].asString(); + permissionObject.nicType = value["NicType"].asString(); + permissionObject.sourceGroupOwnerAccount = value["SourceGroupOwnerAccount"].asString(); + permissionObject.destGroupId = value["DestGroupId"].asString(); + permissionObject.destGroupName = value["DestGroupName"].asString(); + permissionObject.destCidrIp = value["DestCidrIp"].asString(); + permissionObject.destGroupOwnerAccount = value["DestGroupOwnerAccount"].asString(); + permissionObject.priority = value["Priority"].asString(); + permissionObject.direction = value["Direction"].asString(); + permissionObject.description = value["Description"].asString(); + permissionObject.createTime = value["CreateTime"].asString(); + permissions_.push_back(permissionObject); + } + regionId_ = value["RegionId"].asString(); + securityGroupId_ = value["SecurityGroupId"].asString(); + description_ = value["Description"].asString(); + securityGroupName_ = value["SecurityGroupName"].asString(); + vpcId_ = value["VpcId"].asString(); + innerAccessPolicy_ = value["InnerAccessPolicy"].asString(); + +} + +std::string DescribeSecurityGroupAttributeResult::getDescription()const +{ + return description_; +} + +void DescribeSecurityGroupAttributeResult::setDescription(const std::string& description) +{ + description_ = description; +} + +std::string DescribeSecurityGroupAttributeResult::getSecurityGroupName()const +{ + return securityGroupName_; +} + +void DescribeSecurityGroupAttributeResult::setSecurityGroupName(const std::string& securityGroupName) +{ + securityGroupName_ = securityGroupName; +} + +std::string DescribeSecurityGroupAttributeResult::getVpcId()const +{ + return vpcId_; +} + +void DescribeSecurityGroupAttributeResult::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; +} + +std::string DescribeSecurityGroupAttributeResult::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void DescribeSecurityGroupAttributeResult::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; +} + +std::string DescribeSecurityGroupAttributeResult::getRegionId()const +{ + return regionId_; +} + +void DescribeSecurityGroupAttributeResult::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; +} + +std::string DescribeSecurityGroupAttributeResult::getInnerAccessPolicy()const +{ + return innerAccessPolicy_; +} + +void DescribeSecurityGroupAttributeResult::setInnerAccessPolicy(const std::string& innerAccessPolicy) +{ + innerAccessPolicy_ = innerAccessPolicy; +} + diff --git a/ecs/src/model/DescribeSecurityGroupReferencesRequest.cc b/ecs/src/model/DescribeSecurityGroupReferencesRequest.cc new file mode 100644 index 000000000..2c57e41bd --- /dev/null +++ b/ecs/src/model/DescribeSecurityGroupReferencesRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSecurityGroupReferencesRequest::DescribeSecurityGroupReferencesRequest() : + EcsRequest("DescribeSecurityGroupReferences") +{} + +DescribeSecurityGroupReferencesRequest::~DescribeSecurityGroupReferencesRequest() +{} + +long DescribeSecurityGroupReferencesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSecurityGroupReferencesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSecurityGroupReferencesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSecurityGroupReferencesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeSecurityGroupReferencesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSecurityGroupReferencesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSecurityGroupReferencesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSecurityGroupReferencesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::vector DescribeSecurityGroupReferencesRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void DescribeSecurityGroupReferencesRequest::setSecurityGroupId(const std::vector& securityGroupId) +{ + securityGroupId_ = securityGroupId; + for(int i = 0; i!= securityGroupId.size(); i++) + setParameter("SecurityGroupId."+ std::to_string(i), securityGroupId.at(i)); +} + +long DescribeSecurityGroupReferencesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSecurityGroupReferencesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeSecurityGroupReferencesResult.cc b/ecs/src/model/DescribeSecurityGroupReferencesResult.cc new file mode 100644 index 000000000..fc8b4ee6c --- /dev/null +++ b/ecs/src/model/DescribeSecurityGroupReferencesResult.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSecurityGroupReferencesResult::DescribeSecurityGroupReferencesResult() : + ServiceResult() +{} + +DescribeSecurityGroupReferencesResult::DescribeSecurityGroupReferencesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSecurityGroupReferencesResult::~DescribeSecurityGroupReferencesResult() +{} + +void DescribeSecurityGroupReferencesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSecurityGroupReferences = value["SecurityGroupReferences"]["SecurityGroupReference"]; + for (auto value : allSecurityGroupReferences) + { + SecurityGroupReference securityGroupReferenceObject; + securityGroupReferenceObject.securityGroupId = value["SecurityGroupId"].asString(); + auto allReferencingSecurityGroups = value["ReferencingSecurityGroups"]["ReferencingSecurityGroup"]; + for (auto value : allReferencingSecurityGroups) + { + SecurityGroupReference::ReferencingSecurityGroup referencingSecurityGroupObject; + referencingSecurityGroupObject.aliUid = value["AliUid"].asString(); + referencingSecurityGroupObject.securityGroupId = value["SecurityGroupId"].asString(); + securityGroupReferenceObject.referencingSecurityGroups.push_back(referencingSecurityGroupObject); + } + securityGroupReferences_.push_back(securityGroupReferenceObject); + } + +} + diff --git a/ecs/src/model/DescribeSecurityGroupsRequest.cc b/ecs/src/model/DescribeSecurityGroupsRequest.cc new file mode 100644 index 000000000..a08be8bd8 --- /dev/null +++ b/ecs/src/model/DescribeSecurityGroupsRequest.cc @@ -0,0 +1,303 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSecurityGroupsRequest::DescribeSecurityGroupsRequest() : + EcsRequest("DescribeSecurityGroups") +{} + +DescribeSecurityGroupsRequest::~DescribeSecurityGroupsRequest() +{} + +std::string DescribeSecurityGroupsRequest::getTag4Value()const +{ + return tag4Value_; +} + +void DescribeSecurityGroupsRequest::setTag4Value(const std::string& tag4Value) +{ + tag4Value_ = tag4Value; + setParameter("Tag4Value", tag4Value); +} + +long DescribeSecurityGroupsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSecurityGroupsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSecurityGroupsRequest::getTag2Key()const +{ + return tag2Key_; +} + +void DescribeSecurityGroupsRequest::setTag2Key(const std::string& tag2Key) +{ + tag2Key_ = tag2Key; + setParameter("Tag2Key", tag2Key); +} + +bool DescribeSecurityGroupsRequest::getFuzzyQuery()const +{ + return fuzzyQuery_; +} + +void DescribeSecurityGroupsRequest::setFuzzyQuery(bool fuzzyQuery) +{ + fuzzyQuery_ = fuzzyQuery; + setParameter("FuzzyQuery", std::to_string(fuzzyQuery)); +} + +std::string DescribeSecurityGroupsRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void DescribeSecurityGroupsRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +std::string DescribeSecurityGroupsRequest::getTag3Key()const +{ + return tag3Key_; +} + +void DescribeSecurityGroupsRequest::setTag3Key(const std::string& tag3Key) +{ + tag3Key_ = tag3Key; + setParameter("Tag3Key", tag3Key); +} + +bool DescribeSecurityGroupsRequest::getIsQueryEcsCount()const +{ + return isQueryEcsCount_; +} + +void DescribeSecurityGroupsRequest::setIsQueryEcsCount(bool isQueryEcsCount) +{ + isQueryEcsCount_ = isQueryEcsCount; + setParameter("IsQueryEcsCount", std::to_string(isQueryEcsCount)); +} + +std::string DescribeSecurityGroupsRequest::getNetworkType()const +{ + return networkType_; +} + +void DescribeSecurityGroupsRequest::setNetworkType(const std::string& networkType) +{ + networkType_ = networkType; + setParameter("NetworkType", networkType); +} + +std::string DescribeSecurityGroupsRequest::getSecurityGroupName()const +{ + return securityGroupName_; +} + +void DescribeSecurityGroupsRequest::setSecurityGroupName(const std::string& securityGroupName) +{ + securityGroupName_ = securityGroupName; + setParameter("SecurityGroupName", securityGroupName); +} + +int DescribeSecurityGroupsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSecurityGroupsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeSecurityGroupsRequest::getTag1Value()const +{ + return tag1Value_; +} + +void DescribeSecurityGroupsRequest::setTag1Value(const std::string& tag1Value) +{ + tag1Value_ = tag1Value; + setParameter("Tag1Value", tag1Value); +} + +std::string DescribeSecurityGroupsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSecurityGroupsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int DescribeSecurityGroupsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSecurityGroupsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSecurityGroupsRequest::getTag3Value()const +{ + return tag3Value_; +} + +void DescribeSecurityGroupsRequest::setTag3Value(const std::string& tag3Value) +{ + tag3Value_ = tag3Value; + setParameter("Tag3Value", tag3Value); +} + +bool DescribeSecurityGroupsRequest::getDryRun()const +{ + return dryRun_; +} + +void DescribeSecurityGroupsRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", std::to_string(dryRun)); +} + +std::string DescribeSecurityGroupsRequest::getTag5Key()const +{ + return tag5Key_; +} + +void DescribeSecurityGroupsRequest::setTag5Key(const std::string& tag5Key) +{ + tag5Key_ = tag5Key; + setParameter("Tag5Key", tag5Key); +} + +std::string DescribeSecurityGroupsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSecurityGroupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSecurityGroupsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSecurityGroupsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeSecurityGroupsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSecurityGroupsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeSecurityGroupsRequest::getSecurityGroupIds()const +{ + return securityGroupIds_; +} + +void DescribeSecurityGroupsRequest::setSecurityGroupIds(const std::string& securityGroupIds) +{ + securityGroupIds_ = securityGroupIds; + setParameter("SecurityGroupIds", securityGroupIds); +} + +std::string DescribeSecurityGroupsRequest::getTag5Value()const +{ + return tag5Value_; +} + +void DescribeSecurityGroupsRequest::setTag5Value(const std::string& tag5Value) +{ + tag5Value_ = tag5Value; + setParameter("Tag5Value", tag5Value); +} + +std::string DescribeSecurityGroupsRequest::getTag1Key()const +{ + return tag1Key_; +} + +void DescribeSecurityGroupsRequest::setTag1Key(const std::string& tag1Key) +{ + tag1Key_ = tag1Key; + setParameter("Tag1Key", tag1Key); +} + +std::string DescribeSecurityGroupsRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeSecurityGroupsRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string DescribeSecurityGroupsRequest::getTag2Value()const +{ + return tag2Value_; +} + +void DescribeSecurityGroupsRequest::setTag2Value(const std::string& tag2Value) +{ + tag2Value_ = tag2Value; + setParameter("Tag2Value", tag2Value); +} + +std::string DescribeSecurityGroupsRequest::getTag4Key()const +{ + return tag4Key_; +} + +void DescribeSecurityGroupsRequest::setTag4Key(const std::string& tag4Key) +{ + tag4Key_ = tag4Key; + setParameter("Tag4Key", tag4Key); +} + diff --git a/ecs/src/model/DescribeSecurityGroupsResult.cc b/ecs/src/model/DescribeSecurityGroupsResult.cc new file mode 100644 index 000000000..a3f97bc6e --- /dev/null +++ b/ecs/src/model/DescribeSecurityGroupsResult.cc @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSecurityGroupsResult::DescribeSecurityGroupsResult() : + ServiceResult() +{} + +DescribeSecurityGroupsResult::DescribeSecurityGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSecurityGroupsResult::~DescribeSecurityGroupsResult() +{} + +void DescribeSecurityGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSecurityGroups = value["SecurityGroups"]["SecurityGroup"]; + for (auto value : allSecurityGroups) + { + SecurityGroup securityGroupObject; + securityGroupObject.securityGroupId = value["SecurityGroupId"].asString(); + securityGroupObject.description = value["Description"].asString(); + securityGroupObject.securityGroupName = value["SecurityGroupName"].asString(); + securityGroupObject.vpcId = value["VpcId"].asString(); + securityGroupObject.creationTime = value["CreationTime"].asString(); + securityGroupObject.availableInstanceAmount = std::stoi(value["AvailableInstanceAmount"].asString()); + securityGroupObject.ecsCount = std::stoi(value["EcsCount"].asString()); + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + SecurityGroup::Tag tagObject; + tagObject.tagKey = value["TagKey"].asString(); + tagObject.tagValue = value["TagValue"].asString(); + securityGroupObject.tags.push_back(tagObject); + } + securityGroups_.push_back(securityGroupObject); + } + regionId_ = value["RegionId"].asString(); + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeSecurityGroupsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeSecurityGroupsResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeSecurityGroupsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeSecurityGroupsResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeSecurityGroupsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSecurityGroupsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + +std::string DescribeSecurityGroupsResult::getRegionId()const +{ + return regionId_; +} + +void DescribeSecurityGroupsResult::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; +} + diff --git a/ecs/src/model/DescribeSnapshotLinksRequest.cc b/ecs/src/model/DescribeSnapshotLinksRequest.cc new file mode 100644 index 000000000..25a4a5540 --- /dev/null +++ b/ecs/src/model/DescribeSnapshotLinksRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSnapshotLinksRequest::DescribeSnapshotLinksRequest() : + EcsRequest("DescribeSnapshotLinks") +{} + +DescribeSnapshotLinksRequest::~DescribeSnapshotLinksRequest() +{} + +long DescribeSnapshotLinksRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSnapshotLinksRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSnapshotLinksRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeSnapshotLinksRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeSnapshotLinksRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSnapshotLinksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSnapshotLinksRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSnapshotLinksRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeSnapshotLinksRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSnapshotLinksRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeSnapshotLinksRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSnapshotLinksRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSnapshotLinksRequest::getDiskIds()const +{ + return diskIds_; +} + +void DescribeSnapshotLinksRequest::setDiskIds(const std::string& diskIds) +{ + diskIds_ = diskIds; + setParameter("DiskIds", diskIds); +} + +std::string DescribeSnapshotLinksRequest::getSnapshotLinkIds()const +{ + return snapshotLinkIds_; +} + +void DescribeSnapshotLinksRequest::setSnapshotLinkIds(const std::string& snapshotLinkIds) +{ + snapshotLinkIds_ = snapshotLinkIds; + setParameter("SnapshotLinkIds", snapshotLinkIds); +} + +long DescribeSnapshotLinksRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSnapshotLinksRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeSnapshotLinksRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSnapshotLinksRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeSnapshotLinksResult.cc b/ecs/src/model/DescribeSnapshotLinksResult.cc new file mode 100644 index 000000000..7e4e05676 --- /dev/null +++ b/ecs/src/model/DescribeSnapshotLinksResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSnapshotLinksResult::DescribeSnapshotLinksResult() : + ServiceResult() +{} + +DescribeSnapshotLinksResult::DescribeSnapshotLinksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSnapshotLinksResult::~DescribeSnapshotLinksResult() +{} + +void DescribeSnapshotLinksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSnapshotLinks = value["SnapshotLinks"]["SnapshotLink"]; + for (auto value : allSnapshotLinks) + { + SnapshotLink snapshotLinkObject; + snapshotLinkObject.snapshotLinkId = value["SnapshotLinkId"].asString(); + snapshotLinkObject.regionId = value["RegionId"].asString(); + snapshotLinkObject.instanceId = value["InstanceId"].asString(); + snapshotLinkObject.instanceName = value["InstanceName"].asString(); + snapshotLinkObject.sourceDiskId = value["SourceDiskId"].asString(); + snapshotLinkObject.sourceDiskSize = std::stoi(value["SourceDiskSize"].asString()); + snapshotLinkObject.sourceDiskType = value["SourceDiskType"].asString(); + snapshotLinkObject.totalSize = std::stoi(value["TotalSize"].asString()); + snapshotLinkObject.totalCount = std::stoi(value["TotalCount"].asString()); + snapshotLinks_.push_back(snapshotLinkObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeSnapshotLinksResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeSnapshotLinksResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeSnapshotLinksResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeSnapshotLinksResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeSnapshotLinksResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSnapshotLinksResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeSnapshotMonitorDataRequest.cc b/ecs/src/model/DescribeSnapshotMonitorDataRequest.cc new file mode 100644 index 000000000..3293e33a0 --- /dev/null +++ b/ecs/src/model/DescribeSnapshotMonitorDataRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSnapshotMonitorDataRequest::DescribeSnapshotMonitorDataRequest() : + EcsRequest("DescribeSnapshotMonitorData") +{} + +DescribeSnapshotMonitorDataRequest::~DescribeSnapshotMonitorDataRequest() +{} + +long DescribeSnapshotMonitorDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSnapshotMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribeSnapshotMonitorDataRequest::getPeriod()const +{ + return period_; +} + +void DescribeSnapshotMonitorDataRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +std::string DescribeSnapshotMonitorDataRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSnapshotMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSnapshotMonitorDataRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSnapshotMonitorDataRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeSnapshotMonitorDataRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSnapshotMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeSnapshotMonitorDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSnapshotMonitorDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeSnapshotMonitorDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSnapshotMonitorDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeSnapshotMonitorDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSnapshotMonitorDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeSnapshotMonitorDataResult.cc b/ecs/src/model/DescribeSnapshotMonitorDataResult.cc new file mode 100644 index 000000000..9597470b2 --- /dev/null +++ b/ecs/src/model/DescribeSnapshotMonitorDataResult.cc @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSnapshotMonitorDataResult::DescribeSnapshotMonitorDataResult() : + ServiceResult() +{} + +DescribeSnapshotMonitorDataResult::DescribeSnapshotMonitorDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSnapshotMonitorDataResult::~DescribeSnapshotMonitorDataResult() +{} + +void DescribeSnapshotMonitorDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allMonitorData = value["MonitorData"]["DataPoint"]; + for (auto value : allMonitorData) + { + DataPoint dataPointObject; + dataPointObject.timeStamp = value["TimeStamp"].asString(); + dataPointObject.size = std::stol(value["Size"].asString()); + monitorData_.push_back(dataPointObject); + } + +} + diff --git a/ecs/src/model/DescribeSnapshotPackageRequest.cc b/ecs/src/model/DescribeSnapshotPackageRequest.cc new file mode 100644 index 000000000..3a1331b98 --- /dev/null +++ b/ecs/src/model/DescribeSnapshotPackageRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSnapshotPackageRequest::DescribeSnapshotPackageRequest() : + EcsRequest("DescribeSnapshotPackage") +{} + +DescribeSnapshotPackageRequest::~DescribeSnapshotPackageRequest() +{} + +long DescribeSnapshotPackageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSnapshotPackageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSnapshotPackageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSnapshotPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSnapshotPackageRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSnapshotPackageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeSnapshotPackageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSnapshotPackageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeSnapshotPackageRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSnapshotPackageRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeSnapshotPackageRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSnapshotPackageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeSnapshotPackageRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSnapshotPackageRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeSnapshotPackageResult.cc b/ecs/src/model/DescribeSnapshotPackageResult.cc new file mode 100644 index 000000000..8edbb5404 --- /dev/null +++ b/ecs/src/model/DescribeSnapshotPackageResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSnapshotPackageResult::DescribeSnapshotPackageResult() : + ServiceResult() +{} + +DescribeSnapshotPackageResult::DescribeSnapshotPackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSnapshotPackageResult::~DescribeSnapshotPackageResult() +{} + +void DescribeSnapshotPackageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSnapshotPackages = value["SnapshotPackages"]["SnapshotPackage"]; + for (auto value : allSnapshotPackages) + { + SnapshotPackage snapshotPackageObject; + snapshotPackageObject.startTime = value["StartTime"].asString(); + snapshotPackageObject.endTime = value["EndTime"].asString(); + snapshotPackageObject.initCapacity = std::stol(value["InitCapacity"].asString()); + snapshotPackageObject.displayName = value["DisplayName"].asString(); + snapshotPackages_.push_back(snapshotPackageObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeSnapshotPackageResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeSnapshotPackageResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeSnapshotPackageResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeSnapshotPackageResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeSnapshotPackageResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSnapshotPackageResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeSnapshotsRequest.cc b/ecs/src/model/DescribeSnapshotsRequest.cc new file mode 100644 index 000000000..219b69f59 --- /dev/null +++ b/ecs/src/model/DescribeSnapshotsRequest.cc @@ -0,0 +1,380 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSnapshotsRequest::DescribeSnapshotsRequest() : + EcsRequest("DescribeSnapshots") +{} + +DescribeSnapshotsRequest::~DescribeSnapshotsRequest() +{} + +std::string DescribeSnapshotsRequest::getTag4Value()const +{ + return tag4Value_; +} + +void DescribeSnapshotsRequest::setTag4Value(const std::string& tag4Value) +{ + tag4Value_ = tag4Value; + setParameter("Tag4Value", tag4Value); +} + +long DescribeSnapshotsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSnapshotsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeSnapshotsRequest::getTag2Key()const +{ + return tag2Key_; +} + +void DescribeSnapshotsRequest::setTag2Key(const std::string& tag2Key) +{ + tag2Key_ = tag2Key; + setParameter("Tag2Key", tag2Key); +} + +std::string DescribeSnapshotsRequest::getFilter2Value()const +{ + return filter2Value_; +} + +void DescribeSnapshotsRequest::setFilter2Value(const std::string& filter2Value) +{ + filter2Value_ = filter2Value; + setParameter("Filter2Value", filter2Value); +} + +std::string DescribeSnapshotsRequest::getSnapshotIds()const +{ + return snapshotIds_; +} + +void DescribeSnapshotsRequest::setSnapshotIds(const std::string& snapshotIds) +{ + snapshotIds_ = snapshotIds; + setParameter("SnapshotIds", snapshotIds); +} + +std::string DescribeSnapshotsRequest::getUsage()const +{ + return usage_; +} + +void DescribeSnapshotsRequest::setUsage(const std::string& usage) +{ + usage_ = usage; + setParameter("Usage", usage); +} + +std::string DescribeSnapshotsRequest::getSnapshotLinkId()const +{ + return snapshotLinkId_; +} + +void DescribeSnapshotsRequest::setSnapshotLinkId(const std::string& snapshotLinkId) +{ + snapshotLinkId_ = snapshotLinkId; + setParameter("SnapshotLinkId", snapshotLinkId); +} + +std::string DescribeSnapshotsRequest::getSnapshotName()const +{ + return snapshotName_; +} + +void DescribeSnapshotsRequest::setSnapshotName(const std::string& snapshotName) +{ + snapshotName_ = snapshotName; + setParameter("SnapshotName", snapshotName); +} + +std::string DescribeSnapshotsRequest::getTag3Key()const +{ + return tag3Key_; +} + +void DescribeSnapshotsRequest::setTag3Key(const std::string& tag3Key) +{ + tag3Key_ = tag3Key; + setParameter("Tag3Key", tag3Key); +} + +int DescribeSnapshotsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSnapshotsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeSnapshotsRequest::getTag1Value()const +{ + return tag1Value_; +} + +void DescribeSnapshotsRequest::setTag1Value(const std::string& tag1Value) +{ + tag1Value_ = tag1Value; + setParameter("Tag1Value", tag1Value); +} + +std::string DescribeSnapshotsRequest::getFilter1Key()const +{ + return filter1Key_; +} + +void DescribeSnapshotsRequest::setFilter1Key(const std::string& filter1Key) +{ + filter1Key_ = filter1Key; + setParameter("Filter1Key", filter1Key); +} + +std::string DescribeSnapshotsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSnapshotsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int DescribeSnapshotsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSnapshotsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSnapshotsRequest::getDiskId()const +{ + return diskId_; +} + +void DescribeSnapshotsRequest::setDiskId(const std::string& diskId) +{ + diskId_ = diskId; + setParameter("DiskId", diskId); +} + +std::string DescribeSnapshotsRequest::getTag3Value()const +{ + return tag3Value_; +} + +void DescribeSnapshotsRequest::setTag3Value(const std::string& tag3Value) +{ + tag3Value_ = tag3Value; + setParameter("Tag3Value", tag3Value); +} + +bool DescribeSnapshotsRequest::getDryRun()const +{ + return dryRun_; +} + +void DescribeSnapshotsRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", std::to_string(dryRun)); +} + +std::string DescribeSnapshotsRequest::getTag5Key()const +{ + return tag5Key_; +} + +void DescribeSnapshotsRequest::setTag5Key(const std::string& tag5Key) +{ + tag5Key_ = tag5Key; + setParameter("Tag5Key", tag5Key); +} + +std::string DescribeSnapshotsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSnapshotsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSnapshotsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSnapshotsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeSnapshotsRequest::getSourceDiskType()const +{ + return sourceDiskType_; +} + +void DescribeSnapshotsRequest::setSourceDiskType(const std::string& sourceDiskType) +{ + sourceDiskType_ = sourceDiskType; + setParameter("SourceDiskType", sourceDiskType); +} + +std::string DescribeSnapshotsRequest::getFilter1Value()const +{ + return filter1Value_; +} + +void DescribeSnapshotsRequest::setFilter1Value(const std::string& filter1Value) +{ + filter1Value_ = filter1Value; + setParameter("Filter1Value", filter1Value); +} + +std::string DescribeSnapshotsRequest::getFilter2Key()const +{ + return filter2Key_; +} + +void DescribeSnapshotsRequest::setFilter2Key(const std::string& filter2Key) +{ + filter2Key_ = filter2Key; + setParameter("Filter2Key", filter2Key); +} + +long DescribeSnapshotsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSnapshotsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeSnapshotsRequest::getTag5Value()const +{ + return tag5Value_; +} + +void DescribeSnapshotsRequest::setTag5Value(const std::string& tag5Value) +{ + tag5Value_ = tag5Value; + setParameter("Tag5Value", tag5Value); +} + +std::string DescribeSnapshotsRequest::getTag1Key()const +{ + return tag1Key_; +} + +void DescribeSnapshotsRequest::setTag1Key(const std::string& tag1Key) +{ + tag1Key_ = tag1Key; + setParameter("Tag1Key", tag1Key); +} + +std::string DescribeSnapshotsRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeSnapshotsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +bool DescribeSnapshotsRequest::getEncrypted()const +{ + return encrypted_; +} + +void DescribeSnapshotsRequest::setEncrypted(bool encrypted) +{ + encrypted_ = encrypted; + setParameter("Encrypted", std::to_string(encrypted)); +} + +std::string DescribeSnapshotsRequest::getSnapshotType()const +{ + return snapshotType_; +} + +void DescribeSnapshotsRequest::setSnapshotType(const std::string& snapshotType) +{ + snapshotType_ = snapshotType; + setParameter("SnapshotType", snapshotType); +} + +std::string DescribeSnapshotsRequest::getTag2Value()const +{ + return tag2Value_; +} + +void DescribeSnapshotsRequest::setTag2Value(const std::string& tag2Value) +{ + tag2Value_ = tag2Value; + setParameter("Tag2Value", tag2Value); +} + +std::string DescribeSnapshotsRequest::getTag4Key()const +{ + return tag4Key_; +} + +void DescribeSnapshotsRequest::setTag4Key(const std::string& tag4Key) +{ + tag4Key_ = tag4Key; + setParameter("Tag4Key", tag4Key); +} + +std::string DescribeSnapshotsRequest::getStatus()const +{ + return status_; +} + +void DescribeSnapshotsRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/ecs/src/model/DescribeSnapshotsResult.cc b/ecs/src/model/DescribeSnapshotsResult.cc new file mode 100644 index 000000000..0666f48a8 --- /dev/null +++ b/ecs/src/model/DescribeSnapshotsResult.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSnapshotsResult::DescribeSnapshotsResult() : + ServiceResult() +{} + +DescribeSnapshotsResult::DescribeSnapshotsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSnapshotsResult::~DescribeSnapshotsResult() +{} + +void DescribeSnapshotsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSnapshots = value["Snapshots"]["Snapshot"]; + for (auto value : allSnapshots) + { + Snapshot snapshotObject; + snapshotObject.snapshotId = value["SnapshotId"].asString(); + snapshotObject.snapshotName = value["SnapshotName"].asString(); + snapshotObject.progress = value["Progress"].asString(); + snapshotObject.productCode = value["ProductCode"].asString(); + snapshotObject.sourceDiskId = value["SourceDiskId"].asString(); + snapshotObject.sourceDiskType = value["SourceDiskType"].asString(); + snapshotObject.retentionDays = std::stoi(value["RetentionDays"].asString()); + snapshotObject.encrypted = std::stoi(value["Encrypted"].asString()); + snapshotObject.sourceDiskSize = value["SourceDiskSize"].asString(); + snapshotObject.description = value["Description"].asString(); + snapshotObject.creationTime = value["CreationTime"].asString(); + snapshotObject.status = value["Status"].asString(); + snapshotObject.usage = value["Usage"].asString(); + snapshotObject.sourceStorageType = value["SourceStorageType"].asString(); + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + Snapshot::Tag tagObject; + tagObject.tagKey = value["TagKey"].asString(); + tagObject.tagValue = value["TagValue"].asString(); + snapshotObject.tags.push_back(tagObject); + } + snapshots_.push_back(snapshotObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeSnapshotsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeSnapshotsResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeSnapshotsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeSnapshotsResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeSnapshotsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSnapshotsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeSnapshotsUsageRequest.cc b/ecs/src/model/DescribeSnapshotsUsageRequest.cc new file mode 100644 index 000000000..dc23e6da9 --- /dev/null +++ b/ecs/src/model/DescribeSnapshotsUsageRequest.cc @@ -0,0 +1,292 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSnapshotsUsageRequest::DescribeSnapshotsUsageRequest() : + EcsRequest("DescribeSnapshotsUsage") +{} + +DescribeSnapshotsUsageRequest::~DescribeSnapshotsUsageRequest() +{} + +long DescribeSnapshotsUsageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSnapshotsUsageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeSnapshotsUsageRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeSnapshotsUsageRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeSnapshotsUsageRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeSnapshotsUsageRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeSnapshotsUsageRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeSnapshotsUsageRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeSnapshotsUsageRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeSnapshotsUsageRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeSnapshotsUsageRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeSnapshotsUsageRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DescribeSnapshotsUsageRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSnapshotsUsageRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeSnapshotsUsageRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeSnapshotsUsageRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeSnapshotsUsageRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeSnapshotsUsageRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeSnapshotsUsageRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSnapshotsUsageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DescribeSnapshotsUsageRequest::getEnable()const +{ + return enable_; +} + +void DescribeSnapshotsUsageRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DescribeSnapshotsUsageRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeSnapshotsUsageRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DescribeSnapshotsUsageRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeSnapshotsUsageRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeSnapshotsUsageRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeSnapshotsUsageRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeSnapshotsUsageRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeSnapshotsUsageRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeSnapshotsUsageRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeSnapshotsUsageRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeSnapshotsUsageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSnapshotsUsageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSnapshotsUsageRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSnapshotsUsageRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeSnapshotsUsageRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeSnapshotsUsageRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeSnapshotsUsageRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSnapshotsUsageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool DescribeSnapshotsUsageRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeSnapshotsUsageRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeSnapshotsUsageRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeSnapshotsUsageRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DescribeSnapshotsUsageRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeSnapshotsUsageRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeSnapshotsUsageRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeSnapshotsUsageRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ecs/src/model/DescribeSnapshotsUsageResult.cc b/ecs/src/model/DescribeSnapshotsUsageResult.cc new file mode 100644 index 000000000..1533be5ca --- /dev/null +++ b/ecs/src/model/DescribeSnapshotsUsageResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSnapshotsUsageResult::DescribeSnapshotsUsageResult() : + ServiceResult() +{} + +DescribeSnapshotsUsageResult::DescribeSnapshotsUsageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSnapshotsUsageResult::~DescribeSnapshotsUsageResult() +{} + +void DescribeSnapshotsUsageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + snapshotCount_ = std::stoi(value["SnapshotCount"].asString()); + snapshotSize_ = std::stol(value["SnapshotSize"].asString()); + +} + +int DescribeSnapshotsUsageResult::getSnapshotCount()const +{ + return snapshotCount_; +} + +void DescribeSnapshotsUsageResult::setSnapshotCount(int snapshotCount) +{ + snapshotCount_ = snapshotCount; +} + +long DescribeSnapshotsUsageResult::getSnapshotSize()const +{ + return snapshotSize_; +} + +void DescribeSnapshotsUsageResult::setSnapshotSize(long snapshotSize) +{ + snapshotSize_ = snapshotSize; +} + diff --git a/ecs/src/model/DescribeSpotPriceHistoryRequest.cc b/ecs/src/model/DescribeSpotPriceHistoryRequest.cc new file mode 100644 index 000000000..a9daae280 --- /dev/null +++ b/ecs/src/model/DescribeSpotPriceHistoryRequest.cc @@ -0,0 +1,380 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSpotPriceHistoryRequest::DescribeSpotPriceHistoryRequest() : + EcsRequest("DescribeSpotPriceHistory") +{} + +DescribeSpotPriceHistoryRequest::~DescribeSpotPriceHistoryRequest() +{} + +long DescribeSpotPriceHistoryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeSpotPriceHistoryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeSpotPriceHistoryRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeSpotPriceHistoryRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string DescribeSpotPriceHistoryRequest::getIoOptimized()const +{ + return ioOptimized_; +} + +void DescribeSpotPriceHistoryRequest::setIoOptimized(const std::string& ioOptimized) +{ + ioOptimized_ = ioOptimized; + setParameter("IoOptimized", ioOptimized); +} + +bool DescribeSpotPriceHistoryRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeSpotPriceHistoryRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeSpotPriceHistoryRequest::getNetworkType()const +{ + return networkType_; +} + +void DescribeSpotPriceHistoryRequest::setNetworkType(const std::string& networkType) +{ + networkType_ = networkType; + setParameter("NetworkType", networkType); +} + +std::string DescribeSpotPriceHistoryRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSpotPriceHistoryRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeSpotPriceHistoryRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeSpotPriceHistoryRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeSpotPriceHistoryRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeSpotPriceHistoryRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeSpotPriceHistoryRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeSpotPriceHistoryRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DescribeSpotPriceHistoryRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSpotPriceHistoryRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeSpotPriceHistoryRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeSpotPriceHistoryRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DescribeSpotPriceHistoryRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeSpotPriceHistoryRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeSpotPriceHistoryRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeSpotPriceHistoryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DescribeSpotPriceHistoryRequest::getEnable()const +{ + return enable_; +} + +void DescribeSpotPriceHistoryRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DescribeSpotPriceHistoryRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeSpotPriceHistoryRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DescribeSpotPriceHistoryRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeSpotPriceHistoryRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeSpotPriceHistoryRequest::getInstanceType()const +{ + return instanceType_; +} + +void DescribeSpotPriceHistoryRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::string DescribeSpotPriceHistoryRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeSpotPriceHistoryRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeSpotPriceHistoryRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeSpotPriceHistoryRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeSpotPriceHistoryRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeSpotPriceHistoryRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +int DescribeSpotPriceHistoryRequest::getOffset()const +{ + return offset_; +} + +void DescribeSpotPriceHistoryRequest::setOffset(int offset) +{ + offset_ = offset; + setParameter("Offset", std::to_string(offset)); +} + +std::string DescribeSpotPriceHistoryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeSpotPriceHistoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeSpotPriceHistoryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeSpotPriceHistoryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeSpotPriceHistoryRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSpotPriceHistoryRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeSpotPriceHistoryRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeSpotPriceHistoryRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +std::string DescribeSpotPriceHistoryRequest::getOSType()const +{ + return oSType_; +} + +void DescribeSpotPriceHistoryRequest::setOSType(const std::string& oSType) +{ + oSType_ = oSType; + setParameter("OSType", oSType); +} + +long DescribeSpotPriceHistoryRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeSpotPriceHistoryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool DescribeSpotPriceHistoryRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeSpotPriceHistoryRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeSpotPriceHistoryRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeSpotPriceHistoryRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DescribeSpotPriceHistoryRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeSpotPriceHistoryRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeSpotPriceHistoryRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeSpotPriceHistoryRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribeSpotPriceHistoryRequest::getZoneId()const +{ + return zoneId_; +} + +void DescribeSpotPriceHistoryRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + diff --git a/ecs/src/model/DescribeSpotPriceHistoryResult.cc b/ecs/src/model/DescribeSpotPriceHistoryResult.cc new file mode 100644 index 000000000..22338691e --- /dev/null +++ b/ecs/src/model/DescribeSpotPriceHistoryResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeSpotPriceHistoryResult::DescribeSpotPriceHistoryResult() : + ServiceResult() +{} + +DescribeSpotPriceHistoryResult::DescribeSpotPriceHistoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSpotPriceHistoryResult::~DescribeSpotPriceHistoryResult() +{} + +void DescribeSpotPriceHistoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSpotPrices = value["SpotPrices"]["SpotPriceType"]; + for (auto value : allSpotPrices) + { + SpotPriceType spotPriceTypeObject; + spotPriceTypeObject.zoneId = value["ZoneId"].asString(); + spotPriceTypeObject.instanceType = value["InstanceType"].asString(); + spotPriceTypeObject.ioOptimized = value["IoOptimized"].asString(); + spotPriceTypeObject.timestamp = value["Timestamp"].asString(); + spotPriceTypeObject.networkType = value["NetworkType"].asString(); + spotPriceTypeObject.spotPrice = std::stof(value["SpotPrice"].asString()); + spotPriceTypeObject.originPrice = std::stof(value["OriginPrice"].asString()); + spotPrices_.push_back(spotPriceTypeObject); + } + nextOffset_ = std::stoi(value["NextOffset"].asString()); + currency_ = value["Currency"].asString(); + +} + +std::string DescribeSpotPriceHistoryResult::getCurrency()const +{ + return currency_; +} + +void DescribeSpotPriceHistoryResult::setCurrency(const std::string& currency) +{ + currency_ = currency; +} + +int DescribeSpotPriceHistoryResult::getNextOffset()const +{ + return nextOffset_; +} + +void DescribeSpotPriceHistoryResult::setNextOffset(int nextOffset) +{ + nextOffset_ = nextOffset; +} + diff --git a/ecs/src/model/DescribeTagKeysRequest.cc b/ecs/src/model/DescribeTagKeysRequest.cc new file mode 100644 index 000000000..40ab3212a --- /dev/null +++ b/ecs/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 namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeTagKeysRequest::DescribeTagKeysRequest() : + EcsRequest("DescribeTagKeys") +{} + +DescribeTagKeysRequest::~DescribeTagKeysRequest() +{} + +long DescribeTagKeysRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeTagKeysRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeTagKeysRequest::getResourceId()const +{ + return resourceId_; +} + +void DescribeTagKeysRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setParameter("ResourceId", resourceId); +} + +std::string DescribeTagKeysRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeTagKeysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeTagKeysRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeTagKeysRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int DescribeTagKeysRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeTagKeysRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeTagKeysRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeTagKeysRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeTagKeysRequest::getResourceType()const +{ + return resourceType_; +} + +void DescribeTagKeysRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +int DescribeTagKeysRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeTagKeysRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeTagKeysResult.cc b/ecs/src/model/DescribeTagKeysResult.cc new file mode 100644 index 000000000..f09c2df88 --- /dev/null +++ b/ecs/src/model/DescribeTagKeysResult.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 +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::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 allTagKeys = value["TagKeys"]["TagKey"]; + for (const auto &item : allTagKeys) + tagKeys_.push_back(item.asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeTagKeysResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeTagKeysResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeTagKeysResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeTagKeysResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeTagKeysResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeTagKeysResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + +std::vector DescribeTagKeysResult::getTagKeys()const +{ + return tagKeys_; +} + +void DescribeTagKeysResult::setTagKeys(const std::vector& tagKeys) +{ + tagKeys_ = tagKeys; +} + diff --git a/ecs/src/model/DescribeTagsRequest.cc b/ecs/src/model/DescribeTagsRequest.cc new file mode 100644 index 000000000..90d628bd3 --- /dev/null +++ b/ecs/src/model/DescribeTagsRequest.cc @@ -0,0 +1,226 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeTagsRequest::DescribeTagsRequest() : + EcsRequest("DescribeTags") +{} + +DescribeTagsRequest::~DescribeTagsRequest() +{} + +std::string DescribeTagsRequest::getTag4Value()const +{ + return tag4Value_; +} + +void DescribeTagsRequest::setTag4Value(const std::string& tag4Value) +{ + tag4Value_ = tag4Value; + setParameter("Tag4Value", tag4Value); +} + +long DescribeTagsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeTagsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeTagsRequest::getResourceId()const +{ + return resourceId_; +} + +void DescribeTagsRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setParameter("ResourceId", resourceId); +} + +std::string DescribeTagsRequest::getTag2Key()const +{ + return tag2Key_; +} + +void DescribeTagsRequest::setTag2Key(const std::string& tag2Key) +{ + tag2Key_ = tag2Key; + setParameter("Tag2Key", tag2Key); +} + +std::string DescribeTagsRequest::getTag5Key()const +{ + return tag5Key_; +} + +void DescribeTagsRequest::setTag5Key(const std::string& tag5Key) +{ + tag5Key_ = tag5Key; + setParameter("Tag5Key", tag5Key); +} + +std::string DescribeTagsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeTagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeTagsRequest::getTag3Key()const +{ + return tag3Key_; +} + +void DescribeTagsRequest::setTag3Key(const std::string& tag3Key) +{ + tag3Key_ = tag3Key; + setParameter("Tag3Key", tag3Key); +} + +long DescribeTagsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeTagsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeTagsRequest::getResourceType()const +{ + return resourceType_; +} + +void DescribeTagsRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string DescribeTagsRequest::getTag5Value()const +{ + return tag5Value_; +} + +void DescribeTagsRequest::setTag5Value(const std::string& tag5Value) +{ + tag5Value_ = tag5Value; + setParameter("Tag5Value", tag5Value); +} + +int DescribeTagsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeTagsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeTagsRequest::getTag1Key()const +{ + return tag1Key_; +} + +void DescribeTagsRequest::setTag1Key(const std::string& tag1Key) +{ + tag1Key_ = tag1Key; + setParameter("Tag1Key", tag1Key); +} + +std::string DescribeTagsRequest::getTag1Value()const +{ + return tag1Value_; +} + +void DescribeTagsRequest::setTag1Value(const std::string& tag1Value) +{ + tag1Value_ = tag1Value; + setParameter("Tag1Value", tag1Value); +} + +std::string DescribeTagsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeTagsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeTagsRequest::getTag2Value()const +{ + return tag2Value_; +} + +void DescribeTagsRequest::setTag2Value(const std::string& tag2Value) +{ + tag2Value_ = tag2Value; + setParameter("Tag2Value", tag2Value); +} + +int DescribeTagsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeTagsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeTagsRequest::getTag4Key()const +{ + return tag4Key_; +} + +void DescribeTagsRequest::setTag4Key(const std::string& tag4Key) +{ + tag4Key_ = tag4Key; + setParameter("Tag4Key", tag4Key); +} + +std::string DescribeTagsRequest::getTag3Value()const +{ + return tag3Value_; +} + +void DescribeTagsRequest::setTag3Value(const std::string& tag3Value) +{ + tag3Value_ = tag3Value; + setParameter("Tag3Value", tag3Value); +} + diff --git a/ecs/src/model/DescribeTagsResult.cc b/ecs/src/model/DescribeTagsResult.cc new file mode 100644 index 000000000..89a28c999 --- /dev/null +++ b/ecs/src/model/DescribeTagsResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::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 allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + Tag tagObject; + tagObject.tagKey = value["TagKey"].asString(); + tagObject.tagValue = value["TagValue"].asString(); + auto allResourceTypeCount = value["ResourceTypeCount"]; + for (auto value : allResourceTypeCount) + { + Tag::ResourceTypeCount resourceTypeCountObject; + resourceTypeCountObject.instance = std::stoi(value["Instance"].asString()); + resourceTypeCountObject.disk = std::stoi(value["Disk"].asString()); + resourceTypeCountObject.volume = std::stoi(value["Volume"].asString()); + resourceTypeCountObject.image = std::stoi(value["Image"].asString()); + resourceTypeCountObject.snapshot = std::stoi(value["Snapshot"].asString()); + resourceTypeCountObject.securitygroup = std::stoi(value["Securitygroup"].asString()); + tagObject.resourceTypeCount.push_back(resourceTypeCountObject); + } + tags_.push_back(tagObject); + } + pageSize_ = std::stoi(value["PageSize"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeTagsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeTagsResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeTagsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeTagsResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeTagsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeTagsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeTaskAttributeRequest.cc b/ecs/src/model/DescribeTaskAttributeRequest.cc new file mode 100644 index 000000000..1f360a07c --- /dev/null +++ b/ecs/src/model/DescribeTaskAttributeRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeTaskAttributeRequest::DescribeTaskAttributeRequest() : + EcsRequest("DescribeTaskAttribute") +{} + +DescribeTaskAttributeRequest::~DescribeTaskAttributeRequest() +{} + +long DescribeTaskAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeTaskAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeTaskAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeTaskAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeTaskAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeTaskAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long DescribeTaskAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeTaskAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeTaskAttributeRequest::getTaskId()const +{ + return taskId_; +} + +void DescribeTaskAttributeRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/ecs/src/model/DescribeTaskAttributeResult.cc b/ecs/src/model/DescribeTaskAttributeResult.cc new file mode 100644 index 000000000..4cd60ba14 --- /dev/null +++ b/ecs/src/model/DescribeTaskAttributeResult.cc @@ -0,0 +1,183 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeTaskAttributeResult::DescribeTaskAttributeResult() : + ServiceResult() +{} + +DescribeTaskAttributeResult::DescribeTaskAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTaskAttributeResult::~DescribeTaskAttributeResult() +{} + +void DescribeTaskAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allOperationProgressSet = value["OperationProgressSet"]["OperationProgress"]; + for (auto value : allOperationProgressSet) + { + OperationProgress operationProgressObject; + operationProgressObject.operationStatus = value["OperationStatus"].asString(); + operationProgressObject.errorCode = value["ErrorCode"].asString(); + operationProgressObject.errorMsg = value["ErrorMsg"].asString(); + auto allRelatedItemSet = value["RelatedItemSet"]["RelatedItem"]; + for (auto value : allRelatedItemSet) + { + OperationProgress::RelatedItem relatedItemObject; + relatedItemObject.name = value["Name"].asString(); + relatedItemObject.value = value["Value"].asString(); + operationProgressObject.relatedItemSet.push_back(relatedItemObject); + } + operationProgressSet_.push_back(operationProgressObject); + } + taskId_ = value["TaskId"].asString(); + regionId_ = value["RegionId"].asString(); + taskAction_ = value["TaskAction"].asString(); + taskStatus_ = value["TaskStatus"].asString(); + taskProcess_ = value["TaskProcess"].asString(); + supportCancel_ = value["SupportCancel"].asString(); + totalCount_ = std::stoi(value["TotalCount"].asString()); + successCount_ = std::stoi(value["SuccessCount"].asString()); + failedCount_ = std::stoi(value["FailedCount"].asString()); + creationTime_ = value["CreationTime"].asString(); + finishedTime_ = value["FinishedTime"].asString(); + +} + +int DescribeTaskAttributeResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeTaskAttributeResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +std::string DescribeTaskAttributeResult::getTaskId()const +{ + return taskId_; +} + +void DescribeTaskAttributeResult::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; +} + +std::string DescribeTaskAttributeResult::getTaskProcess()const +{ + return taskProcess_; +} + +void DescribeTaskAttributeResult::setTaskProcess(const std::string& taskProcess) +{ + taskProcess_ = taskProcess; +} + +std::string DescribeTaskAttributeResult::getTaskAction()const +{ + return taskAction_; +} + +void DescribeTaskAttributeResult::setTaskAction(const std::string& taskAction) +{ + taskAction_ = taskAction; +} + +std::string DescribeTaskAttributeResult::getSupportCancel()const +{ + return supportCancel_; +} + +void DescribeTaskAttributeResult::setSupportCancel(const std::string& supportCancel) +{ + supportCancel_ = supportCancel; +} + +std::string DescribeTaskAttributeResult::getCreationTime()const +{ + return creationTime_; +} + +void DescribeTaskAttributeResult::setCreationTime(const std::string& creationTime) +{ + creationTime_ = creationTime; +} + +int DescribeTaskAttributeResult::getFailedCount()const +{ + return failedCount_; +} + +void DescribeTaskAttributeResult::setFailedCount(int failedCount) +{ + failedCount_ = failedCount; +} + +std::string DescribeTaskAttributeResult::getRegionId()const +{ + return regionId_; +} + +void DescribeTaskAttributeResult::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; +} + +std::string DescribeTaskAttributeResult::getTaskStatus()const +{ + return taskStatus_; +} + +void DescribeTaskAttributeResult::setTaskStatus(const std::string& taskStatus) +{ + taskStatus_ = taskStatus; +} + +int DescribeTaskAttributeResult::getSuccessCount()const +{ + return successCount_; +} + +void DescribeTaskAttributeResult::setSuccessCount(int successCount) +{ + successCount_ = successCount; +} + +std::string DescribeTaskAttributeResult::getFinishedTime()const +{ + return finishedTime_; +} + +void DescribeTaskAttributeResult::setFinishedTime(const std::string& finishedTime) +{ + finishedTime_ = finishedTime; +} + diff --git a/ecs/src/model/DescribeTasksRequest.cc b/ecs/src/model/DescribeTasksRequest.cc new file mode 100644 index 000000000..159a4417f --- /dev/null +++ b/ecs/src/model/DescribeTasksRequest.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeTasksRequest::DescribeTasksRequest() : + EcsRequest("DescribeTasks") +{} + +DescribeTasksRequest::~DescribeTasksRequest() +{} + +long DescribeTasksRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeTasksRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeTasksRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeTasksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeTasksRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeTasksRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeTasksRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeTasksRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeTasksRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeTasksRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long DescribeTasksRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeTasksRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeTasksRequest::getTaskIds()const +{ + return taskIds_; +} + +void DescribeTasksRequest::setTaskIds(const std::string& taskIds) +{ + taskIds_ = taskIds; + setParameter("TaskIds", taskIds); +} + +int DescribeTasksRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeTasksRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeTasksRequest::getTaskStatus()const +{ + return taskStatus_; +} + +void DescribeTasksRequest::setTaskStatus(const std::string& taskStatus) +{ + taskStatus_ = taskStatus; + setParameter("TaskStatus", taskStatus); +} + +std::string DescribeTasksRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeTasksRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int DescribeTasksRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeTasksRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeTasksRequest::getTaskAction()const +{ + return taskAction_; +} + +void DescribeTasksRequest::setTaskAction(const std::string& taskAction) +{ + taskAction_ = taskAction; + setParameter("TaskAction", taskAction); +} + diff --git a/ecs/src/model/DescribeTasksResult.cc b/ecs/src/model/DescribeTasksResult.cc new file mode 100644 index 000000000..3a4fefc63 --- /dev/null +++ b/ecs/src/model/DescribeTasksResult.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeTasksResult::DescribeTasksResult() : + ServiceResult() +{} + +DescribeTasksResult::DescribeTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTasksResult::~DescribeTasksResult() +{} + +void DescribeTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTaskSet = value["TaskSet"]["Task"]; + for (auto value : allTaskSet) + { + Task taskObject; + taskObject.taskId = value["TaskId"].asString(); + taskObject.taskAction = value["TaskAction"].asString(); + taskObject.taskStatus = value["TaskStatus"].asString(); + taskObject.supportCancel = value["SupportCancel"].asString(); + taskObject.creationTime = value["CreationTime"].asString(); + taskObject.finishedTime = value["FinishedTime"].asString(); + taskSet_.push_back(taskObject); + } + regionId_ = value["RegionId"].asString(); + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeTasksResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeTasksResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeTasksResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeTasksResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeTasksResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeTasksResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + +std::string DescribeTasksResult::getRegionId()const +{ + return regionId_; +} + +void DescribeTasksResult::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; +} + diff --git a/ecs/src/model/DescribeUserBusinessBehaviorRequest.cc b/ecs/src/model/DescribeUserBusinessBehaviorRequest.cc new file mode 100644 index 000000000..230e3faa1 --- /dev/null +++ b/ecs/src/model/DescribeUserBusinessBehaviorRequest.cc @@ -0,0 +1,292 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeUserBusinessBehaviorRequest::DescribeUserBusinessBehaviorRequest() : + EcsRequest("DescribeUserBusinessBehavior") +{} + +DescribeUserBusinessBehaviorRequest::~DescribeUserBusinessBehaviorRequest() +{} + +long DescribeUserBusinessBehaviorRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeUserBusinessBehaviorRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DescribeUserBusinessBehaviorRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DescribeUserBusinessBehaviorRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DescribeUserBusinessBehaviorRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DescribeUserBusinessBehaviorRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DescribeUserBusinessBehaviorRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DescribeUserBusinessBehaviorRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DescribeUserBusinessBehaviorRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DescribeUserBusinessBehaviorRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DescribeUserBusinessBehaviorRequest::getCallerType()const +{ + return callerType_; +} + +void DescribeUserBusinessBehaviorRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DescribeUserBusinessBehaviorRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeUserBusinessBehaviorRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeUserBusinessBehaviorRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeUserBusinessBehaviorRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeUserBusinessBehaviorRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeUserBusinessBehaviorRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DescribeUserBusinessBehaviorRequest::getEnable()const +{ + return enable_; +} + +void DescribeUserBusinessBehaviorRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DescribeUserBusinessBehaviorRequest::getRequestContent()const +{ + return requestContent_; +} + +void DescribeUserBusinessBehaviorRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DescribeUserBusinessBehaviorRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DescribeUserBusinessBehaviorRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DescribeUserBusinessBehaviorRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DescribeUserBusinessBehaviorRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DescribeUserBusinessBehaviorRequest::getCallerUid()const +{ + return callerUid_; +} + +void DescribeUserBusinessBehaviorRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DescribeUserBusinessBehaviorRequest::getApp_ip()const +{ + return app_ip_; +} + +void DescribeUserBusinessBehaviorRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DescribeUserBusinessBehaviorRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeUserBusinessBehaviorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeUserBusinessBehaviorRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeUserBusinessBehaviorRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeUserBusinessBehaviorRequest::getCallerBid()const +{ + return callerBid_; +} + +void DescribeUserBusinessBehaviorRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DescribeUserBusinessBehaviorRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeUserBusinessBehaviorRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool DescribeUserBusinessBehaviorRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DescribeUserBusinessBehaviorRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DescribeUserBusinessBehaviorRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DescribeUserBusinessBehaviorRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DescribeUserBusinessBehaviorRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DescribeUserBusinessBehaviorRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DescribeUserBusinessBehaviorRequest::getRequestId()const +{ + return requestId_; +} + +void DescribeUserBusinessBehaviorRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DescribeUserBusinessBehaviorRequest::getStatusKey()const +{ + return statusKey_; +} + +void DescribeUserBusinessBehaviorRequest::setStatusKey(const std::string& statusKey) +{ + statusKey_ = statusKey; + setParameter("StatusKey", statusKey); +} + diff --git a/ecs/src/model/DescribeUserBusinessBehaviorResult.cc b/ecs/src/model/DescribeUserBusinessBehaviorResult.cc new file mode 100644 index 000000000..d1939f149 --- /dev/null +++ b/ecs/src/model/DescribeUserBusinessBehaviorResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeUserBusinessBehaviorResult::DescribeUserBusinessBehaviorResult() : + ServiceResult() +{} + +DescribeUserBusinessBehaviorResult::DescribeUserBusinessBehaviorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserBusinessBehaviorResult::~DescribeUserBusinessBehaviorResult() +{} + +void DescribeUserBusinessBehaviorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + statusValue_ = value["StatusValue"].asString(); + +} + +std::string DescribeUserBusinessBehaviorResult::getStatusValue()const +{ + return statusValue_; +} + +void DescribeUserBusinessBehaviorResult::setStatusValue(const std::string& statusValue) +{ + statusValue_ = statusValue; +} + diff --git a/ecs/src/model/DescribeUserDataRequest.cc b/ecs/src/model/DescribeUserDataRequest.cc new file mode 100644 index 000000000..2127be72f --- /dev/null +++ b/ecs/src/model/DescribeUserDataRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeUserDataRequest::DescribeUserDataRequest() : + EcsRequest("DescribeUserData") +{} + +DescribeUserDataRequest::~DescribeUserDataRequest() +{} + +long DescribeUserDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeUserDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeUserDataRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeUserDataRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeUserDataRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeUserDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeUserDataRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeUserDataRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +long DescribeUserDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeUserDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DescribeUserDataResult.cc b/ecs/src/model/DescribeUserDataResult.cc new file mode 100644 index 000000000..a5e236085 --- /dev/null +++ b/ecs/src/model/DescribeUserDataResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeUserDataResult::DescribeUserDataResult() : + ServiceResult() +{} + +DescribeUserDataResult::DescribeUserDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserDataResult::~DescribeUserDataResult() +{} + +void DescribeUserDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + regionId_ = value["RegionId"].asString(); + instanceId_ = value["InstanceId"].asString(); + userData_ = value["UserData"].asString(); + +} + +std::string DescribeUserDataResult::getInstanceId()const +{ + return instanceId_; +} + +void DescribeUserDataResult::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; +} + +std::string DescribeUserDataResult::getUserData()const +{ + return userData_; +} + +void DescribeUserDataResult::setUserData(const std::string& userData) +{ + userData_ = userData; +} + +std::string DescribeUserDataResult::getRegionId()const +{ + return regionId_; +} + +void DescribeUserDataResult::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; +} + diff --git a/ecs/src/model/DescribeVRoutersRequest.cc b/ecs/src/model/DescribeVRoutersRequest.cc new file mode 100644 index 000000000..54e8e58d9 --- /dev/null +++ b/ecs/src/model/DescribeVRoutersRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeVRoutersRequest::DescribeVRoutersRequest() : + EcsRequest("DescribeVRouters") +{} + +DescribeVRoutersRequest::~DescribeVRoutersRequest() +{} + +long DescribeVRoutersRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVRoutersRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVRoutersRequest::getVRouterId()const +{ + return vRouterId_; +} + +void DescribeVRoutersRequest::setVRouterId(const std::string& vRouterId) +{ + vRouterId_ = vRouterId; + setParameter("VRouterId", vRouterId); +} + +std::string DescribeVRoutersRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVRoutersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVRoutersRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVRoutersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeVRoutersRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVRoutersRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeVRoutersRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVRoutersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeVRoutersRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVRoutersRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeVRoutersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVRoutersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeVRoutersResult.cc b/ecs/src/model/DescribeVRoutersResult.cc new file mode 100644 index 000000000..75403c97b --- /dev/null +++ b/ecs/src/model/DescribeVRoutersResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeVRoutersResult::DescribeVRoutersResult() : + ServiceResult() +{} + +DescribeVRoutersResult::DescribeVRoutersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVRoutersResult::~DescribeVRoutersResult() +{} + +void DescribeVRoutersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVRouters = value["VRouters"]["VRouter"]; + for (auto value : allVRouters) + { + VRouter vRouterObject; + vRouterObject.regionId = value["RegionId"].asString(); + vRouterObject.vpcId = value["VpcId"].asString(); + vRouterObject.vRouterName = value["VRouterName"].asString(); + vRouterObject.description = value["Description"].asString(); + vRouterObject.vRouterId = value["VRouterId"].asString(); + vRouterObject.creationTime = value["CreationTime"].asString(); + auto allRouteTableIds = value["RouteTableIds"]["RouteTableId"]; + for (auto value : allRouteTableIds) + vRouterObject.routeTableIds.push_back(value.asString()); + vRouters_.push_back(vRouterObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeVRoutersResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeVRoutersResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeVRoutersResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeVRoutersResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeVRoutersResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVRoutersResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeVSwitchesRequest.cc b/ecs/src/model/DescribeVSwitchesRequest.cc new file mode 100644 index 000000000..ce98c13f8 --- /dev/null +++ b/ecs/src/model/DescribeVSwitchesRequest.cc @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeVSwitchesRequest::DescribeVSwitchesRequest() : + EcsRequest("DescribeVSwitches") +{} + +DescribeVSwitchesRequest::~DescribeVSwitchesRequest() +{} + +std::string DescribeVSwitchesRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void DescribeVSwitchesRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +long DescribeVSwitchesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVSwitchesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVSwitchesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVSwitchesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVSwitchesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVSwitchesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeVSwitchesRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeVSwitchesRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string DescribeVSwitchesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVSwitchesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeVSwitchesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVSwitchesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeVSwitchesRequest::getZoneId()const +{ + return zoneId_; +} + +void DescribeVSwitchesRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +bool DescribeVSwitchesRequest::getIsDefault()const +{ + return isDefault_; +} + +void DescribeVSwitchesRequest::setIsDefault(bool isDefault) +{ + isDefault_ = isDefault; + setParameter("IsDefault", std::to_string(isDefault)); +} + +long DescribeVSwitchesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVSwitchesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeVSwitchesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVSwitchesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeVSwitchesResult.cc b/ecs/src/model/DescribeVSwitchesResult.cc new file mode 100644 index 000000000..c90e4a96a --- /dev/null +++ b/ecs/src/model/DescribeVSwitchesResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeVSwitchesResult::DescribeVSwitchesResult() : + ServiceResult() +{} + +DescribeVSwitchesResult::DescribeVSwitchesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVSwitchesResult::~DescribeVSwitchesResult() +{} + +void DescribeVSwitchesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVSwitches = value["VSwitches"]["VSwitch"]; + for (auto value : allVSwitches) + { + VSwitch vSwitchObject; + vSwitchObject.vSwitchId = value["VSwitchId"].asString(); + vSwitchObject.vpcId = value["VpcId"].asString(); + vSwitchObject.status = value["Status"].asString(); + vSwitchObject.cidrBlock = value["CidrBlock"].asString(); + vSwitchObject.zoneId = value["ZoneId"].asString(); + vSwitchObject.availableIpAddressCount = std::stol(value["AvailableIpAddressCount"].asString()); + vSwitchObject.description = value["Description"].asString(); + vSwitchObject.vSwitchName = value["VSwitchName"].asString(); + vSwitchObject.creationTime = value["CreationTime"].asString(); + vSwitchObject.isDefault = std::stoi(value["IsDefault"].asString()); + vSwitches_.push_back(vSwitchObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeVSwitchesResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeVSwitchesResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeVSwitchesResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeVSwitchesResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeVSwitchesResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVSwitchesResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc b/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc new file mode 100644 index 000000000..7669d9ace --- /dev/null +++ b/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeVirtualBorderRoutersForPhysicalConnectionRequest::DescribeVirtualBorderRoutersForPhysicalConnectionRequest() : + EcsRequest("DescribeVirtualBorderRoutersForPhysicalConnection") +{} + +DescribeVirtualBorderRoutersForPhysicalConnectionRequest::~DescribeVirtualBorderRoutersForPhysicalConnectionRequest() +{} + +std::vector DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getFilter()const +{ + return filter_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setFilter(const std::vector& filter) +{ + filter_ = filter; + int i = 0; + for(int i = 0; i!= filter.size(); i++) { + auto obj = filter.at(i); + std::string str ="Filter."+ std::to_string(i); + setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + } +} + +long DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + +int DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc b/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc new file mode 100644 index 000000000..197c0594e --- /dev/null +++ b/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeVirtualBorderRoutersForPhysicalConnectionResult::DescribeVirtualBorderRoutersForPhysicalConnectionResult() : + ServiceResult() +{} + +DescribeVirtualBorderRoutersForPhysicalConnectionResult::DescribeVirtualBorderRoutersForPhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVirtualBorderRoutersForPhysicalConnectionResult::~DescribeVirtualBorderRoutersForPhysicalConnectionResult() +{} + +void DescribeVirtualBorderRoutersForPhysicalConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVirtualBorderRouterForPhysicalConnectionSet = value["VirtualBorderRouterForPhysicalConnectionSet"]["VirtualBorderRouterForPhysicalConnectionType"]; + for (auto value : allVirtualBorderRouterForPhysicalConnectionSet) + { + VirtualBorderRouterForPhysicalConnectionType virtualBorderRouterForPhysicalConnectionTypeObject; + virtualBorderRouterForPhysicalConnectionTypeObject.vbrId = value["VbrId"].asString(); + virtualBorderRouterForPhysicalConnectionTypeObject.vbrOwnerUid = std::stol(value["VbrOwnerUid"].asString()); + virtualBorderRouterForPhysicalConnectionTypeObject.creationTime = value["CreationTime"].asString(); + virtualBorderRouterForPhysicalConnectionTypeObject.activationTime = value["ActivationTime"].asString(); + virtualBorderRouterForPhysicalConnectionTypeObject.terminationTime = value["TerminationTime"].asString(); + virtualBorderRouterForPhysicalConnectionTypeObject.recoveryTime = value["RecoveryTime"].asString(); + virtualBorderRouterForPhysicalConnectionTypeObject.vlanId = std::stoi(value["VlanId"].asString()); + virtualBorderRouterForPhysicalConnectionTypeObject.circuitCode = value["CircuitCode"].asString(); + virtualBorderRouterForPhysicalConnectionSet_.push_back(virtualBorderRouterForPhysicalConnectionTypeObject); + } + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeVirtualBorderRoutersForPhysicalConnectionResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeVirtualBorderRoutersForPhysicalConnectionResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeVirtualBorderRoutersForPhysicalConnectionResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeVirtualBorderRoutersRequest.cc b/ecs/src/model/DescribeVirtualBorderRoutersRequest.cc new file mode 100644 index 000000000..3039cadbb --- /dev/null +++ b/ecs/src/model/DescribeVirtualBorderRoutersRequest.cc @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeVirtualBorderRoutersRequest::DescribeVirtualBorderRoutersRequest() : + EcsRequest("DescribeVirtualBorderRouters") +{} + +DescribeVirtualBorderRoutersRequest::~DescribeVirtualBorderRoutersRequest() +{} + +std::vector DescribeVirtualBorderRoutersRequest::getFilter()const +{ + return filter_; +} + +void DescribeVirtualBorderRoutersRequest::setFilter(const std::vector& filter) +{ + filter_ = filter; + int i = 0; + for(int i = 0; i!= filter.size(); i++) { + auto obj = filter.at(i); + std::string str ="Filter."+ std::to_string(i); + setParameter(str + ".Key", obj.key); + for(int i = 0; i!= obj.value.size(); i++) setParameter(str + ".Value."+ std::to_string(i), obj.value.at(i)); + } +} + +long DescribeVirtualBorderRoutersRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVirtualBorderRoutersRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVirtualBorderRoutersRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVirtualBorderRoutersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVirtualBorderRoutersRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVirtualBorderRoutersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int DescribeVirtualBorderRoutersRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVirtualBorderRoutersRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +long DescribeVirtualBorderRoutersRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVirtualBorderRoutersRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeVirtualBorderRoutersRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVirtualBorderRoutersRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeVirtualBorderRoutersResult.cc b/ecs/src/model/DescribeVirtualBorderRoutersResult.cc new file mode 100644 index 000000000..e4e053164 --- /dev/null +++ b/ecs/src/model/DescribeVirtualBorderRoutersResult.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeVirtualBorderRoutersResult::DescribeVirtualBorderRoutersResult() : + ServiceResult() +{} + +DescribeVirtualBorderRoutersResult::DescribeVirtualBorderRoutersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVirtualBorderRoutersResult::~DescribeVirtualBorderRoutersResult() +{} + +void DescribeVirtualBorderRoutersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVirtualBorderRouterSet = value["VirtualBorderRouterSet"]["VirtualBorderRouterType"]; + for (auto value : allVirtualBorderRouterSet) + { + VirtualBorderRouterType virtualBorderRouterTypeObject; + virtualBorderRouterTypeObject.vbrId = value["VbrId"].asString(); + virtualBorderRouterTypeObject.creationTime = value["CreationTime"].asString(); + virtualBorderRouterTypeObject.activationTime = value["ActivationTime"].asString(); + virtualBorderRouterTypeObject.terminationTime = value["TerminationTime"].asString(); + virtualBorderRouterTypeObject.recoveryTime = value["RecoveryTime"].asString(); + virtualBorderRouterTypeObject.status = value["Status"].asString(); + virtualBorderRouterTypeObject.vlanId = std::stoi(value["VlanId"].asString()); + virtualBorderRouterTypeObject.circuitCode = value["CircuitCode"].asString(); + virtualBorderRouterTypeObject.routeTableId = value["RouteTableId"].asString(); + virtualBorderRouterTypeObject.vlanInterfaceId = value["VlanInterfaceId"].asString(); + virtualBorderRouterTypeObject.localGatewayIp = value["LocalGatewayIp"].asString(); + virtualBorderRouterTypeObject.peerGatewayIp = value["PeerGatewayIp"].asString(); + virtualBorderRouterTypeObject.peeringSubnetMask = value["PeeringSubnetMask"].asString(); + virtualBorderRouterTypeObject.physicalConnectionId = value["PhysicalConnectionId"].asString(); + virtualBorderRouterTypeObject.physicalConnectionStatus = value["PhysicalConnectionStatus"].asString(); + virtualBorderRouterTypeObject.physicalConnectionBusinessStatus = value["PhysicalConnectionBusinessStatus"].asString(); + virtualBorderRouterTypeObject.physicalConnectionOwnerUid = value["PhysicalConnectionOwnerUid"].asString(); + virtualBorderRouterTypeObject.accessPointId = value["AccessPointId"].asString(); + virtualBorderRouterTypeObject.name = value["Name"].asString(); + virtualBorderRouterTypeObject.description = value["Description"].asString(); + virtualBorderRouterSet_.push_back(virtualBorderRouterTypeObject); + } + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeVirtualBorderRoutersResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeVirtualBorderRoutersResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeVirtualBorderRoutersResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeVirtualBorderRoutersResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeVirtualBorderRoutersResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVirtualBorderRoutersResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeVpcsRequest.cc b/ecs/src/model/DescribeVpcsRequest.cc new file mode 100644 index 000000000..577805191 --- /dev/null +++ b/ecs/src/model/DescribeVpcsRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeVpcsRequest::DescribeVpcsRequest() : + EcsRequest("DescribeVpcs") +{} + +DescribeVpcsRequest::~DescribeVpcsRequest() +{} + +long DescribeVpcsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeVpcsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeVpcsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeVpcsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeVpcsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeVpcsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeVpcsRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeVpcsRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string DescribeVpcsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeVpcsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int DescribeVpcsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeVpcsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +bool DescribeVpcsRequest::getIsDefault()const +{ + return isDefault_; +} + +void DescribeVpcsRequest::setIsDefault(bool isDefault) +{ + isDefault_ = isDefault; + setParameter("IsDefault", std::to_string(isDefault)); +} + +long DescribeVpcsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeVpcsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int DescribeVpcsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVpcsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + diff --git a/ecs/src/model/DescribeVpcsResult.cc b/ecs/src/model/DescribeVpcsResult.cc new file mode 100644 index 000000000..be0a6f503 --- /dev/null +++ b/ecs/src/model/DescribeVpcsResult.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeVpcsResult::DescribeVpcsResult() : + ServiceResult() +{} + +DescribeVpcsResult::DescribeVpcsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpcsResult::~DescribeVpcsResult() +{} + +void DescribeVpcsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVpcs = value["Vpcs"]["Vpc"]; + for (auto value : allVpcs) + { + Vpc vpcObject; + vpcObject.vpcId = value["VpcId"].asString(); + vpcObject.regionId = value["RegionId"].asString(); + vpcObject.status = value["Status"].asString(); + vpcObject.vpcName = value["VpcName"].asString(); + vpcObject.creationTime = value["CreationTime"].asString(); + vpcObject.cidrBlock = value["CidrBlock"].asString(); + vpcObject.vRouterId = value["VRouterId"].asString(); + vpcObject.description = value["Description"].asString(); + vpcObject.isDefault = std::stoi(value["IsDefault"].asString()); + auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"]; + for (auto value : allVSwitchIds) + vpcObject.vSwitchIds.push_back(value.asString()); + auto allUserCidrs = value["UserCidrs"]["UserCidr"]; + for (auto value : allUserCidrs) + vpcObject.userCidrs.push_back(value.asString()); + vpcs_.push_back(vpcObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + pageNumber_ = std::stoi(value["PageNumber"].asString()); + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeVpcsResult::getTotalCount()const +{ + return totalCount_; +} + +void DescribeVpcsResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +int DescribeVpcsResult::getPageSize()const +{ + return pageSize_; +} + +void DescribeVpcsResult::setPageSize(int pageSize) +{ + pageSize_ = pageSize; +} + +int DescribeVpcsResult::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeVpcsResult::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; +} + diff --git a/ecs/src/model/DescribeZonesRequest.cc b/ecs/src/model/DescribeZonesRequest.cc new file mode 100644 index 000000000..db9a9fc1d --- /dev/null +++ b/ecs/src/model/DescribeZonesRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeZonesRequest::DescribeZonesRequest() : + EcsRequest("DescribeZones") +{} + +DescribeZonesRequest::~DescribeZonesRequest() +{} + +std::string DescribeZonesRequest::getSpotStrategy()const +{ + return spotStrategy_; +} + +void DescribeZonesRequest::setSpotStrategy(const std::string& spotStrategy) +{ + spotStrategy_ = spotStrategy; + setParameter("SpotStrategy", spotStrategy); +} + +long DescribeZonesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeZonesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeZonesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeZonesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeZonesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeZonesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeZonesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeZonesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeZonesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeZonesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeZonesRequest::getInstanceChargeType()const +{ + return instanceChargeType_; +} + +void DescribeZonesRequest::setInstanceChargeType(const std::string& instanceChargeType) +{ + instanceChargeType_ = instanceChargeType; + setParameter("InstanceChargeType", instanceChargeType); +} + +bool DescribeZonesRequest::getVerbose()const +{ + return verbose_; +} + +void DescribeZonesRequest::setVerbose(bool verbose) +{ + verbose_ = verbose; + setParameter("Verbose", std::to_string(verbose)); +} + diff --git a/ecs/src/model/DescribeZonesResult.cc b/ecs/src/model/DescribeZonesResult.cc new file mode 100644 index 000000000..bc42e6ed0 --- /dev/null +++ b/ecs/src/model/DescribeZonesResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DescribeZonesResult::DescribeZonesResult() : + ServiceResult() +{} + +DescribeZonesResult::DescribeZonesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeZonesResult::~DescribeZonesResult() +{} + +void DescribeZonesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allZones = value["Zones"]["Zone"]; + for (auto value : allZones) + { + Zone zoneObject; + zoneObject.zoneId = value["ZoneId"].asString(); + zoneObject.localName = value["LocalName"].asString(); + auto allAvailableResources = value["AvailableResources"]["ResourcesInfo"]; + for (auto value : allAvailableResources) + { + Zone::ResourcesInfo resourcesInfoObject; + resourcesInfoObject.ioOptimized = std::stoi(value["IoOptimized"].asString()); + auto allSystemDiskCategories = value["SystemDiskCategories"]["supportedSystemDiskCategory"]; + for (auto value : allSystemDiskCategories) + resourcesInfoObject.systemDiskCategories.push_back(value.asString()); + auto allDataDiskCategories = value["DataDiskCategories"]["supportedDataDiskCategory"]; + for (auto value : allDataDiskCategories) + resourcesInfoObject.dataDiskCategories.push_back(value.asString()); + auto allNetworkTypes = value["NetworkTypes"]["supportedNetworkCategory"]; + for (auto value : allNetworkTypes) + resourcesInfoObject.networkTypes.push_back(value.asString()); + auto allInstanceTypes = value["InstanceTypes"]["supportedInstanceType"]; + for (auto value : allInstanceTypes) + resourcesInfoObject.instanceTypes.push_back(value.asString()); + auto allInstanceTypeFamilies = value["InstanceTypeFamilies"]["supportedInstanceTypeFamily"]; + for (auto value : allInstanceTypeFamilies) + resourcesInfoObject.instanceTypeFamilies.push_back(value.asString()); + auto allInstanceGenerations = value["InstanceGenerations"]["supportedInstanceGeneration"]; + for (auto value : allInstanceGenerations) + resourcesInfoObject.instanceGenerations.push_back(value.asString()); + zoneObject.availableResources.push_back(resourcesInfoObject); + } + auto allAvailableResourceCreation = value["AvailableResourceCreation"]["ResourceTypes"]; + for (auto value : allAvailableResourceCreation) + zoneObject.availableResourceCreation.push_back(value.asString()); + auto allAvailableDiskCategories = value["AvailableDiskCategories"]["DiskCategories"]; + for (auto value : allAvailableDiskCategories) + zoneObject.availableDiskCategories.push_back(value.asString()); + auto allAvailableInstanceTypes = value["AvailableInstanceTypes"]["InstanceTypes"]; + for (auto value : allAvailableInstanceTypes) + zoneObject.availableInstanceTypes.push_back(value.asString()); + auto allAvailableVolumeCategories = value["AvailableVolumeCategories"]["VolumeCategories"]; + for (auto value : allAvailableVolumeCategories) + zoneObject.availableVolumeCategories.push_back(value.asString()); + zones_.push_back(zoneObject); + } + +} + diff --git a/ecs/src/model/DetachClassicLinkVpcRequest.cc b/ecs/src/model/DetachClassicLinkVpcRequest.cc new file mode 100644 index 000000000..e1a465102 --- /dev/null +++ b/ecs/src/model/DetachClassicLinkVpcRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DetachClassicLinkVpcRequest::DetachClassicLinkVpcRequest() : + EcsRequest("DetachClassicLinkVpc") +{} + +DetachClassicLinkVpcRequest::~DetachClassicLinkVpcRequest() +{} + +long DetachClassicLinkVpcRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DetachClassicLinkVpcRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DetachClassicLinkVpcRequest::getInstanceId()const +{ + return instanceId_; +} + +void DetachClassicLinkVpcRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DetachClassicLinkVpcRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DetachClassicLinkVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DetachClassicLinkVpcRequest::getRegionId()const +{ + return regionId_; +} + +void DetachClassicLinkVpcRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DetachClassicLinkVpcRequest::getVpcId()const +{ + return vpcId_; +} + +void DetachClassicLinkVpcRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +long DetachClassicLinkVpcRequest::getOwnerId()const +{ + return ownerId_; +} + +void DetachClassicLinkVpcRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DetachClassicLinkVpcResult.cc b/ecs/src/model/DetachClassicLinkVpcResult.cc new file mode 100644 index 000000000..2902cbb46 --- /dev/null +++ b/ecs/src/model/DetachClassicLinkVpcResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DetachClassicLinkVpcResult::DetachClassicLinkVpcResult() : + ServiceResult() +{} + +DetachClassicLinkVpcResult::DetachClassicLinkVpcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachClassicLinkVpcResult::~DetachClassicLinkVpcResult() +{} + +void DetachClassicLinkVpcResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DetachDiskRequest.cc b/ecs/src/model/DetachDiskRequest.cc new file mode 100644 index 000000000..52e914801 --- /dev/null +++ b/ecs/src/model/DetachDiskRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DetachDiskRequest::DetachDiskRequest() : + EcsRequest("DetachDisk") +{} + +DetachDiskRequest::~DetachDiskRequest() +{} + +long DetachDiskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DetachDiskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DetachDiskRequest::getInstanceId()const +{ + return instanceId_; +} + +void DetachDiskRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DetachDiskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DetachDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DetachDiskRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DetachDiskRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DetachDiskRequest::getDiskId()const +{ + return diskId_; +} + +void DetachDiskRequest::setDiskId(const std::string& diskId) +{ + diskId_ = diskId; + setParameter("DiskId", diskId); +} + +long DetachDiskRequest::getOwnerId()const +{ + return ownerId_; +} + +void DetachDiskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DetachDiskResult.cc b/ecs/src/model/DetachDiskResult.cc new file mode 100644 index 000000000..6a0472371 --- /dev/null +++ b/ecs/src/model/DetachDiskResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DetachDiskResult::DetachDiskResult() : + ServiceResult() +{} + +DetachDiskResult::DetachDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachDiskResult::~DetachDiskResult() +{} + +void DetachDiskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/DetachInstanceRamRoleRequest.cc b/ecs/src/model/DetachInstanceRamRoleRequest.cc new file mode 100644 index 000000000..a777ca23d --- /dev/null +++ b/ecs/src/model/DetachInstanceRamRoleRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DetachInstanceRamRoleRequest::DetachInstanceRamRoleRequest() : + EcsRequest("DetachInstanceRamRole") +{} + +DetachInstanceRamRoleRequest::~DetachInstanceRamRoleRequest() +{} + +long DetachInstanceRamRoleRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DetachInstanceRamRoleRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DetachInstanceRamRoleRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DetachInstanceRamRoleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DetachInstanceRamRoleRequest::getRegionId()const +{ + return regionId_; +} + +void DetachInstanceRamRoleRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DetachInstanceRamRoleRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void DetachInstanceRamRoleRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setParameter("InstanceIds", instanceIds); +} + +std::string DetachInstanceRamRoleRequest::getRamRoleName()const +{ + return ramRoleName_; +} + +void DetachInstanceRamRoleRequest::setRamRoleName(const std::string& ramRoleName) +{ + ramRoleName_ = ramRoleName; + setParameter("RamRoleName", ramRoleName); +} + +long DetachInstanceRamRoleRequest::getOwnerId()const +{ + return ownerId_; +} + +void DetachInstanceRamRoleRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DetachInstanceRamRoleResult.cc b/ecs/src/model/DetachInstanceRamRoleResult.cc new file mode 100644 index 000000000..aa74bf24c --- /dev/null +++ b/ecs/src/model/DetachInstanceRamRoleResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DetachInstanceRamRoleResult::DetachInstanceRamRoleResult() : + ServiceResult() +{} + +DetachInstanceRamRoleResult::DetachInstanceRamRoleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachInstanceRamRoleResult::~DetachInstanceRamRoleResult() +{} + +void DetachInstanceRamRoleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDetachInstanceRamRoleResults = value["DetachInstanceRamRoleResults"]["DetachInstanceRamRoleResult"]; + for (auto value : allDetachInstanceRamRoleResults) + { + Result detachInstanceRamRoleResultObject; + detachInstanceRamRoleResultObject.instanceId = value["InstanceId"].asString(); + detachInstanceRamRoleResultObject.success = std::stoi(value["Success"].asString()); + detachInstanceRamRoleResultObject.code = value["Code"].asString(); + detachInstanceRamRoleResultObject.message = value["Message"].asString(); + auto allInstanceRamRoleSets = value["InstanceRamRoleSets"]["InstanceRamRoleSet"]; + for (auto value : allInstanceRamRoleSets) + { + Result::InstanceRamRoleSet instanceRamRoleSetObject; + instanceRamRoleSetObject.instanceId = value["InstanceId"].asString(); + instanceRamRoleSetObject.ramRoleName = value["RamRoleName"].asString(); + detachInstanceRamRoleResultObject.instanceRamRoleSets.push_back(instanceRamRoleSetObject); + } + detachInstanceRamRoleResults_.push_back(detachInstanceRamRoleResultObject); + } + totalCount_ = std::stoi(value["TotalCount"].asString()); + failCount_ = std::stoi(value["FailCount"].asString()); + ramRoleName_ = value["RamRoleName"].asString(); + +} + +int DetachInstanceRamRoleResult::getTotalCount()const +{ + return totalCount_; +} + +void DetachInstanceRamRoleResult::setTotalCount(int totalCount) +{ + totalCount_ = totalCount; +} + +std::string DetachInstanceRamRoleResult::getRamRoleName()const +{ + return ramRoleName_; +} + +void DetachInstanceRamRoleResult::setRamRoleName(const std::string& ramRoleName) +{ + ramRoleName_ = ramRoleName; +} + +int DetachInstanceRamRoleResult::getFailCount()const +{ + return failCount_; +} + +void DetachInstanceRamRoleResult::setFailCount(int failCount) +{ + failCount_ = failCount; +} + diff --git a/ecs/src/model/DetachKeyPairRequest.cc b/ecs/src/model/DetachKeyPairRequest.cc new file mode 100644 index 000000000..29d0dc9d4 --- /dev/null +++ b/ecs/src/model/DetachKeyPairRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DetachKeyPairRequest::DetachKeyPairRequest() : + EcsRequest("DetachKeyPair") +{} + +DetachKeyPairRequest::~DetachKeyPairRequest() +{} + +long DetachKeyPairRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DetachKeyPairRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DetachKeyPairRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DetachKeyPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DetachKeyPairRequest::getRegionId()const +{ + return regionId_; +} + +void DetachKeyPairRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DetachKeyPairRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void DetachKeyPairRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setParameter("InstanceIds", instanceIds); +} + +std::string DetachKeyPairRequest::getKeyPairName()const +{ + return keyPairName_; +} + +void DetachKeyPairRequest::setKeyPairName(const std::string& keyPairName) +{ + keyPairName_ = keyPairName; + setParameter("KeyPairName", keyPairName); +} + +long DetachKeyPairRequest::getOwnerId()const +{ + return ownerId_; +} + +void DetachKeyPairRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/DetachKeyPairResult.cc b/ecs/src/model/DetachKeyPairResult.cc new file mode 100644 index 000000000..6bfbb9638 --- /dev/null +++ b/ecs/src/model/DetachKeyPairResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DetachKeyPairResult::DetachKeyPairResult() : + ServiceResult() +{} + +DetachKeyPairResult::DetachKeyPairResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachKeyPairResult::~DetachKeyPairResult() +{} + +void DetachKeyPairResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allResults = value["Results"]["Result"]; + for (auto value : allResults) + { + Result resultObject; + resultObject.instanceId = value["InstanceId"].asString(); + resultObject.success = value["Success"].asString(); + resultObject.code = value["Code"].asString(); + resultObject.message = value["Message"].asString(); + results_.push_back(resultObject); + } + totalCount_ = value["TotalCount"].asString(); + failCount_ = value["FailCount"].asString(); + keyPairName_ = value["KeyPairName"].asString(); + +} + +std::string DetachKeyPairResult::getKeyPairName()const +{ + return keyPairName_; +} + +void DetachKeyPairResult::setKeyPairName(const std::string& keyPairName) +{ + keyPairName_ = keyPairName; +} + +std::string DetachKeyPairResult::getTotalCount()const +{ + return totalCount_; +} + +void DetachKeyPairResult::setTotalCount(const std::string& totalCount) +{ + totalCount_ = totalCount; +} + +std::string DetachKeyPairResult::getFailCount()const +{ + return failCount_; +} + +void DetachKeyPairResult::setFailCount(const std::string& failCount) +{ + failCount_ = failCount; +} + diff --git a/ecs/src/model/DetachNetworkInterfaceRequest.cc b/ecs/src/model/DetachNetworkInterfaceRequest.cc new file mode 100644 index 000000000..d4348d53b --- /dev/null +++ b/ecs/src/model/DetachNetworkInterfaceRequest.cc @@ -0,0 +1,314 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DetachNetworkInterfaceRequest::DetachNetworkInterfaceRequest() : + EcsRequest("DetachNetworkInterface") +{} + +DetachNetworkInterfaceRequest::~DetachNetworkInterfaceRequest() +{} + +long DetachNetworkInterfaceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DetachNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long DetachNetworkInterfaceRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void DetachNetworkInterfaceRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool DetachNetworkInterfaceRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void DetachNetworkInterfaceRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string DetachNetworkInterfaceRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void DetachNetworkInterfaceRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string DetachNetworkInterfaceRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void DetachNetworkInterfaceRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string DetachNetworkInterfaceRequest::getCallerType()const +{ + return callerType_; +} + +void DetachNetworkInterfaceRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string DetachNetworkInterfaceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DetachNetworkInterfaceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DetachNetworkInterfaceRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DetachNetworkInterfaceRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string DetachNetworkInterfaceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DetachNetworkInterfaceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DetachNetworkInterfaceRequest::getRegionId()const +{ + return regionId_; +} + +void DetachNetworkInterfaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool DetachNetworkInterfaceRequest::getEnable()const +{ + return enable_; +} + +void DetachNetworkInterfaceRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string DetachNetworkInterfaceRequest::getRequestContent()const +{ + return requestContent_; +} + +void DetachNetworkInterfaceRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string DetachNetworkInterfaceRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void DetachNetworkInterfaceRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string DetachNetworkInterfaceRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void DetachNetworkInterfaceRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long DetachNetworkInterfaceRequest::getCallerUid()const +{ + return callerUid_; +} + +void DetachNetworkInterfaceRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string DetachNetworkInterfaceRequest::getApp_ip()const +{ + return app_ip_; +} + +void DetachNetworkInterfaceRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string DetachNetworkInterfaceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DetachNetworkInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DetachNetworkInterfaceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DetachNetworkInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DetachNetworkInterfaceRequest::getCallerBid()const +{ + return callerBid_; +} + +void DetachNetworkInterfaceRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long DetachNetworkInterfaceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DetachNetworkInterfaceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool DetachNetworkInterfaceRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void DetachNetworkInterfaceRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool DetachNetworkInterfaceRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void DetachNetworkInterfaceRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool DetachNetworkInterfaceRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void DetachNetworkInterfaceRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string DetachNetworkInterfaceRequest::getInstanceId()const +{ + return instanceId_; +} + +void DetachNetworkInterfaceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DetachNetworkInterfaceRequest::getRequestId()const +{ + return requestId_; +} + +void DetachNetworkInterfaceRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string DetachNetworkInterfaceRequest::getNetworkInterfaceId()const +{ + return networkInterfaceId_; +} + +void DetachNetworkInterfaceRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) +{ + networkInterfaceId_ = networkInterfaceId; + setParameter("NetworkInterfaceId", networkInterfaceId); +} + diff --git a/ecs/src/model/DetachNetworkInterfaceResult.cc b/ecs/src/model/DetachNetworkInterfaceResult.cc new file mode 100644 index 000000000..24acffaea --- /dev/null +++ b/ecs/src/model/DetachNetworkInterfaceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +DetachNetworkInterfaceResult::DetachNetworkInterfaceResult() : + ServiceResult() +{} + +DetachNetworkInterfaceResult::DetachNetworkInterfaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachNetworkInterfaceResult::~DetachNetworkInterfaceResult() +{} + +void DetachNetworkInterfaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/EipFillParamsRequest.cc b/ecs/src/model/EipFillParamsRequest.cc new file mode 100644 index 000000000..cbe2e1cfc --- /dev/null +++ b/ecs/src/model/EipFillParamsRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +EipFillParamsRequest::EipFillParamsRequest() : + EcsRequest("EipFillParams") +{} + +EipFillParamsRequest::~EipFillParamsRequest() +{} + +long EipFillParamsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void EipFillParamsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string EipFillParamsRequest::getData()const +{ + return data_; +} + +void EipFillParamsRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +std::string EipFillParamsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void EipFillParamsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string EipFillParamsRequest::getClientToken()const +{ + return clientToken_; +} + +void EipFillParamsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string EipFillParamsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void EipFillParamsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string EipFillParamsRequest::getUserCidr()const +{ + return userCidr_; +} + +void EipFillParamsRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +long EipFillParamsRequest::getOwnerId()const +{ + return ownerId_; +} + +void EipFillParamsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/EipFillParamsResult.cc b/ecs/src/model/EipFillParamsResult.cc new file mode 100644 index 000000000..f1a4448ba --- /dev/null +++ b/ecs/src/model/EipFillParamsResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +EipFillParamsResult::EipFillParamsResult() : + ServiceResult() +{} + +EipFillParamsResult::EipFillParamsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EipFillParamsResult::~EipFillParamsResult() +{} + +void EipFillParamsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + requestId_ = value["requestId"].asString(); + data_ = value["data"].asString(); + code_ = value["code"].asString(); + success_ = std::stoi(value["success"].asString()); + message_ = value["message"].asString(); + +} + +std::string EipFillParamsResult::getRequestId()const +{ + return requestId_; +} + +void EipFillParamsResult::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; +} + +std::string EipFillParamsResult::getMessage()const +{ + return message_; +} + +void EipFillParamsResult::setMessage(const std::string& message) +{ + message_ = message; +} + +std::string EipFillParamsResult::getData()const +{ + return data_; +} + +void EipFillParamsResult::setData(const std::string& data) +{ + data_ = data; +} + +std::string EipFillParamsResult::getCode()const +{ + return code_; +} + +void EipFillParamsResult::setCode(const std::string& code) +{ + code_ = code; +} + +bool EipFillParamsResult::getSuccess()const +{ + return success_; +} + +void EipFillParamsResult::setSuccess(bool success) +{ + success_ = success; +} + diff --git a/ecs/src/model/EipFillProductRequest.cc b/ecs/src/model/EipFillProductRequest.cc new file mode 100644 index 000000000..b44bf852e --- /dev/null +++ b/ecs/src/model/EipFillProductRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +EipFillProductRequest::EipFillProductRequest() : + EcsRequest("EipFillProduct") +{} + +EipFillProductRequest::~EipFillProductRequest() +{} + +long EipFillProductRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void EipFillProductRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string EipFillProductRequest::getData()const +{ + return data_; +} + +void EipFillProductRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +std::string EipFillProductRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void EipFillProductRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string EipFillProductRequest::getClientToken()const +{ + return clientToken_; +} + +void EipFillProductRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string EipFillProductRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void EipFillProductRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string EipFillProductRequest::getUserCidr()const +{ + return userCidr_; +} + +void EipFillProductRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +long EipFillProductRequest::getOwnerId()const +{ + return ownerId_; +} + +void EipFillProductRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/EipFillProductResult.cc b/ecs/src/model/EipFillProductResult.cc new file mode 100644 index 000000000..c9f83f2eb --- /dev/null +++ b/ecs/src/model/EipFillProductResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +EipFillProductResult::EipFillProductResult() : + ServiceResult() +{} + +EipFillProductResult::EipFillProductResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EipFillProductResult::~EipFillProductResult() +{} + +void EipFillProductResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + requestId_ = value["requestId"].asString(); + data_ = value["data"].asString(); + code_ = value["code"].asString(); + success_ = std::stoi(value["success"].asString()); + message_ = value["message"].asString(); + +} + +std::string EipFillProductResult::getRequestId()const +{ + return requestId_; +} + +void EipFillProductResult::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; +} + +std::string EipFillProductResult::getMessage()const +{ + return message_; +} + +void EipFillProductResult::setMessage(const std::string& message) +{ + message_ = message; +} + +std::string EipFillProductResult::getData()const +{ + return data_; +} + +void EipFillProductResult::setData(const std::string& data) +{ + data_ = data; +} + +std::string EipFillProductResult::getCode()const +{ + return code_; +} + +void EipFillProductResult::setCode(const std::string& code) +{ + code_ = code; +} + +bool EipFillProductResult::getSuccess()const +{ + return success_; +} + +void EipFillProductResult::setSuccess(bool success) +{ + success_ = success; +} + diff --git a/ecs/src/model/EipNotifyPaidRequest.cc b/ecs/src/model/EipNotifyPaidRequest.cc new file mode 100644 index 000000000..668a96351 --- /dev/null +++ b/ecs/src/model/EipNotifyPaidRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +EipNotifyPaidRequest::EipNotifyPaidRequest() : + EcsRequest("EipNotifyPaid") +{} + +EipNotifyPaidRequest::~EipNotifyPaidRequest() +{} + +long EipNotifyPaidRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void EipNotifyPaidRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string EipNotifyPaidRequest::getData()const +{ + return data_; +} + +void EipNotifyPaidRequest::setData(const std::string& data) +{ + data_ = data; + setParameter("Data", data); +} + +std::string EipNotifyPaidRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void EipNotifyPaidRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string EipNotifyPaidRequest::getClientToken()const +{ + return clientToken_; +} + +void EipNotifyPaidRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string EipNotifyPaidRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void EipNotifyPaidRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string EipNotifyPaidRequest::getUserCidr()const +{ + return userCidr_; +} + +void EipNotifyPaidRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +long EipNotifyPaidRequest::getOwnerId()const +{ + return ownerId_; +} + +void EipNotifyPaidRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/EipNotifyPaidResult.cc b/ecs/src/model/EipNotifyPaidResult.cc new file mode 100644 index 000000000..12c1d13e7 --- /dev/null +++ b/ecs/src/model/EipNotifyPaidResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +EipNotifyPaidResult::EipNotifyPaidResult() : + ServiceResult() +{} + +EipNotifyPaidResult::EipNotifyPaidResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EipNotifyPaidResult::~EipNotifyPaidResult() +{} + +void EipNotifyPaidResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + requestId_ = value["requestId"].asString(); + data_ = value["data"].asString(); + code_ = value["code"].asString(); + message_ = value["message"].asString(); + success_ = std::stoi(value["success"].asString()); + +} + +std::string EipNotifyPaidResult::getRequestId()const +{ + return requestId_; +} + +void EipNotifyPaidResult::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; +} + +std::string EipNotifyPaidResult::getMessage()const +{ + return message_; +} + +void EipNotifyPaidResult::setMessage(const std::string& message) +{ + message_ = message; +} + +std::string EipNotifyPaidResult::getData()const +{ + return data_; +} + +void EipNotifyPaidResult::setData(const std::string& data) +{ + data_ = data; +} + +std::string EipNotifyPaidResult::getCode()const +{ + return code_; +} + +void EipNotifyPaidResult::setCode(const std::string& code) +{ + code_ = code; +} + +bool EipNotifyPaidResult::getSuccess()const +{ + return success_; +} + +void EipNotifyPaidResult::setSuccess(bool success) +{ + success_ = success; +} + diff --git a/ecs/src/model/EnablePhysicalConnectionRequest.cc b/ecs/src/model/EnablePhysicalConnectionRequest.cc new file mode 100644 index 000000000..4bac2882c --- /dev/null +++ b/ecs/src/model/EnablePhysicalConnectionRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +EnablePhysicalConnectionRequest::EnablePhysicalConnectionRequest() : + EcsRequest("EnablePhysicalConnection") +{} + +EnablePhysicalConnectionRequest::~EnablePhysicalConnectionRequest() +{} + +long EnablePhysicalConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void EnablePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string EnablePhysicalConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void EnablePhysicalConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string EnablePhysicalConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void EnablePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string EnablePhysicalConnectionRequest::getClientToken()const +{ + return clientToken_; +} + +void EnablePhysicalConnectionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string EnablePhysicalConnectionRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void EnablePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + +std::string EnablePhysicalConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void EnablePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string EnablePhysicalConnectionRequest::getUserCidr()const +{ + return userCidr_; +} + +void EnablePhysicalConnectionRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +long EnablePhysicalConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void EnablePhysicalConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/EnablePhysicalConnectionResult.cc b/ecs/src/model/EnablePhysicalConnectionResult.cc new file mode 100644 index 000000000..5675230f4 --- /dev/null +++ b/ecs/src/model/EnablePhysicalConnectionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +EnablePhysicalConnectionResult::EnablePhysicalConnectionResult() : + ServiceResult() +{} + +EnablePhysicalConnectionResult::EnablePhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnablePhysicalConnectionResult::~EnablePhysicalConnectionResult() +{} + +void EnablePhysicalConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ExportImageRequest.cc b/ecs/src/model/ExportImageRequest.cc new file mode 100644 index 000000000..abf06549f --- /dev/null +++ b/ecs/src/model/ExportImageRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ExportImageRequest::ExportImageRequest() : + EcsRequest("ExportImage") +{} + +ExportImageRequest::~ExportImageRequest() +{} + +long ExportImageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ExportImageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ExportImageRequest::getImageId()const +{ + return imageId_; +} + +void ExportImageRequest::setImageId(const std::string& imageId) +{ + imageId_ = imageId; + setParameter("ImageId", imageId); +} + +std::string ExportImageRequest::getOSSBucket()const +{ + return oSSBucket_; +} + +void ExportImageRequest::setOSSBucket(const std::string& oSSBucket) +{ + oSSBucket_ = oSSBucket; + setParameter("OSSBucket", oSSBucket); +} + +std::string ExportImageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ExportImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ExportImageRequest::getRegionId()const +{ + return regionId_; +} + +void ExportImageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ExportImageRequest::getOSSPrefix()const +{ + return oSSPrefix_; +} + +void ExportImageRequest::setOSSPrefix(const std::string& oSSPrefix) +{ + oSSPrefix_ = oSSPrefix; + setParameter("OSSPrefix", oSSPrefix); +} + +std::string ExportImageRequest::getRoleName()const +{ + return roleName_; +} + +void ExportImageRequest::setRoleName(const std::string& roleName) +{ + roleName_ = roleName; + setParameter("RoleName", roleName); +} + +long ExportImageRequest::getOwnerId()const +{ + return ownerId_; +} + +void ExportImageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ExportImageRequest::getImageFormat()const +{ + return imageFormat_; +} + +void ExportImageRequest::setImageFormat(const std::string& imageFormat) +{ + imageFormat_ = imageFormat; + setParameter("ImageFormat", imageFormat); +} + diff --git a/ecs/src/model/ExportImageResult.cc b/ecs/src/model/ExportImageResult.cc new file mode 100644 index 000000000..1e38a4e2d --- /dev/null +++ b/ecs/src/model/ExportImageResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ExportImageResult::ExportImageResult() : + ServiceResult() +{} + +ExportImageResult::ExportImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExportImageResult::~ExportImageResult() +{} + +void ExportImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + taskId_ = value["TaskId"].asString(); + regionId_ = value["RegionId"].asString(); + +} + +std::string ExportImageResult::getTaskId()const +{ + return taskId_; +} + +void ExportImageResult::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; +} + +std::string ExportImageResult::getRegionId()const +{ + return regionId_; +} + +void ExportImageResult::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; +} + diff --git a/ecs/src/model/ImportImageRequest.cc b/ecs/src/model/ImportImageRequest.cc new file mode 100644 index 000000000..246229b92 --- /dev/null +++ b/ecs/src/model/ImportImageRequest.cc @@ -0,0 +1,159 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ImportImageRequest::ImportImageRequest() : + EcsRequest("ImportImage") +{} + +ImportImageRequest::~ImportImageRequest() +{} + +std::vector ImportImageRequest::getDiskDeviceMapping()const +{ + return diskDeviceMapping_; +} + +void ImportImageRequest::setDiskDeviceMapping(const std::vector& diskDeviceMapping) +{ + diskDeviceMapping_ = diskDeviceMapping; + int i = 0; + for(int i = 0; i!= diskDeviceMapping.size(); i++) { + auto obj = diskDeviceMapping.at(i); + std::string str ="DiskDeviceMapping."+ std::to_string(i); + setParameter(str + ".Format", obj.format); + setParameter(str + ".OSSBucket", obj.oSSBucket); + setParameter(str + ".OSSObject", obj.oSSObject); + setParameter(str + ".DiskImSize", std::to_string(obj.diskImSize)); + setParameter(str + ".DiskImageSize", std::to_string(obj.diskImageSize)); + setParameter(str + ".Device", obj.device); + } +} + +long ImportImageRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ImportImageRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ImportImageRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ImportImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ImportImageRequest::getRegionId()const +{ + return regionId_; +} + +void ImportImageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ImportImageRequest::getImageName()const +{ + return imageName_; +} + +void ImportImageRequest::setImageName(const std::string& imageName) +{ + imageName_ = imageName; + setParameter("ImageName", imageName); +} + +std::string ImportImageRequest::getRoleName()const +{ + return roleName_; +} + +void ImportImageRequest::setRoleName(const std::string& roleName) +{ + roleName_ = roleName; + setParameter("RoleName", roleName); +} + +std::string ImportImageRequest::getDescription()const +{ + return description_; +} + +void ImportImageRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ImportImageRequest::getOSType()const +{ + return oSType_; +} + +void ImportImageRequest::setOSType(const std::string& oSType) +{ + oSType_ = oSType; + setParameter("OSType", oSType); +} + +long ImportImageRequest::getOwnerId()const +{ + return ownerId_; +} + +void ImportImageRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ImportImageRequest::getPlatform()const +{ + return platform_; +} + +void ImportImageRequest::setPlatform(const std::string& platform) +{ + platform_ = platform; + setParameter("Platform", platform); +} + +std::string ImportImageRequest::getArchitecture()const +{ + return architecture_; +} + +void ImportImageRequest::setArchitecture(const std::string& architecture) +{ + architecture_ = architecture; + setParameter("Architecture", architecture); +} + diff --git a/ecs/src/model/ImportImageResult.cc b/ecs/src/model/ImportImageResult.cc new file mode 100644 index 000000000..0176624c8 --- /dev/null +++ b/ecs/src/model/ImportImageResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ImportImageResult::ImportImageResult() : + ServiceResult() +{} + +ImportImageResult::ImportImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportImageResult::~ImportImageResult() +{} + +void ImportImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + taskId_ = value["TaskId"].asString(); + regionId_ = value["RegionId"].asString(); + imageId_ = value["ImageId"].asString(); + +} + +std::string ImportImageResult::getTaskId()const +{ + return taskId_; +} + +void ImportImageResult::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; +} + +std::string ImportImageResult::getImageId()const +{ + return imageId_; +} + +void ImportImageResult::setImageId(const std::string& imageId) +{ + imageId_ = imageId; +} + +std::string ImportImageResult::getRegionId()const +{ + return regionId_; +} + +void ImportImageResult::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; +} + diff --git a/ecs/src/model/ImportKeyPairRequest.cc b/ecs/src/model/ImportKeyPairRequest.cc new file mode 100644 index 000000000..469a47c53 --- /dev/null +++ b/ecs/src/model/ImportKeyPairRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ImportKeyPairRequest::ImportKeyPairRequest() : + EcsRequest("ImportKeyPair") +{} + +ImportKeyPairRequest::~ImportKeyPairRequest() +{} + +long ImportKeyPairRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ImportKeyPairRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ImportKeyPairRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ImportKeyPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ImportKeyPairRequest::getRegionId()const +{ + return regionId_; +} + +void ImportKeyPairRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ImportKeyPairRequest::getPublicKeyBody()const +{ + return publicKeyBody_; +} + +void ImportKeyPairRequest::setPublicKeyBody(const std::string& publicKeyBody) +{ + publicKeyBody_ = publicKeyBody; + setParameter("PublicKeyBody", publicKeyBody); +} + +std::string ImportKeyPairRequest::getKeyPairName()const +{ + return keyPairName_; +} + +void ImportKeyPairRequest::setKeyPairName(const std::string& keyPairName) +{ + keyPairName_ = keyPairName; + setParameter("KeyPairName", keyPairName); +} + +long ImportKeyPairRequest::getOwnerId()const +{ + return ownerId_; +} + +void ImportKeyPairRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ImportKeyPairResult.cc b/ecs/src/model/ImportKeyPairResult.cc new file mode 100644 index 000000000..894c1d8d2 --- /dev/null +++ b/ecs/src/model/ImportKeyPairResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ImportKeyPairResult::ImportKeyPairResult() : + ServiceResult() +{} + +ImportKeyPairResult::ImportKeyPairResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ImportKeyPairResult::~ImportKeyPairResult() +{} + +void ImportKeyPairResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + keyPairName_ = value["KeyPairName"].asString(); + keyPairFingerPrint_ = value["KeyPairFingerPrint"].asString(); + +} + +std::string ImportKeyPairResult::getKeyPairFingerPrint()const +{ + return keyPairFingerPrint_; +} + +void ImportKeyPairResult::setKeyPairFingerPrint(const std::string& keyPairFingerPrint) +{ + keyPairFingerPrint_ = keyPairFingerPrint; +} + +std::string ImportKeyPairResult::getKeyPairName()const +{ + return keyPairName_; +} + +void ImportKeyPairResult::setKeyPairName(const std::string& keyPairName) +{ + keyPairName_ = keyPairName; +} + diff --git a/ecs/src/model/InvokeCommandRequest.cc b/ecs/src/model/InvokeCommandRequest.cc new file mode 100644 index 000000000..915457cb0 --- /dev/null +++ b/ecs/src/model/InvokeCommandRequest.cc @@ -0,0 +1,337 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +InvokeCommandRequest::InvokeCommandRequest() : + EcsRequest("InvokeCommand") +{} + +InvokeCommandRequest::~InvokeCommandRequest() +{} + +long InvokeCommandRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void InvokeCommandRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long InvokeCommandRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void InvokeCommandRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool InvokeCommandRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void InvokeCommandRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string InvokeCommandRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void InvokeCommandRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string InvokeCommandRequest::getCommandId()const +{ + return commandId_; +} + +void InvokeCommandRequest::setCommandId(const std::string& commandId) +{ + commandId_ = commandId; + setParameter("CommandId", commandId); +} + +std::string InvokeCommandRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void InvokeCommandRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string InvokeCommandRequest::getCallerType()const +{ + return callerType_; +} + +void InvokeCommandRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string InvokeCommandRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void InvokeCommandRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string InvokeCommandRequest::getFrequency()const +{ + return frequency_; +} + +void InvokeCommandRequest::setFrequency(const std::string& frequency) +{ + frequency_ = frequency; + setParameter("Frequency", frequency); +} + +std::string InvokeCommandRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void InvokeCommandRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string InvokeCommandRequest::getSecurityToken()const +{ + return securityToken_; +} + +void InvokeCommandRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string InvokeCommandRequest::getRegionId()const +{ + return regionId_; +} + +void InvokeCommandRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool InvokeCommandRequest::getEnable()const +{ + return enable_; +} + +void InvokeCommandRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string InvokeCommandRequest::getRequestContent()const +{ + return requestContent_; +} + +void InvokeCommandRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string InvokeCommandRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void InvokeCommandRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string InvokeCommandRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void InvokeCommandRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long InvokeCommandRequest::getCallerUid()const +{ + return callerUid_; +} + +void InvokeCommandRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string InvokeCommandRequest::getApp_ip()const +{ + return app_ip_; +} + +void InvokeCommandRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +bool InvokeCommandRequest::getTimed()const +{ + return timed_; +} + +void InvokeCommandRequest::setTimed(bool timed) +{ + timed_ = timed; + setParameter("Timed", std::to_string(timed)); +} + +std::string InvokeCommandRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void InvokeCommandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string InvokeCommandRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void InvokeCommandRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string InvokeCommandRequest::getCallerBid()const +{ + return callerBid_; +} + +void InvokeCommandRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long InvokeCommandRequest::getOwnerId()const +{ + return ownerId_; +} + +void InvokeCommandRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool InvokeCommandRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void InvokeCommandRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool InvokeCommandRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void InvokeCommandRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool InvokeCommandRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void InvokeCommandRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::vector InvokeCommandRequest::getInstanceId()const +{ + return instanceId_; +} + +void InvokeCommandRequest::setInstanceId(const std::vector& instanceId) +{ + instanceId_ = instanceId; + for(int i = 0; i!= instanceId.size(); i++) + setParameter("InstanceId."+ std::to_string(i), instanceId.at(i)); +} + +std::string InvokeCommandRequest::getRequestId()const +{ + return requestId_; +} + +void InvokeCommandRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ecs/src/model/InvokeCommandResult.cc b/ecs/src/model/InvokeCommandResult.cc new file mode 100644 index 000000000..1b7a2297d --- /dev/null +++ b/ecs/src/model/InvokeCommandResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +InvokeCommandResult::InvokeCommandResult() : + ServiceResult() +{} + +InvokeCommandResult::InvokeCommandResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InvokeCommandResult::~InvokeCommandResult() +{} + +void InvokeCommandResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + invokeId_ = value["InvokeId"].asString(); + +} + +std::string InvokeCommandResult::getInvokeId()const +{ + return invokeId_; +} + +void InvokeCommandResult::setInvokeId(const std::string& invokeId) +{ + invokeId_ = invokeId; +} + diff --git a/ecs/src/model/JoinResourceGroupRequest.cc b/ecs/src/model/JoinResourceGroupRequest.cc new file mode 100644 index 000000000..aed6b221b --- /dev/null +++ b/ecs/src/model/JoinResourceGroupRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +JoinResourceGroupRequest::JoinResourceGroupRequest() : + EcsRequest("JoinResourceGroup") +{} + +JoinResourceGroupRequest::~JoinResourceGroupRequest() +{} + +std::string JoinResourceGroupRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void JoinResourceGroupRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +long JoinResourceGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void JoinResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string JoinResourceGroupRequest::getResourceId()const +{ + return resourceId_; +} + +void JoinResourceGroupRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setParameter("ResourceId", resourceId); +} + +std::string JoinResourceGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void JoinResourceGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string JoinResourceGroupRequest::getRegionId()const +{ + return regionId_; +} + +void JoinResourceGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string JoinResourceGroupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void JoinResourceGroupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long JoinResourceGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void JoinResourceGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string JoinResourceGroupRequest::getResourceType()const +{ + return resourceType_; +} + +void JoinResourceGroupRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + diff --git a/ecs/src/model/JoinResourceGroupResult.cc b/ecs/src/model/JoinResourceGroupResult.cc new file mode 100644 index 000000000..b2a0900a0 --- /dev/null +++ b/ecs/src/model/JoinResourceGroupResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +JoinResourceGroupResult::JoinResourceGroupResult() : + ServiceResult() +{} + +JoinResourceGroupResult::JoinResourceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +JoinResourceGroupResult::~JoinResourceGroupResult() +{} + +void JoinResourceGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/JoinSecurityGroupRequest.cc b/ecs/src/model/JoinSecurityGroupRequest.cc new file mode 100644 index 000000000..611226518 --- /dev/null +++ b/ecs/src/model/JoinSecurityGroupRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +JoinSecurityGroupRequest::JoinSecurityGroupRequest() : + EcsRequest("JoinSecurityGroup") +{} + +JoinSecurityGroupRequest::~JoinSecurityGroupRequest() +{} + +long JoinSecurityGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void JoinSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string JoinSecurityGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void JoinSecurityGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string JoinSecurityGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void JoinSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string JoinSecurityGroupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void JoinSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string JoinSecurityGroupRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void JoinSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +long JoinSecurityGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void JoinSecurityGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/JoinSecurityGroupResult.cc b/ecs/src/model/JoinSecurityGroupResult.cc new file mode 100644 index 000000000..9434fecea --- /dev/null +++ b/ecs/src/model/JoinSecurityGroupResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +JoinSecurityGroupResult::JoinSecurityGroupResult() : + ServiceResult() +{} + +JoinSecurityGroupResult::JoinSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +JoinSecurityGroupResult::~JoinSecurityGroupResult() +{} + +void JoinSecurityGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/LeaveSecurityGroupRequest.cc b/ecs/src/model/LeaveSecurityGroupRequest.cc new file mode 100644 index 000000000..83e398f87 --- /dev/null +++ b/ecs/src/model/LeaveSecurityGroupRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +LeaveSecurityGroupRequest::LeaveSecurityGroupRequest() : + EcsRequest("LeaveSecurityGroup") +{} + +LeaveSecurityGroupRequest::~LeaveSecurityGroupRequest() +{} + +long LeaveSecurityGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void LeaveSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string LeaveSecurityGroupRequest::getInstanceId()const +{ + return instanceId_; +} + +void LeaveSecurityGroupRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string LeaveSecurityGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void LeaveSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string LeaveSecurityGroupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void LeaveSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string LeaveSecurityGroupRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void LeaveSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +long LeaveSecurityGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void LeaveSecurityGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/LeaveSecurityGroupResult.cc b/ecs/src/model/LeaveSecurityGroupResult.cc new file mode 100644 index 000000000..adbe02fa3 --- /dev/null +++ b/ecs/src/model/LeaveSecurityGroupResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +LeaveSecurityGroupResult::LeaveSecurityGroupResult() : + ServiceResult() +{} + +LeaveSecurityGroupResult::LeaveSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LeaveSecurityGroupResult::~LeaveSecurityGroupResult() +{} + +void LeaveSecurityGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyAutoSnapshotPolicyExRequest.cc b/ecs/src/model/ModifyAutoSnapshotPolicyExRequest.cc new file mode 100644 index 000000000..539e7646c --- /dev/null +++ b/ecs/src/model/ModifyAutoSnapshotPolicyExRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyAutoSnapshotPolicyExRequest::ModifyAutoSnapshotPolicyExRequest() : + EcsRequest("ModifyAutoSnapshotPolicyEx") +{} + +ModifyAutoSnapshotPolicyExRequest::~ModifyAutoSnapshotPolicyExRequest() +{} + +long ModifyAutoSnapshotPolicyExRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyAutoSnapshotPolicyExRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyAutoSnapshotPolicyExRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyAutoSnapshotPolicyExRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyAutoSnapshotPolicyExRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyAutoSnapshotPolicyExRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyAutoSnapshotPolicyExRequest::getAutoSnapshotPolicyId()const +{ + return autoSnapshotPolicyId_; +} + +void ModifyAutoSnapshotPolicyExRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId) +{ + autoSnapshotPolicyId_ = autoSnapshotPolicyId; + setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId); +} + +std::string ModifyAutoSnapshotPolicyExRequest::getTimePoints()const +{ + return timePoints_; +} + +void ModifyAutoSnapshotPolicyExRequest::setTimePoints(const std::string& timePoints) +{ + timePoints_ = timePoints; + setParameter("TimePoints", timePoints); +} + +int ModifyAutoSnapshotPolicyExRequest::getRetentionDays()const +{ + return retentionDays_; +} + +void ModifyAutoSnapshotPolicyExRequest::setRetentionDays(int retentionDays) +{ + retentionDays_ = retentionDays; + setParameter("RetentionDays", std::to_string(retentionDays)); +} + +long ModifyAutoSnapshotPolicyExRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyAutoSnapshotPolicyExRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyAutoSnapshotPolicyExRequest::getRepeatWeekdays()const +{ + return repeatWeekdays_; +} + +void ModifyAutoSnapshotPolicyExRequest::setRepeatWeekdays(const std::string& repeatWeekdays) +{ + repeatWeekdays_ = repeatWeekdays; + setParameter("RepeatWeekdays", repeatWeekdays); +} + +std::string ModifyAutoSnapshotPolicyExRequest::getAutoSnapshotPolicyName()const +{ + return autoSnapshotPolicyName_; +} + +void ModifyAutoSnapshotPolicyExRequest::setAutoSnapshotPolicyName(const std::string& autoSnapshotPolicyName) +{ + autoSnapshotPolicyName_ = autoSnapshotPolicyName; + setParameter("AutoSnapshotPolicyName", autoSnapshotPolicyName); +} + diff --git a/ecs/src/model/ModifyAutoSnapshotPolicyExResult.cc b/ecs/src/model/ModifyAutoSnapshotPolicyExResult.cc new file mode 100644 index 000000000..869588f4c --- /dev/null +++ b/ecs/src/model/ModifyAutoSnapshotPolicyExResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyAutoSnapshotPolicyExResult::ModifyAutoSnapshotPolicyExResult() : + ServiceResult() +{} + +ModifyAutoSnapshotPolicyExResult::ModifyAutoSnapshotPolicyExResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAutoSnapshotPolicyExResult::~ModifyAutoSnapshotPolicyExResult() +{} + +void ModifyAutoSnapshotPolicyExResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyAutoSnapshotPolicyRequest.cc b/ecs/src/model/ModifyAutoSnapshotPolicyRequest.cc new file mode 100644 index 000000000..a23b11fe3 --- /dev/null +++ b/ecs/src/model/ModifyAutoSnapshotPolicyRequest.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyAutoSnapshotPolicyRequest::ModifyAutoSnapshotPolicyRequest() : + EcsRequest("ModifyAutoSnapshotPolicy") +{} + +ModifyAutoSnapshotPolicyRequest::~ModifyAutoSnapshotPolicyRequest() +{} + +bool ModifyAutoSnapshotPolicyRequest::getDataDiskPolicyEnabled()const +{ + return dataDiskPolicyEnabled_; +} + +void ModifyAutoSnapshotPolicyRequest::setDataDiskPolicyEnabled(bool dataDiskPolicyEnabled) +{ + dataDiskPolicyEnabled_ = dataDiskPolicyEnabled; + setParameter("DataDiskPolicyEnabled", std::to_string(dataDiskPolicyEnabled)); +} + +long ModifyAutoSnapshotPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int ModifyAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionDays()const +{ + return dataDiskPolicyRetentionDays_; +} + +void ModifyAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionDays(int dataDiskPolicyRetentionDays) +{ + dataDiskPolicyRetentionDays_ = dataDiskPolicyRetentionDays; + setParameter("DataDiskPolicyRetentionDays", std::to_string(dataDiskPolicyRetentionDays)); +} + +std::string ModifyAutoSnapshotPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +bool ModifyAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionLastWeek()const +{ + return systemDiskPolicyRetentionLastWeek_; +} + +void ModifyAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionLastWeek(bool systemDiskPolicyRetentionLastWeek) +{ + systemDiskPolicyRetentionLastWeek_ = systemDiskPolicyRetentionLastWeek; + setParameter("SystemDiskPolicyRetentionLastWeek", std::to_string(systemDiskPolicyRetentionLastWeek)); +} + +std::string ModifyAutoSnapshotPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyAutoSnapshotPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int ModifyAutoSnapshotPolicyRequest::getSystemDiskPolicyTimePeriod()const +{ + return systemDiskPolicyTimePeriod_; +} + +void ModifyAutoSnapshotPolicyRequest::setSystemDiskPolicyTimePeriod(int systemDiskPolicyTimePeriod) +{ + systemDiskPolicyTimePeriod_ = systemDiskPolicyTimePeriod; + setParameter("SystemDiskPolicyTimePeriod", std::to_string(systemDiskPolicyTimePeriod)); +} + +long ModifyAutoSnapshotPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyAutoSnapshotPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool ModifyAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionLastWeek()const +{ + return dataDiskPolicyRetentionLastWeek_; +} + +void ModifyAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionLastWeek(bool dataDiskPolicyRetentionLastWeek) +{ + dataDiskPolicyRetentionLastWeek_ = dataDiskPolicyRetentionLastWeek; + setParameter("DataDiskPolicyRetentionLastWeek", std::to_string(dataDiskPolicyRetentionLastWeek)); +} + +int ModifyAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionDays()const +{ + return systemDiskPolicyRetentionDays_; +} + +void ModifyAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionDays(int systemDiskPolicyRetentionDays) +{ + systemDiskPolicyRetentionDays_ = systemDiskPolicyRetentionDays; + setParameter("SystemDiskPolicyRetentionDays", std::to_string(systemDiskPolicyRetentionDays)); +} + +int ModifyAutoSnapshotPolicyRequest::getDataDiskPolicyTimePeriod()const +{ + return dataDiskPolicyTimePeriod_; +} + +void ModifyAutoSnapshotPolicyRequest::setDataDiskPolicyTimePeriod(int dataDiskPolicyTimePeriod) +{ + dataDiskPolicyTimePeriod_ = dataDiskPolicyTimePeriod; + setParameter("DataDiskPolicyTimePeriod", std::to_string(dataDiskPolicyTimePeriod)); +} + +bool ModifyAutoSnapshotPolicyRequest::getSystemDiskPolicyEnabled()const +{ + return systemDiskPolicyEnabled_; +} + +void ModifyAutoSnapshotPolicyRequest::setSystemDiskPolicyEnabled(bool systemDiskPolicyEnabled) +{ + systemDiskPolicyEnabled_ = systemDiskPolicyEnabled; + setParameter("SystemDiskPolicyEnabled", std::to_string(systemDiskPolicyEnabled)); +} + diff --git a/ecs/src/model/ModifyAutoSnapshotPolicyResult.cc b/ecs/src/model/ModifyAutoSnapshotPolicyResult.cc new file mode 100644 index 000000000..329b0f81d --- /dev/null +++ b/ecs/src/model/ModifyAutoSnapshotPolicyResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyAutoSnapshotPolicyResult::ModifyAutoSnapshotPolicyResult() : + ServiceResult() +{} + +ModifyAutoSnapshotPolicyResult::ModifyAutoSnapshotPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAutoSnapshotPolicyResult::~ModifyAutoSnapshotPolicyResult() +{} + +void ModifyAutoSnapshotPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyBandwidthPackageSpecRequest.cc b/ecs/src/model/ModifyBandwidthPackageSpecRequest.cc new file mode 100644 index 000000000..14650c59d --- /dev/null +++ b/ecs/src/model/ModifyBandwidthPackageSpecRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyBandwidthPackageSpecRequest::ModifyBandwidthPackageSpecRequest() : + EcsRequest("ModifyBandwidthPackageSpec") +{} + +ModifyBandwidthPackageSpecRequest::~ModifyBandwidthPackageSpecRequest() +{} + +long ModifyBandwidthPackageSpecRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyBandwidthPackageSpecRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyBandwidthPackageSpecRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void ModifyBandwidthPackageSpecRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string ModifyBandwidthPackageSpecRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyBandwidthPackageSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyBandwidthPackageSpecRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyBandwidthPackageSpecRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyBandwidthPackageSpecRequest::getBandwidth()const +{ + return bandwidth_; +} + +void ModifyBandwidthPackageSpecRequest::setBandwidth(const std::string& bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", bandwidth); +} + +std::string ModifyBandwidthPackageSpecRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyBandwidthPackageSpecRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyBandwidthPackageSpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyBandwidthPackageSpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifyBandwidthPackageSpecResult.cc b/ecs/src/model/ModifyBandwidthPackageSpecResult.cc new file mode 100644 index 000000000..62910f46e --- /dev/null +++ b/ecs/src/model/ModifyBandwidthPackageSpecResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyBandwidthPackageSpecResult::ModifyBandwidthPackageSpecResult() : + ServiceResult() +{} + +ModifyBandwidthPackageSpecResult::ModifyBandwidthPackageSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyBandwidthPackageSpecResult::~ModifyBandwidthPackageSpecResult() +{} + +void ModifyBandwidthPackageSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyCommandRequest.cc b/ecs/src/model/ModifyCommandRequest.cc new file mode 100644 index 000000000..4f4651a7b --- /dev/null +++ b/ecs/src/model/ModifyCommandRequest.cc @@ -0,0 +1,358 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyCommandRequest::ModifyCommandRequest() : + EcsRequest("ModifyCommand") +{} + +ModifyCommandRequest::~ModifyCommandRequest() +{} + +long ModifyCommandRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyCommandRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long ModifyCommandRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ModifyCommandRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string ModifyCommandRequest::getWorkingDir()const +{ + return workingDir_; +} + +void ModifyCommandRequest::setWorkingDir(const std::string& workingDir) +{ + workingDir_ = workingDir; + setParameter("WorkingDir", workingDir); +} + +bool ModifyCommandRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ModifyCommandRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string ModifyCommandRequest::getDescription()const +{ + return description_; +} + +void ModifyCommandRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyCommandRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ModifyCommandRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ModifyCommandRequest::getCommandId()const +{ + return commandId_; +} + +void ModifyCommandRequest::setCommandId(const std::string& commandId) +{ + commandId_ = commandId; + setParameter("CommandId", commandId); +} + +std::string ModifyCommandRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void ModifyCommandRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string ModifyCommandRequest::getCallerType()const +{ + return callerType_; +} + +void ModifyCommandRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string ModifyCommandRequest::getCommandContent()const +{ + return commandContent_; +} + +void ModifyCommandRequest::setCommandContent(const std::string& commandContent) +{ + commandContent_ = commandContent; + setParameter("CommandContent", commandContent); +} + +long ModifyCommandRequest::getTimeout()const +{ + return timeout_; +} + +void ModifyCommandRequest::setTimeout(long timeout) +{ + timeout_ = timeout; + setParameter("Timeout", std::to_string(timeout)); +} + +std::string ModifyCommandRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyCommandRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyCommandRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void ModifyCommandRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string ModifyCommandRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyCommandRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyCommandRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyCommandRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool ModifyCommandRequest::getEnable()const +{ + return enable_; +} + +void ModifyCommandRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string ModifyCommandRequest::getRequestContent()const +{ + return requestContent_; +} + +void ModifyCommandRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string ModifyCommandRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void ModifyCommandRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string ModifyCommandRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void ModifyCommandRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long ModifyCommandRequest::getCallerUid()const +{ + return callerUid_; +} + +void ModifyCommandRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ModifyCommandRequest::getApp_ip()const +{ + return app_ip_; +} + +void ModifyCommandRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string ModifyCommandRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyCommandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyCommandRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyCommandRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyCommandRequest::getCallerBid()const +{ + return callerBid_; +} + +void ModifyCommandRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long ModifyCommandRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyCommandRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool ModifyCommandRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ModifyCommandRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool ModifyCommandRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ModifyCommandRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool ModifyCommandRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ModifyCommandRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string ModifyCommandRequest::getRequestId()const +{ + return requestId_; +} + +void ModifyCommandRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string ModifyCommandRequest::getName()const +{ + return name_; +} + +void ModifyCommandRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/ecs/src/model/ModifyCommandResult.cc b/ecs/src/model/ModifyCommandResult.cc new file mode 100644 index 000000000..ba39d33b1 --- /dev/null +++ b/ecs/src/model/ModifyCommandResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyCommandResult::ModifyCommandResult() : + ServiceResult() +{} + +ModifyCommandResult::ModifyCommandResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCommandResult::~ModifyCommandResult() +{} + +void ModifyCommandResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyDeploymentSetAttributeRequest.cc b/ecs/src/model/ModifyDeploymentSetAttributeRequest.cc new file mode 100644 index 000000000..f34a6b21d --- /dev/null +++ b/ecs/src/model/ModifyDeploymentSetAttributeRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyDeploymentSetAttributeRequest::ModifyDeploymentSetAttributeRequest() : + EcsRequest("ModifyDeploymentSetAttribute") +{} + +ModifyDeploymentSetAttributeRequest::~ModifyDeploymentSetAttributeRequest() +{} + +std::string ModifyDeploymentSetAttributeRequest::getDeploymentSetId()const +{ + return deploymentSetId_; +} + +void ModifyDeploymentSetAttributeRequest::setDeploymentSetId(const std::string& deploymentSetId) +{ + deploymentSetId_ = deploymentSetId; + setParameter("DeploymentSetId", deploymentSetId); +} + +long ModifyDeploymentSetAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDeploymentSetAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDeploymentSetAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDeploymentSetAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDeploymentSetAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyDeploymentSetAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyDeploymentSetAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDeploymentSetAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDeploymentSetAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyDeploymentSetAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyDeploymentSetAttributeRequest::getDeploymentSetName()const +{ + return deploymentSetName_; +} + +void ModifyDeploymentSetAttributeRequest::setDeploymentSetName(const std::string& deploymentSetName) +{ + deploymentSetName_ = deploymentSetName; + setParameter("DeploymentSetName", deploymentSetName); +} + +long ModifyDeploymentSetAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDeploymentSetAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifyDeploymentSetAttributeResult.cc b/ecs/src/model/ModifyDeploymentSetAttributeResult.cc new file mode 100644 index 000000000..fc0b93bb8 --- /dev/null +++ b/ecs/src/model/ModifyDeploymentSetAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyDeploymentSetAttributeResult::ModifyDeploymentSetAttributeResult() : + ServiceResult() +{} + +ModifyDeploymentSetAttributeResult::ModifyDeploymentSetAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDeploymentSetAttributeResult::~ModifyDeploymentSetAttributeResult() +{} + +void ModifyDeploymentSetAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyDiskAttributeRequest.cc b/ecs/src/model/ModifyDiskAttributeRequest.cc new file mode 100644 index 000000000..cabc20842 --- /dev/null +++ b/ecs/src/model/ModifyDiskAttributeRequest.cc @@ -0,0 +1,138 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyDiskAttributeRequest::ModifyDiskAttributeRequest() : + EcsRequest("ModifyDiskAttribute") +{} + +ModifyDiskAttributeRequest::~ModifyDiskAttributeRequest() +{} + +std::string ModifyDiskAttributeRequest::getDiskName()const +{ + return diskName_; +} + +void ModifyDiskAttributeRequest::setDiskName(const std::string& diskName) +{ + diskName_ = diskName; + setParameter("DiskName", diskName); +} + +bool ModifyDiskAttributeRequest::getDeleteAutoSnapshot()const +{ + return deleteAutoSnapshot_; +} + +void ModifyDiskAttributeRequest::setDeleteAutoSnapshot(bool deleteAutoSnapshot) +{ + deleteAutoSnapshot_ = deleteAutoSnapshot; + setParameter("DeleteAutoSnapshot", std::to_string(deleteAutoSnapshot)); +} + +long ModifyDiskAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDiskAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool ModifyDiskAttributeRequest::getEnableAutoSnapshot()const +{ + return enableAutoSnapshot_; +} + +void ModifyDiskAttributeRequest::setEnableAutoSnapshot(bool enableAutoSnapshot) +{ + enableAutoSnapshot_ = enableAutoSnapshot; + setParameter("EnableAutoSnapshot", std::to_string(enableAutoSnapshot)); +} + +std::string ModifyDiskAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDiskAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDiskAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDiskAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDiskAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyDiskAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyDiskAttributeRequest::getDiskId()const +{ + return diskId_; +} + +void ModifyDiskAttributeRequest::setDiskId(const std::string& diskId) +{ + diskId_ = diskId; + setParameter("DiskId", diskId); +} + +long ModifyDiskAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDiskAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool ModifyDiskAttributeRequest::getDeleteWithInstance()const +{ + return deleteWithInstance_; +} + +void ModifyDiskAttributeRequest::setDeleteWithInstance(bool deleteWithInstance) +{ + deleteWithInstance_ = deleteWithInstance; + setParameter("DeleteWithInstance", std::to_string(deleteWithInstance)); +} + diff --git a/ecs/src/model/ModifyDiskAttributeResult.cc b/ecs/src/model/ModifyDiskAttributeResult.cc new file mode 100644 index 000000000..c52440ea7 --- /dev/null +++ b/ecs/src/model/ModifyDiskAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyDiskAttributeResult::ModifyDiskAttributeResult() : + ServiceResult() +{} + +ModifyDiskAttributeResult::ModifyDiskAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDiskAttributeResult::~ModifyDiskAttributeResult() +{} + +void ModifyDiskAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyDiskChargeTypeRequest.cc b/ecs/src/model/ModifyDiskChargeTypeRequest.cc new file mode 100644 index 000000000..94730ae77 --- /dev/null +++ b/ecs/src/model/ModifyDiskChargeTypeRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyDiskChargeTypeRequest::ModifyDiskChargeTypeRequest() : + EcsRequest("ModifyDiskChargeType") +{} + +ModifyDiskChargeTypeRequest::~ModifyDiskChargeTypeRequest() +{} + +long ModifyDiskChargeTypeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDiskChargeTypeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDiskChargeTypeRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyDiskChargeTypeRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +bool ModifyDiskChargeTypeRequest::getAutoPay()const +{ + return autoPay_; +} + +void ModifyDiskChargeTypeRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setParameter("AutoPay", std::to_string(autoPay)); +} + +std::string ModifyDiskChargeTypeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDiskChargeTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDiskChargeTypeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyDiskChargeTypeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyDiskChargeTypeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyDiskChargeTypeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyDiskChargeTypeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDiskChargeTypeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDiskChargeTypeRequest::getDiskIds()const +{ + return diskIds_; +} + +void ModifyDiskChargeTypeRequest::setDiskIds(const std::string& diskIds) +{ + diskIds_ = diskIds; + setParameter("DiskIds", diskIds); +} + +long ModifyDiskChargeTypeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDiskChargeTypeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifyDiskChargeTypeResult.cc b/ecs/src/model/ModifyDiskChargeTypeResult.cc new file mode 100644 index 000000000..8d9c491f6 --- /dev/null +++ b/ecs/src/model/ModifyDiskChargeTypeResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyDiskChargeTypeResult::ModifyDiskChargeTypeResult() : + ServiceResult() +{} + +ModifyDiskChargeTypeResult::ModifyDiskChargeTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDiskChargeTypeResult::~ModifyDiskChargeTypeResult() +{} + +void ModifyDiskChargeTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + orderId_ = value["OrderId"].asString(); + +} + +std::string ModifyDiskChargeTypeResult::getOrderId()const +{ + return orderId_; +} + +void ModifyDiskChargeTypeResult::setOrderId(const std::string& orderId) +{ + orderId_ = orderId; +} + diff --git a/ecs/src/model/ModifyEipAddressAttributeRequest.cc b/ecs/src/model/ModifyEipAddressAttributeRequest.cc new file mode 100644 index 000000000..6b4d69164 --- /dev/null +++ b/ecs/src/model/ModifyEipAddressAttributeRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyEipAddressAttributeRequest::ModifyEipAddressAttributeRequest() : + EcsRequest("ModifyEipAddressAttribute") +{} + +ModifyEipAddressAttributeRequest::~ModifyEipAddressAttributeRequest() +{} + +long ModifyEipAddressAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyEipAddressAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyEipAddressAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyEipAddressAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyEipAddressAttributeRequest::getBandwidth()const +{ + return bandwidth_; +} + +void ModifyEipAddressAttributeRequest::setBandwidth(const std::string& bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", bandwidth); +} + +std::string ModifyEipAddressAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyEipAddressAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyEipAddressAttributeRequest::getAllocationId()const +{ + return allocationId_; +} + +void ModifyEipAddressAttributeRequest::setAllocationId(const std::string& allocationId) +{ + allocationId_ = allocationId; + setParameter("AllocationId", allocationId); +} + +long ModifyEipAddressAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyEipAddressAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifyEipAddressAttributeResult.cc b/ecs/src/model/ModifyEipAddressAttributeResult.cc new file mode 100644 index 000000000..037d61bdd --- /dev/null +++ b/ecs/src/model/ModifyEipAddressAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyEipAddressAttributeResult::ModifyEipAddressAttributeResult() : + ServiceResult() +{} + +ModifyEipAddressAttributeResult::ModifyEipAddressAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyEipAddressAttributeResult::~ModifyEipAddressAttributeResult() +{} + +void ModifyEipAddressAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyForwardEntryRequest.cc b/ecs/src/model/ModifyForwardEntryRequest.cc new file mode 100644 index 000000000..b09cb4d7a --- /dev/null +++ b/ecs/src/model/ModifyForwardEntryRequest.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyForwardEntryRequest::ModifyForwardEntryRequest() : + EcsRequest("ModifyForwardEntry") +{} + +ModifyForwardEntryRequest::~ModifyForwardEntryRequest() +{} + +long ModifyForwardEntryRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyForwardEntryRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyForwardEntryRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void ModifyForwardEntryRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setParameter("IpProtocol", ipProtocol); +} + +std::string ModifyForwardEntryRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyForwardEntryRequest::getForwardTableId()const +{ + return forwardTableId_; +} + +void ModifyForwardEntryRequest::setForwardTableId(const std::string& forwardTableId) +{ + forwardTableId_ = forwardTableId; + setParameter("ForwardTableId", forwardTableId); +} + +long ModifyForwardEntryRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyForwardEntryRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyForwardEntryRequest::getInternalIp()const +{ + return internalIp_; +} + +void ModifyForwardEntryRequest::setInternalIp(const std::string& internalIp) +{ + internalIp_ = internalIp; + setParameter("InternalIp", internalIp); +} + +std::string ModifyForwardEntryRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyForwardEntryRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyForwardEntryRequest::getForwardEntryId()const +{ + return forwardEntryId_; +} + +void ModifyForwardEntryRequest::setForwardEntryId(const std::string& forwardEntryId) +{ + forwardEntryId_ = forwardEntryId; + setParameter("ForwardEntryId", forwardEntryId); +} + +std::string ModifyForwardEntryRequest::getInternalPort()const +{ + return internalPort_; +} + +void ModifyForwardEntryRequest::setInternalPort(const std::string& internalPort) +{ + internalPort_ = internalPort; + setParameter("InternalPort", internalPort); +} + +std::string ModifyForwardEntryRequest::getExternalIp()const +{ + return externalIp_; +} + +void ModifyForwardEntryRequest::setExternalIp(const std::string& externalIp) +{ + externalIp_ = externalIp; + setParameter("ExternalIp", externalIp); +} + +std::string ModifyForwardEntryRequest::getExternalPort()const +{ + return externalPort_; +} + +void ModifyForwardEntryRequest::setExternalPort(const std::string& externalPort) +{ + externalPort_ = externalPort; + setParameter("ExternalPort", externalPort); +} + diff --git a/ecs/src/model/ModifyForwardEntryResult.cc b/ecs/src/model/ModifyForwardEntryResult.cc new file mode 100644 index 000000000..385c8afcb --- /dev/null +++ b/ecs/src/model/ModifyForwardEntryResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyForwardEntryResult::ModifyForwardEntryResult() : + ServiceResult() +{} + +ModifyForwardEntryResult::ModifyForwardEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyForwardEntryResult::~ModifyForwardEntryResult() +{} + +void ModifyForwardEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyHaVipAttributeRequest.cc b/ecs/src/model/ModifyHaVipAttributeRequest.cc new file mode 100644 index 000000000..c3700e417 --- /dev/null +++ b/ecs/src/model/ModifyHaVipAttributeRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyHaVipAttributeRequest::ModifyHaVipAttributeRequest() : + EcsRequest("ModifyHaVipAttribute") +{} + +ModifyHaVipAttributeRequest::~ModifyHaVipAttributeRequest() +{} + +std::string ModifyHaVipAttributeRequest::getHaVipId()const +{ + return haVipId_; +} + +void ModifyHaVipAttributeRequest::setHaVipId(const std::string& haVipId) +{ + haVipId_ = haVipId; + setParameter("HaVipId", haVipId); +} + +long ModifyHaVipAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyHaVipAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyHaVipAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyHaVipAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyHaVipAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyHaVipAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyHaVipAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyHaVipAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyHaVipAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyHaVipAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyHaVipAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyHaVipAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyHaVipAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyHaVipAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifyHaVipAttributeResult.cc b/ecs/src/model/ModifyHaVipAttributeResult.cc new file mode 100644 index 000000000..0c1ed9d4d --- /dev/null +++ b/ecs/src/model/ModifyHaVipAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyHaVipAttributeResult::ModifyHaVipAttributeResult() : + ServiceResult() +{} + +ModifyHaVipAttributeResult::ModifyHaVipAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyHaVipAttributeResult::~ModifyHaVipAttributeResult() +{} + +void ModifyHaVipAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyHpcClusterAttributeRequest.cc b/ecs/src/model/ModifyHpcClusterAttributeRequest.cc new file mode 100644 index 000000000..e458e8cdb --- /dev/null +++ b/ecs/src/model/ModifyHpcClusterAttributeRequest.cc @@ -0,0 +1,325 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyHpcClusterAttributeRequest::ModifyHpcClusterAttributeRequest() : + EcsRequest("ModifyHpcClusterAttribute") +{} + +ModifyHpcClusterAttributeRequest::~ModifyHpcClusterAttributeRequest() +{} + +long ModifyHpcClusterAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyHpcClusterAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyHpcClusterAttributeRequest::getHpcClusterId()const +{ + return hpcClusterId_; +} + +void ModifyHpcClusterAttributeRequest::setHpcClusterId(const std::string& hpcClusterId) +{ + hpcClusterId_ = hpcClusterId; + setParameter("HpcClusterId", hpcClusterId); +} + +std::string ModifyHpcClusterAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyHpcClusterAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +long ModifyHpcClusterAttributeRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ModifyHpcClusterAttributeRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ModifyHpcClusterAttributeRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ModifyHpcClusterAttributeRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string ModifyHpcClusterAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyHpcClusterAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyHpcClusterAttributeRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ModifyHpcClusterAttributeRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ModifyHpcClusterAttributeRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void ModifyHpcClusterAttributeRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string ModifyHpcClusterAttributeRequest::getCallerType()const +{ + return callerType_; +} + +void ModifyHpcClusterAttributeRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string ModifyHpcClusterAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyHpcClusterAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyHpcClusterAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyHpcClusterAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyHpcClusterAttributeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyHpcClusterAttributeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +bool ModifyHpcClusterAttributeRequest::getEnable()const +{ + return enable_; +} + +void ModifyHpcClusterAttributeRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string ModifyHpcClusterAttributeRequest::getRequestContent()const +{ + return requestContent_; +} + +void ModifyHpcClusterAttributeRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string ModifyHpcClusterAttributeRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void ModifyHpcClusterAttributeRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string ModifyHpcClusterAttributeRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void ModifyHpcClusterAttributeRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long ModifyHpcClusterAttributeRequest::getCallerUid()const +{ + return callerUid_; +} + +void ModifyHpcClusterAttributeRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ModifyHpcClusterAttributeRequest::getApp_ip()const +{ + return app_ip_; +} + +void ModifyHpcClusterAttributeRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string ModifyHpcClusterAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyHpcClusterAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyHpcClusterAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyHpcClusterAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyHpcClusterAttributeRequest::getCallerBid()const +{ + return callerBid_; +} + +void ModifyHpcClusterAttributeRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long ModifyHpcClusterAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyHpcClusterAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool ModifyHpcClusterAttributeRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ModifyHpcClusterAttributeRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool ModifyHpcClusterAttributeRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ModifyHpcClusterAttributeRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool ModifyHpcClusterAttributeRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ModifyHpcClusterAttributeRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string ModifyHpcClusterAttributeRequest::getRequestId()const +{ + return requestId_; +} + +void ModifyHpcClusterAttributeRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string ModifyHpcClusterAttributeRequest::getName()const +{ + return name_; +} + +void ModifyHpcClusterAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/ecs/src/model/ModifyHpcClusterAttributeResult.cc b/ecs/src/model/ModifyHpcClusterAttributeResult.cc new file mode 100644 index 000000000..669bb1b4a --- /dev/null +++ b/ecs/src/model/ModifyHpcClusterAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyHpcClusterAttributeResult::ModifyHpcClusterAttributeResult() : + ServiceResult() +{} + +ModifyHpcClusterAttributeResult::ModifyHpcClusterAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyHpcClusterAttributeResult::~ModifyHpcClusterAttributeResult() +{} + +void ModifyHpcClusterAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyImageAttributeRequest.cc b/ecs/src/model/ModifyImageAttributeRequest.cc new file mode 100644 index 000000000..719691e66 --- /dev/null +++ b/ecs/src/model/ModifyImageAttributeRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyImageAttributeRequest::ModifyImageAttributeRequest() : + EcsRequest("ModifyImageAttribute") +{} + +ModifyImageAttributeRequest::~ModifyImageAttributeRequest() +{} + +long ModifyImageAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyImageAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyImageAttributeRequest::getImageId()const +{ + return imageId_; +} + +void ModifyImageAttributeRequest::setImageId(const std::string& imageId) +{ + imageId_ = imageId; + setParameter("ImageId", imageId); +} + +std::string ModifyImageAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyImageAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyImageAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyImageAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyImageAttributeRequest::getImageName()const +{ + return imageName_; +} + +void ModifyImageAttributeRequest::setImageName(const std::string& imageName) +{ + imageName_ = imageName; + setParameter("ImageName", imageName); +} + +std::string ModifyImageAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyImageAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyImageAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyImageAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyImageAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyImageAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifyImageAttributeResult.cc b/ecs/src/model/ModifyImageAttributeResult.cc new file mode 100644 index 000000000..c968ca384 --- /dev/null +++ b/ecs/src/model/ModifyImageAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyImageAttributeResult::ModifyImageAttributeResult() : + ServiceResult() +{} + +ModifyImageAttributeResult::ModifyImageAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyImageAttributeResult::~ModifyImageAttributeResult() +{} + +void ModifyImageAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyImageShareGroupPermissionRequest.cc b/ecs/src/model/ModifyImageShareGroupPermissionRequest.cc new file mode 100644 index 000000000..e750f383b --- /dev/null +++ b/ecs/src/model/ModifyImageShareGroupPermissionRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyImageShareGroupPermissionRequest::ModifyImageShareGroupPermissionRequest() : + EcsRequest("ModifyImageShareGroupPermission") +{} + +ModifyImageShareGroupPermissionRequest::~ModifyImageShareGroupPermissionRequest() +{} + +long ModifyImageShareGroupPermissionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyImageShareGroupPermissionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyImageShareGroupPermissionRequest::getImageId()const +{ + return imageId_; +} + +void ModifyImageShareGroupPermissionRequest::setImageId(const std::string& imageId) +{ + imageId_ = imageId; + setParameter("ImageId", imageId); +} + +std::string ModifyImageShareGroupPermissionRequest::getAddGroup1()const +{ + return addGroup1_; +} + +void ModifyImageShareGroupPermissionRequest::setAddGroup1(const std::string& addGroup1) +{ + addGroup1_ = addGroup1; + setParameter("AddGroup1", addGroup1); +} + +std::string ModifyImageShareGroupPermissionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyImageShareGroupPermissionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyImageShareGroupPermissionRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyImageShareGroupPermissionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyImageShareGroupPermissionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyImageShareGroupPermissionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyImageShareGroupPermissionRequest::getRemoveGroup1()const +{ + return removeGroup1_; +} + +void ModifyImageShareGroupPermissionRequest::setRemoveGroup1(const std::string& removeGroup1) +{ + removeGroup1_ = removeGroup1; + setParameter("RemoveGroup1", removeGroup1); +} + +long ModifyImageShareGroupPermissionRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyImageShareGroupPermissionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifyImageShareGroupPermissionResult.cc b/ecs/src/model/ModifyImageShareGroupPermissionResult.cc new file mode 100644 index 000000000..28f195535 --- /dev/null +++ b/ecs/src/model/ModifyImageShareGroupPermissionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyImageShareGroupPermissionResult::ModifyImageShareGroupPermissionResult() : + ServiceResult() +{} + +ModifyImageShareGroupPermissionResult::ModifyImageShareGroupPermissionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyImageShareGroupPermissionResult::~ModifyImageShareGroupPermissionResult() +{} + +void ModifyImageShareGroupPermissionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyImageSharePermissionRequest.cc b/ecs/src/model/ModifyImageSharePermissionRequest.cc new file mode 100644 index 000000000..ae8bcc25a --- /dev/null +++ b/ecs/src/model/ModifyImageSharePermissionRequest.cc @@ -0,0 +1,314 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyImageSharePermissionRequest::ModifyImageSharePermissionRequest() : + EcsRequest("ModifyImageSharePermission") +{} + +ModifyImageSharePermissionRequest::~ModifyImageSharePermissionRequest() +{} + +std::string ModifyImageSharePermissionRequest::getAddAccount1()const +{ + return addAccount1_; +} + +void ModifyImageSharePermissionRequest::setAddAccount1(const std::string& addAccount1) +{ + addAccount1_ = addAccount1; + setParameter("AddAccount1", addAccount1); +} + +long ModifyImageSharePermissionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyImageSharePermissionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyImageSharePermissionRequest::getImageId()const +{ + return imageId_; +} + +void ModifyImageSharePermissionRequest::setImageId(const std::string& imageId) +{ + imageId_ = imageId; + setParameter("ImageId", imageId); +} + +std::string ModifyImageSharePermissionRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyImageSharePermissionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyImageSharePermissionRequest::getAddAccount9()const +{ + return addAccount9_; +} + +void ModifyImageSharePermissionRequest::setAddAccount9(const std::string& addAccount9) +{ + addAccount9_ = addAccount9; + setParameter("AddAccount9", addAccount9); +} + +std::string ModifyImageSharePermissionRequest::getAddAccount8()const +{ + return addAccount8_; +} + +void ModifyImageSharePermissionRequest::setAddAccount8(const std::string& addAccount8) +{ + addAccount8_ = addAccount8; + setParameter("AddAccount8", addAccount8); +} + +std::string ModifyImageSharePermissionRequest::getAddAccount7()const +{ + return addAccount7_; +} + +void ModifyImageSharePermissionRequest::setAddAccount7(const std::string& addAccount7) +{ + addAccount7_ = addAccount7; + setParameter("AddAccount7", addAccount7); +} + +std::string ModifyImageSharePermissionRequest::getAddAccount6()const +{ + return addAccount6_; +} + +void ModifyImageSharePermissionRequest::setAddAccount6(const std::string& addAccount6) +{ + addAccount6_ = addAccount6; + setParameter("AddAccount6", addAccount6); +} + +std::string ModifyImageSharePermissionRequest::getAddAccount5()const +{ + return addAccount5_; +} + +void ModifyImageSharePermissionRequest::setAddAccount5(const std::string& addAccount5) +{ + addAccount5_ = addAccount5; + setParameter("AddAccount5", addAccount5); +} + +std::string ModifyImageSharePermissionRequest::getAddAccount10()const +{ + return addAccount10_; +} + +void ModifyImageSharePermissionRequest::setAddAccount10(const std::string& addAccount10) +{ + addAccount10_ = addAccount10; + setParameter("AddAccount10", addAccount10); +} + +std::string ModifyImageSharePermissionRequest::getAddAccount4()const +{ + return addAccount4_; +} + +void ModifyImageSharePermissionRequest::setAddAccount4(const std::string& addAccount4) +{ + addAccount4_ = addAccount4; + setParameter("AddAccount4", addAccount4); +} + +std::string ModifyImageSharePermissionRequest::getAddAccount3()const +{ + return addAccount3_; +} + +void ModifyImageSharePermissionRequest::setAddAccount3(const std::string& addAccount3) +{ + addAccount3_ = addAccount3; + setParameter("AddAccount3", addAccount3); +} + +std::string ModifyImageSharePermissionRequest::getAddAccount2()const +{ + return addAccount2_; +} + +void ModifyImageSharePermissionRequest::setAddAccount2(const std::string& addAccount2) +{ + addAccount2_ = addAccount2; + setParameter("AddAccount2", addAccount2); +} + +std::string ModifyImageSharePermissionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyImageSharePermissionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyImageSharePermissionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyImageSharePermissionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyImageSharePermissionRequest::getRemoveAccount1()const +{ + return removeAccount1_; +} + +void ModifyImageSharePermissionRequest::setRemoveAccount1(const std::string& removeAccount1) +{ + removeAccount1_ = removeAccount1; + setParameter("RemoveAccount1", removeAccount1); +} + +std::string ModifyImageSharePermissionRequest::getRemoveAccount2()const +{ + return removeAccount2_; +} + +void ModifyImageSharePermissionRequest::setRemoveAccount2(const std::string& removeAccount2) +{ + removeAccount2_ = removeAccount2; + setParameter("RemoveAccount2", removeAccount2); +} + +std::string ModifyImageSharePermissionRequest::getRemoveAccount3()const +{ + return removeAccount3_; +} + +void ModifyImageSharePermissionRequest::setRemoveAccount3(const std::string& removeAccount3) +{ + removeAccount3_ = removeAccount3; + setParameter("RemoveAccount3", removeAccount3); +} + +std::string ModifyImageSharePermissionRequest::getRemoveAccount4()const +{ + return removeAccount4_; +} + +void ModifyImageSharePermissionRequest::setRemoveAccount4(const std::string& removeAccount4) +{ + removeAccount4_ = removeAccount4; + setParameter("RemoveAccount4", removeAccount4); +} + +long ModifyImageSharePermissionRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyImageSharePermissionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyImageSharePermissionRequest::getRemoveAccount9()const +{ + return removeAccount9_; +} + +void ModifyImageSharePermissionRequest::setRemoveAccount9(const std::string& removeAccount9) +{ + removeAccount9_ = removeAccount9; + setParameter("RemoveAccount9", removeAccount9); +} + +std::string ModifyImageSharePermissionRequest::getRemoveAccount5()const +{ + return removeAccount5_; +} + +void ModifyImageSharePermissionRequest::setRemoveAccount5(const std::string& removeAccount5) +{ + removeAccount5_ = removeAccount5; + setParameter("RemoveAccount5", removeAccount5); +} + +std::string ModifyImageSharePermissionRequest::getRemoveAccount6()const +{ + return removeAccount6_; +} + +void ModifyImageSharePermissionRequest::setRemoveAccount6(const std::string& removeAccount6) +{ + removeAccount6_ = removeAccount6; + setParameter("RemoveAccount6", removeAccount6); +} + +std::string ModifyImageSharePermissionRequest::getRemoveAccount7()const +{ + return removeAccount7_; +} + +void ModifyImageSharePermissionRequest::setRemoveAccount7(const std::string& removeAccount7) +{ + removeAccount7_ = removeAccount7; + setParameter("RemoveAccount7", removeAccount7); +} + +std::string ModifyImageSharePermissionRequest::getRemoveAccount8()const +{ + return removeAccount8_; +} + +void ModifyImageSharePermissionRequest::setRemoveAccount8(const std::string& removeAccount8) +{ + removeAccount8_ = removeAccount8; + setParameter("RemoveAccount8", removeAccount8); +} + +std::string ModifyImageSharePermissionRequest::getRemoveAccount10()const +{ + return removeAccount10_; +} + +void ModifyImageSharePermissionRequest::setRemoveAccount10(const std::string& removeAccount10) +{ + removeAccount10_ = removeAccount10; + setParameter("RemoveAccount10", removeAccount10); +} + diff --git a/ecs/src/model/ModifyImageSharePermissionResult.cc b/ecs/src/model/ModifyImageSharePermissionResult.cc new file mode 100644 index 000000000..1d7fdebf7 --- /dev/null +++ b/ecs/src/model/ModifyImageSharePermissionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyImageSharePermissionResult::ModifyImageSharePermissionResult() : + ServiceResult() +{} + +ModifyImageSharePermissionResult::ModifyImageSharePermissionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyImageSharePermissionResult::~ModifyImageSharePermissionResult() +{} + +void ModifyImageSharePermissionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyInstanceAttributeRequest.cc b/ecs/src/model/ModifyInstanceAttributeRequest.cc new file mode 100644 index 000000000..73db0d447 --- /dev/null +++ b/ecs/src/model/ModifyInstanceAttributeRequest.cc @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceAttributeRequest::ModifyInstanceAttributeRequest() : + EcsRequest("ModifyInstanceAttribute") +{} + +ModifyInstanceAttributeRequest::~ModifyInstanceAttributeRequest() +{} + +std::string ModifyInstanceAttributeRequest::getUserData()const +{ + return userData_; +} + +void ModifyInstanceAttributeRequest::setUserData(const std::string& userData) +{ + userData_ = userData; + setParameter("UserData", userData); +} + +long ModifyInstanceAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyInstanceAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyInstanceAttributeRequest::getPassword()const +{ + return password_; +} + +void ModifyInstanceAttributeRequest::setPassword(const std::string& password) +{ + password_ = password; + setParameter("Password", password); +} + +std::string ModifyInstanceAttributeRequest::getHostName()const +{ + return hostName_; +} + +void ModifyInstanceAttributeRequest::setHostName(const std::string& hostName) +{ + hostName_ = hostName; + setParameter("HostName", hostName); +} + +std::string ModifyInstanceAttributeRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyInstanceAttributeRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyInstanceAttributeRequest::getInstanceName()const +{ + return instanceName_; +} + +void ModifyInstanceAttributeRequest::setInstanceName(const std::string& instanceName) +{ + instanceName_ = instanceName; + setParameter("InstanceName", instanceName); +} + +std::string ModifyInstanceAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyInstanceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +bool ModifyInstanceAttributeRequest::getRecyclable()const +{ + return recyclable_; +} + +void ModifyInstanceAttributeRequest::setRecyclable(bool recyclable) +{ + recyclable_ = recyclable; + setParameter("Recyclable", std::to_string(recyclable)); +} + +std::string ModifyInstanceAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyInstanceAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyInstanceAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyInstanceAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyInstanceAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyInstanceAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifyInstanceAttributeResult.cc b/ecs/src/model/ModifyInstanceAttributeResult.cc new file mode 100644 index 000000000..0a6227098 --- /dev/null +++ b/ecs/src/model/ModifyInstanceAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceAttributeResult::ModifyInstanceAttributeResult() : + ServiceResult() +{} + +ModifyInstanceAttributeResult::ModifyInstanceAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceAttributeResult::~ModifyInstanceAttributeResult() +{} + +void ModifyInstanceAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyInstanceAutoReleaseTimeRequest.cc b/ecs/src/model/ModifyInstanceAutoReleaseTimeRequest.cc new file mode 100644 index 000000000..f89f0deb6 --- /dev/null +++ b/ecs/src/model/ModifyInstanceAutoReleaseTimeRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceAutoReleaseTimeRequest::ModifyInstanceAutoReleaseTimeRequest() : + EcsRequest("ModifyInstanceAutoReleaseTime") +{} + +ModifyInstanceAutoReleaseTimeRequest::~ModifyInstanceAutoReleaseTimeRequest() +{} + +long ModifyInstanceAutoReleaseTimeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyInstanceAutoReleaseTimeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyInstanceAutoReleaseTimeRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyInstanceAutoReleaseTimeRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyInstanceAutoReleaseTimeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyInstanceAutoReleaseTimeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyInstanceAutoReleaseTimeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyInstanceAutoReleaseTimeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyInstanceAutoReleaseTimeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyInstanceAutoReleaseTimeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyInstanceAutoReleaseTimeRequest::getAutoReleaseTime()const +{ + return autoReleaseTime_; +} + +void ModifyInstanceAutoReleaseTimeRequest::setAutoReleaseTime(const std::string& autoReleaseTime) +{ + autoReleaseTime_ = autoReleaseTime; + setParameter("AutoReleaseTime", autoReleaseTime); +} + +long ModifyInstanceAutoReleaseTimeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyInstanceAutoReleaseTimeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifyInstanceAutoReleaseTimeResult.cc b/ecs/src/model/ModifyInstanceAutoReleaseTimeResult.cc new file mode 100644 index 000000000..8db4591aa --- /dev/null +++ b/ecs/src/model/ModifyInstanceAutoReleaseTimeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceAutoReleaseTimeResult::ModifyInstanceAutoReleaseTimeResult() : + ServiceResult() +{} + +ModifyInstanceAutoReleaseTimeResult::ModifyInstanceAutoReleaseTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceAutoReleaseTimeResult::~ModifyInstanceAutoReleaseTimeResult() +{} + +void ModifyInstanceAutoReleaseTimeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyInstanceAutoRenewAttributeRequest.cc b/ecs/src/model/ModifyInstanceAutoRenewAttributeRequest.cc new file mode 100644 index 000000000..5343454d5 --- /dev/null +++ b/ecs/src/model/ModifyInstanceAutoRenewAttributeRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceAutoRenewAttributeRequest::ModifyInstanceAutoRenewAttributeRequest() : + EcsRequest("ModifyInstanceAutoRenewAttribute") +{} + +ModifyInstanceAutoRenewAttributeRequest::~ModifyInstanceAutoRenewAttributeRequest() +{} + +int ModifyInstanceAutoRenewAttributeRequest::getDuration()const +{ + return duration_; +} + +void ModifyInstanceAutoRenewAttributeRequest::setDuration(int duration) +{ + duration_ = duration; + setParameter("Duration", std::to_string(duration)); +} + +long ModifyInstanceAutoRenewAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyInstanceAutoRenewAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyInstanceAutoRenewAttributeRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyInstanceAutoRenewAttributeRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +bool ModifyInstanceAutoRenewAttributeRequest::getAutoRenew()const +{ + return autoRenew_; +} + +void ModifyInstanceAutoRenewAttributeRequest::setAutoRenew(bool autoRenew) +{ + autoRenew_ = autoRenew; + setParameter("AutoRenew", std::to_string(autoRenew)); +} + +std::string ModifyInstanceAutoRenewAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyInstanceAutoRenewAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyInstanceAutoRenewAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyInstanceAutoRenewAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyInstanceAutoRenewAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyInstanceAutoRenewAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyInstanceAutoRenewAttributeRequest::getRenewalStatus()const +{ + return renewalStatus_; +} + +void ModifyInstanceAutoRenewAttributeRequest::setRenewalStatus(const std::string& renewalStatus) +{ + renewalStatus_ = renewalStatus; + setParameter("RenewalStatus", renewalStatus); +} + +long ModifyInstanceAutoRenewAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyInstanceAutoRenewAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifyInstanceAutoRenewAttributeResult.cc b/ecs/src/model/ModifyInstanceAutoRenewAttributeResult.cc new file mode 100644 index 000000000..4c6ca46e9 --- /dev/null +++ b/ecs/src/model/ModifyInstanceAutoRenewAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceAutoRenewAttributeResult::ModifyInstanceAutoRenewAttributeResult() : + ServiceResult() +{} + +ModifyInstanceAutoRenewAttributeResult::ModifyInstanceAutoRenewAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceAutoRenewAttributeResult::~ModifyInstanceAutoRenewAttributeResult() +{} + +void ModifyInstanceAutoRenewAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyInstanceChargeTypeRequest.cc b/ecs/src/model/ModifyInstanceChargeTypeRequest.cc new file mode 100644 index 000000000..f2c64a4d9 --- /dev/null +++ b/ecs/src/model/ModifyInstanceChargeTypeRequest.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceChargeTypeRequest::ModifyInstanceChargeTypeRequest() : + EcsRequest("ModifyInstanceChargeType") +{} + +ModifyInstanceChargeTypeRequest::~ModifyInstanceChargeTypeRequest() +{} + +long ModifyInstanceChargeTypeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyInstanceChargeTypeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int ModifyInstanceChargeTypeRequest::getPeriod()const +{ + return period_; +} + +void ModifyInstanceChargeTypeRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +bool ModifyInstanceChargeTypeRequest::getDryRun()const +{ + return dryRun_; +} + +void ModifyInstanceChargeTypeRequest::setDryRun(bool dryRun) +{ + dryRun_ = dryRun; + setParameter("DryRun", std::to_string(dryRun)); +} + +bool ModifyInstanceChargeTypeRequest::getAutoPay()const +{ + return autoPay_; +} + +void ModifyInstanceChargeTypeRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setParameter("AutoPay", std::to_string(autoPay)); +} + +bool ModifyInstanceChargeTypeRequest::getIncludeDataDisks()const +{ + return includeDataDisks_; +} + +void ModifyInstanceChargeTypeRequest::setIncludeDataDisks(bool includeDataDisks) +{ + includeDataDisks_ = includeDataDisks; + setParameter("IncludeDataDisks", std::to_string(includeDataDisks)); +} + +std::string ModifyInstanceChargeTypeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyInstanceChargeTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyInstanceChargeTypeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyInstanceChargeTypeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyInstanceChargeTypeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyInstanceChargeTypeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyInstanceChargeTypeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyInstanceChargeTypeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyInstanceChargeTypeRequest::getPeriodUnit()const +{ + return periodUnit_; +} + +void ModifyInstanceChargeTypeRequest::setPeriodUnit(const std::string& periodUnit) +{ + periodUnit_ = periodUnit; + setParameter("PeriodUnit", periodUnit); +} + +std::string ModifyInstanceChargeTypeRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void ModifyInstanceChargeTypeRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setParameter("InstanceIds", instanceIds); +} + +std::string ModifyInstanceChargeTypeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyInstanceChargeTypeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/ecs/src/model/ModifyInstanceChargeTypeResult.cc b/ecs/src/model/ModifyInstanceChargeTypeResult.cc new file mode 100644 index 000000000..29b2277d8 --- /dev/null +++ b/ecs/src/model/ModifyInstanceChargeTypeResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceChargeTypeResult::ModifyInstanceChargeTypeResult() : + ServiceResult() +{} + +ModifyInstanceChargeTypeResult::ModifyInstanceChargeTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceChargeTypeResult::~ModifyInstanceChargeTypeResult() +{} + +void ModifyInstanceChargeTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + orderId_ = value["OrderId"].asString(); + +} + +std::string ModifyInstanceChargeTypeResult::getOrderId()const +{ + return orderId_; +} + +void ModifyInstanceChargeTypeResult::setOrderId(const std::string& orderId) +{ + orderId_ = orderId; +} + diff --git a/ecs/src/model/ModifyInstanceNetworkSpecRequest.cc b/ecs/src/model/ModifyInstanceNetworkSpecRequest.cc new file mode 100644 index 000000000..f01090241 --- /dev/null +++ b/ecs/src/model/ModifyInstanceNetworkSpecRequest.cc @@ -0,0 +1,171 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceNetworkSpecRequest::ModifyInstanceNetworkSpecRequest() : + EcsRequest("ModifyInstanceNetworkSpec") +{} + +ModifyInstanceNetworkSpecRequest::~ModifyInstanceNetworkSpecRequest() +{} + +long ModifyInstanceNetworkSpecRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyInstanceNetworkSpecRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +bool ModifyInstanceNetworkSpecRequest::getAutoPay()const +{ + return autoPay_; +} + +void ModifyInstanceNetworkSpecRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setParameter("AutoPay", std::to_string(autoPay)); +} + +std::string ModifyInstanceNetworkSpecRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyInstanceNetworkSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyInstanceNetworkSpecRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyInstanceNetworkSpecRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyInstanceNetworkSpecRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyInstanceNetworkSpecRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int ModifyInstanceNetworkSpecRequest::getInternetMaxBandwidthOut()const +{ + return internetMaxBandwidthOut_; +} + +void ModifyInstanceNetworkSpecRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) +{ + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut)); +} + +std::string ModifyInstanceNetworkSpecRequest::getEndTime()const +{ + return endTime_; +} + +void ModifyInstanceNetworkSpecRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string ModifyInstanceNetworkSpecRequest::getStartTime()const +{ + return startTime_; +} + +void ModifyInstanceNetworkSpecRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +long ModifyInstanceNetworkSpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyInstanceNetworkSpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyInstanceNetworkSpecRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyInstanceNetworkSpecRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyInstanceNetworkSpecRequest::getNetworkChargeType()const +{ + return networkChargeType_; +} + +void ModifyInstanceNetworkSpecRequest::setNetworkChargeType(const std::string& networkChargeType) +{ + networkChargeType_ = networkChargeType; + setParameter("NetworkChargeType", networkChargeType); +} + +int ModifyInstanceNetworkSpecRequest::getInternetMaxBandwidthIn()const +{ + return internetMaxBandwidthIn_; +} + +void ModifyInstanceNetworkSpecRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) +{ + internetMaxBandwidthIn_ = internetMaxBandwidthIn; + setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn)); +} + +bool ModifyInstanceNetworkSpecRequest::getAllocatePublicIp()const +{ + return allocatePublicIp_; +} + +void ModifyInstanceNetworkSpecRequest::setAllocatePublicIp(bool allocatePublicIp) +{ + allocatePublicIp_ = allocatePublicIp; + setParameter("AllocatePublicIp", std::to_string(allocatePublicIp)); +} + diff --git a/ecs/src/model/ModifyInstanceNetworkSpecResult.cc b/ecs/src/model/ModifyInstanceNetworkSpecResult.cc new file mode 100644 index 000000000..710e7368f --- /dev/null +++ b/ecs/src/model/ModifyInstanceNetworkSpecResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceNetworkSpecResult::ModifyInstanceNetworkSpecResult() : + ServiceResult() +{} + +ModifyInstanceNetworkSpecResult::ModifyInstanceNetworkSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceNetworkSpecResult::~ModifyInstanceNetworkSpecResult() +{} + +void ModifyInstanceNetworkSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + orderId_ = value["OrderId"].asString(); + +} + +std::string ModifyInstanceNetworkSpecResult::getOrderId()const +{ + return orderId_; +} + +void ModifyInstanceNetworkSpecResult::setOrderId(const std::string& orderId) +{ + orderId_ = orderId; +} + diff --git a/ecs/src/model/ModifyInstanceSpecRequest.cc b/ecs/src/model/ModifyInstanceSpecRequest.cc new file mode 100644 index 000000000..67f78b5d8 --- /dev/null +++ b/ecs/src/model/ModifyInstanceSpecRequest.cc @@ -0,0 +1,193 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceSpecRequest::ModifyInstanceSpecRequest() : + EcsRequest("ModifyInstanceSpec") +{} + +ModifyInstanceSpecRequest::~ModifyInstanceSpecRequest() +{} + +long ModifyInstanceSpecRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyInstanceSpecRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyInstanceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyInstanceSpecRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyInstanceSpecRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +bool ModifyInstanceSpecRequest::getAllowMigrateAcrossZone()const +{ + return allowMigrateAcrossZone_; +} + +void ModifyInstanceSpecRequest::setAllowMigrateAcrossZone(bool allowMigrateAcrossZone) +{ + allowMigrateAcrossZone_ = allowMigrateAcrossZone; + setParameter("AllowMigrateAcrossZone", std::to_string(allowMigrateAcrossZone)); +} + +std::string ModifyInstanceSpecRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyInstanceSpecRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int ModifyInstanceSpecRequest::getInternetMaxBandwidthOut()const +{ + return internetMaxBandwidthOut_; +} + +void ModifyInstanceSpecRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) +{ + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut)); +} + +long ModifyInstanceSpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyInstanceSpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +int ModifyInstanceSpecRequest::getTemporaryInternetMaxBandwidthOut()const +{ + return temporaryInternetMaxBandwidthOut_; +} + +void ModifyInstanceSpecRequest::setTemporaryInternetMaxBandwidthOut(int temporaryInternetMaxBandwidthOut) +{ + temporaryInternetMaxBandwidthOut_ = temporaryInternetMaxBandwidthOut; + setParameter("TemporaryInternetMaxBandwidthOut", std::to_string(temporaryInternetMaxBandwidthOut)); +} + +std::string ModifyInstanceSpecRequest::getSystemDiskCategory()const +{ + return systemDiskCategory_; +} + +void ModifyInstanceSpecRequest::setSystemDiskCategory(const std::string& systemDiskCategory) +{ + systemDiskCategory_ = systemDiskCategory; + setParameter("SystemDiskCategory", systemDiskCategory); +} + +std::string ModifyInstanceSpecRequest::getTemporaryStartTime()const +{ + return temporaryStartTime_; +} + +void ModifyInstanceSpecRequest::setTemporaryStartTime(const std::string& temporaryStartTime) +{ + temporaryStartTime_ = temporaryStartTime; + setParameter("TemporaryStartTime", temporaryStartTime); +} + +bool ModifyInstanceSpecRequest::getAsync()const +{ + return async_; +} + +void ModifyInstanceSpecRequest::setAsync(bool async) +{ + async_ = async; + setParameter("Async", std::to_string(async)); +} + +std::string ModifyInstanceSpecRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyInstanceSpecRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyInstanceSpecRequest::getInstanceType()const +{ + return instanceType_; +} + +void ModifyInstanceSpecRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::string ModifyInstanceSpecRequest::getTemporaryEndTime()const +{ + return temporaryEndTime_; +} + +void ModifyInstanceSpecRequest::setTemporaryEndTime(const std::string& temporaryEndTime) +{ + temporaryEndTime_ = temporaryEndTime; + setParameter("TemporaryEndTime", temporaryEndTime); +} + +int ModifyInstanceSpecRequest::getInternetMaxBandwidthIn()const +{ + return internetMaxBandwidthIn_; +} + +void ModifyInstanceSpecRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) +{ + internetMaxBandwidthIn_ = internetMaxBandwidthIn; + setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn)); +} + diff --git a/ecs/src/model/ModifyInstanceSpecResult.cc b/ecs/src/model/ModifyInstanceSpecResult.cc new file mode 100644 index 000000000..3ef318f74 --- /dev/null +++ b/ecs/src/model/ModifyInstanceSpecResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceSpecResult::ModifyInstanceSpecResult() : + ServiceResult() +{} + +ModifyInstanceSpecResult::ModifyInstanceSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceSpecResult::~ModifyInstanceSpecResult() +{} + +void ModifyInstanceSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyInstanceVncPasswdRequest.cc b/ecs/src/model/ModifyInstanceVncPasswdRequest.cc new file mode 100644 index 000000000..3322b9752 --- /dev/null +++ b/ecs/src/model/ModifyInstanceVncPasswdRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceVncPasswdRequest::ModifyInstanceVncPasswdRequest() : + EcsRequest("ModifyInstanceVncPasswd") +{} + +ModifyInstanceVncPasswdRequest::~ModifyInstanceVncPasswdRequest() +{} + +long ModifyInstanceVncPasswdRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyInstanceVncPasswdRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyInstanceVncPasswdRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyInstanceVncPasswdRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyInstanceVncPasswdRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyInstanceVncPasswdRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyInstanceVncPasswdRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyInstanceVncPasswdRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyInstanceVncPasswdRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyInstanceVncPasswdRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyInstanceVncPasswdRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyInstanceVncPasswdRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyInstanceVncPasswdRequest::getVncPassword()const +{ + return vncPassword_; +} + +void ModifyInstanceVncPasswdRequest::setVncPassword(const std::string& vncPassword) +{ + vncPassword_ = vncPassword; + setParameter("VncPassword", vncPassword); +} + diff --git a/ecs/src/model/ModifyInstanceVncPasswdResult.cc b/ecs/src/model/ModifyInstanceVncPasswdResult.cc new file mode 100644 index 000000000..19c080fed --- /dev/null +++ b/ecs/src/model/ModifyInstanceVncPasswdResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceVncPasswdResult::ModifyInstanceVncPasswdResult() : + ServiceResult() +{} + +ModifyInstanceVncPasswdResult::ModifyInstanceVncPasswdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceVncPasswdResult::~ModifyInstanceVncPasswdResult() +{} + +void ModifyInstanceVncPasswdResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyInstanceVpcAttributeRequest.cc b/ecs/src/model/ModifyInstanceVpcAttributeRequest.cc new file mode 100644 index 000000000..9aff528e1 --- /dev/null +++ b/ecs/src/model/ModifyInstanceVpcAttributeRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceVpcAttributeRequest::ModifyInstanceVpcAttributeRequest() : + EcsRequest("ModifyInstanceVpcAttribute") +{} + +ModifyInstanceVpcAttributeRequest::~ModifyInstanceVpcAttributeRequest() +{} + +std::string ModifyInstanceVpcAttributeRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void ModifyInstanceVpcAttributeRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string ModifyInstanceVpcAttributeRequest::getPrivateIpAddress()const +{ + return privateIpAddress_; +} + +void ModifyInstanceVpcAttributeRequest::setPrivateIpAddress(const std::string& privateIpAddress) +{ + privateIpAddress_ = privateIpAddress; + setParameter("PrivateIpAddress", privateIpAddress); +} + +long ModifyInstanceVpcAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyInstanceVpcAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyInstanceVpcAttributeRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyInstanceVpcAttributeRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ModifyInstanceVpcAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyInstanceVpcAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyInstanceVpcAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyInstanceVpcAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyInstanceVpcAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyInstanceVpcAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifyInstanceVpcAttributeResult.cc b/ecs/src/model/ModifyInstanceVpcAttributeResult.cc new file mode 100644 index 000000000..6232e63cf --- /dev/null +++ b/ecs/src/model/ModifyInstanceVpcAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyInstanceVpcAttributeResult::ModifyInstanceVpcAttributeResult() : + ServiceResult() +{} + +ModifyInstanceVpcAttributeResult::ModifyInstanceVpcAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceVpcAttributeResult::~ModifyInstanceVpcAttributeResult() +{} + +void ModifyInstanceVpcAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyIntranetBandwidthKbRequest.cc b/ecs/src/model/ModifyIntranetBandwidthKbRequest.cc new file mode 100644 index 000000000..289c4a14a --- /dev/null +++ b/ecs/src/model/ModifyIntranetBandwidthKbRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyIntranetBandwidthKbRequest::ModifyIntranetBandwidthKbRequest() : + EcsRequest("ModifyIntranetBandwidthKb") +{} + +ModifyIntranetBandwidthKbRequest::~ModifyIntranetBandwidthKbRequest() +{} + +long ModifyIntranetBandwidthKbRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyIntranetBandwidthKbRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int ModifyIntranetBandwidthKbRequest::getIntranetMaxBandwidthOut()const +{ + return intranetMaxBandwidthOut_; +} + +void ModifyIntranetBandwidthKbRequest::setIntranetMaxBandwidthOut(int intranetMaxBandwidthOut) +{ + intranetMaxBandwidthOut_ = intranetMaxBandwidthOut; + setParameter("IntranetMaxBandwidthOut", std::to_string(intranetMaxBandwidthOut)); +} + +std::string ModifyIntranetBandwidthKbRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyIntranetBandwidthKbRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int ModifyIntranetBandwidthKbRequest::getIntranetMaxBandwidthIn()const +{ + return intranetMaxBandwidthIn_; +} + +void ModifyIntranetBandwidthKbRequest::setIntranetMaxBandwidthIn(int intranetMaxBandwidthIn) +{ + intranetMaxBandwidthIn_ = intranetMaxBandwidthIn; + setParameter("IntranetMaxBandwidthIn", std::to_string(intranetMaxBandwidthIn)); +} + +std::string ModifyIntranetBandwidthKbRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyIntranetBandwidthKbRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyIntranetBandwidthKbRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyIntranetBandwidthKbRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyIntranetBandwidthKbRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyIntranetBandwidthKbRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifyIntranetBandwidthKbResult.cc b/ecs/src/model/ModifyIntranetBandwidthKbResult.cc new file mode 100644 index 000000000..b72bac119 --- /dev/null +++ b/ecs/src/model/ModifyIntranetBandwidthKbResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyIntranetBandwidthKbResult::ModifyIntranetBandwidthKbResult() : + ServiceResult() +{} + +ModifyIntranetBandwidthKbResult::ModifyIntranetBandwidthKbResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyIntranetBandwidthKbResult::~ModifyIntranetBandwidthKbResult() +{} + +void ModifyIntranetBandwidthKbResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyNetworkInterfaceAttributeRequest.cc b/ecs/src/model/ModifyNetworkInterfaceAttributeRequest.cc new file mode 100644 index 000000000..c6afb2c73 --- /dev/null +++ b/ecs/src/model/ModifyNetworkInterfaceAttributeRequest.cc @@ -0,0 +1,337 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyNetworkInterfaceAttributeRequest::ModifyNetworkInterfaceAttributeRequest() : + EcsRequest("ModifyNetworkInterfaceAttribute") +{} + +ModifyNetworkInterfaceAttributeRequest::~ModifyNetworkInterfaceAttributeRequest() +{} + +long ModifyNetworkInterfaceAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyNetworkInterfaceAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long ModifyNetworkInterfaceAttributeRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ModifyNetworkInterfaceAttributeRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::vector ModifyNetworkInterfaceAttributeRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void ModifyNetworkInterfaceAttributeRequest::setSecurityGroupId(const std::vector& securityGroupId) +{ + securityGroupId_ = securityGroupId; + for(int i = 0; i!= securityGroupId.size(); i++) + setParameter("SecurityGroupId."+ std::to_string(i), securityGroupId.at(i)); +} + +bool ModifyNetworkInterfaceAttributeRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ModifyNetworkInterfaceAttributeRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyNetworkInterfaceAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ModifyNetworkInterfaceAttributeRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void ModifyNetworkInterfaceAttributeRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getCallerType()const +{ + return callerType_; +} + +void ModifyNetworkInterfaceAttributeRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyNetworkInterfaceAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void ModifyNetworkInterfaceAttributeRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyNetworkInterfaceAttributeRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyNetworkInterfaceAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool ModifyNetworkInterfaceAttributeRequest::getEnable()const +{ + return enable_; +} + +void ModifyNetworkInterfaceAttributeRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getRequestContent()const +{ + return requestContent_; +} + +void ModifyNetworkInterfaceAttributeRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void ModifyNetworkInterfaceAttributeRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void ModifyNetworkInterfaceAttributeRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getNetworkInterfaceName()const +{ + return networkInterfaceName_; +} + +void ModifyNetworkInterfaceAttributeRequest::setNetworkInterfaceName(const std::string& networkInterfaceName) +{ + networkInterfaceName_ = networkInterfaceName; + setParameter("NetworkInterfaceName", networkInterfaceName); +} + +long ModifyNetworkInterfaceAttributeRequest::getCallerUid()const +{ + return callerUid_; +} + +void ModifyNetworkInterfaceAttributeRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getApp_ip()const +{ + return app_ip_; +} + +void ModifyNetworkInterfaceAttributeRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyNetworkInterfaceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyNetworkInterfaceAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getCallerBid()const +{ + return callerBid_; +} + +void ModifyNetworkInterfaceAttributeRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long ModifyNetworkInterfaceAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyNetworkInterfaceAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool ModifyNetworkInterfaceAttributeRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ModifyNetworkInterfaceAttributeRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool ModifyNetworkInterfaceAttributeRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ModifyNetworkInterfaceAttributeRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool ModifyNetworkInterfaceAttributeRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ModifyNetworkInterfaceAttributeRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getRequestId()const +{ + return requestId_; +} + +void ModifyNetworkInterfaceAttributeRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string ModifyNetworkInterfaceAttributeRequest::getNetworkInterfaceId()const +{ + return networkInterfaceId_; +} + +void ModifyNetworkInterfaceAttributeRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) +{ + networkInterfaceId_ = networkInterfaceId; + setParameter("NetworkInterfaceId", networkInterfaceId); +} + diff --git a/ecs/src/model/ModifyNetworkInterfaceAttributeResult.cc b/ecs/src/model/ModifyNetworkInterfaceAttributeResult.cc new file mode 100644 index 000000000..f8a06fd96 --- /dev/null +++ b/ecs/src/model/ModifyNetworkInterfaceAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyNetworkInterfaceAttributeResult::ModifyNetworkInterfaceAttributeResult() : + ServiceResult() +{} + +ModifyNetworkInterfaceAttributeResult::ModifyNetworkInterfaceAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyNetworkInterfaceAttributeResult::~ModifyNetworkInterfaceAttributeResult() +{} + +void ModifyNetworkInterfaceAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyPhysicalConnectionAttributeRequest.cc b/ecs/src/model/ModifyPhysicalConnectionAttributeRequest.cc new file mode 100644 index 000000000..22dd39d83 --- /dev/null +++ b/ecs/src/model/ModifyPhysicalConnectionAttributeRequest.cc @@ -0,0 +1,204 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyPhysicalConnectionAttributeRequest::ModifyPhysicalConnectionAttributeRequest() : + EcsRequest("ModifyPhysicalConnectionAttribute") +{} + +ModifyPhysicalConnectionAttributeRequest::~ModifyPhysicalConnectionAttributeRequest() +{} + +std::string ModifyPhysicalConnectionAttributeRequest::getRedundantPhysicalConnectionId()const +{ + return redundantPhysicalConnectionId_; +} + +void ModifyPhysicalConnectionAttributeRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId) +{ + redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; + setParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getPeerLocation()const +{ + return peerLocation_; +} + +void ModifyPhysicalConnectionAttributeRequest::setPeerLocation(const std::string& peerLocation) +{ + peerLocation_ = peerLocation; + setParameter("PeerLocation", peerLocation); +} + +long ModifyPhysicalConnectionAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyPhysicalConnectionAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getPortType()const +{ + return portType_; +} + +void ModifyPhysicalConnectionAttributeRequest::setPortType(const std::string& portType) +{ + portType_ = portType; + setParameter("PortType", portType); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getCircuitCode()const +{ + return circuitCode_; +} + +void ModifyPhysicalConnectionAttributeRequest::setCircuitCode(const std::string& circuitCode) +{ + circuitCode_ = circuitCode; + setParameter("CircuitCode", circuitCode); +} + +int ModifyPhysicalConnectionAttributeRequest::getBandwidth()const +{ + return bandwidth_; +} + +void ModifyPhysicalConnectionAttributeRequest::setBandwidth(int bandwidth) +{ + bandwidth_ = bandwidth; + setParameter("Bandwidth", std::to_string(bandwidth)); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyPhysicalConnectionAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyPhysicalConnectionAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyPhysicalConnectionAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyPhysicalConnectionAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyPhysicalConnectionAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyPhysicalConnectionAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getLineOperator()const +{ + return lineOperator_; +} + +void ModifyPhysicalConnectionAttributeRequest::setLineOperator(const std::string& lineOperator) +{ + lineOperator_ = lineOperator; + setParameter("LineOperator", lineOperator); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyPhysicalConnectionAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void ModifyPhysicalConnectionAttributeRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getName()const +{ + return name_; +} + +void ModifyPhysicalConnectionAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyPhysicalConnectionAttributeRequest::getUserCidr()const +{ + return userCidr_; +} + +void ModifyPhysicalConnectionAttributeRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + diff --git a/ecs/src/model/ModifyPhysicalConnectionAttributeResult.cc b/ecs/src/model/ModifyPhysicalConnectionAttributeResult.cc new file mode 100644 index 000000000..383efff4b --- /dev/null +++ b/ecs/src/model/ModifyPhysicalConnectionAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyPhysicalConnectionAttributeResult::ModifyPhysicalConnectionAttributeResult() : + ServiceResult() +{} + +ModifyPhysicalConnectionAttributeResult::ModifyPhysicalConnectionAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyPhysicalConnectionAttributeResult::~ModifyPhysicalConnectionAttributeResult() +{} + +void ModifyPhysicalConnectionAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyPrepayInstanceSpecRequest.cc b/ecs/src/model/ModifyPrepayInstanceSpecRequest.cc new file mode 100644 index 000000000..a6f3f9c97 --- /dev/null +++ b/ecs/src/model/ModifyPrepayInstanceSpecRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyPrepayInstanceSpecRequest::ModifyPrepayInstanceSpecRequest() : + EcsRequest("ModifyPrepayInstanceSpec") +{} + +ModifyPrepayInstanceSpecRequest::~ModifyPrepayInstanceSpecRequest() +{} + +long ModifyPrepayInstanceSpecRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyPrepayInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyPrepayInstanceSpecRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyPrepayInstanceSpecRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +bool ModifyPrepayInstanceSpecRequest::getAutoPay()const +{ + return autoPay_; +} + +void ModifyPrepayInstanceSpecRequest::setAutoPay(bool autoPay) +{ + autoPay_ = autoPay; + setParameter("AutoPay", std::to_string(autoPay)); +} + +std::string ModifyPrepayInstanceSpecRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyPrepayInstanceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyPrepayInstanceSpecRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyPrepayInstanceSpecRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyPrepayInstanceSpecRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyPrepayInstanceSpecRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyPrepayInstanceSpecRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyPrepayInstanceSpecRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyPrepayInstanceSpecRequest::getInstanceType()const +{ + return instanceType_; +} + +void ModifyPrepayInstanceSpecRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +long ModifyPrepayInstanceSpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyPrepayInstanceSpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifyPrepayInstanceSpecResult.cc b/ecs/src/model/ModifyPrepayInstanceSpecResult.cc new file mode 100644 index 000000000..358b642a2 --- /dev/null +++ b/ecs/src/model/ModifyPrepayInstanceSpecResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyPrepayInstanceSpecResult::ModifyPrepayInstanceSpecResult() : + ServiceResult() +{} + +ModifyPrepayInstanceSpecResult::ModifyPrepayInstanceSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyPrepayInstanceSpecResult::~ModifyPrepayInstanceSpecResult() +{} + +void ModifyPrepayInstanceSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + orderId_ = value["OrderId"].asString(); + +} + +std::string ModifyPrepayInstanceSpecResult::getOrderId()const +{ + return orderId_; +} + +void ModifyPrepayInstanceSpecResult::setOrderId(const std::string& orderId) +{ + orderId_ = orderId; +} + diff --git a/ecs/src/model/ModifyRouterInterfaceAttributeRequest.cc b/ecs/src/model/ModifyRouterInterfaceAttributeRequest.cc new file mode 100644 index 000000000..cb3fe04da --- /dev/null +++ b/ecs/src/model/ModifyRouterInterfaceAttributeRequest.cc @@ -0,0 +1,171 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyRouterInterfaceAttributeRequest::ModifyRouterInterfaceAttributeRequest() : + EcsRequest("ModifyRouterInterfaceAttribute") +{} + +ModifyRouterInterfaceAttributeRequest::~ModifyRouterInterfaceAttributeRequest() +{} + +std::string ModifyRouterInterfaceAttributeRequest::getOppositeRouterId()const +{ + return oppositeRouterId_; +} + +void ModifyRouterInterfaceAttributeRequest::setOppositeRouterId(const std::string& oppositeRouterId) +{ + oppositeRouterId_ = oppositeRouterId; + setParameter("OppositeRouterId", oppositeRouterId); +} + +long ModifyRouterInterfaceAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyRouterInterfaceAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyRouterInterfaceAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyRouterInterfaceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyRouterInterfaceAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyRouterInterfaceAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyRouterInterfaceAttributeRequest::getHealthCheckTargetIp()const +{ + return healthCheckTargetIp_; +} + +void ModifyRouterInterfaceAttributeRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp) +{ + healthCheckTargetIp_ = healthCheckTargetIp; + setParameter("HealthCheckTargetIp", healthCheckTargetIp); +} + +long ModifyRouterInterfaceAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyRouterInterfaceAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyRouterInterfaceAttributeRequest::getRouterInterfaceId()const +{ + return routerInterfaceId_; +} + +void ModifyRouterInterfaceAttributeRequest::setRouterInterfaceId(const std::string& routerInterfaceId) +{ + routerInterfaceId_ = routerInterfaceId; + setParameter("RouterInterfaceId", routerInterfaceId); +} + +long ModifyRouterInterfaceAttributeRequest::getOppositeInterfaceOwnerId()const +{ + return oppositeInterfaceOwnerId_; +} + +void ModifyRouterInterfaceAttributeRequest::setOppositeInterfaceOwnerId(long oppositeInterfaceOwnerId) +{ + oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId; + setParameter("OppositeInterfaceOwnerId", std::to_string(oppositeInterfaceOwnerId)); +} + +std::string ModifyRouterInterfaceAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyRouterInterfaceAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyRouterInterfaceAttributeRequest::getHealthCheckSourceIp()const +{ + return healthCheckSourceIp_; +} + +void ModifyRouterInterfaceAttributeRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp) +{ + healthCheckSourceIp_ = healthCheckSourceIp; + setParameter("HealthCheckSourceIp", healthCheckSourceIp); +} + +std::string ModifyRouterInterfaceAttributeRequest::getName()const +{ + return name_; +} + +void ModifyRouterInterfaceAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyRouterInterfaceAttributeRequest::getOppositeRouterType()const +{ + return oppositeRouterType_; +} + +void ModifyRouterInterfaceAttributeRequest::setOppositeRouterType(const std::string& oppositeRouterType) +{ + oppositeRouterType_ = oppositeRouterType; + setParameter("OppositeRouterType", oppositeRouterType); +} + +std::string ModifyRouterInterfaceAttributeRequest::getOppositeInterfaceId()const +{ + return oppositeInterfaceId_; +} + +void ModifyRouterInterfaceAttributeRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId) +{ + oppositeInterfaceId_ = oppositeInterfaceId; + setParameter("OppositeInterfaceId", oppositeInterfaceId); +} + diff --git a/ecs/src/model/ModifyRouterInterfaceAttributeResult.cc b/ecs/src/model/ModifyRouterInterfaceAttributeResult.cc new file mode 100644 index 000000000..cc49f5b80 --- /dev/null +++ b/ecs/src/model/ModifyRouterInterfaceAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyRouterInterfaceAttributeResult::ModifyRouterInterfaceAttributeResult() : + ServiceResult() +{} + +ModifyRouterInterfaceAttributeResult::ModifyRouterInterfaceAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyRouterInterfaceAttributeResult::~ModifyRouterInterfaceAttributeResult() +{} + +void ModifyRouterInterfaceAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyRouterInterfaceSpecRequest.cc b/ecs/src/model/ModifyRouterInterfaceSpecRequest.cc new file mode 100644 index 000000000..8b17a203a --- /dev/null +++ b/ecs/src/model/ModifyRouterInterfaceSpecRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyRouterInterfaceSpecRequest::ModifyRouterInterfaceSpecRequest() : + EcsRequest("ModifyRouterInterfaceSpec") +{} + +ModifyRouterInterfaceSpecRequest::~ModifyRouterInterfaceSpecRequest() +{} + +long ModifyRouterInterfaceSpecRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyRouterInterfaceSpecRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyRouterInterfaceSpecRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyRouterInterfaceSpecRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyRouterInterfaceSpecRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyRouterInterfaceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyRouterInterfaceSpecRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyRouterInterfaceSpecRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyRouterInterfaceSpecRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyRouterInterfaceSpecRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyRouterInterfaceSpecRequest::getUserCidr()const +{ + return userCidr_; +} + +void ModifyRouterInterfaceSpecRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +std::string ModifyRouterInterfaceSpecRequest::getRouterInterfaceId()const +{ + return routerInterfaceId_; +} + +void ModifyRouterInterfaceSpecRequest::setRouterInterfaceId(const std::string& routerInterfaceId) +{ + routerInterfaceId_ = routerInterfaceId; + setParameter("RouterInterfaceId", routerInterfaceId); +} + +long ModifyRouterInterfaceSpecRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyRouterInterfaceSpecRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyRouterInterfaceSpecRequest::getSpec()const +{ + return spec_; +} + +void ModifyRouterInterfaceSpecRequest::setSpec(const std::string& spec) +{ + spec_ = spec; + setParameter("Spec", spec); +} + diff --git a/ecs/src/model/ModifyRouterInterfaceSpecResult.cc b/ecs/src/model/ModifyRouterInterfaceSpecResult.cc new file mode 100644 index 000000000..0cddb7aed --- /dev/null +++ b/ecs/src/model/ModifyRouterInterfaceSpecResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyRouterInterfaceSpecResult::ModifyRouterInterfaceSpecResult() : + ServiceResult() +{} + +ModifyRouterInterfaceSpecResult::ModifyRouterInterfaceSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyRouterInterfaceSpecResult::~ModifyRouterInterfaceSpecResult() +{} + +void ModifyRouterInterfaceSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + spec_ = value["Spec"].asString(); + +} + +std::string ModifyRouterInterfaceSpecResult::getSpec()const +{ + return spec_; +} + +void ModifyRouterInterfaceSpecResult::setSpec(const std::string& spec) +{ + spec_ = spec; +} + diff --git a/ecs/src/model/ModifySecurityGroupAttributeRequest.cc b/ecs/src/model/ModifySecurityGroupAttributeRequest.cc new file mode 100644 index 000000000..787884464 --- /dev/null +++ b/ecs/src/model/ModifySecurityGroupAttributeRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifySecurityGroupAttributeRequest::ModifySecurityGroupAttributeRequest() : + EcsRequest("ModifySecurityGroupAttribute") +{} + +ModifySecurityGroupAttributeRequest::~ModifySecurityGroupAttributeRequest() +{} + +long ModifySecurityGroupAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifySecurityGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifySecurityGroupAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifySecurityGroupAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifySecurityGroupAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifySecurityGroupAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifySecurityGroupAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifySecurityGroupAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifySecurityGroupAttributeRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void ModifySecurityGroupAttributeRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +std::string ModifySecurityGroupAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifySecurityGroupAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifySecurityGroupAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifySecurityGroupAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifySecurityGroupAttributeRequest::getSecurityGroupName()const +{ + return securityGroupName_; +} + +void ModifySecurityGroupAttributeRequest::setSecurityGroupName(const std::string& securityGroupName) +{ + securityGroupName_ = securityGroupName; + setParameter("SecurityGroupName", securityGroupName); +} + diff --git a/ecs/src/model/ModifySecurityGroupAttributeResult.cc b/ecs/src/model/ModifySecurityGroupAttributeResult.cc new file mode 100644 index 000000000..803c0b486 --- /dev/null +++ b/ecs/src/model/ModifySecurityGroupAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifySecurityGroupAttributeResult::ModifySecurityGroupAttributeResult() : + ServiceResult() +{} + +ModifySecurityGroupAttributeResult::ModifySecurityGroupAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySecurityGroupAttributeResult::~ModifySecurityGroupAttributeResult() +{} + +void ModifySecurityGroupAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc b/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc new file mode 100644 index 000000000..8751c73e8 --- /dev/null +++ b/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc @@ -0,0 +1,446 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifySecurityGroupEgressRuleRequest::ModifySecurityGroupEgressRuleRequest() : + EcsRequest("ModifySecurityGroupEgressRule") +{} + +ModifySecurityGroupEgressRuleRequest::~ModifySecurityGroupEgressRuleRequest() +{} + +std::string ModifySecurityGroupEgressRuleRequest::getNicType()const +{ + return nicType_; +} + +void ModifySecurityGroupEgressRuleRequest::setNicType(const std::string& nicType) +{ + nicType_ = nicType; + setParameter("NicType", nicType); +} + +long ModifySecurityGroupEgressRuleRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifySecurityGroupEgressRuleRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifySecurityGroupEgressRuleRequest::getSourcePortRange()const +{ + return sourcePortRange_; +} + +void ModifySecurityGroupEgressRuleRequest::setSourcePortRange(const std::string& sourcePortRange) +{ + sourcePortRange_ = sourcePortRange; + setParameter("SourcePortRange", sourcePortRange); +} + +std::string ModifySecurityGroupEgressRuleRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifySecurityGroupEgressRuleRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +long ModifySecurityGroupEgressRuleRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ModifySecurityGroupEgressRuleRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string ModifySecurityGroupEgressRuleRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void ModifySecurityGroupEgressRuleRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +bool ModifySecurityGroupEgressRuleRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ModifySecurityGroupEgressRuleRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string ModifySecurityGroupEgressRuleRequest::getDescription()const +{ + return description_; +} + +void ModifySecurityGroupEgressRuleRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifySecurityGroupEgressRuleRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ModifySecurityGroupEgressRuleRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ModifySecurityGroupEgressRuleRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void ModifySecurityGroupEgressRuleRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string ModifySecurityGroupEgressRuleRequest::getCallerType()const +{ + return callerType_; +} + +void ModifySecurityGroupEgressRuleRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string ModifySecurityGroupEgressRuleRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifySecurityGroupEgressRuleRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifySecurityGroupEgressRuleRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void ModifySecurityGroupEgressRuleRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string ModifySecurityGroupEgressRuleRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifySecurityGroupEgressRuleRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifySecurityGroupEgressRuleRequest::getRegionId()const +{ + return regionId_; +} + +void ModifySecurityGroupEgressRuleRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool ModifySecurityGroupEgressRuleRequest::getEnable()const +{ + return enable_; +} + +void ModifySecurityGroupEgressRuleRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string ModifySecurityGroupEgressRuleRequest::getRequestContent()const +{ + return requestContent_; +} + +void ModifySecurityGroupEgressRuleRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string ModifySecurityGroupEgressRuleRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void ModifySecurityGroupEgressRuleRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string ModifySecurityGroupEgressRuleRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void ModifySecurityGroupEgressRuleRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long ModifySecurityGroupEgressRuleRequest::getCallerUid()const +{ + return callerUid_; +} + +void ModifySecurityGroupEgressRuleRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ModifySecurityGroupEgressRuleRequest::getPolicy()const +{ + return policy_; +} + +void ModifySecurityGroupEgressRuleRequest::setPolicy(const std::string& policy) +{ + policy_ = policy; + setParameter("Policy", policy); +} + +std::string ModifySecurityGroupEgressRuleRequest::getApp_ip()const +{ + return app_ip_; +} + +void ModifySecurityGroupEgressRuleRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string ModifySecurityGroupEgressRuleRequest::getPortRange()const +{ + return portRange_; +} + +void ModifySecurityGroupEgressRuleRequest::setPortRange(const std::string& portRange) +{ + portRange_ = portRange; + setParameter("PortRange", portRange); +} + +std::string ModifySecurityGroupEgressRuleRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifySecurityGroupEgressRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifySecurityGroupEgressRuleRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void ModifySecurityGroupEgressRuleRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setParameter("IpProtocol", ipProtocol); +} + +std::string ModifySecurityGroupEgressRuleRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifySecurityGroupEgressRuleRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifySecurityGroupEgressRuleRequest::getSourceCidrIp()const +{ + return sourceCidrIp_; +} + +void ModifySecurityGroupEgressRuleRequest::setSourceCidrIp(const std::string& sourceCidrIp) +{ + sourceCidrIp_ = sourceCidrIp; + setParameter("SourceCidrIp", sourceCidrIp); +} + +std::string ModifySecurityGroupEgressRuleRequest::getCallerBid()const +{ + return callerBid_; +} + +void ModifySecurityGroupEgressRuleRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +std::string ModifySecurityGroupEgressRuleRequest::getDestGroupId()const +{ + return destGroupId_; +} + +void ModifySecurityGroupEgressRuleRequest::setDestGroupId(const std::string& destGroupId) +{ + destGroupId_ = destGroupId; + setParameter("DestGroupId", destGroupId); +} + +long ModifySecurityGroupEgressRuleRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifySecurityGroupEgressRuleRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifySecurityGroupEgressRuleRequest::getDestGroupOwnerAccount()const +{ + return destGroupOwnerAccount_; +} + +void ModifySecurityGroupEgressRuleRequest::setDestGroupOwnerAccount(const std::string& destGroupOwnerAccount) +{ + destGroupOwnerAccount_ = destGroupOwnerAccount; + setParameter("DestGroupOwnerAccount", destGroupOwnerAccount); +} + +std::string ModifySecurityGroupEgressRuleRequest::getPriority()const +{ + return priority_; +} + +void ModifySecurityGroupEgressRuleRequest::setPriority(const std::string& priority) +{ + priority_ = priority; + setParameter("Priority", priority); +} + +std::string ModifySecurityGroupEgressRuleRequest::getDestCidrIp()const +{ + return destCidrIp_; +} + +void ModifySecurityGroupEgressRuleRequest::setDestCidrIp(const std::string& destCidrIp) +{ + destCidrIp_ = destCidrIp; + setParameter("DestCidrIp", destCidrIp); +} + +bool ModifySecurityGroupEgressRuleRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ModifySecurityGroupEgressRuleRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool ModifySecurityGroupEgressRuleRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ModifySecurityGroupEgressRuleRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool ModifySecurityGroupEgressRuleRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ModifySecurityGroupEgressRuleRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +long ModifySecurityGroupEgressRuleRequest::getDestGroupOwnerId()const +{ + return destGroupOwnerId_; +} + +void ModifySecurityGroupEgressRuleRequest::setDestGroupOwnerId(long destGroupOwnerId) +{ + destGroupOwnerId_ = destGroupOwnerId; + setParameter("DestGroupOwnerId", std::to_string(destGroupOwnerId)); +} + +std::string ModifySecurityGroupEgressRuleRequest::getRequestId()const +{ + return requestId_; +} + +void ModifySecurityGroupEgressRuleRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ecs/src/model/ModifySecurityGroupEgressRuleResult.cc b/ecs/src/model/ModifySecurityGroupEgressRuleResult.cc new file mode 100644 index 000000000..5727dca07 --- /dev/null +++ b/ecs/src/model/ModifySecurityGroupEgressRuleResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifySecurityGroupEgressRuleResult::ModifySecurityGroupEgressRuleResult() : + ServiceResult() +{} + +ModifySecurityGroupEgressRuleResult::ModifySecurityGroupEgressRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySecurityGroupEgressRuleResult::~ModifySecurityGroupEgressRuleResult() +{} + +void ModifySecurityGroupEgressRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifySecurityGroupPolicyRequest.cc b/ecs/src/model/ModifySecurityGroupPolicyRequest.cc new file mode 100644 index 000000000..22b159d83 --- /dev/null +++ b/ecs/src/model/ModifySecurityGroupPolicyRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifySecurityGroupPolicyRequest::ModifySecurityGroupPolicyRequest() : + EcsRequest("ModifySecurityGroupPolicy") +{} + +ModifySecurityGroupPolicyRequest::~ModifySecurityGroupPolicyRequest() +{} + +long ModifySecurityGroupPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifySecurityGroupPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifySecurityGroupPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void ModifySecurityGroupPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifySecurityGroupPolicyRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifySecurityGroupPolicyRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifySecurityGroupPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifySecurityGroupPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifySecurityGroupPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifySecurityGroupPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifySecurityGroupPolicyRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void ModifySecurityGroupPolicyRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +long ModifySecurityGroupPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifySecurityGroupPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifySecurityGroupPolicyRequest::getInnerAccessPolicy()const +{ + return innerAccessPolicy_; +} + +void ModifySecurityGroupPolicyRequest::setInnerAccessPolicy(const std::string& innerAccessPolicy) +{ + innerAccessPolicy_ = innerAccessPolicy; + setParameter("InnerAccessPolicy", innerAccessPolicy); +} + diff --git a/ecs/src/model/ModifySecurityGroupPolicyResult.cc b/ecs/src/model/ModifySecurityGroupPolicyResult.cc new file mode 100644 index 000000000..4056f5b2f --- /dev/null +++ b/ecs/src/model/ModifySecurityGroupPolicyResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifySecurityGroupPolicyResult::ModifySecurityGroupPolicyResult() : + ServiceResult() +{} + +ModifySecurityGroupPolicyResult::ModifySecurityGroupPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySecurityGroupPolicyResult::~ModifySecurityGroupPolicyResult() +{} + +void ModifySecurityGroupPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifySecurityGroupRuleRequest.cc b/ecs/src/model/ModifySecurityGroupRuleRequest.cc new file mode 100644 index 000000000..72df571fe --- /dev/null +++ b/ecs/src/model/ModifySecurityGroupRuleRequest.cc @@ -0,0 +1,446 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifySecurityGroupRuleRequest::ModifySecurityGroupRuleRequest() : + EcsRequest("ModifySecurityGroupRule") +{} + +ModifySecurityGroupRuleRequest::~ModifySecurityGroupRuleRequest() +{} + +std::string ModifySecurityGroupRuleRequest::getNicType()const +{ + return nicType_; +} + +void ModifySecurityGroupRuleRequest::setNicType(const std::string& nicType) +{ + nicType_ = nicType; + setParameter("NicType", nicType); +} + +long ModifySecurityGroupRuleRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifySecurityGroupRuleRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifySecurityGroupRuleRequest::getSourcePortRange()const +{ + return sourcePortRange_; +} + +void ModifySecurityGroupRuleRequest::setSourcePortRange(const std::string& sourcePortRange) +{ + sourcePortRange_ = sourcePortRange; + setParameter("SourcePortRange", sourcePortRange); +} + +std::string ModifySecurityGroupRuleRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifySecurityGroupRuleRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +long ModifySecurityGroupRuleRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ModifySecurityGroupRuleRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string ModifySecurityGroupRuleRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void ModifySecurityGroupRuleRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +bool ModifySecurityGroupRuleRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ModifySecurityGroupRuleRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string ModifySecurityGroupRuleRequest::getDescription()const +{ + return description_; +} + +void ModifySecurityGroupRuleRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifySecurityGroupRuleRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ModifySecurityGroupRuleRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ModifySecurityGroupRuleRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void ModifySecurityGroupRuleRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string ModifySecurityGroupRuleRequest::getCallerType()const +{ + return callerType_; +} + +void ModifySecurityGroupRuleRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string ModifySecurityGroupRuleRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifySecurityGroupRuleRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifySecurityGroupRuleRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void ModifySecurityGroupRuleRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +long ModifySecurityGroupRuleRequest::getSourceGroupOwnerId()const +{ + return sourceGroupOwnerId_; +} + +void ModifySecurityGroupRuleRequest::setSourceGroupOwnerId(long sourceGroupOwnerId) +{ + sourceGroupOwnerId_ = sourceGroupOwnerId; + setParameter("SourceGroupOwnerId", std::to_string(sourceGroupOwnerId)); +} + +std::string ModifySecurityGroupRuleRequest::getSourceGroupOwnerAccount()const +{ + return sourceGroupOwnerAccount_; +} + +void ModifySecurityGroupRuleRequest::setSourceGroupOwnerAccount(const std::string& sourceGroupOwnerAccount) +{ + sourceGroupOwnerAccount_ = sourceGroupOwnerAccount; + setParameter("SourceGroupOwnerAccount", sourceGroupOwnerAccount); +} + +std::string ModifySecurityGroupRuleRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifySecurityGroupRuleRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifySecurityGroupRuleRequest::getRegionId()const +{ + return regionId_; +} + +void ModifySecurityGroupRuleRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool ModifySecurityGroupRuleRequest::getEnable()const +{ + return enable_; +} + +void ModifySecurityGroupRuleRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string ModifySecurityGroupRuleRequest::getRequestContent()const +{ + return requestContent_; +} + +void ModifySecurityGroupRuleRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string ModifySecurityGroupRuleRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void ModifySecurityGroupRuleRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string ModifySecurityGroupRuleRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void ModifySecurityGroupRuleRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long ModifySecurityGroupRuleRequest::getCallerUid()const +{ + return callerUid_; +} + +void ModifySecurityGroupRuleRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ModifySecurityGroupRuleRequest::getPolicy()const +{ + return policy_; +} + +void ModifySecurityGroupRuleRequest::setPolicy(const std::string& policy) +{ + policy_ = policy; + setParameter("Policy", policy); +} + +std::string ModifySecurityGroupRuleRequest::getApp_ip()const +{ + return app_ip_; +} + +void ModifySecurityGroupRuleRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string ModifySecurityGroupRuleRequest::getPortRange()const +{ + return portRange_; +} + +void ModifySecurityGroupRuleRequest::setPortRange(const std::string& portRange) +{ + portRange_ = portRange; + setParameter("PortRange", portRange); +} + +std::string ModifySecurityGroupRuleRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifySecurityGroupRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifySecurityGroupRuleRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void ModifySecurityGroupRuleRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setParameter("IpProtocol", ipProtocol); +} + +std::string ModifySecurityGroupRuleRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifySecurityGroupRuleRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifySecurityGroupRuleRequest::getSourceCidrIp()const +{ + return sourceCidrIp_; +} + +void ModifySecurityGroupRuleRequest::setSourceCidrIp(const std::string& sourceCidrIp) +{ + sourceCidrIp_ = sourceCidrIp; + setParameter("SourceCidrIp", sourceCidrIp); +} + +std::string ModifySecurityGroupRuleRequest::getCallerBid()const +{ + return callerBid_; +} + +void ModifySecurityGroupRuleRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long ModifySecurityGroupRuleRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifySecurityGroupRuleRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifySecurityGroupRuleRequest::getPriority()const +{ + return priority_; +} + +void ModifySecurityGroupRuleRequest::setPriority(const std::string& priority) +{ + priority_ = priority; + setParameter("Priority", priority); +} + +std::string ModifySecurityGroupRuleRequest::getDestCidrIp()const +{ + return destCidrIp_; +} + +void ModifySecurityGroupRuleRequest::setDestCidrIp(const std::string& destCidrIp) +{ + destCidrIp_ = destCidrIp; + setParameter("DestCidrIp", destCidrIp); +} + +bool ModifySecurityGroupRuleRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ModifySecurityGroupRuleRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool ModifySecurityGroupRuleRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ModifySecurityGroupRuleRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool ModifySecurityGroupRuleRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ModifySecurityGroupRuleRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string ModifySecurityGroupRuleRequest::getRequestId()const +{ + return requestId_; +} + +void ModifySecurityGroupRuleRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string ModifySecurityGroupRuleRequest::getSourceGroupId()const +{ + return sourceGroupId_; +} + +void ModifySecurityGroupRuleRequest::setSourceGroupId(const std::string& sourceGroupId) +{ + sourceGroupId_ = sourceGroupId; + setParameter("SourceGroupId", sourceGroupId); +} + diff --git a/ecs/src/model/ModifySecurityGroupRuleResult.cc b/ecs/src/model/ModifySecurityGroupRuleResult.cc new file mode 100644 index 000000000..2bee74fe2 --- /dev/null +++ b/ecs/src/model/ModifySecurityGroupRuleResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifySecurityGroupRuleResult::ModifySecurityGroupRuleResult() : + ServiceResult() +{} + +ModifySecurityGroupRuleResult::ModifySecurityGroupRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySecurityGroupRuleResult::~ModifySecurityGroupRuleResult() +{} + +void ModifySecurityGroupRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifySnapshotAttributeRequest.cc b/ecs/src/model/ModifySnapshotAttributeRequest.cc new file mode 100644 index 000000000..caddd4775 --- /dev/null +++ b/ecs/src/model/ModifySnapshotAttributeRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifySnapshotAttributeRequest::ModifySnapshotAttributeRequest() : + EcsRequest("ModifySnapshotAttribute") +{} + +ModifySnapshotAttributeRequest::~ModifySnapshotAttributeRequest() +{} + +long ModifySnapshotAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifySnapshotAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifySnapshotAttributeRequest::getSnapshotId()const +{ + return snapshotId_; +} + +void ModifySnapshotAttributeRequest::setSnapshotId(const std::string& snapshotId) +{ + snapshotId_ = snapshotId; + setParameter("SnapshotId", snapshotId); +} + +std::string ModifySnapshotAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifySnapshotAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifySnapshotAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifySnapshotAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifySnapshotAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifySnapshotAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifySnapshotAttributeRequest::getSnapshotName()const +{ + return snapshotName_; +} + +void ModifySnapshotAttributeRequest::setSnapshotName(const std::string& snapshotName) +{ + snapshotName_ = snapshotName; + setParameter("SnapshotName", snapshotName); +} + +long ModifySnapshotAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifySnapshotAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifySnapshotAttributeResult.cc b/ecs/src/model/ModifySnapshotAttributeResult.cc new file mode 100644 index 000000000..441957c65 --- /dev/null +++ b/ecs/src/model/ModifySnapshotAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifySnapshotAttributeResult::ModifySnapshotAttributeResult() : + ServiceResult() +{} + +ModifySnapshotAttributeResult::ModifySnapshotAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySnapshotAttributeResult::~ModifySnapshotAttributeResult() +{} + +void ModifySnapshotAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyUserBusinessBehaviorRequest.cc b/ecs/src/model/ModifyUserBusinessBehaviorRequest.cc new file mode 100644 index 000000000..d2a2fb13e --- /dev/null +++ b/ecs/src/model/ModifyUserBusinessBehaviorRequest.cc @@ -0,0 +1,303 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyUserBusinessBehaviorRequest::ModifyUserBusinessBehaviorRequest() : + EcsRequest("ModifyUserBusinessBehavior") +{} + +ModifyUserBusinessBehaviorRequest::~ModifyUserBusinessBehaviorRequest() +{} + +long ModifyUserBusinessBehaviorRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyUserBusinessBehaviorRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long ModifyUserBusinessBehaviorRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void ModifyUserBusinessBehaviorRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool ModifyUserBusinessBehaviorRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void ModifyUserBusinessBehaviorRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string ModifyUserBusinessBehaviorRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void ModifyUserBusinessBehaviorRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string ModifyUserBusinessBehaviorRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void ModifyUserBusinessBehaviorRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string ModifyUserBusinessBehaviorRequest::getCallerType()const +{ + return callerType_; +} + +void ModifyUserBusinessBehaviorRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string ModifyUserBusinessBehaviorRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyUserBusinessBehaviorRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyUserBusinessBehaviorRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyUserBusinessBehaviorRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyUserBusinessBehaviorRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyUserBusinessBehaviorRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool ModifyUserBusinessBehaviorRequest::getEnable()const +{ + return enable_; +} + +void ModifyUserBusinessBehaviorRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string ModifyUserBusinessBehaviorRequest::getRequestContent()const +{ + return requestContent_; +} + +void ModifyUserBusinessBehaviorRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string ModifyUserBusinessBehaviorRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void ModifyUserBusinessBehaviorRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string ModifyUserBusinessBehaviorRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void ModifyUserBusinessBehaviorRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long ModifyUserBusinessBehaviorRequest::getCallerUid()const +{ + return callerUid_; +} + +void ModifyUserBusinessBehaviorRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string ModifyUserBusinessBehaviorRequest::getApp_ip()const +{ + return app_ip_; +} + +void ModifyUserBusinessBehaviorRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string ModifyUserBusinessBehaviorRequest::getStatusValue()const +{ + return statusValue_; +} + +void ModifyUserBusinessBehaviorRequest::setStatusValue(const std::string& statusValue) +{ + statusValue_ = statusValue; + setParameter("StatusValue", statusValue); +} + +std::string ModifyUserBusinessBehaviorRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyUserBusinessBehaviorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyUserBusinessBehaviorRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyUserBusinessBehaviorRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyUserBusinessBehaviorRequest::getCallerBid()const +{ + return callerBid_; +} + +void ModifyUserBusinessBehaviorRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long ModifyUserBusinessBehaviorRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyUserBusinessBehaviorRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool ModifyUserBusinessBehaviorRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void ModifyUserBusinessBehaviorRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool ModifyUserBusinessBehaviorRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void ModifyUserBusinessBehaviorRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool ModifyUserBusinessBehaviorRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void ModifyUserBusinessBehaviorRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string ModifyUserBusinessBehaviorRequest::getRequestId()const +{ + return requestId_; +} + +void ModifyUserBusinessBehaviorRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string ModifyUserBusinessBehaviorRequest::getStatusKey()const +{ + return statusKey_; +} + +void ModifyUserBusinessBehaviorRequest::setStatusKey(const std::string& statusKey) +{ + statusKey_ = statusKey; + setParameter("StatusKey", statusKey); +} + diff --git a/ecs/src/model/ModifyUserBusinessBehaviorResult.cc b/ecs/src/model/ModifyUserBusinessBehaviorResult.cc new file mode 100644 index 000000000..9c2d2f721 --- /dev/null +++ b/ecs/src/model/ModifyUserBusinessBehaviorResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyUserBusinessBehaviorResult::ModifyUserBusinessBehaviorResult() : + ServiceResult() +{} + +ModifyUserBusinessBehaviorResult::ModifyUserBusinessBehaviorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyUserBusinessBehaviorResult::~ModifyUserBusinessBehaviorResult() +{} + +void ModifyUserBusinessBehaviorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyVRouterAttributeRequest.cc b/ecs/src/model/ModifyVRouterAttributeRequest.cc new file mode 100644 index 000000000..58bf8b11d --- /dev/null +++ b/ecs/src/model/ModifyVRouterAttributeRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyVRouterAttributeRequest::ModifyVRouterAttributeRequest() : + EcsRequest("ModifyVRouterAttribute") +{} + +ModifyVRouterAttributeRequest::~ModifyVRouterAttributeRequest() +{} + +std::string ModifyVRouterAttributeRequest::getVRouterName()const +{ + return vRouterName_; +} + +void ModifyVRouterAttributeRequest::setVRouterName(const std::string& vRouterName) +{ + vRouterName_ = vRouterName; + setParameter("VRouterName", vRouterName); +} + +long ModifyVRouterAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyVRouterAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyVRouterAttributeRequest::getVRouterId()const +{ + return vRouterId_; +} + +void ModifyVRouterAttributeRequest::setVRouterId(const std::string& vRouterId) +{ + vRouterId_ = vRouterId; + setParameter("VRouterId", vRouterId); +} + +std::string ModifyVRouterAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyVRouterAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyVRouterAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyVRouterAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyVRouterAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyVRouterAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyVRouterAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyVRouterAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifyVRouterAttributeResult.cc b/ecs/src/model/ModifyVRouterAttributeResult.cc new file mode 100644 index 000000000..bf706f463 --- /dev/null +++ b/ecs/src/model/ModifyVRouterAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyVRouterAttributeResult::ModifyVRouterAttributeResult() : + ServiceResult() +{} + +ModifyVRouterAttributeResult::ModifyVRouterAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVRouterAttributeResult::~ModifyVRouterAttributeResult() +{} + +void ModifyVRouterAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyVSwitchAttributeRequest.cc b/ecs/src/model/ModifyVSwitchAttributeRequest.cc new file mode 100644 index 000000000..b3b4050c5 --- /dev/null +++ b/ecs/src/model/ModifyVSwitchAttributeRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyVSwitchAttributeRequest::ModifyVSwitchAttributeRequest() : + EcsRequest("ModifyVSwitchAttribute") +{} + +ModifyVSwitchAttributeRequest::~ModifyVSwitchAttributeRequest() +{} + +std::string ModifyVSwitchAttributeRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void ModifyVSwitchAttributeRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +long ModifyVSwitchAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyVSwitchAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyVSwitchAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyVSwitchAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyVSwitchAttributeRequest::getVSwitchName()const +{ + return vSwitchName_; +} + +void ModifyVSwitchAttributeRequest::setVSwitchName(const std::string& vSwitchName) +{ + vSwitchName_ = vSwitchName; + setParameter("VSwitchName", vSwitchName); +} + +std::string ModifyVSwitchAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyVSwitchAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyVSwitchAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyVSwitchAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +long ModifyVSwitchAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyVSwitchAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifyVSwitchAttributeResult.cc b/ecs/src/model/ModifyVSwitchAttributeResult.cc new file mode 100644 index 000000000..b4de164a5 --- /dev/null +++ b/ecs/src/model/ModifyVSwitchAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyVSwitchAttributeResult::ModifyVSwitchAttributeResult() : + ServiceResult() +{} + +ModifyVSwitchAttributeResult::ModifyVSwitchAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVSwitchAttributeResult::~ModifyVSwitchAttributeResult() +{} + +void ModifyVSwitchAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyVirtualBorderRouterAttributeRequest.cc b/ecs/src/model/ModifyVirtualBorderRouterAttributeRequest.cc new file mode 100644 index 000000000..d7183af5e --- /dev/null +++ b/ecs/src/model/ModifyVirtualBorderRouterAttributeRequest.cc @@ -0,0 +1,193 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyVirtualBorderRouterAttributeRequest::ModifyVirtualBorderRouterAttributeRequest() : + EcsRequest("ModifyVirtualBorderRouterAttribute") +{} + +ModifyVirtualBorderRouterAttributeRequest::~ModifyVirtualBorderRouterAttributeRequest() +{} + +long ModifyVirtualBorderRouterAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getCircuitCode()const +{ + return circuitCode_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setCircuitCode(const std::string& circuitCode) +{ + circuitCode_ = circuitCode; + setParameter("CircuitCode", circuitCode); +} + +int ModifyVirtualBorderRouterAttributeRequest::getVlanId()const +{ + return vlanId_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setVlanId(int vlanId) +{ + vlanId_ = vlanId; + setParameter("VlanId", std::to_string(vlanId)); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getClientToken()const +{ + return clientToken_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getVbrId()const +{ + return vbrId_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setVbrId(const std::string& vbrId) +{ + vbrId_ = vbrId; + setParameter("VbrId", vbrId); +} + +long ModifyVirtualBorderRouterAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getPeerGatewayIp()const +{ + return peerGatewayIp_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setPeerGatewayIp(const std::string& peerGatewayIp) +{ + peerGatewayIp_ = peerGatewayIp; + setParameter("PeerGatewayIp", peerGatewayIp); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getPeeringSubnetMask()const +{ + return peeringSubnetMask_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask) +{ + peeringSubnetMask_ = peeringSubnetMask; + setParameter("PeeringSubnetMask", peeringSubnetMask); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getName()const +{ + return name_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getLocalGatewayIp()const +{ + return localGatewayIp_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setLocalGatewayIp(const std::string& localGatewayIp) +{ + localGatewayIp_ = localGatewayIp; + setParameter("LocalGatewayIp", localGatewayIp); +} + +std::string ModifyVirtualBorderRouterAttributeRequest::getUserCidr()const +{ + return userCidr_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + diff --git a/ecs/src/model/ModifyVirtualBorderRouterAttributeResult.cc b/ecs/src/model/ModifyVirtualBorderRouterAttributeResult.cc new file mode 100644 index 000000000..cd23fbdad --- /dev/null +++ b/ecs/src/model/ModifyVirtualBorderRouterAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyVirtualBorderRouterAttributeResult::ModifyVirtualBorderRouterAttributeResult() : + ServiceResult() +{} + +ModifyVirtualBorderRouterAttributeResult::ModifyVirtualBorderRouterAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVirtualBorderRouterAttributeResult::~ModifyVirtualBorderRouterAttributeResult() +{} + +void ModifyVirtualBorderRouterAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ModifyVpcAttributeRequest.cc b/ecs/src/model/ModifyVpcAttributeRequest.cc new file mode 100644 index 000000000..6bc13240b --- /dev/null +++ b/ecs/src/model/ModifyVpcAttributeRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyVpcAttributeRequest::ModifyVpcAttributeRequest() : + EcsRequest("ModifyVpcAttribute") +{} + +ModifyVpcAttributeRequest::~ModifyVpcAttributeRequest() +{} + +std::string ModifyVpcAttributeRequest::getVpcName()const +{ + return vpcName_; +} + +void ModifyVpcAttributeRequest::setVpcName(const std::string& vpcName) +{ + vpcName_ = vpcName; + setParameter("VpcName", vpcName); +} + +long ModifyVpcAttributeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyVpcAttributeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyVpcAttributeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyVpcAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyVpcAttributeRequest::getVpcId()const +{ + return vpcId_; +} + +void ModifyVpcAttributeRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string ModifyVpcAttributeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyVpcAttributeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyVpcAttributeRequest::getDescription()const +{ + return description_; +} + +void ModifyVpcAttributeRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string ModifyVpcAttributeRequest::getUserCidr()const +{ + return userCidr_; +} + +void ModifyVpcAttributeRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +long ModifyVpcAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyVpcAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ModifyVpcAttributeResult.cc b/ecs/src/model/ModifyVpcAttributeResult.cc new file mode 100644 index 000000000..6ba353d76 --- /dev/null +++ b/ecs/src/model/ModifyVpcAttributeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ModifyVpcAttributeResult::ModifyVpcAttributeResult() : + ServiceResult() +{} + +ModifyVpcAttributeResult::ModifyVpcAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVpcAttributeResult::~ModifyVpcAttributeResult() +{} + +void ModifyVpcAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ReActivateInstancesRequest.cc b/ecs/src/model/ReActivateInstancesRequest.cc new file mode 100644 index 000000000..0172850fb --- /dev/null +++ b/ecs/src/model/ReActivateInstancesRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ReActivateInstancesRequest::ReActivateInstancesRequest() : + EcsRequest("ReActivateInstances") +{} + +ReActivateInstancesRequest::~ReActivateInstancesRequest() +{} + +long ReActivateInstancesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ReActivateInstancesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ReActivateInstancesRequest::getInstanceId()const +{ + return instanceId_; +} + +void ReActivateInstancesRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ReActivateInstancesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ReActivateInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ReActivateInstancesRequest::getRegionId()const +{ + return regionId_; +} + +void ReActivateInstancesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ReActivateInstancesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ReActivateInstancesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ReActivateInstancesRequest::getOwnerId()const +{ + return ownerId_; +} + +void ReActivateInstancesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ReActivateInstancesResult.cc b/ecs/src/model/ReActivateInstancesResult.cc new file mode 100644 index 000000000..f7bc2a999 --- /dev/null +++ b/ecs/src/model/ReActivateInstancesResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ReActivateInstancesResult::ReActivateInstancesResult() : + ServiceResult() +{} + +ReActivateInstancesResult::ReActivateInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReActivateInstancesResult::~ReActivateInstancesResult() +{} + +void ReActivateInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ReInitDiskRequest.cc b/ecs/src/model/ReInitDiskRequest.cc new file mode 100644 index 000000000..4200c79e1 --- /dev/null +++ b/ecs/src/model/ReInitDiskRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ReInitDiskRequest::ReInitDiskRequest() : + EcsRequest("ReInitDisk") +{} + +ReInitDiskRequest::~ReInitDiskRequest() +{} + +long ReInitDiskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ReInitDiskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ReInitDiskRequest::getPassword()const +{ + return password_; +} + +void ReInitDiskRequest::setPassword(const std::string& password) +{ + password_ = password; + setParameter("Password", password); +} + +std::string ReInitDiskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ReInitDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +bool ReInitDiskRequest::getAutoStartInstance()const +{ + return autoStartInstance_; +} + +void ReInitDiskRequest::setAutoStartInstance(bool autoStartInstance) +{ + autoStartInstance_ = autoStartInstance; + setParameter("AutoStartInstance", std::to_string(autoStartInstance)); +} + +std::string ReInitDiskRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ReInitDiskRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ReInitDiskRequest::getDiskId()const +{ + return diskId_; +} + +void ReInitDiskRequest::setDiskId(const std::string& diskId) +{ + diskId_ = diskId; + setParameter("DiskId", diskId); +} + +std::string ReInitDiskRequest::getSecurityEnhancementStrategy()const +{ + return securityEnhancementStrategy_; +} + +void ReInitDiskRequest::setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy) +{ + securityEnhancementStrategy_ = securityEnhancementStrategy; + setParameter("SecurityEnhancementStrategy", securityEnhancementStrategy); +} + +std::string ReInitDiskRequest::getKeyPairName()const +{ + return keyPairName_; +} + +void ReInitDiskRequest::setKeyPairName(const std::string& keyPairName) +{ + keyPairName_ = keyPairName; + setParameter("KeyPairName", keyPairName); +} + +long ReInitDiskRequest::getOwnerId()const +{ + return ownerId_; +} + +void ReInitDiskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ReInitDiskResult.cc b/ecs/src/model/ReInitDiskResult.cc new file mode 100644 index 000000000..ce0161f31 --- /dev/null +++ b/ecs/src/model/ReInitDiskResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ReInitDiskResult::ReInitDiskResult() : + ServiceResult() +{} + +ReInitDiskResult::ReInitDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReInitDiskResult::~ReInitDiskResult() +{} + +void ReInitDiskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RebootInstanceRequest.cc b/ecs/src/model/RebootInstanceRequest.cc new file mode 100644 index 000000000..e0f60b5e9 --- /dev/null +++ b/ecs/src/model/RebootInstanceRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RebootInstanceRequest::RebootInstanceRequest() : + EcsRequest("RebootInstance") +{} + +RebootInstanceRequest::~RebootInstanceRequest() +{} + +long RebootInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RebootInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RebootInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void RebootInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string RebootInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RebootInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RebootInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RebootInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long RebootInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void RebootInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool RebootInstanceRequest::getForceStop()const +{ + return forceStop_; +} + +void RebootInstanceRequest::setForceStop(bool forceStop) +{ + forceStop_ = forceStop; + setParameter("ForceStop", std::to_string(forceStop)); +} + diff --git a/ecs/src/model/RebootInstanceResult.cc b/ecs/src/model/RebootInstanceResult.cc new file mode 100644 index 000000000..0d1e0eac1 --- /dev/null +++ b/ecs/src/model/RebootInstanceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RebootInstanceResult::RebootInstanceResult() : + ServiceResult() +{} + +RebootInstanceResult::RebootInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RebootInstanceResult::~RebootInstanceResult() +{} + +void RebootInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RecoverVirtualBorderRouterRequest.cc b/ecs/src/model/RecoverVirtualBorderRouterRequest.cc new file mode 100644 index 000000000..9883be038 --- /dev/null +++ b/ecs/src/model/RecoverVirtualBorderRouterRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RecoverVirtualBorderRouterRequest::RecoverVirtualBorderRouterRequest() : + EcsRequest("RecoverVirtualBorderRouter") +{} + +RecoverVirtualBorderRouterRequest::~RecoverVirtualBorderRouterRequest() +{} + +long RecoverVirtualBorderRouterRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RecoverVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RecoverVirtualBorderRouterRequest::getRegionId()const +{ + return regionId_; +} + +void RecoverVirtualBorderRouterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string RecoverVirtualBorderRouterRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RecoverVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RecoverVirtualBorderRouterRequest::getClientToken()const +{ + return clientToken_; +} + +void RecoverVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string RecoverVirtualBorderRouterRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RecoverVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string RecoverVirtualBorderRouterRequest::getUserCidr()const +{ + return userCidr_; +} + +void RecoverVirtualBorderRouterRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +std::string RecoverVirtualBorderRouterRequest::getVbrId()const +{ + return vbrId_; +} + +void RecoverVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) +{ + vbrId_ = vbrId; + setParameter("VbrId", vbrId); +} + +long RecoverVirtualBorderRouterRequest::getOwnerId()const +{ + return ownerId_; +} + +void RecoverVirtualBorderRouterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/RecoverVirtualBorderRouterResult.cc b/ecs/src/model/RecoverVirtualBorderRouterResult.cc new file mode 100644 index 000000000..5b9106052 --- /dev/null +++ b/ecs/src/model/RecoverVirtualBorderRouterResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RecoverVirtualBorderRouterResult::RecoverVirtualBorderRouterResult() : + ServiceResult() +{} + +RecoverVirtualBorderRouterResult::RecoverVirtualBorderRouterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RecoverVirtualBorderRouterResult::~RecoverVirtualBorderRouterResult() +{} + +void RecoverVirtualBorderRouterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ReleaseEipAddressRequest.cc b/ecs/src/model/ReleaseEipAddressRequest.cc new file mode 100644 index 000000000..6160b4f3f --- /dev/null +++ b/ecs/src/model/ReleaseEipAddressRequest.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ReleaseEipAddressRequest::ReleaseEipAddressRequest() : + EcsRequest("ReleaseEipAddress") +{} + +ReleaseEipAddressRequest::~ReleaseEipAddressRequest() +{} + +long ReleaseEipAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ReleaseEipAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ReleaseEipAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ReleaseEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ReleaseEipAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ReleaseEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ReleaseEipAddressRequest::getAllocationId()const +{ + return allocationId_; +} + +void ReleaseEipAddressRequest::setAllocationId(const std::string& allocationId) +{ + allocationId_ = allocationId; + setParameter("AllocationId", allocationId); +} + +long ReleaseEipAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void ReleaseEipAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ReleaseEipAddressResult.cc b/ecs/src/model/ReleaseEipAddressResult.cc new file mode 100644 index 000000000..debb3540c --- /dev/null +++ b/ecs/src/model/ReleaseEipAddressResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ReleaseEipAddressResult::ReleaseEipAddressResult() : + ServiceResult() +{} + +ReleaseEipAddressResult::ReleaseEipAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseEipAddressResult::~ReleaseEipAddressResult() +{} + +void ReleaseEipAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ReleasePublicIpAddressRequest.cc b/ecs/src/model/ReleasePublicIpAddressRequest.cc new file mode 100644 index 000000000..3b25fa35b --- /dev/null +++ b/ecs/src/model/ReleasePublicIpAddressRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ReleasePublicIpAddressRequest::ReleasePublicIpAddressRequest() : + EcsRequest("ReleasePublicIpAddress") +{} + +ReleasePublicIpAddressRequest::~ReleasePublicIpAddressRequest() +{} + +long ReleasePublicIpAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ReleasePublicIpAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ReleasePublicIpAddressRequest::getPublicIpAddress()const +{ + return publicIpAddress_; +} + +void ReleasePublicIpAddressRequest::setPublicIpAddress(const std::string& publicIpAddress) +{ + publicIpAddress_ = publicIpAddress; + setParameter("PublicIpAddress", publicIpAddress); +} + +std::string ReleasePublicIpAddressRequest::getInstanceId()const +{ + return instanceId_; +} + +void ReleasePublicIpAddressRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ReleasePublicIpAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ReleasePublicIpAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ReleasePublicIpAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ReleasePublicIpAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ReleasePublicIpAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void ReleasePublicIpAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ReleasePublicIpAddressResult.cc b/ecs/src/model/ReleasePublicIpAddressResult.cc new file mode 100644 index 000000000..ee3f9e9bb --- /dev/null +++ b/ecs/src/model/ReleasePublicIpAddressResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ReleasePublicIpAddressResult::ReleasePublicIpAddressResult() : + ServiceResult() +{} + +ReleasePublicIpAddressResult::ReleasePublicIpAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleasePublicIpAddressResult::~ReleasePublicIpAddressResult() +{} + +void ReleasePublicIpAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RemoveBandwidthPackageIpsRequest.cc b/ecs/src/model/RemoveBandwidthPackageIpsRequest.cc new file mode 100644 index 000000000..0b41ce1ea --- /dev/null +++ b/ecs/src/model/RemoveBandwidthPackageIpsRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RemoveBandwidthPackageIpsRequest::RemoveBandwidthPackageIpsRequest() : + EcsRequest("RemoveBandwidthPackageIps") +{} + +RemoveBandwidthPackageIpsRequest::~RemoveBandwidthPackageIpsRequest() +{} + +std::vector RemoveBandwidthPackageIpsRequest::getRemovedIpAddresses()const +{ + return removedIpAddresses_; +} + +void RemoveBandwidthPackageIpsRequest::setRemovedIpAddresses(const std::vector& removedIpAddresses) +{ + removedIpAddresses_ = removedIpAddresses; + for(int i = 0; i!= removedIpAddresses.size(); i++) + setParameter("RemovedIpAddresses."+ std::to_string(i), removedIpAddresses.at(i)); +} + +long RemoveBandwidthPackageIpsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RemoveBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RemoveBandwidthPackageIpsRequest::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +void RemoveBandwidthPackageIpsRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) +{ + bandwidthPackageId_ = bandwidthPackageId; + setParameter("BandwidthPackageId", bandwidthPackageId); +} + +std::string RemoveBandwidthPackageIpsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RemoveBandwidthPackageIpsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RemoveBandwidthPackageIpsRequest::getRegionId()const +{ + return regionId_; +} + +void RemoveBandwidthPackageIpsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string RemoveBandwidthPackageIpsRequest::getClientToken()const +{ + return clientToken_; +} + +void RemoveBandwidthPackageIpsRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string RemoveBandwidthPackageIpsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RemoveBandwidthPackageIpsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long RemoveBandwidthPackageIpsRequest::getOwnerId()const +{ + return ownerId_; +} + +void RemoveBandwidthPackageIpsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/RemoveBandwidthPackageIpsResult.cc b/ecs/src/model/RemoveBandwidthPackageIpsResult.cc new file mode 100644 index 000000000..9ad856d58 --- /dev/null +++ b/ecs/src/model/RemoveBandwidthPackageIpsResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RemoveBandwidthPackageIpsResult::RemoveBandwidthPackageIpsResult() : + ServiceResult() +{} + +RemoveBandwidthPackageIpsResult::RemoveBandwidthPackageIpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveBandwidthPackageIpsResult::~RemoveBandwidthPackageIpsResult() +{} + +void RemoveBandwidthPackageIpsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RemoveTagsRequest.cc b/ecs/src/model/RemoveTagsRequest.cc new file mode 100644 index 000000000..7a7c86e40 --- /dev/null +++ b/ecs/src/model/RemoveTagsRequest.cc @@ -0,0 +1,204 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RemoveTagsRequest::RemoveTagsRequest() : + EcsRequest("RemoveTags") +{} + +RemoveTagsRequest::~RemoveTagsRequest() +{} + +std::string RemoveTagsRequest::getTag4Value()const +{ + return tag4Value_; +} + +void RemoveTagsRequest::setTag4Value(const std::string& tag4Value) +{ + tag4Value_ = tag4Value; + setParameter("Tag4Value", tag4Value); +} + +long RemoveTagsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RemoveTagsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RemoveTagsRequest::getResourceId()const +{ + return resourceId_; +} + +void RemoveTagsRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setParameter("ResourceId", resourceId); +} + +std::string RemoveTagsRequest::getTag2Key()const +{ + return tag2Key_; +} + +void RemoveTagsRequest::setTag2Key(const std::string& tag2Key) +{ + tag2Key_ = tag2Key; + setParameter("Tag2Key", tag2Key); +} + +std::string RemoveTagsRequest::getTag5Key()const +{ + return tag5Key_; +} + +void RemoveTagsRequest::setTag5Key(const std::string& tag5Key) +{ + tag5Key_ = tag5Key; + setParameter("Tag5Key", tag5Key); +} + +std::string RemoveTagsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RemoveTagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RemoveTagsRequest::getTag3Key()const +{ + return tag3Key_; +} + +void RemoveTagsRequest::setTag3Key(const std::string& tag3Key) +{ + tag3Key_ = tag3Key; + setParameter("Tag3Key", tag3Key); +} + +long RemoveTagsRequest::getOwnerId()const +{ + return ownerId_; +} + +void RemoveTagsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RemoveTagsRequest::getResourceType()const +{ + return resourceType_; +} + +void RemoveTagsRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string RemoveTagsRequest::getTag5Value()const +{ + return tag5Value_; +} + +void RemoveTagsRequest::setTag5Value(const std::string& tag5Value) +{ + tag5Value_ = tag5Value; + setParameter("Tag5Value", tag5Value); +} + +std::string RemoveTagsRequest::getTag1Key()const +{ + return tag1Key_; +} + +void RemoveTagsRequest::setTag1Key(const std::string& tag1Key) +{ + tag1Key_ = tag1Key; + setParameter("Tag1Key", tag1Key); +} + +std::string RemoveTagsRequest::getTag1Value()const +{ + return tag1Value_; +} + +void RemoveTagsRequest::setTag1Value(const std::string& tag1Value) +{ + tag1Value_ = tag1Value; + setParameter("Tag1Value", tag1Value); +} + +std::string RemoveTagsRequest::getRegionId()const +{ + return regionId_; +} + +void RemoveTagsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string RemoveTagsRequest::getTag2Value()const +{ + return tag2Value_; +} + +void RemoveTagsRequest::setTag2Value(const std::string& tag2Value) +{ + tag2Value_ = tag2Value; + setParameter("Tag2Value", tag2Value); +} + +std::string RemoveTagsRequest::getTag4Key()const +{ + return tag4Key_; +} + +void RemoveTagsRequest::setTag4Key(const std::string& tag4Key) +{ + tag4Key_ = tag4Key; + setParameter("Tag4Key", tag4Key); +} + +std::string RemoveTagsRequest::getTag3Value()const +{ + return tag3Value_; +} + +void RemoveTagsRequest::setTag3Value(const std::string& tag3Value) +{ + tag3Value_ = tag3Value; + setParameter("Tag3Value", tag3Value); +} + diff --git a/ecs/src/model/RemoveTagsResult.cc b/ecs/src/model/RemoveTagsResult.cc new file mode 100644 index 000000000..74c2967d1 --- /dev/null +++ b/ecs/src/model/RemoveTagsResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RemoveTagsResult::RemoveTagsResult() : + ServiceResult() +{} + +RemoveTagsResult::RemoveTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveTagsResult::~RemoveTagsResult() +{} + +void RemoveTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RenewInstanceRequest.cc b/ecs/src/model/RenewInstanceRequest.cc new file mode 100644 index 000000000..9055b073a --- /dev/null +++ b/ecs/src/model/RenewInstanceRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RenewInstanceRequest::RenewInstanceRequest() : + EcsRequest("RenewInstance") +{} + +RenewInstanceRequest::~RenewInstanceRequest() +{} + +long RenewInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RenewInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int RenewInstanceRequest::getPeriod()const +{ + return period_; +} + +void RenewInstanceRequest::setPeriod(int period) +{ + period_ = period; + setParameter("Period", std::to_string(period)); +} + +std::string RenewInstanceRequest::getPeriodUnit()const +{ + return periodUnit_; +} + +void RenewInstanceRequest::setPeriodUnit(const std::string& periodUnit) +{ + periodUnit_ = periodUnit; + setParameter("PeriodUnit", periodUnit); +} + +std::string RenewInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void RenewInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string RenewInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void RenewInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string RenewInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RenewInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RenewInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RenewInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long RenewInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void RenewInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/RenewInstanceResult.cc b/ecs/src/model/RenewInstanceResult.cc new file mode 100644 index 000000000..3085a5382 --- /dev/null +++ b/ecs/src/model/RenewInstanceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RenewInstanceResult::RenewInstanceResult() : + ServiceResult() +{} + +RenewInstanceResult::RenewInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RenewInstanceResult::~RenewInstanceResult() +{} + +void RenewInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ReplaceSystemDiskRequest.cc b/ecs/src/model/ReplaceSystemDiskRequest.cc new file mode 100644 index 000000000..d7f6a9403 --- /dev/null +++ b/ecs/src/model/ReplaceSystemDiskRequest.cc @@ -0,0 +1,160 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ReplaceSystemDiskRequest::ReplaceSystemDiskRequest() : + EcsRequest("ReplaceSystemDisk") +{} + +ReplaceSystemDiskRequest::~ReplaceSystemDiskRequest() +{} + +long ReplaceSystemDiskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ReplaceSystemDiskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ReplaceSystemDiskRequest::getImageId()const +{ + return imageId_; +} + +void ReplaceSystemDiskRequest::setImageId(const std::string& imageId) +{ + imageId_ = imageId; + setParameter("ImageId", imageId); +} + +std::string ReplaceSystemDiskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ReplaceSystemDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ReplaceSystemDiskRequest::getClientToken()const +{ + return clientToken_; +} + +void ReplaceSystemDiskRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ReplaceSystemDiskRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ReplaceSystemDiskRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ReplaceSystemDiskRequest::getSecurityEnhancementStrategy()const +{ + return securityEnhancementStrategy_; +} + +void ReplaceSystemDiskRequest::setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy) +{ + securityEnhancementStrategy_ = securityEnhancementStrategy; + setParameter("SecurityEnhancementStrategy", securityEnhancementStrategy); +} + +std::string ReplaceSystemDiskRequest::getKeyPairName()const +{ + return keyPairName_; +} + +void ReplaceSystemDiskRequest::setKeyPairName(const std::string& keyPairName) +{ + keyPairName_ = keyPairName; + setParameter("KeyPairName", keyPairName); +} + +long ReplaceSystemDiskRequest::getOwnerId()const +{ + return ownerId_; +} + +void ReplaceSystemDiskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ReplaceSystemDiskRequest::getPassword()const +{ + return password_; +} + +void ReplaceSystemDiskRequest::setPassword(const std::string& password) +{ + password_ = password; + setParameter("Password", password); +} + +std::string ReplaceSystemDiskRequest::getInstanceId()const +{ + return instanceId_; +} + +void ReplaceSystemDiskRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int ReplaceSystemDiskRequest::getSystemDiskSize()const +{ + return systemDiskSize_; +} + +void ReplaceSystemDiskRequest::setSystemDiskSize(int systemDiskSize) +{ + systemDiskSize_ = systemDiskSize; + setParameter("SystemDiskSize", std::to_string(systemDiskSize)); +} + +bool ReplaceSystemDiskRequest::getUseAdditionalService()const +{ + return useAdditionalService_; +} + +void ReplaceSystemDiskRequest::setUseAdditionalService(bool useAdditionalService) +{ + useAdditionalService_ = useAdditionalService; + setParameter("UseAdditionalService", std::to_string(useAdditionalService)); +} + diff --git a/ecs/src/model/ReplaceSystemDiskResult.cc b/ecs/src/model/ReplaceSystemDiskResult.cc new file mode 100644 index 000000000..cead48811 --- /dev/null +++ b/ecs/src/model/ReplaceSystemDiskResult.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ReplaceSystemDiskResult::ReplaceSystemDiskResult() : + ServiceResult() +{} + +ReplaceSystemDiskResult::ReplaceSystemDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReplaceSystemDiskResult::~ReplaceSystemDiskResult() +{} + +void ReplaceSystemDiskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + diskId_ = value["DiskId"].asString(); + +} + +std::string ReplaceSystemDiskResult::getDiskId()const +{ + return diskId_; +} + +void ReplaceSystemDiskResult::setDiskId(const std::string& diskId) +{ + diskId_ = diskId; +} + diff --git a/ecs/src/model/ResetDiskRequest.cc b/ecs/src/model/ResetDiskRequest.cc new file mode 100644 index 000000000..f92b1fb57 --- /dev/null +++ b/ecs/src/model/ResetDiskRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ResetDiskRequest::ResetDiskRequest() : + EcsRequest("ResetDisk") +{} + +ResetDiskRequest::~ResetDiskRequest() +{} + +long ResetDiskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ResetDiskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ResetDiskRequest::getSnapshotId()const +{ + return snapshotId_; +} + +void ResetDiskRequest::setSnapshotId(const std::string& snapshotId) +{ + snapshotId_ = snapshotId; + setParameter("SnapshotId", snapshotId); +} + +std::string ResetDiskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ResetDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ResetDiskRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ResetDiskRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ResetDiskRequest::getDiskId()const +{ + return diskId_; +} + +void ResetDiskRequest::setDiskId(const std::string& diskId) +{ + diskId_ = diskId; + setParameter("DiskId", diskId); +} + +long ResetDiskRequest::getOwnerId()const +{ + return ownerId_; +} + +void ResetDiskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ResetDiskResult.cc b/ecs/src/model/ResetDiskResult.cc new file mode 100644 index 000000000..cc9e1111c --- /dev/null +++ b/ecs/src/model/ResetDiskResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ResetDiskResult::ResetDiskResult() : + ServiceResult() +{} + +ResetDiskResult::ResetDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetDiskResult::~ResetDiskResult() +{} + +void ResetDiskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/ResizeDiskRequest.cc b/ecs/src/model/ResizeDiskRequest.cc new file mode 100644 index 000000000..adfe068bb --- /dev/null +++ b/ecs/src/model/ResizeDiskRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ResizeDiskRequest::ResizeDiskRequest() : + EcsRequest("ResizeDisk") +{} + +ResizeDiskRequest::~ResizeDiskRequest() +{} + +long ResizeDiskRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ResizeDiskRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ResizeDiskRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ResizeDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ResizeDiskRequest::getClientToken()const +{ + return clientToken_; +} + +void ResizeDiskRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string ResizeDiskRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ResizeDiskRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +int ResizeDiskRequest::getNewSize()const +{ + return newSize_; +} + +void ResizeDiskRequest::setNewSize(int newSize) +{ + newSize_ = newSize; + setParameter("NewSize", std::to_string(newSize)); +} + +std::string ResizeDiskRequest::getDiskId()const +{ + return diskId_; +} + +void ResizeDiskRequest::setDiskId(const std::string& diskId) +{ + diskId_ = diskId; + setParameter("DiskId", diskId); +} + +long ResizeDiskRequest::getOwnerId()const +{ + return ownerId_; +} + +void ResizeDiskRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/ResizeDiskResult.cc b/ecs/src/model/ResizeDiskResult.cc new file mode 100644 index 000000000..fe48ec411 --- /dev/null +++ b/ecs/src/model/ResizeDiskResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +ResizeDiskResult::ResizeDiskResult() : + ServiceResult() +{} + +ResizeDiskResult::ResizeDiskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResizeDiskResult::~ResizeDiskResult() +{} + +void ResizeDiskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RevokeSecurityGroupEgressRequest.cc b/ecs/src/model/RevokeSecurityGroupEgressRequest.cc new file mode 100644 index 000000000..f2bdcdb92 --- /dev/null +++ b/ecs/src/model/RevokeSecurityGroupEgressRequest.cc @@ -0,0 +1,446 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RevokeSecurityGroupEgressRequest::RevokeSecurityGroupEgressRequest() : + EcsRequest("RevokeSecurityGroupEgress") +{} + +RevokeSecurityGroupEgressRequest::~RevokeSecurityGroupEgressRequest() +{} + +std::string RevokeSecurityGroupEgressRequest::getNicType()const +{ + return nicType_; +} + +void RevokeSecurityGroupEgressRequest::setNicType(const std::string& nicType) +{ + nicType_ = nicType; + setParameter("NicType", nicType); +} + +long RevokeSecurityGroupEgressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RevokeSecurityGroupEgressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RevokeSecurityGroupEgressRequest::getSourcePortRange()const +{ + return sourcePortRange_; +} + +void RevokeSecurityGroupEgressRequest::setSourcePortRange(const std::string& sourcePortRange) +{ + sourcePortRange_ = sourcePortRange; + setParameter("SourcePortRange", sourcePortRange); +} + +std::string RevokeSecurityGroupEgressRequest::getClientToken()const +{ + return clientToken_; +} + +void RevokeSecurityGroupEgressRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +long RevokeSecurityGroupEgressRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void RevokeSecurityGroupEgressRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string RevokeSecurityGroupEgressRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void RevokeSecurityGroupEgressRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +bool RevokeSecurityGroupEgressRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void RevokeSecurityGroupEgressRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string RevokeSecurityGroupEgressRequest::getDescription()const +{ + return description_; +} + +void RevokeSecurityGroupEgressRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string RevokeSecurityGroupEgressRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void RevokeSecurityGroupEgressRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string RevokeSecurityGroupEgressRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void RevokeSecurityGroupEgressRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string RevokeSecurityGroupEgressRequest::getCallerType()const +{ + return callerType_; +} + +void RevokeSecurityGroupEgressRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string RevokeSecurityGroupEgressRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RevokeSecurityGroupEgressRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string RevokeSecurityGroupEgressRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void RevokeSecurityGroupEgressRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string RevokeSecurityGroupEgressRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RevokeSecurityGroupEgressRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string RevokeSecurityGroupEgressRequest::getRegionId()const +{ + return regionId_; +} + +void RevokeSecurityGroupEgressRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool RevokeSecurityGroupEgressRequest::getEnable()const +{ + return enable_; +} + +void RevokeSecurityGroupEgressRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string RevokeSecurityGroupEgressRequest::getRequestContent()const +{ + return requestContent_; +} + +void RevokeSecurityGroupEgressRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string RevokeSecurityGroupEgressRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void RevokeSecurityGroupEgressRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string RevokeSecurityGroupEgressRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void RevokeSecurityGroupEgressRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long RevokeSecurityGroupEgressRequest::getCallerUid()const +{ + return callerUid_; +} + +void RevokeSecurityGroupEgressRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string RevokeSecurityGroupEgressRequest::getPolicy()const +{ + return policy_; +} + +void RevokeSecurityGroupEgressRequest::setPolicy(const std::string& policy) +{ + policy_ = policy; + setParameter("Policy", policy); +} + +std::string RevokeSecurityGroupEgressRequest::getApp_ip()const +{ + return app_ip_; +} + +void RevokeSecurityGroupEgressRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string RevokeSecurityGroupEgressRequest::getPortRange()const +{ + return portRange_; +} + +void RevokeSecurityGroupEgressRequest::setPortRange(const std::string& portRange) +{ + portRange_ = portRange; + setParameter("PortRange", portRange); +} + +std::string RevokeSecurityGroupEgressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RevokeSecurityGroupEgressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RevokeSecurityGroupEgressRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void RevokeSecurityGroupEgressRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setParameter("IpProtocol", ipProtocol); +} + +std::string RevokeSecurityGroupEgressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RevokeSecurityGroupEgressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string RevokeSecurityGroupEgressRequest::getSourceCidrIp()const +{ + return sourceCidrIp_; +} + +void RevokeSecurityGroupEgressRequest::setSourceCidrIp(const std::string& sourceCidrIp) +{ + sourceCidrIp_ = sourceCidrIp; + setParameter("SourceCidrIp", sourceCidrIp); +} + +std::string RevokeSecurityGroupEgressRequest::getCallerBid()const +{ + return callerBid_; +} + +void RevokeSecurityGroupEgressRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +std::string RevokeSecurityGroupEgressRequest::getDestGroupId()const +{ + return destGroupId_; +} + +void RevokeSecurityGroupEgressRequest::setDestGroupId(const std::string& destGroupId) +{ + destGroupId_ = destGroupId; + setParameter("DestGroupId", destGroupId); +} + +long RevokeSecurityGroupEgressRequest::getOwnerId()const +{ + return ownerId_; +} + +void RevokeSecurityGroupEgressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RevokeSecurityGroupEgressRequest::getDestGroupOwnerAccount()const +{ + return destGroupOwnerAccount_; +} + +void RevokeSecurityGroupEgressRequest::setDestGroupOwnerAccount(const std::string& destGroupOwnerAccount) +{ + destGroupOwnerAccount_ = destGroupOwnerAccount; + setParameter("DestGroupOwnerAccount", destGroupOwnerAccount); +} + +std::string RevokeSecurityGroupEgressRequest::getPriority()const +{ + return priority_; +} + +void RevokeSecurityGroupEgressRequest::setPriority(const std::string& priority) +{ + priority_ = priority; + setParameter("Priority", priority); +} + +std::string RevokeSecurityGroupEgressRequest::getDestCidrIp()const +{ + return destCidrIp_; +} + +void RevokeSecurityGroupEgressRequest::setDestCidrIp(const std::string& destCidrIp) +{ + destCidrIp_ = destCidrIp; + setParameter("DestCidrIp", destCidrIp); +} + +bool RevokeSecurityGroupEgressRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void RevokeSecurityGroupEgressRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool RevokeSecurityGroupEgressRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void RevokeSecurityGroupEgressRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool RevokeSecurityGroupEgressRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void RevokeSecurityGroupEgressRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +long RevokeSecurityGroupEgressRequest::getDestGroupOwnerId()const +{ + return destGroupOwnerId_; +} + +void RevokeSecurityGroupEgressRequest::setDestGroupOwnerId(long destGroupOwnerId) +{ + destGroupOwnerId_ = destGroupOwnerId; + setParameter("DestGroupOwnerId", std::to_string(destGroupOwnerId)); +} + +std::string RevokeSecurityGroupEgressRequest::getRequestId()const +{ + return requestId_; +} + +void RevokeSecurityGroupEgressRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ecs/src/model/RevokeSecurityGroupEgressResult.cc b/ecs/src/model/RevokeSecurityGroupEgressResult.cc new file mode 100644 index 000000000..daa154e84 --- /dev/null +++ b/ecs/src/model/RevokeSecurityGroupEgressResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RevokeSecurityGroupEgressResult::RevokeSecurityGroupEgressResult() : + ServiceResult() +{} + +RevokeSecurityGroupEgressResult::RevokeSecurityGroupEgressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevokeSecurityGroupEgressResult::~RevokeSecurityGroupEgressResult() +{} + +void RevokeSecurityGroupEgressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RevokeSecurityGroupRequest.cc b/ecs/src/model/RevokeSecurityGroupRequest.cc new file mode 100644 index 000000000..118edf400 --- /dev/null +++ b/ecs/src/model/RevokeSecurityGroupRequest.cc @@ -0,0 +1,446 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RevokeSecurityGroupRequest::RevokeSecurityGroupRequest() : + EcsRequest("RevokeSecurityGroup") +{} + +RevokeSecurityGroupRequest::~RevokeSecurityGroupRequest() +{} + +std::string RevokeSecurityGroupRequest::getNicType()const +{ + return nicType_; +} + +void RevokeSecurityGroupRequest::setNicType(const std::string& nicType) +{ + nicType_ = nicType; + setParameter("NicType", nicType); +} + +long RevokeSecurityGroupRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RevokeSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RevokeSecurityGroupRequest::getSourcePortRange()const +{ + return sourcePortRange_; +} + +void RevokeSecurityGroupRequest::setSourcePortRange(const std::string& sourcePortRange) +{ + sourcePortRange_ = sourcePortRange; + setParameter("SourcePortRange", sourcePortRange); +} + +std::string RevokeSecurityGroupRequest::getClientToken()const +{ + return clientToken_; +} + +void RevokeSecurityGroupRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +long RevokeSecurityGroupRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void RevokeSecurityGroupRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string RevokeSecurityGroupRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void RevokeSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +bool RevokeSecurityGroupRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void RevokeSecurityGroupRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string RevokeSecurityGroupRequest::getDescription()const +{ + return description_; +} + +void RevokeSecurityGroupRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string RevokeSecurityGroupRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void RevokeSecurityGroupRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string RevokeSecurityGroupRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void RevokeSecurityGroupRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string RevokeSecurityGroupRequest::getCallerType()const +{ + return callerType_; +} + +void RevokeSecurityGroupRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string RevokeSecurityGroupRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RevokeSecurityGroupRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string RevokeSecurityGroupRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void RevokeSecurityGroupRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +long RevokeSecurityGroupRequest::getSourceGroupOwnerId()const +{ + return sourceGroupOwnerId_; +} + +void RevokeSecurityGroupRequest::setSourceGroupOwnerId(long sourceGroupOwnerId) +{ + sourceGroupOwnerId_ = sourceGroupOwnerId; + setParameter("SourceGroupOwnerId", std::to_string(sourceGroupOwnerId)); +} + +std::string RevokeSecurityGroupRequest::getSourceGroupOwnerAccount()const +{ + return sourceGroupOwnerAccount_; +} + +void RevokeSecurityGroupRequest::setSourceGroupOwnerAccount(const std::string& sourceGroupOwnerAccount) +{ + sourceGroupOwnerAccount_ = sourceGroupOwnerAccount; + setParameter("SourceGroupOwnerAccount", sourceGroupOwnerAccount); +} + +std::string RevokeSecurityGroupRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RevokeSecurityGroupRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string RevokeSecurityGroupRequest::getRegionId()const +{ + return regionId_; +} + +void RevokeSecurityGroupRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool RevokeSecurityGroupRequest::getEnable()const +{ + return enable_; +} + +void RevokeSecurityGroupRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string RevokeSecurityGroupRequest::getRequestContent()const +{ + return requestContent_; +} + +void RevokeSecurityGroupRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string RevokeSecurityGroupRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void RevokeSecurityGroupRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string RevokeSecurityGroupRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void RevokeSecurityGroupRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long RevokeSecurityGroupRequest::getCallerUid()const +{ + return callerUid_; +} + +void RevokeSecurityGroupRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string RevokeSecurityGroupRequest::getPolicy()const +{ + return policy_; +} + +void RevokeSecurityGroupRequest::setPolicy(const std::string& policy) +{ + policy_ = policy; + setParameter("Policy", policy); +} + +std::string RevokeSecurityGroupRequest::getApp_ip()const +{ + return app_ip_; +} + +void RevokeSecurityGroupRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string RevokeSecurityGroupRequest::getPortRange()const +{ + return portRange_; +} + +void RevokeSecurityGroupRequest::setPortRange(const std::string& portRange) +{ + portRange_ = portRange; + setParameter("PortRange", portRange); +} + +std::string RevokeSecurityGroupRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RevokeSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RevokeSecurityGroupRequest::getIpProtocol()const +{ + return ipProtocol_; +} + +void RevokeSecurityGroupRequest::setIpProtocol(const std::string& ipProtocol) +{ + ipProtocol_ = ipProtocol; + setParameter("IpProtocol", ipProtocol); +} + +std::string RevokeSecurityGroupRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RevokeSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string RevokeSecurityGroupRequest::getSourceCidrIp()const +{ + return sourceCidrIp_; +} + +void RevokeSecurityGroupRequest::setSourceCidrIp(const std::string& sourceCidrIp) +{ + sourceCidrIp_ = sourceCidrIp; + setParameter("SourceCidrIp", sourceCidrIp); +} + +std::string RevokeSecurityGroupRequest::getCallerBid()const +{ + return callerBid_; +} + +void RevokeSecurityGroupRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long RevokeSecurityGroupRequest::getOwnerId()const +{ + return ownerId_; +} + +void RevokeSecurityGroupRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RevokeSecurityGroupRequest::getPriority()const +{ + return priority_; +} + +void RevokeSecurityGroupRequest::setPriority(const std::string& priority) +{ + priority_ = priority; + setParameter("Priority", priority); +} + +std::string RevokeSecurityGroupRequest::getDestCidrIp()const +{ + return destCidrIp_; +} + +void RevokeSecurityGroupRequest::setDestCidrIp(const std::string& destCidrIp) +{ + destCidrIp_ = destCidrIp; + setParameter("DestCidrIp", destCidrIp); +} + +bool RevokeSecurityGroupRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void RevokeSecurityGroupRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool RevokeSecurityGroupRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void RevokeSecurityGroupRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool RevokeSecurityGroupRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void RevokeSecurityGroupRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string RevokeSecurityGroupRequest::getRequestId()const +{ + return requestId_; +} + +void RevokeSecurityGroupRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string RevokeSecurityGroupRequest::getSourceGroupId()const +{ + return sourceGroupId_; +} + +void RevokeSecurityGroupRequest::setSourceGroupId(const std::string& sourceGroupId) +{ + sourceGroupId_ = sourceGroupId; + setParameter("SourceGroupId", sourceGroupId); +} + diff --git a/ecs/src/model/RevokeSecurityGroupResult.cc b/ecs/src/model/RevokeSecurityGroupResult.cc new file mode 100644 index 000000000..80d8838cb --- /dev/null +++ b/ecs/src/model/RevokeSecurityGroupResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RevokeSecurityGroupResult::RevokeSecurityGroupResult() : + ServiceResult() +{} + +RevokeSecurityGroupResult::RevokeSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevokeSecurityGroupResult::~RevokeSecurityGroupResult() +{} + +void RevokeSecurityGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/RunInstancesRequest.cc b/ecs/src/model/RunInstancesRequest.cc new file mode 100644 index 000000000..c9b6a0c91 --- /dev/null +++ b/ecs/src/model/RunInstancesRequest.cc @@ -0,0 +1,637 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RunInstancesRequest::RunInstancesRequest() : + EcsRequest("RunInstances") +{} + +RunInstancesRequest::~RunInstancesRequest() +{} + +long RunInstancesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RunInstancesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long RunInstancesRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void RunInstancesRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string RunInstancesRequest::getSecurityEnhancementStrategy()const +{ + return securityEnhancementStrategy_; +} + +void RunInstancesRequest::setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy) +{ + securityEnhancementStrategy_ = securityEnhancementStrategy; + setParameter("SecurityEnhancementStrategy", securityEnhancementStrategy); +} + +std::string RunInstancesRequest::getKeyPairName()const +{ + return keyPairName_; +} + +void RunInstancesRequest::setKeyPairName(const std::string& keyPairName) +{ + keyPairName_ = keyPairName; + setParameter("KeyPairName", keyPairName); +} + +std::string RunInstancesRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void RunInstancesRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +float RunInstancesRequest::getSpotPriceLimit()const +{ + return spotPriceLimit_; +} + +void RunInstancesRequest::setSpotPriceLimit(float spotPriceLimit) +{ + spotPriceLimit_ = spotPriceLimit; + setParameter("SpotPriceLimit", std::to_string(spotPriceLimit)); +} + +std::string RunInstancesRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void RunInstancesRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string RunInstancesRequest::getCallerType()const +{ + return callerType_; +} + +void RunInstancesRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string RunInstancesRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void RunInstancesRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string RunInstancesRequest::getHostName()const +{ + return hostName_; +} + +void RunInstancesRequest::setHostName(const std::string& hostName) +{ + hostName_ = hostName; + setParameter("HostName", hostName); +} + +std::string RunInstancesRequest::getPassword()const +{ + return password_; +} + +void RunInstancesRequest::setPassword(const std::string& password) +{ + password_ = password; + setParameter("Password", password); +} + +std::string RunInstancesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RunInstancesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +bool RunInstancesRequest::getEnable()const +{ + return enable_; +} + +void RunInstancesRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string RunInstancesRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void RunInstancesRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::vector RunInstancesRequest::getTag()const +{ + return tag_; +} + +void RunInstancesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setParameter(str + ".Key", obj.key); + setParameter(str + ".Value", obj.value); + } +} + +long RunInstancesRequest::getCallerUid()const +{ + return callerUid_; +} + +void RunInstancesRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +long RunInstancesRequest::getOwnerId()const +{ + return ownerId_; +} + +void RunInstancesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool RunInstancesRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void RunInstancesRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool RunInstancesRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void RunInstancesRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string RunInstancesRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void RunInstancesRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string RunInstancesRequest::getSpotStrategy()const +{ + return spotStrategy_; +} + +void RunInstancesRequest::setSpotStrategy(const std::string& spotStrategy) +{ + spotStrategy_ = spotStrategy; + setParameter("SpotStrategy", spotStrategy); +} + +std::string RunInstancesRequest::getInstanceName()const +{ + return instanceName_; +} + +void RunInstancesRequest::setInstanceName(const std::string& instanceName) +{ + instanceName_ = instanceName; + setParameter("InstanceName", instanceName); +} + +std::string RunInstancesRequest::getRequestId()const +{ + return requestId_; +} + +void RunInstancesRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +std::string RunInstancesRequest::getInternetChargeType()const +{ + return internetChargeType_; +} + +void RunInstancesRequest::setInternetChargeType(const std::string& internetChargeType) +{ + internetChargeType_ = internetChargeType; + setParameter("InternetChargeType", internetChargeType); +} + +std::string RunInstancesRequest::getZoneId()const +{ + return zoneId_; +} + +void RunInstancesRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +int RunInstancesRequest::getInternetMaxBandwidthIn()const +{ + return internetMaxBandwidthIn_; +} + +void RunInstancesRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) +{ + internetMaxBandwidthIn_ = internetMaxBandwidthIn; + setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn)); +} + +std::string RunInstancesRequest::getImageId()const +{ + return imageId_; +} + +void RunInstancesRequest::setImageId(const std::string& imageId) +{ + imageId_ = imageId; + setParameter("ImageId", imageId); +} + +std::string RunInstancesRequest::getClientToken()const +{ + return clientToken_; +} + +void RunInstancesRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string RunInstancesRequest::getIoOptimized()const +{ + return ioOptimized_; +} + +void RunInstancesRequest::setIoOptimized(const std::string& ioOptimized) +{ + ioOptimized_ = ioOptimized; + setParameter("IoOptimized", ioOptimized); +} + +std::string RunInstancesRequest::getSecurityGroupId()const +{ + return securityGroupId_; +} + +void RunInstancesRequest::setSecurityGroupId(const std::string& securityGroupId) +{ + securityGroupId_ = securityGroupId; + setParameter("SecurityGroupId", securityGroupId); +} + +int RunInstancesRequest::getInternetMaxBandwidthOut()const +{ + return internetMaxBandwidthOut_; +} + +void RunInstancesRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) +{ + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut)); +} + +bool RunInstancesRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void RunInstancesRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string RunInstancesRequest::getDescription()const +{ + return description_; +} + +void RunInstancesRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string RunInstancesRequest::getSystemDiskCategory()const +{ + return systemDiskCategory_; +} + +void RunInstancesRequest::setSystemDiskCategory(const std::string& systemDiskCategory) +{ + systemDiskCategory_ = systemDiskCategory; + setParameter("SystemDiskCategory", systemDiskCategory); +} + +std::string RunInstancesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RunInstancesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string RunInstancesRequest::getUserData()const +{ + return userData_; +} + +void RunInstancesRequest::setUserData(const std::string& userData) +{ + userData_ = userData; + setParameter("UserData", userData); +} + +std::string RunInstancesRequest::getRegionId()const +{ + return regionId_; +} + +void RunInstancesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string RunInstancesRequest::getRequestContent()const +{ + return requestContent_; +} + +void RunInstancesRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string RunInstancesRequest::getInstanceType()const +{ + return instanceType_; +} + +void RunInstancesRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::string RunInstancesRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void RunInstancesRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +std::vector RunInstancesRequest::getNetworkInterface()const +{ + return networkInterface_; +} + +void RunInstancesRequest::setNetworkInterface(const std::vector& networkInterface) +{ + networkInterface_ = networkInterface; + int i = 0; + for(int i = 0; i!= networkInterface.size(); i++) { + auto obj = networkInterface.at(i); + std::string str ="NetworkInterface."+ std::to_string(i); + setParameter(str + ".PrimaryIpAddress", obj.primaryIpAddress); + setParameter(str + ".VSwitchId", obj.vSwitchId); + setParameter(str + ".SecurityGroupId", obj.securityGroupId); + setParameter(str + ".NetworkInterfaceName", obj.networkInterfaceName); + setParameter(str + ".Description", obj.description); + } +} + +std::string RunInstancesRequest::getApp_ip()const +{ + return app_ip_; +} + +void RunInstancesRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +int RunInstancesRequest::getAmount()const +{ + return amount_; +} + +void RunInstancesRequest::setAmount(int amount) +{ + amount_ = amount; + setParameter("Amount", std::to_string(amount)); +} + +std::string RunInstancesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RunInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RunInstancesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RunInstancesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string RunInstancesRequest::getSystemDiskDiskName()const +{ + return systemDiskDiskName_; +} + +void RunInstancesRequest::setSystemDiskDiskName(const std::string& systemDiskDiskName) +{ + systemDiskDiskName_ = systemDiskDiskName; + setParameter("SystemDiskDiskName", systemDiskDiskName); +} + +std::string RunInstancesRequest::getRamRoleName()const +{ + return ramRoleName_; +} + +void RunInstancesRequest::setRamRoleName(const std::string& ramRoleName) +{ + ramRoleName_ = ramRoleName; + setParameter("RamRoleName", ramRoleName); +} + +std::string RunInstancesRequest::getAutoReleaseTime()const +{ + return autoReleaseTime_; +} + +void RunInstancesRequest::setAutoReleaseTime(const std::string& autoReleaseTime) +{ + autoReleaseTime_ = autoReleaseTime; + setParameter("AutoReleaseTime", autoReleaseTime); +} + +std::string RunInstancesRequest::getCallerBid()const +{ + return callerBid_; +} + +void RunInstancesRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +std::vector RunInstancesRequest::getDataDisk()const +{ + return dataDisk_; +} + +void RunInstancesRequest::setDataDisk(const std::vector& dataDisk) +{ + dataDisk_ = dataDisk; + int i = 0; + for(int i = 0; i!= dataDisk.size(); i++) { + auto obj = dataDisk.at(i); + std::string str ="DataDisk."+ std::to_string(i); + setParameter(str + ".Size", std::to_string(obj.size)); + setParameter(str + ".SnapshotId", obj.snapshotId); + setParameter(str + ".Category", obj.category); + setParameter(str + ".Encrypted", obj.encrypted); + setParameter(str + ".DiskName", obj.diskName); + setParameter(str + ".Description", obj.description); + setParameter(str + ".DeleteWithInstance", std::to_string(obj.deleteWithInstance)); + } +} + +bool RunInstancesRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void RunInstancesRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +std::string RunInstancesRequest::getSystemDiskSize()const +{ + return systemDiskSize_; +} + +void RunInstancesRequest::setSystemDiskSize(const std::string& systemDiskSize) +{ + systemDiskSize_ = systemDiskSize; + setParameter("SystemDiskSize", systemDiskSize); +} + +std::string RunInstancesRequest::getSystemDiskDescription()const +{ + return systemDiskDescription_; +} + +void RunInstancesRequest::setSystemDiskDescription(const std::string& systemDiskDescription) +{ + systemDiskDescription_ = systemDiskDescription; + setParameter("SystemDiskDescription", systemDiskDescription); +} + diff --git a/ecs/src/model/RunInstancesResult.cc b/ecs/src/model/RunInstancesResult.cc new file mode 100644 index 000000000..38cc5ada9 --- /dev/null +++ b/ecs/src/model/RunInstancesResult.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::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +RunInstancesResult::RunInstancesResult() : + ServiceResult() +{} + +RunInstancesResult::RunInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RunInstancesResult::~RunInstancesResult() +{} + +void RunInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allInstanceIdSets = value["InstanceIdSets"]["InstanceIdSet"]; + for (const auto &item : allInstanceIdSets) + instanceIdSets_.push_back(item.asString()); + +} + +std::vector RunInstancesResult::getInstanceIdSets()const +{ + return instanceIdSets_; +} + +void RunInstancesResult::setInstanceIdSets(const std::vector& instanceIdSets) +{ + instanceIdSets_ = instanceIdSets; +} + diff --git a/ecs/src/model/SignAgreementRequest.cc b/ecs/src/model/SignAgreementRequest.cc new file mode 100644 index 000000000..b50eb662c --- /dev/null +++ b/ecs/src/model/SignAgreementRequest.cc @@ -0,0 +1,281 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +SignAgreementRequest::SignAgreementRequest() : + EcsRequest("SignAgreement") +{} + +SignAgreementRequest::~SignAgreementRequest() +{} + +std::string SignAgreementRequest::getApp_ip()const +{ + return app_ip_; +} + +void SignAgreementRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +long SignAgreementRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SignAgreementRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string SignAgreementRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SignAgreementRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long SignAgreementRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void SignAgreementRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +std::string SignAgreementRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void SignAgreementRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +bool SignAgreementRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void SignAgreementRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string SignAgreementRequest::getCallerBid()const +{ + return callerBid_; +} + +void SignAgreementRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long SignAgreementRequest::getOwnerId()const +{ + return ownerId_; +} + +void SignAgreementRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SignAgreementRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void SignAgreementRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string SignAgreementRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void SignAgreementRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string SignAgreementRequest::getCallerType()const +{ + return callerType_; +} + +void SignAgreementRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +bool SignAgreementRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void SignAgreementRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool SignAgreementRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void SignAgreementRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +std::string SignAgreementRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SignAgreementRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +bool SignAgreementRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void SignAgreementRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::string SignAgreementRequest::getSecurityToken()const +{ + return securityToken_; +} + +void SignAgreementRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string SignAgreementRequest::getRequestId()const +{ + return requestId_; +} + +void SignAgreementRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + +bool SignAgreementRequest::getEnable()const +{ + return enable_; +} + +void SignAgreementRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string SignAgreementRequest::getRequestContent()const +{ + return requestContent_; +} + +void SignAgreementRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string SignAgreementRequest::getAgreementType()const +{ + return agreementType_; +} + +void SignAgreementRequest::setAgreementType(const std::string& agreementType) +{ + agreementType_ = agreementType; + setParameter("AgreementType", agreementType); +} + +std::string SignAgreementRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void SignAgreementRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string SignAgreementRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void SignAgreementRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long SignAgreementRequest::getCallerUid()const +{ + return callerUid_; +} + +void SignAgreementRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + diff --git a/ecs/src/model/SignAgreementResult.cc b/ecs/src/model/SignAgreementResult.cc new file mode 100644 index 000000000..f3c47b3f4 --- /dev/null +++ b/ecs/src/model/SignAgreementResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +SignAgreementResult::SignAgreementResult() : + ServiceResult() +{} + +SignAgreementResult::SignAgreementResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SignAgreementResult::~SignAgreementResult() +{} + +void SignAgreementResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/StartInstanceRequest.cc b/ecs/src/model/StartInstanceRequest.cc new file mode 100644 index 000000000..f3cde4c2e --- /dev/null +++ b/ecs/src/model/StartInstanceRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +StartInstanceRequest::StartInstanceRequest() : + EcsRequest("StartInstance") +{} + +StartInstanceRequest::~StartInstanceRequest() +{} + +bool StartInstanceRequest::getInitLocalDisk()const +{ + return initLocalDisk_; +} + +void StartInstanceRequest::setInitLocalDisk(bool initLocalDisk) +{ + initLocalDisk_ = initLocalDisk; + setParameter("InitLocalDisk", std::to_string(initLocalDisk)); +} + +long StartInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void StartInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string StartInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void StartInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string StartInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void StartInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string StartInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void StartInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long StartInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void StartInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/StartInstanceResult.cc b/ecs/src/model/StartInstanceResult.cc new file mode 100644 index 000000000..5cc100b8d --- /dev/null +++ b/ecs/src/model/StartInstanceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +StartInstanceResult::StartInstanceResult() : + ServiceResult() +{} + +StartInstanceResult::StartInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartInstanceResult::~StartInstanceResult() +{} + +void StartInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/StopInstanceRequest.cc b/ecs/src/model/StopInstanceRequest.cc new file mode 100644 index 000000000..3c9a2e7d1 --- /dev/null +++ b/ecs/src/model/StopInstanceRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +StopInstanceRequest::StopInstanceRequest() : + EcsRequest("StopInstance") +{} + +StopInstanceRequest::~StopInstanceRequest() +{} + +long StopInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void StopInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string StopInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void StopInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string StopInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void StopInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +bool StopInstanceRequest::getConfirmStop()const +{ + return confirmStop_; +} + +void StopInstanceRequest::setConfirmStop(bool confirmStop) +{ + confirmStop_ = confirmStop; + setParameter("ConfirmStop", std::to_string(confirmStop)); +} + +std::string StopInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void StopInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string StopInstanceRequest::getStoppedMode()const +{ + return stoppedMode_; +} + +void StopInstanceRequest::setStoppedMode(const std::string& stoppedMode) +{ + stoppedMode_ = stoppedMode; + setParameter("StoppedMode", stoppedMode); +} + +long StopInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void StopInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool StopInstanceRequest::getForceStop()const +{ + return forceStop_; +} + +void StopInstanceRequest::setForceStop(bool forceStop) +{ + forceStop_ = forceStop; + setParameter("ForceStop", std::to_string(forceStop)); +} + diff --git a/ecs/src/model/StopInstanceResult.cc b/ecs/src/model/StopInstanceResult.cc new file mode 100644 index 000000000..0fc3bb778 --- /dev/null +++ b/ecs/src/model/StopInstanceResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +StopInstanceResult::StopInstanceResult() : + ServiceResult() +{} + +StopInstanceResult::StopInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopInstanceResult::~StopInstanceResult() +{} + +void StopInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/StopInvocationRequest.cc b/ecs/src/model/StopInvocationRequest.cc new file mode 100644 index 000000000..137a239b9 --- /dev/null +++ b/ecs/src/model/StopInvocationRequest.cc @@ -0,0 +1,315 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +StopInvocationRequest::StopInvocationRequest() : + EcsRequest("StopInvocation") +{} + +StopInvocationRequest::~StopInvocationRequest() +{} + +long StopInvocationRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void StopInvocationRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +long StopInvocationRequest::getCallerParentId()const +{ + return callerParentId_; +} + +void StopInvocationRequest::setCallerParentId(long callerParentId) +{ + callerParentId_ = callerParentId; + setParameter("CallerParentId", std::to_string(callerParentId)); +} + +bool StopInvocationRequest::getProxy_original_security_transport()const +{ + return proxy_original_security_transport_; +} + +void StopInvocationRequest::setProxy_original_security_transport(bool proxy_original_security_transport) +{ + proxy_original_security_transport_ = proxy_original_security_transport; + setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport)); +} + +std::string StopInvocationRequest::getProxy_original_source_ip()const +{ + return proxy_original_source_ip_; +} + +void StopInvocationRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip) +{ + proxy_original_source_ip_ = proxy_original_source_ip; + setParameter("Proxy_original_source_ip", proxy_original_source_ip); +} + +std::string StopInvocationRequest::getOwnerIdLoginEmail()const +{ + return ownerIdLoginEmail_; +} + +void StopInvocationRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail) +{ + ownerIdLoginEmail_ = ownerIdLoginEmail; + setParameter("OwnerIdLoginEmail", ownerIdLoginEmail); +} + +std::string StopInvocationRequest::getCallerType()const +{ + return callerType_; +} + +void StopInvocationRequest::setCallerType(const std::string& callerType) +{ + callerType_ = callerType; + setParameter("CallerType", callerType); +} + +std::string StopInvocationRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void StopInvocationRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string StopInvocationRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void StopInvocationRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string StopInvocationRequest::getSecurityToken()const +{ + return securityToken_; +} + +void StopInvocationRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string StopInvocationRequest::getRegionId()const +{ + return regionId_; +} + +void StopInvocationRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool StopInvocationRequest::getEnable()const +{ + return enable_; +} + +void StopInvocationRequest::setEnable(bool enable) +{ + enable_ = enable; + setParameter("Enable", std::to_string(enable)); +} + +std::string StopInvocationRequest::getRequestContent()const +{ + return requestContent_; +} + +void StopInvocationRequest::setRequestContent(const std::string& requestContent) +{ + requestContent_ = requestContent; + setParameter("RequestContent", requestContent); +} + +std::string StopInvocationRequest::getCallerBidEmail()const +{ + return callerBidEmail_; +} + +void StopInvocationRequest::setCallerBidEmail(const std::string& callerBidEmail) +{ + callerBidEmail_ = callerBidEmail; + setParameter("CallerBidEmail", callerBidEmail); +} + +std::string StopInvocationRequest::getCallerUidEmail()const +{ + return callerUidEmail_; +} + +void StopInvocationRequest::setCallerUidEmail(const std::string& callerUidEmail) +{ + callerUidEmail_ = callerUidEmail; + setParameter("CallerUidEmail", callerUidEmail); +} + +long StopInvocationRequest::getCallerUid()const +{ + return callerUid_; +} + +void StopInvocationRequest::setCallerUid(long callerUid) +{ + callerUid_ = callerUid; + setParameter("CallerUid", std::to_string(callerUid)); +} + +std::string StopInvocationRequest::getInvokeId()const +{ + return invokeId_; +} + +void StopInvocationRequest::setInvokeId(const std::string& invokeId) +{ + invokeId_ = invokeId; + setParameter("InvokeId", invokeId); +} + +std::string StopInvocationRequest::getApp_ip()const +{ + return app_ip_; +} + +void StopInvocationRequest::setApp_ip(const std::string& app_ip) +{ + app_ip_ = app_ip; + setParameter("App_ip", app_ip); +} + +std::string StopInvocationRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void StopInvocationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string StopInvocationRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void StopInvocationRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string StopInvocationRequest::getCallerBid()const +{ + return callerBid_; +} + +void StopInvocationRequest::setCallerBid(const std::string& callerBid) +{ + callerBid_ = callerBid; + setParameter("CallerBid", callerBid); +} + +long StopInvocationRequest::getOwnerId()const +{ + return ownerId_; +} + +void StopInvocationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +bool StopInvocationRequest::getProxy_trust_transport_info()const +{ + return proxy_trust_transport_info_; +} + +void StopInvocationRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info) +{ + proxy_trust_transport_info_ = proxy_trust_transport_info; + setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info)); +} + +bool StopInvocationRequest::getAk_mfa_present()const +{ + return ak_mfa_present_; +} + +void StopInvocationRequest::setAk_mfa_present(bool ak_mfa_present) +{ + ak_mfa_present_ = ak_mfa_present; + setParameter("Ak_mfa_present", std::to_string(ak_mfa_present)); +} + +bool StopInvocationRequest::getSecurity_transport()const +{ + return security_transport_; +} + +void StopInvocationRequest::setSecurity_transport(bool security_transport) +{ + security_transport_ = security_transport; + setParameter("Security_transport", std::to_string(security_transport)); +} + +std::vector StopInvocationRequest::getInstanceId()const +{ + return instanceId_; +} + +void StopInvocationRequest::setInstanceId(const std::vector& instanceId) +{ + instanceId_ = instanceId; + for(int i = 0; i!= instanceId.size(); i++) + setParameter("InstanceId."+ std::to_string(i), instanceId.at(i)); +} + +std::string StopInvocationRequest::getRequestId()const +{ + return requestId_; +} + +void StopInvocationRequest::setRequestId(const std::string& requestId) +{ + requestId_ = requestId; + setParameter("RequestId", requestId); +} + diff --git a/ecs/src/model/StopInvocationResult.cc b/ecs/src/model/StopInvocationResult.cc new file mode 100644 index 000000000..57dc91c04 --- /dev/null +++ b/ecs/src/model/StopInvocationResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +StopInvocationResult::StopInvocationResult() : + ServiceResult() +{} + +StopInvocationResult::StopInvocationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopInvocationResult::~StopInvocationResult() +{} + +void StopInvocationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/TerminatePhysicalConnectionRequest.cc b/ecs/src/model/TerminatePhysicalConnectionRequest.cc new file mode 100644 index 000000000..6ef648f3d --- /dev/null +++ b/ecs/src/model/TerminatePhysicalConnectionRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +TerminatePhysicalConnectionRequest::TerminatePhysicalConnectionRequest() : + EcsRequest("TerminatePhysicalConnection") +{} + +TerminatePhysicalConnectionRequest::~TerminatePhysicalConnectionRequest() +{} + +long TerminatePhysicalConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void TerminatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string TerminatePhysicalConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void TerminatePhysicalConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string TerminatePhysicalConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void TerminatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string TerminatePhysicalConnectionRequest::getClientToken()const +{ + return clientToken_; +} + +void TerminatePhysicalConnectionRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string TerminatePhysicalConnectionRequest::getPhysicalConnectionId()const +{ + return physicalConnectionId_; +} + +void TerminatePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) +{ + physicalConnectionId_ = physicalConnectionId; + setParameter("PhysicalConnectionId", physicalConnectionId); +} + +std::string TerminatePhysicalConnectionRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void TerminatePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string TerminatePhysicalConnectionRequest::getUserCidr()const +{ + return userCidr_; +} + +void TerminatePhysicalConnectionRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +long TerminatePhysicalConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void TerminatePhysicalConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/TerminatePhysicalConnectionResult.cc b/ecs/src/model/TerminatePhysicalConnectionResult.cc new file mode 100644 index 000000000..240db43e3 --- /dev/null +++ b/ecs/src/model/TerminatePhysicalConnectionResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +TerminatePhysicalConnectionResult::TerminatePhysicalConnectionResult() : + ServiceResult() +{} + +TerminatePhysicalConnectionResult::TerminatePhysicalConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TerminatePhysicalConnectionResult::~TerminatePhysicalConnectionResult() +{} + +void TerminatePhysicalConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/TerminateVirtualBorderRouterRequest.cc b/ecs/src/model/TerminateVirtualBorderRouterRequest.cc new file mode 100644 index 000000000..5d0f38935 --- /dev/null +++ b/ecs/src/model/TerminateVirtualBorderRouterRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +TerminateVirtualBorderRouterRequest::TerminateVirtualBorderRouterRequest() : + EcsRequest("TerminateVirtualBorderRouter") +{} + +TerminateVirtualBorderRouterRequest::~TerminateVirtualBorderRouterRequest() +{} + +long TerminateVirtualBorderRouterRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void TerminateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string TerminateVirtualBorderRouterRequest::getRegionId()const +{ + return regionId_; +} + +void TerminateVirtualBorderRouterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string TerminateVirtualBorderRouterRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void TerminateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string TerminateVirtualBorderRouterRequest::getClientToken()const +{ + return clientToken_; +} + +void TerminateVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string TerminateVirtualBorderRouterRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void TerminateVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string TerminateVirtualBorderRouterRequest::getUserCidr()const +{ + return userCidr_; +} + +void TerminateVirtualBorderRouterRequest::setUserCidr(const std::string& userCidr) +{ + userCidr_ = userCidr; + setParameter("UserCidr", userCidr); +} + +std::string TerminateVirtualBorderRouterRequest::getVbrId()const +{ + return vbrId_; +} + +void TerminateVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) +{ + vbrId_ = vbrId; + setParameter("VbrId", vbrId); +} + +long TerminateVirtualBorderRouterRequest::getOwnerId()const +{ + return ownerId_; +} + +void TerminateVirtualBorderRouterRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/TerminateVirtualBorderRouterResult.cc b/ecs/src/model/TerminateVirtualBorderRouterResult.cc new file mode 100644 index 000000000..fb88edd54 --- /dev/null +++ b/ecs/src/model/TerminateVirtualBorderRouterResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +TerminateVirtualBorderRouterResult::TerminateVirtualBorderRouterResult() : + ServiceResult() +{} + +TerminateVirtualBorderRouterResult::TerminateVirtualBorderRouterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TerminateVirtualBorderRouterResult::~TerminateVirtualBorderRouterResult() +{} + +void TerminateVirtualBorderRouterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/UnassociateEipAddressRequest.cc b/ecs/src/model/UnassociateEipAddressRequest.cc new file mode 100644 index 000000000..40af8b8aa --- /dev/null +++ b/ecs/src/model/UnassociateEipAddressRequest.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +UnassociateEipAddressRequest::UnassociateEipAddressRequest() : + EcsRequest("UnassociateEipAddress") +{} + +UnassociateEipAddressRequest::~UnassociateEipAddressRequest() +{} + +long UnassociateEipAddressRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnassociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UnassociateEipAddressRequest::getInstanceId()const +{ + return instanceId_; +} + +void UnassociateEipAddressRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UnassociateEipAddressRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UnassociateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UnassociateEipAddressRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UnassociateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string UnassociateEipAddressRequest::getInstanceType()const +{ + return instanceType_; +} + +void UnassociateEipAddressRequest::setInstanceType(const std::string& instanceType) +{ + instanceType_ = instanceType; + setParameter("InstanceType", instanceType); +} + +std::string UnassociateEipAddressRequest::getAllocationId()const +{ + return allocationId_; +} + +void UnassociateEipAddressRequest::setAllocationId(const std::string& allocationId) +{ + allocationId_ = allocationId; + setParameter("AllocationId", allocationId); +} + +long UnassociateEipAddressRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnassociateEipAddressRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/UnassociateEipAddressResult.cc b/ecs/src/model/UnassociateEipAddressResult.cc new file mode 100644 index 000000000..eae96e67d --- /dev/null +++ b/ecs/src/model/UnassociateEipAddressResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +UnassociateEipAddressResult::UnassociateEipAddressResult() : + ServiceResult() +{} + +UnassociateEipAddressResult::UnassociateEipAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnassociateEipAddressResult::~UnassociateEipAddressResult() +{} + +void UnassociateEipAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/UnassociateHaVipRequest.cc b/ecs/src/model/UnassociateHaVipRequest.cc new file mode 100644 index 000000000..db91c4623 --- /dev/null +++ b/ecs/src/model/UnassociateHaVipRequest.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +UnassociateHaVipRequest::UnassociateHaVipRequest() : + EcsRequest("UnassociateHaVip") +{} + +UnassociateHaVipRequest::~UnassociateHaVipRequest() +{} + +std::string UnassociateHaVipRequest::getHaVipId()const +{ + return haVipId_; +} + +void UnassociateHaVipRequest::setHaVipId(const std::string& haVipId) +{ + haVipId_ = haVipId; + setParameter("HaVipId", haVipId); +} + +long UnassociateHaVipRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnassociateHaVipRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UnassociateHaVipRequest::getInstanceId()const +{ + return instanceId_; +} + +void UnassociateHaVipRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UnassociateHaVipRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UnassociateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UnassociateHaVipRequest::getClientToken()const +{ + return clientToken_; +} + +void UnassociateHaVipRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string UnassociateHaVipRequest::getRegionId()const +{ + return regionId_; +} + +void UnassociateHaVipRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UnassociateHaVipRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UnassociateHaVipRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string UnassociateHaVipRequest::getForce()const +{ + return force_; +} + +void UnassociateHaVipRequest::setForce(const std::string& force) +{ + force_ = force; + setParameter("Force", force); +} + +long UnassociateHaVipRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnassociateHaVipRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/UnassociateHaVipResult.cc b/ecs/src/model/UnassociateHaVipResult.cc new file mode 100644 index 000000000..ef93a06ca --- /dev/null +++ b/ecs/src/model/UnassociateHaVipResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +UnassociateHaVipResult::UnassociateHaVipResult() : + ServiceResult() +{} + +UnassociateHaVipResult::UnassociateHaVipResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnassociateHaVipResult::~UnassociateHaVipResult() +{} + +void UnassociateHaVipResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ecs/src/model/UnbindIpRangeRequest.cc b/ecs/src/model/UnbindIpRangeRequest.cc new file mode 100644 index 000000000..6c431bb94 --- /dev/null +++ b/ecs/src/model/UnbindIpRangeRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +UnbindIpRangeRequest::UnbindIpRangeRequest() : + EcsRequest("UnbindIpRange") +{} + +UnbindIpRangeRequest::~UnbindIpRangeRequest() +{} + +std::string UnbindIpRangeRequest::getIpAddress()const +{ + return ipAddress_; +} + +void UnbindIpRangeRequest::setIpAddress(const std::string& ipAddress) +{ + ipAddress_ = ipAddress; + setParameter("IpAddress", ipAddress); +} + +long UnbindIpRangeRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UnbindIpRangeRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string UnbindIpRangeRequest::getInstanceId()const +{ + return instanceId_; +} + +void UnbindIpRangeRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UnbindIpRangeRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UnbindIpRangeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UnbindIpRangeRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UnbindIpRangeRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long UnbindIpRangeRequest::getOwnerId()const +{ + return ownerId_; +} + +void UnbindIpRangeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/ecs/src/model/UnbindIpRangeResult.cc b/ecs/src/model/UnbindIpRangeResult.cc new file mode 100644 index 000000000..f9c087a95 --- /dev/null +++ b/ecs/src/model/UnbindIpRangeResult.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ecs; +using namespace AlibabaCloud::Ecs::Model; + +UnbindIpRangeResult::UnbindIpRangeResult() : + ServiceResult() +{} + +UnbindIpRangeResult::UnbindIpRangeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindIpRangeResult::~UnbindIpRangeResult() +{} + +void UnbindIpRangeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} +