diff --git a/CHANGELOG b/CHANGELOG index cbe5e6369..25990c943 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-01-28 Version: 1.36.1048 +- Support cloud disk. + 2022-01-28 Version: 1.36.1047 - Update by SDK platform. diff --git a/VERSION b/VERSION index 2f93e4dbd..beafc6355 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1047 \ No newline at end of file +1.36.1048 \ No newline at end of file diff --git a/ens/CMakeLists.txt b/ens/CMakeLists.txt new file mode 100644 index 000000000..94a2d5467 --- /dev/null +++ b/ens/CMakeLists.txt @@ -0,0 +1,734 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT 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(ens_public_header + include/alibabacloud/ens/EnsClient.h + include/alibabacloud/ens/EnsExport.h ) + +set(ens_public_header_model + include/alibabacloud/ens/model/AddBackendServersRequest.h + include/alibabacloud/ens/model/AddBackendServersResult.h + include/alibabacloud/ens/model/AddDeviceInternetPortRequest.h + include/alibabacloud/ens/model/AddDeviceInternetPortResult.h + include/alibabacloud/ens/model/AddNetworkInterfaceToInstanceRequest.h + include/alibabacloud/ens/model/AddNetworkInterfaceToInstanceResult.h + include/alibabacloud/ens/model/AllocateEipAddressRequest.h + include/alibabacloud/ens/model/AllocateEipAddressResult.h + include/alibabacloud/ens/model/AssociateEipAddressRequest.h + include/alibabacloud/ens/model/AssociateEipAddressResult.h + include/alibabacloud/ens/model/AssociateEnsEipAddressRequest.h + include/alibabacloud/ens/model/AssociateEnsEipAddressResult.h + include/alibabacloud/ens/model/AttachDiskRequest.h + include/alibabacloud/ens/model/AttachDiskResult.h + include/alibabacloud/ens/model/AttachEnsInstancesRequest.h + include/alibabacloud/ens/model/AttachEnsInstancesResult.h + include/alibabacloud/ens/model/AuthorizeSecurityGroupRequest.h + include/alibabacloud/ens/model/AuthorizeSecurityGroupResult.h + include/alibabacloud/ens/model/AuthorizeSecurityGroupEgressRequest.h + include/alibabacloud/ens/model/AuthorizeSecurityGroupEgressResult.h + include/alibabacloud/ens/model/CheckQuotaRequest.h + include/alibabacloud/ens/model/CheckQuotaResult.h + include/alibabacloud/ens/model/ConfigureSecurityGroupPermissionsRequest.h + include/alibabacloud/ens/model/ConfigureSecurityGroupPermissionsResult.h + include/alibabacloud/ens/model/CreateApplicationRequest.h + include/alibabacloud/ens/model/CreateApplicationResult.h + include/alibabacloud/ens/model/CreateDiskRequest.h + include/alibabacloud/ens/model/CreateDiskResult.h + include/alibabacloud/ens/model/CreateDiskBuyOrderRequest.h + include/alibabacloud/ens/model/CreateDiskBuyOrderResult.h + include/alibabacloud/ens/model/CreateEPInstanceRequest.h + include/alibabacloud/ens/model/CreateEPInstanceResult.h + include/alibabacloud/ens/model/CreateEipInstanceRequest.h + include/alibabacloud/ens/model/CreateEipInstanceResult.h + include/alibabacloud/ens/model/CreateElbBuyOrderRequest.h + include/alibabacloud/ens/model/CreateElbBuyOrderResult.h + include/alibabacloud/ens/model/CreateEnsServiceRequest.h + include/alibabacloud/ens/model/CreateEnsServiceResult.h + include/alibabacloud/ens/model/CreateEpnInstanceRequest.h + include/alibabacloud/ens/model/CreateEpnInstanceResult.h + include/alibabacloud/ens/model/CreateImageRequest.h + include/alibabacloud/ens/model/CreateImageResult.h + include/alibabacloud/ens/model/CreateInstanceRequest.h + include/alibabacloud/ens/model/CreateInstanceResult.h + include/alibabacloud/ens/model/CreateKeyPairRequest.h + include/alibabacloud/ens/model/CreateKeyPairResult.h + include/alibabacloud/ens/model/CreateLoadBalancerRequest.h + include/alibabacloud/ens/model/CreateLoadBalancerResult.h + include/alibabacloud/ens/model/CreateLoadBalancerHTTPListenerRequest.h + include/alibabacloud/ens/model/CreateLoadBalancerHTTPListenerResult.h + include/alibabacloud/ens/model/CreateLoadBalancerHTTPSListenerRequest.h + include/alibabacloud/ens/model/CreateLoadBalancerHTTPSListenerResult.h + include/alibabacloud/ens/model/CreateLoadBalancerTCPListenerRequest.h + include/alibabacloud/ens/model/CreateLoadBalancerTCPListenerResult.h + include/alibabacloud/ens/model/CreateLoadBalancerUDPListenerRequest.h + include/alibabacloud/ens/model/CreateLoadBalancerUDPListenerResult.h + include/alibabacloud/ens/model/CreateNetworkRequest.h + include/alibabacloud/ens/model/CreateNetworkResult.h + include/alibabacloud/ens/model/CreateSecurityGroupRequest.h + include/alibabacloud/ens/model/CreateSecurityGroupResult.h + include/alibabacloud/ens/model/CreateVSwitchRequest.h + include/alibabacloud/ens/model/CreateVSwitchResult.h + include/alibabacloud/ens/model/CreateVmAndSaveStockRequest.h + include/alibabacloud/ens/model/CreateVmAndSaveStockResult.h + include/alibabacloud/ens/model/DeleteApplicationRequest.h + include/alibabacloud/ens/model/DeleteApplicationResult.h + include/alibabacloud/ens/model/DeleteDeviceInternetPortRequest.h + include/alibabacloud/ens/model/DeleteDeviceInternetPortResult.h + include/alibabacloud/ens/model/DeleteEpnInstanceRequest.h + include/alibabacloud/ens/model/DeleteEpnInstanceResult.h + include/alibabacloud/ens/model/DeleteKeyPairsRequest.h + include/alibabacloud/ens/model/DeleteKeyPairsResult.h + include/alibabacloud/ens/model/DeleteLoadBalancerListenerRequest.h + include/alibabacloud/ens/model/DeleteLoadBalancerListenerResult.h + include/alibabacloud/ens/model/DeleteNetworkRequest.h + include/alibabacloud/ens/model/DeleteNetworkResult.h + include/alibabacloud/ens/model/DeleteSecurityGroupRequest.h + include/alibabacloud/ens/model/DeleteSecurityGroupResult.h + include/alibabacloud/ens/model/DeleteVSwitchRequest.h + include/alibabacloud/ens/model/DeleteVSwitchResult.h + include/alibabacloud/ens/model/DeleteVmRequest.h + include/alibabacloud/ens/model/DeleteVmResult.h + include/alibabacloud/ens/model/DescribeApplicationRequest.h + include/alibabacloud/ens/model/DescribeApplicationResult.h + include/alibabacloud/ens/model/DescribeApplicationResourceSummaryRequest.h + include/alibabacloud/ens/model/DescribeApplicationResourceSummaryResult.h + include/alibabacloud/ens/model/DescribeAvailableResourceRequest.h + include/alibabacloud/ens/model/DescribeAvailableResourceResult.h + include/alibabacloud/ens/model/DescribeAvailableResourceInfoRequest.h + include/alibabacloud/ens/model/DescribeAvailableResourceInfoResult.h + include/alibabacloud/ens/model/DescribeBandWithdChargeTypeRequest.h + include/alibabacloud/ens/model/DescribeBandWithdChargeTypeResult.h + include/alibabacloud/ens/model/DescribeBandwitdhByInternetChargeTypeRequest.h + include/alibabacloud/ens/model/DescribeBandwitdhByInternetChargeTypeResult.h + include/alibabacloud/ens/model/DescribeCloudDiskAvailableResourceInfoRequest.h + include/alibabacloud/ens/model/DescribeCloudDiskAvailableResourceInfoResult.h + include/alibabacloud/ens/model/DescribeCloudDiskTypesRequest.h + include/alibabacloud/ens/model/DescribeCloudDiskTypesResult.h + include/alibabacloud/ens/model/DescribeCreatePrePaidInstanceResultRequest.h + include/alibabacloud/ens/model/DescribeCreatePrePaidInstanceResultResult.h + include/alibabacloud/ens/model/DescribeDataDistResultRequest.h + include/alibabacloud/ens/model/DescribeDataDistResultResult.h + include/alibabacloud/ens/model/DescribeDataDownloadURLRequest.h + include/alibabacloud/ens/model/DescribeDataDownloadURLResult.h + include/alibabacloud/ens/model/DescribeDataPushResultRequest.h + include/alibabacloud/ens/model/DescribeDataPushResultResult.h + include/alibabacloud/ens/model/DescribeDeviceServiceRequest.h + include/alibabacloud/ens/model/DescribeDeviceServiceResult.h + include/alibabacloud/ens/model/DescribeDisksRequest.h + include/alibabacloud/ens/model/DescribeDisksResult.h + include/alibabacloud/ens/model/DescribeEipAddressesRequest.h + include/alibabacloud/ens/model/DescribeEipAddressesResult.h + include/alibabacloud/ens/model/DescribeElbAvailableResourceInfoRequest.h + include/alibabacloud/ens/model/DescribeElbAvailableResourceInfoResult.h + include/alibabacloud/ens/model/DescribeEnsEipAddressesRequest.h + include/alibabacloud/ens/model/DescribeEnsEipAddressesResult.h + include/alibabacloud/ens/model/DescribeEnsNetDistrictRequest.h + include/alibabacloud/ens/model/DescribeEnsNetDistrictResult.h + include/alibabacloud/ens/model/DescribeEnsNetLevelRequest.h + include/alibabacloud/ens/model/DescribeEnsNetLevelResult.h + include/alibabacloud/ens/model/DescribeEnsNetSaleDistrictRequest.h + include/alibabacloud/ens/model/DescribeEnsNetSaleDistrictResult.h + include/alibabacloud/ens/model/DescribeEnsRegionIdIpv6InfoRequest.h + include/alibabacloud/ens/model/DescribeEnsRegionIdIpv6InfoResult.h + include/alibabacloud/ens/model/DescribeEnsRegionIdResourceRequest.h + include/alibabacloud/ens/model/DescribeEnsRegionIdResourceResult.h + include/alibabacloud/ens/model/DescribeEnsRegionsRequest.h + include/alibabacloud/ens/model/DescribeEnsRegionsResult.h + include/alibabacloud/ens/model/DescribeEnsResourceUsageRequest.h + include/alibabacloud/ens/model/DescribeEnsResourceUsageResult.h + include/alibabacloud/ens/model/DescribeEpnBandWidthDataRequest.h + include/alibabacloud/ens/model/DescribeEpnBandWidthDataResult.h + include/alibabacloud/ens/model/DescribeEpnBandwitdhByInternetChargeTypeRequest.h + include/alibabacloud/ens/model/DescribeEpnBandwitdhByInternetChargeTypeResult.h + include/alibabacloud/ens/model/DescribeEpnInstanceAttributeRequest.h + include/alibabacloud/ens/model/DescribeEpnInstanceAttributeResult.h + include/alibabacloud/ens/model/DescribeEpnInstancesRequest.h + include/alibabacloud/ens/model/DescribeEpnInstancesResult.h + include/alibabacloud/ens/model/DescribeEpnMeasurementDataRequest.h + include/alibabacloud/ens/model/DescribeEpnMeasurementDataResult.h + include/alibabacloud/ens/model/DescribeExportImageInfoRequest.h + include/alibabacloud/ens/model/DescribeExportImageInfoResult.h + include/alibabacloud/ens/model/DescribeExportImageStatusRequest.h + include/alibabacloud/ens/model/DescribeExportImageStatusResult.h + include/alibabacloud/ens/model/DescribeImageInfosRequest.h + include/alibabacloud/ens/model/DescribeImageInfosResult.h + include/alibabacloud/ens/model/DescribeImageSharePermissionRequest.h + include/alibabacloud/ens/model/DescribeImageSharePermissionResult.h + include/alibabacloud/ens/model/DescribeImagesRequest.h + include/alibabacloud/ens/model/DescribeImagesResult.h + include/alibabacloud/ens/model/DescribeInstanceAutoRenewAttributeRequest.h + include/alibabacloud/ens/model/DescribeInstanceAutoRenewAttributeResult.h + include/alibabacloud/ens/model/DescribeInstanceMonitorDataRequest.h + include/alibabacloud/ens/model/DescribeInstanceMonitorDataResult.h + include/alibabacloud/ens/model/DescribeInstanceSpecRequest.h + include/alibabacloud/ens/model/DescribeInstanceSpecResult.h + include/alibabacloud/ens/model/DescribeInstanceTypesRequest.h + include/alibabacloud/ens/model/DescribeInstanceTypesResult.h + include/alibabacloud/ens/model/DescribeInstanceVncUrlRequest.h + include/alibabacloud/ens/model/DescribeInstanceVncUrlResult.h + include/alibabacloud/ens/model/DescribeInstancesRequest.h + include/alibabacloud/ens/model/DescribeInstancesResult.h + include/alibabacloud/ens/model/DescribeKeyPairsRequest.h + include/alibabacloud/ens/model/DescribeKeyPairsResult.h + include/alibabacloud/ens/model/DescribeLoadBalancerAttributeRequest.h + include/alibabacloud/ens/model/DescribeLoadBalancerAttributeResult.h + include/alibabacloud/ens/model/DescribeLoadBalancerHTTPListenerAttributeRequest.h + include/alibabacloud/ens/model/DescribeLoadBalancerHTTPListenerAttributeResult.h + include/alibabacloud/ens/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.h + include/alibabacloud/ens/model/DescribeLoadBalancerHTTPSListenerAttributeResult.h + include/alibabacloud/ens/model/DescribeLoadBalancerSpecRequest.h + include/alibabacloud/ens/model/DescribeLoadBalancerSpecResult.h + include/alibabacloud/ens/model/DescribeLoadBalancerTCPListenerAttributeRequest.h + include/alibabacloud/ens/model/DescribeLoadBalancerTCPListenerAttributeResult.h + include/alibabacloud/ens/model/DescribeLoadBalancerUDPListenerAttributeRequest.h + include/alibabacloud/ens/model/DescribeLoadBalancerUDPListenerAttributeResult.h + include/alibabacloud/ens/model/DescribeLoadBalancersRequest.h + include/alibabacloud/ens/model/DescribeLoadBalancersResult.h + include/alibabacloud/ens/model/DescribeMeasurementDataRequest.h + include/alibabacloud/ens/model/DescribeMeasurementDataResult.h + include/alibabacloud/ens/model/DescribeNetworkAttributeRequest.h + include/alibabacloud/ens/model/DescribeNetworkAttributeResult.h + include/alibabacloud/ens/model/DescribeNetworkInterfacesRequest.h + include/alibabacloud/ens/model/DescribeNetworkInterfacesResult.h + include/alibabacloud/ens/model/DescribeNetworksRequest.h + include/alibabacloud/ens/model/DescribeNetworksResult.h + include/alibabacloud/ens/model/DescribePrePaidInstanceStockRequest.h + include/alibabacloud/ens/model/DescribePrePaidInstanceStockResult.h + include/alibabacloud/ens/model/DescribePriceRequest.h + include/alibabacloud/ens/model/DescribePriceResult.h + include/alibabacloud/ens/model/DescribeRegionIspsRequest.h + include/alibabacloud/ens/model/DescribeRegionIspsResult.h + include/alibabacloud/ens/model/DescribeReservedResourceRequest.h + include/alibabacloud/ens/model/DescribeReservedResourceResult.h + include/alibabacloud/ens/model/DescribeSecurityGroupAttributeRequest.h + include/alibabacloud/ens/model/DescribeSecurityGroupAttributeResult.h + include/alibabacloud/ens/model/DescribeSecurityGroupsRequest.h + include/alibabacloud/ens/model/DescribeSecurityGroupsResult.h + include/alibabacloud/ens/model/DescribeServcieScheduleRequest.h + include/alibabacloud/ens/model/DescribeServcieScheduleResult.h + include/alibabacloud/ens/model/DescribeUserBandWidthDataRequest.h + include/alibabacloud/ens/model/DescribeUserBandWidthDataResult.h + include/alibabacloud/ens/model/DescribeVSwitchesRequest.h + include/alibabacloud/ens/model/DescribeVSwitchesResult.h + include/alibabacloud/ens/model/DetachDiskRequest.h + include/alibabacloud/ens/model/DetachDiskResult.h + include/alibabacloud/ens/model/DistApplicationDataRequest.h + include/alibabacloud/ens/model/DistApplicationDataResult.h + include/alibabacloud/ens/model/ExportBillDetailDataRequest.h + include/alibabacloud/ens/model/ExportBillDetailDataResult.h + include/alibabacloud/ens/model/ExportImageRequest.h + include/alibabacloud/ens/model/ExportImageResult.h + include/alibabacloud/ens/model/ExportMeasurementDataRequest.h + include/alibabacloud/ens/model/ExportMeasurementDataResult.h + include/alibabacloud/ens/model/GetDeviceInternetPortRequest.h + include/alibabacloud/ens/model/GetDeviceInternetPortResult.h + include/alibabacloud/ens/model/GetVmListRequest.h + include/alibabacloud/ens/model/GetVmListResult.h + include/alibabacloud/ens/model/ImportKeyPairRequest.h + include/alibabacloud/ens/model/ImportKeyPairResult.h + include/alibabacloud/ens/model/JoinPublicIpsToEpnInstanceRequest.h + include/alibabacloud/ens/model/JoinPublicIpsToEpnInstanceResult.h + include/alibabacloud/ens/model/JoinSecurityGroupRequest.h + include/alibabacloud/ens/model/JoinSecurityGroupResult.h + include/alibabacloud/ens/model/JoinVSwitchesToEpnInstanceRequest.h + include/alibabacloud/ens/model/JoinVSwitchesToEpnInstanceResult.h + include/alibabacloud/ens/model/LeaveSecurityGroupRequest.h + include/alibabacloud/ens/model/LeaveSecurityGroupResult.h + include/alibabacloud/ens/model/ListApplicationsRequest.h + include/alibabacloud/ens/model/ListApplicationsResult.h + include/alibabacloud/ens/model/MigrateVmRequest.h + include/alibabacloud/ens/model/MigrateVmResult.h + include/alibabacloud/ens/model/ModifyEnsEipAddressAttributeRequest.h + include/alibabacloud/ens/model/ModifyEnsEipAddressAttributeResult.h + include/alibabacloud/ens/model/ModifyEpnInstanceRequest.h + include/alibabacloud/ens/model/ModifyEpnInstanceResult.h + include/alibabacloud/ens/model/ModifyImageAttributeRequest.h + include/alibabacloud/ens/model/ModifyImageAttributeResult.h + include/alibabacloud/ens/model/ModifyImageSharePermissionRequest.h + include/alibabacloud/ens/model/ModifyImageSharePermissionResult.h + include/alibabacloud/ens/model/ModifyInstanceAttributeRequest.h + include/alibabacloud/ens/model/ModifyInstanceAttributeResult.h + include/alibabacloud/ens/model/ModifyInstanceAutoRenewAttributeRequest.h + include/alibabacloud/ens/model/ModifyInstanceAutoRenewAttributeResult.h + include/alibabacloud/ens/model/ModifyLoadBalancerAttributeRequest.h + include/alibabacloud/ens/model/ModifyLoadBalancerAttributeResult.h + include/alibabacloud/ens/model/ModifyNetworkAttributeRequest.h + include/alibabacloud/ens/model/ModifyNetworkAttributeResult.h + include/alibabacloud/ens/model/ModifySecurityGroupAttributeRequest.h + include/alibabacloud/ens/model/ModifySecurityGroupAttributeResult.h + include/alibabacloud/ens/model/ModifyVSwitchAttributeRequest.h + include/alibabacloud/ens/model/ModifyVSwitchAttributeResult.h + include/alibabacloud/ens/model/PreCreateEnsServiceRequest.h + include/alibabacloud/ens/model/PreCreateEnsServiceResult.h + include/alibabacloud/ens/model/PushApplicationDataRequest.h + include/alibabacloud/ens/model/PushApplicationDataResult.h + include/alibabacloud/ens/model/ReInitDiskRequest.h + include/alibabacloud/ens/model/ReInitDiskResult.h + include/alibabacloud/ens/model/RebootInstanceRequest.h + include/alibabacloud/ens/model/RebootInstanceResult.h + include/alibabacloud/ens/model/ReleaseEipAddressRequest.h + include/alibabacloud/ens/model/ReleaseEipAddressResult.h + include/alibabacloud/ens/model/ReleaseInstanceRequest.h + include/alibabacloud/ens/model/ReleaseInstanceResult.h + include/alibabacloud/ens/model/ReleasePostPaidInstanceRequest.h + include/alibabacloud/ens/model/ReleasePostPaidInstanceResult.h + include/alibabacloud/ens/model/ReleasePrePaidInstanceRequest.h + include/alibabacloud/ens/model/ReleasePrePaidInstanceResult.h + include/alibabacloud/ens/model/RemoveBackendServersRequest.h + include/alibabacloud/ens/model/RemoveBackendServersResult.h + include/alibabacloud/ens/model/RemovePublicIpsFromEpnInstanceRequest.h + include/alibabacloud/ens/model/RemovePublicIpsFromEpnInstanceResult.h + include/alibabacloud/ens/model/RemoveVSwitchesFromEpnInstanceRequest.h + include/alibabacloud/ens/model/RemoveVSwitchesFromEpnInstanceResult.h + include/alibabacloud/ens/model/RenewInstanceRequest.h + include/alibabacloud/ens/model/RenewInstanceResult.h + include/alibabacloud/ens/model/RescaleApplicationRequest.h + include/alibabacloud/ens/model/RescaleApplicationResult.h + include/alibabacloud/ens/model/RescaleDeviceServiceRequest.h + include/alibabacloud/ens/model/RescaleDeviceServiceResult.h + include/alibabacloud/ens/model/ResetDeviceInstanceRequest.h + include/alibabacloud/ens/model/ResetDeviceInstanceResult.h + include/alibabacloud/ens/model/RestartDeviceInstanceRequest.h + include/alibabacloud/ens/model/RestartDeviceInstanceResult.h + include/alibabacloud/ens/model/RevokeSecurityGroupRequest.h + include/alibabacloud/ens/model/RevokeSecurityGroupResult.h + include/alibabacloud/ens/model/RevokeSecurityGroupEgressRequest.h + include/alibabacloud/ens/model/RevokeSecurityGroupEgressResult.h + include/alibabacloud/ens/model/RollbackApplicationRequest.h + include/alibabacloud/ens/model/RollbackApplicationResult.h + include/alibabacloud/ens/model/RunInstancesRequest.h + include/alibabacloud/ens/model/RunInstancesResult.h + include/alibabacloud/ens/model/RunServiceScheduleRequest.h + include/alibabacloud/ens/model/RunServiceScheduleResult.h + include/alibabacloud/ens/model/SchedulePodRequest.h + include/alibabacloud/ens/model/SchedulePodResult.h + include/alibabacloud/ens/model/SetBackendServersRequest.h + include/alibabacloud/ens/model/SetBackendServersResult.h + include/alibabacloud/ens/model/SetLoadBalancerHTTPListenerAttributeRequest.h + include/alibabacloud/ens/model/SetLoadBalancerHTTPListenerAttributeResult.h + include/alibabacloud/ens/model/SetLoadBalancerHTTPSListenerAttributeRequest.h + include/alibabacloud/ens/model/SetLoadBalancerHTTPSListenerAttributeResult.h + include/alibabacloud/ens/model/SetLoadBalancerStatusRequest.h + include/alibabacloud/ens/model/SetLoadBalancerStatusResult.h + include/alibabacloud/ens/model/SetLoadBalancerTCPListenerAttributeRequest.h + include/alibabacloud/ens/model/SetLoadBalancerTCPListenerAttributeResult.h + include/alibabacloud/ens/model/SetLoadBalancerUDPListenerAttributeRequest.h + include/alibabacloud/ens/model/SetLoadBalancerUDPListenerAttributeResult.h + include/alibabacloud/ens/model/StartEpnInstanceRequest.h + include/alibabacloud/ens/model/StartEpnInstanceResult.h + include/alibabacloud/ens/model/StartInstanceRequest.h + include/alibabacloud/ens/model/StartInstanceResult.h + include/alibabacloud/ens/model/StartLoadBalancerListenerRequest.h + include/alibabacloud/ens/model/StartLoadBalancerListenerResult.h + include/alibabacloud/ens/model/StopEpnInstanceRequest.h + include/alibabacloud/ens/model/StopEpnInstanceResult.h + include/alibabacloud/ens/model/StopInstanceRequest.h + include/alibabacloud/ens/model/StopInstanceResult.h + include/alibabacloud/ens/model/StopLoadBalancerListenerRequest.h + include/alibabacloud/ens/model/StopLoadBalancerListenerResult.h + include/alibabacloud/ens/model/UnAssociateEnsEipAddressRequest.h + include/alibabacloud/ens/model/UnAssociateEnsEipAddressResult.h + include/alibabacloud/ens/model/UnassociateEipAddressRequest.h + include/alibabacloud/ens/model/UnassociateEipAddressResult.h + include/alibabacloud/ens/model/UpgradeApplicationRequest.h + include/alibabacloud/ens/model/UpgradeApplicationResult.h ) + +set(ens_src + src/EnsClient.cc + src/model/AddBackendServersRequest.cc + src/model/AddBackendServersResult.cc + src/model/AddDeviceInternetPortRequest.cc + src/model/AddDeviceInternetPortResult.cc + src/model/AddNetworkInterfaceToInstanceRequest.cc + src/model/AddNetworkInterfaceToInstanceResult.cc + src/model/AllocateEipAddressRequest.cc + src/model/AllocateEipAddressResult.cc + src/model/AssociateEipAddressRequest.cc + src/model/AssociateEipAddressResult.cc + src/model/AssociateEnsEipAddressRequest.cc + src/model/AssociateEnsEipAddressResult.cc + src/model/AttachDiskRequest.cc + src/model/AttachDiskResult.cc + src/model/AttachEnsInstancesRequest.cc + src/model/AttachEnsInstancesResult.cc + src/model/AuthorizeSecurityGroupRequest.cc + src/model/AuthorizeSecurityGroupResult.cc + src/model/AuthorizeSecurityGroupEgressRequest.cc + src/model/AuthorizeSecurityGroupEgressResult.cc + src/model/CheckQuotaRequest.cc + src/model/CheckQuotaResult.cc + src/model/ConfigureSecurityGroupPermissionsRequest.cc + src/model/ConfigureSecurityGroupPermissionsResult.cc + src/model/CreateApplicationRequest.cc + src/model/CreateApplicationResult.cc + src/model/CreateDiskRequest.cc + src/model/CreateDiskResult.cc + src/model/CreateDiskBuyOrderRequest.cc + src/model/CreateDiskBuyOrderResult.cc + src/model/CreateEPInstanceRequest.cc + src/model/CreateEPInstanceResult.cc + src/model/CreateEipInstanceRequest.cc + src/model/CreateEipInstanceResult.cc + src/model/CreateElbBuyOrderRequest.cc + src/model/CreateElbBuyOrderResult.cc + src/model/CreateEnsServiceRequest.cc + src/model/CreateEnsServiceResult.cc + src/model/CreateEpnInstanceRequest.cc + src/model/CreateEpnInstanceResult.cc + src/model/CreateImageRequest.cc + src/model/CreateImageResult.cc + src/model/CreateInstanceRequest.cc + src/model/CreateInstanceResult.cc + src/model/CreateKeyPairRequest.cc + src/model/CreateKeyPairResult.cc + src/model/CreateLoadBalancerRequest.cc + src/model/CreateLoadBalancerResult.cc + src/model/CreateLoadBalancerHTTPListenerRequest.cc + src/model/CreateLoadBalancerHTTPListenerResult.cc + src/model/CreateLoadBalancerHTTPSListenerRequest.cc + src/model/CreateLoadBalancerHTTPSListenerResult.cc + src/model/CreateLoadBalancerTCPListenerRequest.cc + src/model/CreateLoadBalancerTCPListenerResult.cc + src/model/CreateLoadBalancerUDPListenerRequest.cc + src/model/CreateLoadBalancerUDPListenerResult.cc + src/model/CreateNetworkRequest.cc + src/model/CreateNetworkResult.cc + src/model/CreateSecurityGroupRequest.cc + src/model/CreateSecurityGroupResult.cc + src/model/CreateVSwitchRequest.cc + src/model/CreateVSwitchResult.cc + src/model/CreateVmAndSaveStockRequest.cc + src/model/CreateVmAndSaveStockResult.cc + src/model/DeleteApplicationRequest.cc + src/model/DeleteApplicationResult.cc + src/model/DeleteDeviceInternetPortRequest.cc + src/model/DeleteDeviceInternetPortResult.cc + src/model/DeleteEpnInstanceRequest.cc + src/model/DeleteEpnInstanceResult.cc + src/model/DeleteKeyPairsRequest.cc + src/model/DeleteKeyPairsResult.cc + src/model/DeleteLoadBalancerListenerRequest.cc + src/model/DeleteLoadBalancerListenerResult.cc + src/model/DeleteNetworkRequest.cc + src/model/DeleteNetworkResult.cc + src/model/DeleteSecurityGroupRequest.cc + src/model/DeleteSecurityGroupResult.cc + src/model/DeleteVSwitchRequest.cc + src/model/DeleteVSwitchResult.cc + src/model/DeleteVmRequest.cc + src/model/DeleteVmResult.cc + src/model/DescribeApplicationRequest.cc + src/model/DescribeApplicationResult.cc + src/model/DescribeApplicationResourceSummaryRequest.cc + src/model/DescribeApplicationResourceSummaryResult.cc + src/model/DescribeAvailableResourceRequest.cc + src/model/DescribeAvailableResourceResult.cc + src/model/DescribeAvailableResourceInfoRequest.cc + src/model/DescribeAvailableResourceInfoResult.cc + src/model/DescribeBandWithdChargeTypeRequest.cc + src/model/DescribeBandWithdChargeTypeResult.cc + src/model/DescribeBandwitdhByInternetChargeTypeRequest.cc + src/model/DescribeBandwitdhByInternetChargeTypeResult.cc + src/model/DescribeCloudDiskAvailableResourceInfoRequest.cc + src/model/DescribeCloudDiskAvailableResourceInfoResult.cc + src/model/DescribeCloudDiskTypesRequest.cc + src/model/DescribeCloudDiskTypesResult.cc + src/model/DescribeCreatePrePaidInstanceResultRequest.cc + src/model/DescribeCreatePrePaidInstanceResultResult.cc + src/model/DescribeDataDistResultRequest.cc + src/model/DescribeDataDistResultResult.cc + src/model/DescribeDataDownloadURLRequest.cc + src/model/DescribeDataDownloadURLResult.cc + src/model/DescribeDataPushResultRequest.cc + src/model/DescribeDataPushResultResult.cc + src/model/DescribeDeviceServiceRequest.cc + src/model/DescribeDeviceServiceResult.cc + src/model/DescribeDisksRequest.cc + src/model/DescribeDisksResult.cc + src/model/DescribeEipAddressesRequest.cc + src/model/DescribeEipAddressesResult.cc + src/model/DescribeElbAvailableResourceInfoRequest.cc + src/model/DescribeElbAvailableResourceInfoResult.cc + src/model/DescribeEnsEipAddressesRequest.cc + src/model/DescribeEnsEipAddressesResult.cc + src/model/DescribeEnsNetDistrictRequest.cc + src/model/DescribeEnsNetDistrictResult.cc + src/model/DescribeEnsNetLevelRequest.cc + src/model/DescribeEnsNetLevelResult.cc + src/model/DescribeEnsNetSaleDistrictRequest.cc + src/model/DescribeEnsNetSaleDistrictResult.cc + src/model/DescribeEnsRegionIdIpv6InfoRequest.cc + src/model/DescribeEnsRegionIdIpv6InfoResult.cc + src/model/DescribeEnsRegionIdResourceRequest.cc + src/model/DescribeEnsRegionIdResourceResult.cc + src/model/DescribeEnsRegionsRequest.cc + src/model/DescribeEnsRegionsResult.cc + src/model/DescribeEnsResourceUsageRequest.cc + src/model/DescribeEnsResourceUsageResult.cc + src/model/DescribeEpnBandWidthDataRequest.cc + src/model/DescribeEpnBandWidthDataResult.cc + src/model/DescribeEpnBandwitdhByInternetChargeTypeRequest.cc + src/model/DescribeEpnBandwitdhByInternetChargeTypeResult.cc + src/model/DescribeEpnInstanceAttributeRequest.cc + src/model/DescribeEpnInstanceAttributeResult.cc + src/model/DescribeEpnInstancesRequest.cc + src/model/DescribeEpnInstancesResult.cc + src/model/DescribeEpnMeasurementDataRequest.cc + src/model/DescribeEpnMeasurementDataResult.cc + src/model/DescribeExportImageInfoRequest.cc + src/model/DescribeExportImageInfoResult.cc + src/model/DescribeExportImageStatusRequest.cc + src/model/DescribeExportImageStatusResult.cc + src/model/DescribeImageInfosRequest.cc + src/model/DescribeImageInfosResult.cc + src/model/DescribeImageSharePermissionRequest.cc + src/model/DescribeImageSharePermissionResult.cc + src/model/DescribeImagesRequest.cc + src/model/DescribeImagesResult.cc + src/model/DescribeInstanceAutoRenewAttributeRequest.cc + src/model/DescribeInstanceAutoRenewAttributeResult.cc + src/model/DescribeInstanceMonitorDataRequest.cc + src/model/DescribeInstanceMonitorDataResult.cc + src/model/DescribeInstanceSpecRequest.cc + src/model/DescribeInstanceSpecResult.cc + src/model/DescribeInstanceTypesRequest.cc + src/model/DescribeInstanceTypesResult.cc + src/model/DescribeInstanceVncUrlRequest.cc + src/model/DescribeInstanceVncUrlResult.cc + src/model/DescribeInstancesRequest.cc + src/model/DescribeInstancesResult.cc + src/model/DescribeKeyPairsRequest.cc + src/model/DescribeKeyPairsResult.cc + src/model/DescribeLoadBalancerAttributeRequest.cc + src/model/DescribeLoadBalancerAttributeResult.cc + src/model/DescribeLoadBalancerHTTPListenerAttributeRequest.cc + src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc + src/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.cc + src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc + src/model/DescribeLoadBalancerSpecRequest.cc + src/model/DescribeLoadBalancerSpecResult.cc + src/model/DescribeLoadBalancerTCPListenerAttributeRequest.cc + src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc + src/model/DescribeLoadBalancerUDPListenerAttributeRequest.cc + src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc + src/model/DescribeLoadBalancersRequest.cc + src/model/DescribeLoadBalancersResult.cc + src/model/DescribeMeasurementDataRequest.cc + src/model/DescribeMeasurementDataResult.cc + src/model/DescribeNetworkAttributeRequest.cc + src/model/DescribeNetworkAttributeResult.cc + src/model/DescribeNetworkInterfacesRequest.cc + src/model/DescribeNetworkInterfacesResult.cc + src/model/DescribeNetworksRequest.cc + src/model/DescribeNetworksResult.cc + src/model/DescribePrePaidInstanceStockRequest.cc + src/model/DescribePrePaidInstanceStockResult.cc + src/model/DescribePriceRequest.cc + src/model/DescribePriceResult.cc + src/model/DescribeRegionIspsRequest.cc + src/model/DescribeRegionIspsResult.cc + src/model/DescribeReservedResourceRequest.cc + src/model/DescribeReservedResourceResult.cc + src/model/DescribeSecurityGroupAttributeRequest.cc + src/model/DescribeSecurityGroupAttributeResult.cc + src/model/DescribeSecurityGroupsRequest.cc + src/model/DescribeSecurityGroupsResult.cc + src/model/DescribeServcieScheduleRequest.cc + src/model/DescribeServcieScheduleResult.cc + src/model/DescribeUserBandWidthDataRequest.cc + src/model/DescribeUserBandWidthDataResult.cc + src/model/DescribeVSwitchesRequest.cc + src/model/DescribeVSwitchesResult.cc + src/model/DetachDiskRequest.cc + src/model/DetachDiskResult.cc + src/model/DistApplicationDataRequest.cc + src/model/DistApplicationDataResult.cc + src/model/ExportBillDetailDataRequest.cc + src/model/ExportBillDetailDataResult.cc + src/model/ExportImageRequest.cc + src/model/ExportImageResult.cc + src/model/ExportMeasurementDataRequest.cc + src/model/ExportMeasurementDataResult.cc + src/model/GetDeviceInternetPortRequest.cc + src/model/GetDeviceInternetPortResult.cc + src/model/GetVmListRequest.cc + src/model/GetVmListResult.cc + src/model/ImportKeyPairRequest.cc + src/model/ImportKeyPairResult.cc + src/model/JoinPublicIpsToEpnInstanceRequest.cc + src/model/JoinPublicIpsToEpnInstanceResult.cc + src/model/JoinSecurityGroupRequest.cc + src/model/JoinSecurityGroupResult.cc + src/model/JoinVSwitchesToEpnInstanceRequest.cc + src/model/JoinVSwitchesToEpnInstanceResult.cc + src/model/LeaveSecurityGroupRequest.cc + src/model/LeaveSecurityGroupResult.cc + src/model/ListApplicationsRequest.cc + src/model/ListApplicationsResult.cc + src/model/MigrateVmRequest.cc + src/model/MigrateVmResult.cc + src/model/ModifyEnsEipAddressAttributeRequest.cc + src/model/ModifyEnsEipAddressAttributeResult.cc + src/model/ModifyEpnInstanceRequest.cc + src/model/ModifyEpnInstanceResult.cc + src/model/ModifyImageAttributeRequest.cc + src/model/ModifyImageAttributeResult.cc + src/model/ModifyImageSharePermissionRequest.cc + src/model/ModifyImageSharePermissionResult.cc + src/model/ModifyInstanceAttributeRequest.cc + src/model/ModifyInstanceAttributeResult.cc + src/model/ModifyInstanceAutoRenewAttributeRequest.cc + src/model/ModifyInstanceAutoRenewAttributeResult.cc + src/model/ModifyLoadBalancerAttributeRequest.cc + src/model/ModifyLoadBalancerAttributeResult.cc + src/model/ModifyNetworkAttributeRequest.cc + src/model/ModifyNetworkAttributeResult.cc + src/model/ModifySecurityGroupAttributeRequest.cc + src/model/ModifySecurityGroupAttributeResult.cc + src/model/ModifyVSwitchAttributeRequest.cc + src/model/ModifyVSwitchAttributeResult.cc + src/model/PreCreateEnsServiceRequest.cc + src/model/PreCreateEnsServiceResult.cc + src/model/PushApplicationDataRequest.cc + src/model/PushApplicationDataResult.cc + src/model/ReInitDiskRequest.cc + src/model/ReInitDiskResult.cc + src/model/RebootInstanceRequest.cc + src/model/RebootInstanceResult.cc + src/model/ReleaseEipAddressRequest.cc + src/model/ReleaseEipAddressResult.cc + src/model/ReleaseInstanceRequest.cc + src/model/ReleaseInstanceResult.cc + src/model/ReleasePostPaidInstanceRequest.cc + src/model/ReleasePostPaidInstanceResult.cc + src/model/ReleasePrePaidInstanceRequest.cc + src/model/ReleasePrePaidInstanceResult.cc + src/model/RemoveBackendServersRequest.cc + src/model/RemoveBackendServersResult.cc + src/model/RemovePublicIpsFromEpnInstanceRequest.cc + src/model/RemovePublicIpsFromEpnInstanceResult.cc + src/model/RemoveVSwitchesFromEpnInstanceRequest.cc + src/model/RemoveVSwitchesFromEpnInstanceResult.cc + src/model/RenewInstanceRequest.cc + src/model/RenewInstanceResult.cc + src/model/RescaleApplicationRequest.cc + src/model/RescaleApplicationResult.cc + src/model/RescaleDeviceServiceRequest.cc + src/model/RescaleDeviceServiceResult.cc + src/model/ResetDeviceInstanceRequest.cc + src/model/ResetDeviceInstanceResult.cc + src/model/RestartDeviceInstanceRequest.cc + src/model/RestartDeviceInstanceResult.cc + src/model/RevokeSecurityGroupRequest.cc + src/model/RevokeSecurityGroupResult.cc + src/model/RevokeSecurityGroupEgressRequest.cc + src/model/RevokeSecurityGroupEgressResult.cc + src/model/RollbackApplicationRequest.cc + src/model/RollbackApplicationResult.cc + src/model/RunInstancesRequest.cc + src/model/RunInstancesResult.cc + src/model/RunServiceScheduleRequest.cc + src/model/RunServiceScheduleResult.cc + src/model/SchedulePodRequest.cc + src/model/SchedulePodResult.cc + src/model/SetBackendServersRequest.cc + src/model/SetBackendServersResult.cc + src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc + src/model/SetLoadBalancerHTTPListenerAttributeResult.cc + src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc + src/model/SetLoadBalancerHTTPSListenerAttributeResult.cc + src/model/SetLoadBalancerStatusRequest.cc + src/model/SetLoadBalancerStatusResult.cc + src/model/SetLoadBalancerTCPListenerAttributeRequest.cc + src/model/SetLoadBalancerTCPListenerAttributeResult.cc + src/model/SetLoadBalancerUDPListenerAttributeRequest.cc + src/model/SetLoadBalancerUDPListenerAttributeResult.cc + src/model/StartEpnInstanceRequest.cc + src/model/StartEpnInstanceResult.cc + src/model/StartInstanceRequest.cc + src/model/StartInstanceResult.cc + src/model/StartLoadBalancerListenerRequest.cc + src/model/StartLoadBalancerListenerResult.cc + src/model/StopEpnInstanceRequest.cc + src/model/StopEpnInstanceResult.cc + src/model/StopInstanceRequest.cc + src/model/StopInstanceResult.cc + src/model/StopLoadBalancerListenerRequest.cc + src/model/StopLoadBalancerListenerResult.cc + src/model/UnAssociateEnsEipAddressRequest.cc + src/model/UnAssociateEnsEipAddressResult.cc + src/model/UnassociateEipAddressRequest.cc + src/model/UnassociateEipAddressResult.cc + src/model/UpgradeApplicationRequest.cc + src/model/UpgradeApplicationResult.cc ) + +add_library(ens ${LIB_TYPE} + ${ens_public_header} + ${ens_public_header_model} + ${ens_src}) + +set_target_properties(ens + 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}ens + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(ens + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_ENS_LIBRARY) +endif() + +target_include_directories(ens + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(ens + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(ens + jsoncpp) + target_include_directories(ens + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(ens + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(ens + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(ens + PRIVATE /usr/include/jsoncpp) + target_link_libraries(ens + jsoncpp) +endif() + +install(FILES ${ens_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ens) +install(FILES ${ens_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/ens/model) +install(TARGETS ens + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/EnsClient.h b/ens/include/alibabacloud/ens/EnsClient.h new file mode 100644 index 000000000..396752251 --- /dev/null +++ b/ens/include/alibabacloud/ens/EnsClient.h @@ -0,0 +1,1350 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_ENSCLIENT_H_ +#define ALIBABACLOUD_ENS_ENSCLIENT_H_ + +#include +#include +#include +#include +#include "EnsExport.h" +#include "model/AddBackendServersRequest.h" +#include "model/AddBackendServersResult.h" +#include "model/AddDeviceInternetPortRequest.h" +#include "model/AddDeviceInternetPortResult.h" +#include "model/AddNetworkInterfaceToInstanceRequest.h" +#include "model/AddNetworkInterfaceToInstanceResult.h" +#include "model/AllocateEipAddressRequest.h" +#include "model/AllocateEipAddressResult.h" +#include "model/AssociateEipAddressRequest.h" +#include "model/AssociateEipAddressResult.h" +#include "model/AssociateEnsEipAddressRequest.h" +#include "model/AssociateEnsEipAddressResult.h" +#include "model/AttachDiskRequest.h" +#include "model/AttachDiskResult.h" +#include "model/AttachEnsInstancesRequest.h" +#include "model/AttachEnsInstancesResult.h" +#include "model/AuthorizeSecurityGroupRequest.h" +#include "model/AuthorizeSecurityGroupResult.h" +#include "model/AuthorizeSecurityGroupEgressRequest.h" +#include "model/AuthorizeSecurityGroupEgressResult.h" +#include "model/CheckQuotaRequest.h" +#include "model/CheckQuotaResult.h" +#include "model/ConfigureSecurityGroupPermissionsRequest.h" +#include "model/ConfigureSecurityGroupPermissionsResult.h" +#include "model/CreateApplicationRequest.h" +#include "model/CreateApplicationResult.h" +#include "model/CreateDiskRequest.h" +#include "model/CreateDiskResult.h" +#include "model/CreateDiskBuyOrderRequest.h" +#include "model/CreateDiskBuyOrderResult.h" +#include "model/CreateEPInstanceRequest.h" +#include "model/CreateEPInstanceResult.h" +#include "model/CreateEipInstanceRequest.h" +#include "model/CreateEipInstanceResult.h" +#include "model/CreateElbBuyOrderRequest.h" +#include "model/CreateElbBuyOrderResult.h" +#include "model/CreateEnsServiceRequest.h" +#include "model/CreateEnsServiceResult.h" +#include "model/CreateEpnInstanceRequest.h" +#include "model/CreateEpnInstanceResult.h" +#include "model/CreateImageRequest.h" +#include "model/CreateImageResult.h" +#include "model/CreateInstanceRequest.h" +#include "model/CreateInstanceResult.h" +#include "model/CreateKeyPairRequest.h" +#include "model/CreateKeyPairResult.h" +#include "model/CreateLoadBalancerRequest.h" +#include "model/CreateLoadBalancerResult.h" +#include "model/CreateLoadBalancerHTTPListenerRequest.h" +#include "model/CreateLoadBalancerHTTPListenerResult.h" +#include "model/CreateLoadBalancerHTTPSListenerRequest.h" +#include "model/CreateLoadBalancerHTTPSListenerResult.h" +#include "model/CreateLoadBalancerTCPListenerRequest.h" +#include "model/CreateLoadBalancerTCPListenerResult.h" +#include "model/CreateLoadBalancerUDPListenerRequest.h" +#include "model/CreateLoadBalancerUDPListenerResult.h" +#include "model/CreateNetworkRequest.h" +#include "model/CreateNetworkResult.h" +#include "model/CreateSecurityGroupRequest.h" +#include "model/CreateSecurityGroupResult.h" +#include "model/CreateVSwitchRequest.h" +#include "model/CreateVSwitchResult.h" +#include "model/CreateVmAndSaveStockRequest.h" +#include "model/CreateVmAndSaveStockResult.h" +#include "model/DeleteApplicationRequest.h" +#include "model/DeleteApplicationResult.h" +#include "model/DeleteDeviceInternetPortRequest.h" +#include "model/DeleteDeviceInternetPortResult.h" +#include "model/DeleteEpnInstanceRequest.h" +#include "model/DeleteEpnInstanceResult.h" +#include "model/DeleteKeyPairsRequest.h" +#include "model/DeleteKeyPairsResult.h" +#include "model/DeleteLoadBalancerListenerRequest.h" +#include "model/DeleteLoadBalancerListenerResult.h" +#include "model/DeleteNetworkRequest.h" +#include "model/DeleteNetworkResult.h" +#include "model/DeleteSecurityGroupRequest.h" +#include "model/DeleteSecurityGroupResult.h" +#include "model/DeleteVSwitchRequest.h" +#include "model/DeleteVSwitchResult.h" +#include "model/DeleteVmRequest.h" +#include "model/DeleteVmResult.h" +#include "model/DescribeApplicationRequest.h" +#include "model/DescribeApplicationResult.h" +#include "model/DescribeApplicationResourceSummaryRequest.h" +#include "model/DescribeApplicationResourceSummaryResult.h" +#include "model/DescribeAvailableResourceRequest.h" +#include "model/DescribeAvailableResourceResult.h" +#include "model/DescribeAvailableResourceInfoRequest.h" +#include "model/DescribeAvailableResourceInfoResult.h" +#include "model/DescribeBandWithdChargeTypeRequest.h" +#include "model/DescribeBandWithdChargeTypeResult.h" +#include "model/DescribeBandwitdhByInternetChargeTypeRequest.h" +#include "model/DescribeBandwitdhByInternetChargeTypeResult.h" +#include "model/DescribeCloudDiskAvailableResourceInfoRequest.h" +#include "model/DescribeCloudDiskAvailableResourceInfoResult.h" +#include "model/DescribeCloudDiskTypesRequest.h" +#include "model/DescribeCloudDiskTypesResult.h" +#include "model/DescribeCreatePrePaidInstanceResultRequest.h" +#include "model/DescribeCreatePrePaidInstanceResultResult.h" +#include "model/DescribeDataDistResultRequest.h" +#include "model/DescribeDataDistResultResult.h" +#include "model/DescribeDataDownloadURLRequest.h" +#include "model/DescribeDataDownloadURLResult.h" +#include "model/DescribeDataPushResultRequest.h" +#include "model/DescribeDataPushResultResult.h" +#include "model/DescribeDeviceServiceRequest.h" +#include "model/DescribeDeviceServiceResult.h" +#include "model/DescribeDisksRequest.h" +#include "model/DescribeDisksResult.h" +#include "model/DescribeEipAddressesRequest.h" +#include "model/DescribeEipAddressesResult.h" +#include "model/DescribeElbAvailableResourceInfoRequest.h" +#include "model/DescribeElbAvailableResourceInfoResult.h" +#include "model/DescribeEnsEipAddressesRequest.h" +#include "model/DescribeEnsEipAddressesResult.h" +#include "model/DescribeEnsNetDistrictRequest.h" +#include "model/DescribeEnsNetDistrictResult.h" +#include "model/DescribeEnsNetLevelRequest.h" +#include "model/DescribeEnsNetLevelResult.h" +#include "model/DescribeEnsNetSaleDistrictRequest.h" +#include "model/DescribeEnsNetSaleDistrictResult.h" +#include "model/DescribeEnsRegionIdIpv6InfoRequest.h" +#include "model/DescribeEnsRegionIdIpv6InfoResult.h" +#include "model/DescribeEnsRegionIdResourceRequest.h" +#include "model/DescribeEnsRegionIdResourceResult.h" +#include "model/DescribeEnsRegionsRequest.h" +#include "model/DescribeEnsRegionsResult.h" +#include "model/DescribeEnsResourceUsageRequest.h" +#include "model/DescribeEnsResourceUsageResult.h" +#include "model/DescribeEpnBandWidthDataRequest.h" +#include "model/DescribeEpnBandWidthDataResult.h" +#include "model/DescribeEpnBandwitdhByInternetChargeTypeRequest.h" +#include "model/DescribeEpnBandwitdhByInternetChargeTypeResult.h" +#include "model/DescribeEpnInstanceAttributeRequest.h" +#include "model/DescribeEpnInstanceAttributeResult.h" +#include "model/DescribeEpnInstancesRequest.h" +#include "model/DescribeEpnInstancesResult.h" +#include "model/DescribeEpnMeasurementDataRequest.h" +#include "model/DescribeEpnMeasurementDataResult.h" +#include "model/DescribeExportImageInfoRequest.h" +#include "model/DescribeExportImageInfoResult.h" +#include "model/DescribeExportImageStatusRequest.h" +#include "model/DescribeExportImageStatusResult.h" +#include "model/DescribeImageInfosRequest.h" +#include "model/DescribeImageInfosResult.h" +#include "model/DescribeImageSharePermissionRequest.h" +#include "model/DescribeImageSharePermissionResult.h" +#include "model/DescribeImagesRequest.h" +#include "model/DescribeImagesResult.h" +#include "model/DescribeInstanceAutoRenewAttributeRequest.h" +#include "model/DescribeInstanceAutoRenewAttributeResult.h" +#include "model/DescribeInstanceMonitorDataRequest.h" +#include "model/DescribeInstanceMonitorDataResult.h" +#include "model/DescribeInstanceSpecRequest.h" +#include "model/DescribeInstanceSpecResult.h" +#include "model/DescribeInstanceTypesRequest.h" +#include "model/DescribeInstanceTypesResult.h" +#include "model/DescribeInstanceVncUrlRequest.h" +#include "model/DescribeInstanceVncUrlResult.h" +#include "model/DescribeInstancesRequest.h" +#include "model/DescribeInstancesResult.h" +#include "model/DescribeKeyPairsRequest.h" +#include "model/DescribeKeyPairsResult.h" +#include "model/DescribeLoadBalancerAttributeRequest.h" +#include "model/DescribeLoadBalancerAttributeResult.h" +#include "model/DescribeLoadBalancerHTTPListenerAttributeRequest.h" +#include "model/DescribeLoadBalancerHTTPListenerAttributeResult.h" +#include "model/DescribeLoadBalancerHTTPSListenerAttributeRequest.h" +#include "model/DescribeLoadBalancerHTTPSListenerAttributeResult.h" +#include "model/DescribeLoadBalancerSpecRequest.h" +#include "model/DescribeLoadBalancerSpecResult.h" +#include "model/DescribeLoadBalancerTCPListenerAttributeRequest.h" +#include "model/DescribeLoadBalancerTCPListenerAttributeResult.h" +#include "model/DescribeLoadBalancerUDPListenerAttributeRequest.h" +#include "model/DescribeLoadBalancerUDPListenerAttributeResult.h" +#include "model/DescribeLoadBalancersRequest.h" +#include "model/DescribeLoadBalancersResult.h" +#include "model/DescribeMeasurementDataRequest.h" +#include "model/DescribeMeasurementDataResult.h" +#include "model/DescribeNetworkAttributeRequest.h" +#include "model/DescribeNetworkAttributeResult.h" +#include "model/DescribeNetworkInterfacesRequest.h" +#include "model/DescribeNetworkInterfacesResult.h" +#include "model/DescribeNetworksRequest.h" +#include "model/DescribeNetworksResult.h" +#include "model/DescribePrePaidInstanceStockRequest.h" +#include "model/DescribePrePaidInstanceStockResult.h" +#include "model/DescribePriceRequest.h" +#include "model/DescribePriceResult.h" +#include "model/DescribeRegionIspsRequest.h" +#include "model/DescribeRegionIspsResult.h" +#include "model/DescribeReservedResourceRequest.h" +#include "model/DescribeReservedResourceResult.h" +#include "model/DescribeSecurityGroupAttributeRequest.h" +#include "model/DescribeSecurityGroupAttributeResult.h" +#include "model/DescribeSecurityGroupsRequest.h" +#include "model/DescribeSecurityGroupsResult.h" +#include "model/DescribeServcieScheduleRequest.h" +#include "model/DescribeServcieScheduleResult.h" +#include "model/DescribeUserBandWidthDataRequest.h" +#include "model/DescribeUserBandWidthDataResult.h" +#include "model/DescribeVSwitchesRequest.h" +#include "model/DescribeVSwitchesResult.h" +#include "model/DetachDiskRequest.h" +#include "model/DetachDiskResult.h" +#include "model/DistApplicationDataRequest.h" +#include "model/DistApplicationDataResult.h" +#include "model/ExportBillDetailDataRequest.h" +#include "model/ExportBillDetailDataResult.h" +#include "model/ExportImageRequest.h" +#include "model/ExportImageResult.h" +#include "model/ExportMeasurementDataRequest.h" +#include "model/ExportMeasurementDataResult.h" +#include "model/GetDeviceInternetPortRequest.h" +#include "model/GetDeviceInternetPortResult.h" +#include "model/GetVmListRequest.h" +#include "model/GetVmListResult.h" +#include "model/ImportKeyPairRequest.h" +#include "model/ImportKeyPairResult.h" +#include "model/JoinPublicIpsToEpnInstanceRequest.h" +#include "model/JoinPublicIpsToEpnInstanceResult.h" +#include "model/JoinSecurityGroupRequest.h" +#include "model/JoinSecurityGroupResult.h" +#include "model/JoinVSwitchesToEpnInstanceRequest.h" +#include "model/JoinVSwitchesToEpnInstanceResult.h" +#include "model/LeaveSecurityGroupRequest.h" +#include "model/LeaveSecurityGroupResult.h" +#include "model/ListApplicationsRequest.h" +#include "model/ListApplicationsResult.h" +#include "model/MigrateVmRequest.h" +#include "model/MigrateVmResult.h" +#include "model/ModifyEnsEipAddressAttributeRequest.h" +#include "model/ModifyEnsEipAddressAttributeResult.h" +#include "model/ModifyEpnInstanceRequest.h" +#include "model/ModifyEpnInstanceResult.h" +#include "model/ModifyImageAttributeRequest.h" +#include "model/ModifyImageAttributeResult.h" +#include "model/ModifyImageSharePermissionRequest.h" +#include "model/ModifyImageSharePermissionResult.h" +#include "model/ModifyInstanceAttributeRequest.h" +#include "model/ModifyInstanceAttributeResult.h" +#include "model/ModifyInstanceAutoRenewAttributeRequest.h" +#include "model/ModifyInstanceAutoRenewAttributeResult.h" +#include "model/ModifyLoadBalancerAttributeRequest.h" +#include "model/ModifyLoadBalancerAttributeResult.h" +#include "model/ModifyNetworkAttributeRequest.h" +#include "model/ModifyNetworkAttributeResult.h" +#include "model/ModifySecurityGroupAttributeRequest.h" +#include "model/ModifySecurityGroupAttributeResult.h" +#include "model/ModifyVSwitchAttributeRequest.h" +#include "model/ModifyVSwitchAttributeResult.h" +#include "model/PreCreateEnsServiceRequest.h" +#include "model/PreCreateEnsServiceResult.h" +#include "model/PushApplicationDataRequest.h" +#include "model/PushApplicationDataResult.h" +#include "model/ReInitDiskRequest.h" +#include "model/ReInitDiskResult.h" +#include "model/RebootInstanceRequest.h" +#include "model/RebootInstanceResult.h" +#include "model/ReleaseEipAddressRequest.h" +#include "model/ReleaseEipAddressResult.h" +#include "model/ReleaseInstanceRequest.h" +#include "model/ReleaseInstanceResult.h" +#include "model/ReleasePostPaidInstanceRequest.h" +#include "model/ReleasePostPaidInstanceResult.h" +#include "model/ReleasePrePaidInstanceRequest.h" +#include "model/ReleasePrePaidInstanceResult.h" +#include "model/RemoveBackendServersRequest.h" +#include "model/RemoveBackendServersResult.h" +#include "model/RemovePublicIpsFromEpnInstanceRequest.h" +#include "model/RemovePublicIpsFromEpnInstanceResult.h" +#include "model/RemoveVSwitchesFromEpnInstanceRequest.h" +#include "model/RemoveVSwitchesFromEpnInstanceResult.h" +#include "model/RenewInstanceRequest.h" +#include "model/RenewInstanceResult.h" +#include "model/RescaleApplicationRequest.h" +#include "model/RescaleApplicationResult.h" +#include "model/RescaleDeviceServiceRequest.h" +#include "model/RescaleDeviceServiceResult.h" +#include "model/ResetDeviceInstanceRequest.h" +#include "model/ResetDeviceInstanceResult.h" +#include "model/RestartDeviceInstanceRequest.h" +#include "model/RestartDeviceInstanceResult.h" +#include "model/RevokeSecurityGroupRequest.h" +#include "model/RevokeSecurityGroupResult.h" +#include "model/RevokeSecurityGroupEgressRequest.h" +#include "model/RevokeSecurityGroupEgressResult.h" +#include "model/RollbackApplicationRequest.h" +#include "model/RollbackApplicationResult.h" +#include "model/RunInstancesRequest.h" +#include "model/RunInstancesResult.h" +#include "model/RunServiceScheduleRequest.h" +#include "model/RunServiceScheduleResult.h" +#include "model/SchedulePodRequest.h" +#include "model/SchedulePodResult.h" +#include "model/SetBackendServersRequest.h" +#include "model/SetBackendServersResult.h" +#include "model/SetLoadBalancerHTTPListenerAttributeRequest.h" +#include "model/SetLoadBalancerHTTPListenerAttributeResult.h" +#include "model/SetLoadBalancerHTTPSListenerAttributeRequest.h" +#include "model/SetLoadBalancerHTTPSListenerAttributeResult.h" +#include "model/SetLoadBalancerStatusRequest.h" +#include "model/SetLoadBalancerStatusResult.h" +#include "model/SetLoadBalancerTCPListenerAttributeRequest.h" +#include "model/SetLoadBalancerTCPListenerAttributeResult.h" +#include "model/SetLoadBalancerUDPListenerAttributeRequest.h" +#include "model/SetLoadBalancerUDPListenerAttributeResult.h" +#include "model/StartEpnInstanceRequest.h" +#include "model/StartEpnInstanceResult.h" +#include "model/StartInstanceRequest.h" +#include "model/StartInstanceResult.h" +#include "model/StartLoadBalancerListenerRequest.h" +#include "model/StartLoadBalancerListenerResult.h" +#include "model/StopEpnInstanceRequest.h" +#include "model/StopEpnInstanceResult.h" +#include "model/StopInstanceRequest.h" +#include "model/StopInstanceResult.h" +#include "model/StopLoadBalancerListenerRequest.h" +#include "model/StopLoadBalancerListenerResult.h" +#include "model/UnAssociateEnsEipAddressRequest.h" +#include "model/UnAssociateEnsEipAddressResult.h" +#include "model/UnassociateEipAddressRequest.h" +#include "model/UnassociateEipAddressResult.h" +#include "model/UpgradeApplicationRequest.h" +#include "model/UpgradeApplicationResult.h" + + +namespace AlibabaCloud +{ + namespace Ens + { + class ALIBABACLOUD_ENS_EXPORT EnsClient : public RpcServiceClient + { + public: + typedef Outcome AddBackendServersOutcome; + typedef std::future AddBackendServersOutcomeCallable; + typedef std::function&)> AddBackendServersAsyncHandler; + typedef Outcome AddDeviceInternetPortOutcome; + typedef std::future AddDeviceInternetPortOutcomeCallable; + typedef std::function&)> AddDeviceInternetPortAsyncHandler; + typedef Outcome AddNetworkInterfaceToInstanceOutcome; + typedef std::future AddNetworkInterfaceToInstanceOutcomeCallable; + typedef std::function&)> AddNetworkInterfaceToInstanceAsyncHandler; + typedef Outcome AllocateEipAddressOutcome; + typedef std::future AllocateEipAddressOutcomeCallable; + typedef std::function&)> AllocateEipAddressAsyncHandler; + typedef Outcome AssociateEipAddressOutcome; + typedef std::future AssociateEipAddressOutcomeCallable; + typedef std::function&)> AssociateEipAddressAsyncHandler; + typedef Outcome AssociateEnsEipAddressOutcome; + typedef std::future AssociateEnsEipAddressOutcomeCallable; + typedef std::function&)> AssociateEnsEipAddressAsyncHandler; + typedef Outcome AttachDiskOutcome; + typedef std::future AttachDiskOutcomeCallable; + typedef std::function&)> AttachDiskAsyncHandler; + typedef Outcome AttachEnsInstancesOutcome; + typedef std::future AttachEnsInstancesOutcomeCallable; + typedef std::function&)> AttachEnsInstancesAsyncHandler; + typedef Outcome AuthorizeSecurityGroupOutcome; + typedef std::future AuthorizeSecurityGroupOutcomeCallable; + typedef std::function&)> AuthorizeSecurityGroupAsyncHandler; + typedef Outcome AuthorizeSecurityGroupEgressOutcome; + typedef std::future AuthorizeSecurityGroupEgressOutcomeCallable; + typedef std::function&)> AuthorizeSecurityGroupEgressAsyncHandler; + typedef Outcome CheckQuotaOutcome; + typedef std::future CheckQuotaOutcomeCallable; + typedef std::function&)> CheckQuotaAsyncHandler; + typedef Outcome ConfigureSecurityGroupPermissionsOutcome; + typedef std::future ConfigureSecurityGroupPermissionsOutcomeCallable; + typedef std::function&)> ConfigureSecurityGroupPermissionsAsyncHandler; + typedef Outcome CreateApplicationOutcome; + typedef std::future CreateApplicationOutcomeCallable; + typedef std::function&)> CreateApplicationAsyncHandler; + typedef Outcome CreateDiskOutcome; + typedef std::future CreateDiskOutcomeCallable; + typedef std::function&)> CreateDiskAsyncHandler; + typedef Outcome CreateDiskBuyOrderOutcome; + typedef std::future CreateDiskBuyOrderOutcomeCallable; + typedef std::function&)> CreateDiskBuyOrderAsyncHandler; + typedef Outcome CreateEPInstanceOutcome; + typedef std::future CreateEPInstanceOutcomeCallable; + typedef std::function&)> CreateEPInstanceAsyncHandler; + typedef Outcome CreateEipInstanceOutcome; + typedef std::future CreateEipInstanceOutcomeCallable; + typedef std::function&)> CreateEipInstanceAsyncHandler; + typedef Outcome CreateElbBuyOrderOutcome; + typedef std::future CreateElbBuyOrderOutcomeCallable; + typedef std::function&)> CreateElbBuyOrderAsyncHandler; + typedef Outcome CreateEnsServiceOutcome; + typedef std::future CreateEnsServiceOutcomeCallable; + typedef std::function&)> CreateEnsServiceAsyncHandler; + typedef Outcome CreateEpnInstanceOutcome; + typedef std::future CreateEpnInstanceOutcomeCallable; + typedef std::function&)> CreateEpnInstanceAsyncHandler; + typedef Outcome CreateImageOutcome; + typedef std::future CreateImageOutcomeCallable; + typedef std::function&)> CreateImageAsyncHandler; + typedef Outcome CreateInstanceOutcome; + typedef std::future CreateInstanceOutcomeCallable; + typedef std::function&)> CreateInstanceAsyncHandler; + typedef Outcome CreateKeyPairOutcome; + typedef std::future CreateKeyPairOutcomeCallable; + typedef std::function&)> CreateKeyPairAsyncHandler; + typedef Outcome CreateLoadBalancerOutcome; + typedef std::future CreateLoadBalancerOutcomeCallable; + typedef std::function&)> CreateLoadBalancerAsyncHandler; + typedef Outcome CreateLoadBalancerHTTPListenerOutcome; + typedef std::future CreateLoadBalancerHTTPListenerOutcomeCallable; + typedef std::function&)> CreateLoadBalancerHTTPListenerAsyncHandler; + typedef Outcome CreateLoadBalancerHTTPSListenerOutcome; + typedef std::future CreateLoadBalancerHTTPSListenerOutcomeCallable; + typedef std::function&)> CreateLoadBalancerHTTPSListenerAsyncHandler; + typedef Outcome CreateLoadBalancerTCPListenerOutcome; + typedef std::future CreateLoadBalancerTCPListenerOutcomeCallable; + typedef std::function&)> CreateLoadBalancerTCPListenerAsyncHandler; + typedef Outcome CreateLoadBalancerUDPListenerOutcome; + typedef std::future CreateLoadBalancerUDPListenerOutcomeCallable; + typedef std::function&)> CreateLoadBalancerUDPListenerAsyncHandler; + typedef Outcome CreateNetworkOutcome; + typedef std::future CreateNetworkOutcomeCallable; + typedef std::function&)> CreateNetworkAsyncHandler; + typedef Outcome CreateSecurityGroupOutcome; + typedef std::future CreateSecurityGroupOutcomeCallable; + typedef std::function&)> CreateSecurityGroupAsyncHandler; + typedef Outcome CreateVSwitchOutcome; + typedef std::future CreateVSwitchOutcomeCallable; + typedef std::function&)> CreateVSwitchAsyncHandler; + typedef Outcome CreateVmAndSaveStockOutcome; + typedef std::future CreateVmAndSaveStockOutcomeCallable; + typedef std::function&)> CreateVmAndSaveStockAsyncHandler; + typedef Outcome DeleteApplicationOutcome; + typedef std::future DeleteApplicationOutcomeCallable; + typedef std::function&)> DeleteApplicationAsyncHandler; + typedef Outcome DeleteDeviceInternetPortOutcome; + typedef std::future DeleteDeviceInternetPortOutcomeCallable; + typedef std::function&)> DeleteDeviceInternetPortAsyncHandler; + typedef Outcome DeleteEpnInstanceOutcome; + typedef std::future DeleteEpnInstanceOutcomeCallable; + typedef std::function&)> DeleteEpnInstanceAsyncHandler; + typedef Outcome DeleteKeyPairsOutcome; + typedef std::future DeleteKeyPairsOutcomeCallable; + typedef std::function&)> DeleteKeyPairsAsyncHandler; + typedef Outcome DeleteLoadBalancerListenerOutcome; + typedef std::future DeleteLoadBalancerListenerOutcomeCallable; + typedef std::function&)> DeleteLoadBalancerListenerAsyncHandler; + typedef Outcome DeleteNetworkOutcome; + typedef std::future DeleteNetworkOutcomeCallable; + typedef std::function&)> DeleteNetworkAsyncHandler; + typedef Outcome DeleteSecurityGroupOutcome; + typedef std::future DeleteSecurityGroupOutcomeCallable; + typedef std::function&)> DeleteSecurityGroupAsyncHandler; + typedef Outcome DeleteVSwitchOutcome; + typedef std::future DeleteVSwitchOutcomeCallable; + typedef std::function&)> DeleteVSwitchAsyncHandler; + typedef Outcome DeleteVmOutcome; + typedef std::future DeleteVmOutcomeCallable; + typedef std::function&)> DeleteVmAsyncHandler; + typedef Outcome DescribeApplicationOutcome; + typedef std::future DescribeApplicationOutcomeCallable; + typedef std::function&)> DescribeApplicationAsyncHandler; + typedef Outcome DescribeApplicationResourceSummaryOutcome; + typedef std::future DescribeApplicationResourceSummaryOutcomeCallable; + typedef std::function&)> DescribeApplicationResourceSummaryAsyncHandler; + typedef Outcome DescribeAvailableResourceOutcome; + typedef std::future DescribeAvailableResourceOutcomeCallable; + typedef std::function&)> DescribeAvailableResourceAsyncHandler; + typedef Outcome DescribeAvailableResourceInfoOutcome; + typedef std::future DescribeAvailableResourceInfoOutcomeCallable; + typedef std::function&)> DescribeAvailableResourceInfoAsyncHandler; + typedef Outcome DescribeBandWithdChargeTypeOutcome; + typedef std::future DescribeBandWithdChargeTypeOutcomeCallable; + typedef std::function&)> DescribeBandWithdChargeTypeAsyncHandler; + typedef Outcome DescribeBandwitdhByInternetChargeTypeOutcome; + typedef std::future DescribeBandwitdhByInternetChargeTypeOutcomeCallable; + typedef std::function&)> DescribeBandwitdhByInternetChargeTypeAsyncHandler; + typedef Outcome DescribeCloudDiskAvailableResourceInfoOutcome; + typedef std::future DescribeCloudDiskAvailableResourceInfoOutcomeCallable; + typedef std::function&)> DescribeCloudDiskAvailableResourceInfoAsyncHandler; + typedef Outcome DescribeCloudDiskTypesOutcome; + typedef std::future DescribeCloudDiskTypesOutcomeCallable; + typedef std::function&)> DescribeCloudDiskTypesAsyncHandler; + typedef Outcome DescribeCreatePrePaidInstanceResultOutcome; + typedef std::future DescribeCreatePrePaidInstanceResultOutcomeCallable; + typedef std::function&)> DescribeCreatePrePaidInstanceResultAsyncHandler; + typedef Outcome DescribeDataDistResultOutcome; + typedef std::future DescribeDataDistResultOutcomeCallable; + typedef std::function&)> DescribeDataDistResultAsyncHandler; + typedef Outcome DescribeDataDownloadURLOutcome; + typedef std::future DescribeDataDownloadURLOutcomeCallable; + typedef std::function&)> DescribeDataDownloadURLAsyncHandler; + typedef Outcome DescribeDataPushResultOutcome; + typedef std::future DescribeDataPushResultOutcomeCallable; + typedef std::function&)> DescribeDataPushResultAsyncHandler; + typedef Outcome DescribeDeviceServiceOutcome; + typedef std::future DescribeDeviceServiceOutcomeCallable; + typedef std::function&)> DescribeDeviceServiceAsyncHandler; + typedef Outcome DescribeDisksOutcome; + typedef std::future DescribeDisksOutcomeCallable; + typedef std::function&)> DescribeDisksAsyncHandler; + typedef Outcome DescribeEipAddressesOutcome; + typedef std::future DescribeEipAddressesOutcomeCallable; + typedef std::function&)> DescribeEipAddressesAsyncHandler; + typedef Outcome DescribeElbAvailableResourceInfoOutcome; + typedef std::future DescribeElbAvailableResourceInfoOutcomeCallable; + typedef std::function&)> DescribeElbAvailableResourceInfoAsyncHandler; + typedef Outcome DescribeEnsEipAddressesOutcome; + typedef std::future DescribeEnsEipAddressesOutcomeCallable; + typedef std::function&)> DescribeEnsEipAddressesAsyncHandler; + typedef Outcome DescribeEnsNetDistrictOutcome; + typedef std::future DescribeEnsNetDistrictOutcomeCallable; + typedef std::function&)> DescribeEnsNetDistrictAsyncHandler; + typedef Outcome DescribeEnsNetLevelOutcome; + typedef std::future DescribeEnsNetLevelOutcomeCallable; + typedef std::function&)> DescribeEnsNetLevelAsyncHandler; + typedef Outcome DescribeEnsNetSaleDistrictOutcome; + typedef std::future DescribeEnsNetSaleDistrictOutcomeCallable; + typedef std::function&)> DescribeEnsNetSaleDistrictAsyncHandler; + typedef Outcome DescribeEnsRegionIdIpv6InfoOutcome; + typedef std::future DescribeEnsRegionIdIpv6InfoOutcomeCallable; + typedef std::function&)> DescribeEnsRegionIdIpv6InfoAsyncHandler; + typedef Outcome DescribeEnsRegionIdResourceOutcome; + typedef std::future DescribeEnsRegionIdResourceOutcomeCallable; + typedef std::function&)> DescribeEnsRegionIdResourceAsyncHandler; + typedef Outcome DescribeEnsRegionsOutcome; + typedef std::future DescribeEnsRegionsOutcomeCallable; + typedef std::function&)> DescribeEnsRegionsAsyncHandler; + typedef Outcome DescribeEnsResourceUsageOutcome; + typedef std::future DescribeEnsResourceUsageOutcomeCallable; + typedef std::function&)> DescribeEnsResourceUsageAsyncHandler; + typedef Outcome DescribeEpnBandWidthDataOutcome; + typedef std::future DescribeEpnBandWidthDataOutcomeCallable; + typedef std::function&)> DescribeEpnBandWidthDataAsyncHandler; + typedef Outcome DescribeEpnBandwitdhByInternetChargeTypeOutcome; + typedef std::future DescribeEpnBandwitdhByInternetChargeTypeOutcomeCallable; + typedef std::function&)> DescribeEpnBandwitdhByInternetChargeTypeAsyncHandler; + typedef Outcome DescribeEpnInstanceAttributeOutcome; + typedef std::future DescribeEpnInstanceAttributeOutcomeCallable; + typedef std::function&)> DescribeEpnInstanceAttributeAsyncHandler; + typedef Outcome DescribeEpnInstancesOutcome; + typedef std::future DescribeEpnInstancesOutcomeCallable; + typedef std::function&)> DescribeEpnInstancesAsyncHandler; + typedef Outcome DescribeEpnMeasurementDataOutcome; + typedef std::future DescribeEpnMeasurementDataOutcomeCallable; + typedef std::function&)> DescribeEpnMeasurementDataAsyncHandler; + typedef Outcome DescribeExportImageInfoOutcome; + typedef std::future DescribeExportImageInfoOutcomeCallable; + typedef std::function&)> DescribeExportImageInfoAsyncHandler; + typedef Outcome DescribeExportImageStatusOutcome; + typedef std::future DescribeExportImageStatusOutcomeCallable; + typedef std::function&)> DescribeExportImageStatusAsyncHandler; + typedef Outcome DescribeImageInfosOutcome; + typedef std::future DescribeImageInfosOutcomeCallable; + typedef std::function&)> DescribeImageInfosAsyncHandler; + typedef Outcome DescribeImageSharePermissionOutcome; + typedef std::future DescribeImageSharePermissionOutcomeCallable; + typedef std::function&)> DescribeImageSharePermissionAsyncHandler; + typedef Outcome DescribeImagesOutcome; + typedef std::future DescribeImagesOutcomeCallable; + typedef std::function&)> DescribeImagesAsyncHandler; + typedef Outcome DescribeInstanceAutoRenewAttributeOutcome; + typedef std::future DescribeInstanceAutoRenewAttributeOutcomeCallable; + typedef std::function&)> DescribeInstanceAutoRenewAttributeAsyncHandler; + typedef Outcome DescribeInstanceMonitorDataOutcome; + typedef std::future DescribeInstanceMonitorDataOutcomeCallable; + typedef std::function&)> DescribeInstanceMonitorDataAsyncHandler; + typedef Outcome DescribeInstanceSpecOutcome; + typedef std::future DescribeInstanceSpecOutcomeCallable; + typedef std::function&)> DescribeInstanceSpecAsyncHandler; + typedef Outcome DescribeInstanceTypesOutcome; + typedef std::future DescribeInstanceTypesOutcomeCallable; + typedef std::function&)> DescribeInstanceTypesAsyncHandler; + typedef Outcome DescribeInstanceVncUrlOutcome; + typedef std::future DescribeInstanceVncUrlOutcomeCallable; + typedef std::function&)> DescribeInstanceVncUrlAsyncHandler; + typedef Outcome DescribeInstancesOutcome; + typedef std::future DescribeInstancesOutcomeCallable; + typedef std::function&)> DescribeInstancesAsyncHandler; + typedef Outcome DescribeKeyPairsOutcome; + typedef std::future DescribeKeyPairsOutcomeCallable; + typedef std::function&)> DescribeKeyPairsAsyncHandler; + typedef Outcome DescribeLoadBalancerAttributeOutcome; + typedef std::future DescribeLoadBalancerAttributeOutcomeCallable; + typedef std::function&)> DescribeLoadBalancerAttributeAsyncHandler; + typedef Outcome DescribeLoadBalancerHTTPListenerAttributeOutcome; + typedef std::future DescribeLoadBalancerHTTPListenerAttributeOutcomeCallable; + typedef std::function&)> DescribeLoadBalancerHTTPListenerAttributeAsyncHandler; + typedef Outcome DescribeLoadBalancerHTTPSListenerAttributeOutcome; + typedef std::future DescribeLoadBalancerHTTPSListenerAttributeOutcomeCallable; + typedef std::function&)> DescribeLoadBalancerHTTPSListenerAttributeAsyncHandler; + typedef Outcome DescribeLoadBalancerSpecOutcome; + typedef std::future DescribeLoadBalancerSpecOutcomeCallable; + typedef std::function&)> DescribeLoadBalancerSpecAsyncHandler; + typedef Outcome DescribeLoadBalancerTCPListenerAttributeOutcome; + typedef std::future DescribeLoadBalancerTCPListenerAttributeOutcomeCallable; + typedef std::function&)> DescribeLoadBalancerTCPListenerAttributeAsyncHandler; + typedef Outcome DescribeLoadBalancerUDPListenerAttributeOutcome; + typedef std::future DescribeLoadBalancerUDPListenerAttributeOutcomeCallable; + typedef std::function&)> DescribeLoadBalancerUDPListenerAttributeAsyncHandler; + typedef Outcome DescribeLoadBalancersOutcome; + typedef std::future DescribeLoadBalancersOutcomeCallable; + typedef std::function&)> DescribeLoadBalancersAsyncHandler; + typedef Outcome DescribeMeasurementDataOutcome; + typedef std::future DescribeMeasurementDataOutcomeCallable; + typedef std::function&)> DescribeMeasurementDataAsyncHandler; + typedef Outcome DescribeNetworkAttributeOutcome; + typedef std::future DescribeNetworkAttributeOutcomeCallable; + typedef std::function&)> DescribeNetworkAttributeAsyncHandler; + typedef Outcome DescribeNetworkInterfacesOutcome; + typedef std::future DescribeNetworkInterfacesOutcomeCallable; + typedef std::function&)> DescribeNetworkInterfacesAsyncHandler; + typedef Outcome DescribeNetworksOutcome; + typedef std::future DescribeNetworksOutcomeCallable; + typedef std::function&)> DescribeNetworksAsyncHandler; + typedef Outcome DescribePrePaidInstanceStockOutcome; + typedef std::future DescribePrePaidInstanceStockOutcomeCallable; + typedef std::function&)> DescribePrePaidInstanceStockAsyncHandler; + typedef Outcome DescribePriceOutcome; + typedef std::future DescribePriceOutcomeCallable; + typedef std::function&)> DescribePriceAsyncHandler; + typedef Outcome DescribeRegionIspsOutcome; + typedef std::future DescribeRegionIspsOutcomeCallable; + typedef std::function&)> DescribeRegionIspsAsyncHandler; + typedef Outcome DescribeReservedResourceOutcome; + typedef std::future DescribeReservedResourceOutcomeCallable; + typedef std::function&)> DescribeReservedResourceAsyncHandler; + typedef Outcome DescribeSecurityGroupAttributeOutcome; + typedef std::future DescribeSecurityGroupAttributeOutcomeCallable; + typedef std::function&)> DescribeSecurityGroupAttributeAsyncHandler; + typedef Outcome DescribeSecurityGroupsOutcome; + typedef std::future DescribeSecurityGroupsOutcomeCallable; + typedef std::function&)> DescribeSecurityGroupsAsyncHandler; + typedef Outcome DescribeServcieScheduleOutcome; + typedef std::future DescribeServcieScheduleOutcomeCallable; + typedef std::function&)> DescribeServcieScheduleAsyncHandler; + typedef Outcome DescribeUserBandWidthDataOutcome; + typedef std::future DescribeUserBandWidthDataOutcomeCallable; + typedef std::function&)> DescribeUserBandWidthDataAsyncHandler; + typedef Outcome DescribeVSwitchesOutcome; + typedef std::future DescribeVSwitchesOutcomeCallable; + typedef std::function&)> DescribeVSwitchesAsyncHandler; + typedef Outcome DetachDiskOutcome; + typedef std::future DetachDiskOutcomeCallable; + typedef std::function&)> DetachDiskAsyncHandler; + typedef Outcome DistApplicationDataOutcome; + typedef std::future DistApplicationDataOutcomeCallable; + typedef std::function&)> DistApplicationDataAsyncHandler; + typedef Outcome ExportBillDetailDataOutcome; + typedef std::future ExportBillDetailDataOutcomeCallable; + typedef std::function&)> ExportBillDetailDataAsyncHandler; + typedef Outcome ExportImageOutcome; + typedef std::future ExportImageOutcomeCallable; + typedef std::function&)> ExportImageAsyncHandler; + typedef Outcome ExportMeasurementDataOutcome; + typedef std::future ExportMeasurementDataOutcomeCallable; + typedef std::function&)> ExportMeasurementDataAsyncHandler; + typedef Outcome GetDeviceInternetPortOutcome; + typedef std::future GetDeviceInternetPortOutcomeCallable; + typedef std::function&)> GetDeviceInternetPortAsyncHandler; + typedef Outcome GetVmListOutcome; + typedef std::future GetVmListOutcomeCallable; + typedef std::function&)> GetVmListAsyncHandler; + typedef Outcome ImportKeyPairOutcome; + typedef std::future ImportKeyPairOutcomeCallable; + typedef std::function&)> ImportKeyPairAsyncHandler; + typedef Outcome JoinPublicIpsToEpnInstanceOutcome; + typedef std::future JoinPublicIpsToEpnInstanceOutcomeCallable; + typedef std::function&)> JoinPublicIpsToEpnInstanceAsyncHandler; + typedef Outcome JoinSecurityGroupOutcome; + typedef std::future JoinSecurityGroupOutcomeCallable; + typedef std::function&)> JoinSecurityGroupAsyncHandler; + typedef Outcome JoinVSwitchesToEpnInstanceOutcome; + typedef std::future JoinVSwitchesToEpnInstanceOutcomeCallable; + typedef std::function&)> JoinVSwitchesToEpnInstanceAsyncHandler; + typedef Outcome LeaveSecurityGroupOutcome; + typedef std::future LeaveSecurityGroupOutcomeCallable; + typedef std::function&)> LeaveSecurityGroupAsyncHandler; + typedef Outcome ListApplicationsOutcome; + typedef std::future ListApplicationsOutcomeCallable; + typedef std::function&)> ListApplicationsAsyncHandler; + typedef Outcome MigrateVmOutcome; + typedef std::future MigrateVmOutcomeCallable; + typedef std::function&)> MigrateVmAsyncHandler; + typedef Outcome ModifyEnsEipAddressAttributeOutcome; + typedef std::future ModifyEnsEipAddressAttributeOutcomeCallable; + typedef std::function&)> ModifyEnsEipAddressAttributeAsyncHandler; + typedef Outcome ModifyEpnInstanceOutcome; + typedef std::future ModifyEpnInstanceOutcomeCallable; + typedef std::function&)> ModifyEpnInstanceAsyncHandler; + typedef Outcome ModifyImageAttributeOutcome; + typedef std::future ModifyImageAttributeOutcomeCallable; + typedef std::function&)> ModifyImageAttributeAsyncHandler; + typedef Outcome ModifyImageSharePermissionOutcome; + typedef std::future ModifyImageSharePermissionOutcomeCallable; + typedef std::function&)> ModifyImageSharePermissionAsyncHandler; + typedef Outcome ModifyInstanceAttributeOutcome; + typedef std::future ModifyInstanceAttributeOutcomeCallable; + typedef std::function&)> ModifyInstanceAttributeAsyncHandler; + typedef Outcome ModifyInstanceAutoRenewAttributeOutcome; + typedef std::future ModifyInstanceAutoRenewAttributeOutcomeCallable; + typedef std::function&)> ModifyInstanceAutoRenewAttributeAsyncHandler; + typedef Outcome ModifyLoadBalancerAttributeOutcome; + typedef std::future ModifyLoadBalancerAttributeOutcomeCallable; + typedef std::function&)> ModifyLoadBalancerAttributeAsyncHandler; + typedef Outcome ModifyNetworkAttributeOutcome; + typedef std::future ModifyNetworkAttributeOutcomeCallable; + typedef std::function&)> ModifyNetworkAttributeAsyncHandler; + typedef Outcome ModifySecurityGroupAttributeOutcome; + typedef std::future ModifySecurityGroupAttributeOutcomeCallable; + typedef std::function&)> ModifySecurityGroupAttributeAsyncHandler; + typedef Outcome ModifyVSwitchAttributeOutcome; + typedef std::future ModifyVSwitchAttributeOutcomeCallable; + typedef std::function&)> ModifyVSwitchAttributeAsyncHandler; + typedef Outcome PreCreateEnsServiceOutcome; + typedef std::future PreCreateEnsServiceOutcomeCallable; + typedef std::function&)> PreCreateEnsServiceAsyncHandler; + typedef Outcome PushApplicationDataOutcome; + typedef std::future PushApplicationDataOutcomeCallable; + typedef std::function&)> PushApplicationDataAsyncHandler; + typedef Outcome ReInitDiskOutcome; + typedef std::future ReInitDiskOutcomeCallable; + typedef std::function&)> ReInitDiskAsyncHandler; + typedef Outcome RebootInstanceOutcome; + typedef std::future RebootInstanceOutcomeCallable; + typedef std::function&)> RebootInstanceAsyncHandler; + typedef Outcome ReleaseEipAddressOutcome; + typedef std::future ReleaseEipAddressOutcomeCallable; + typedef std::function&)> ReleaseEipAddressAsyncHandler; + typedef Outcome ReleaseInstanceOutcome; + typedef std::future ReleaseInstanceOutcomeCallable; + typedef std::function&)> ReleaseInstanceAsyncHandler; + typedef Outcome ReleasePostPaidInstanceOutcome; + typedef std::future ReleasePostPaidInstanceOutcomeCallable; + typedef std::function&)> ReleasePostPaidInstanceAsyncHandler; + typedef Outcome ReleasePrePaidInstanceOutcome; + typedef std::future ReleasePrePaidInstanceOutcomeCallable; + typedef std::function&)> ReleasePrePaidInstanceAsyncHandler; + typedef Outcome RemoveBackendServersOutcome; + typedef std::future RemoveBackendServersOutcomeCallable; + typedef std::function&)> RemoveBackendServersAsyncHandler; + typedef Outcome RemovePublicIpsFromEpnInstanceOutcome; + typedef std::future RemovePublicIpsFromEpnInstanceOutcomeCallable; + typedef std::function&)> RemovePublicIpsFromEpnInstanceAsyncHandler; + typedef Outcome RemoveVSwitchesFromEpnInstanceOutcome; + typedef std::future RemoveVSwitchesFromEpnInstanceOutcomeCallable; + typedef std::function&)> RemoveVSwitchesFromEpnInstanceAsyncHandler; + typedef Outcome RenewInstanceOutcome; + typedef std::future RenewInstanceOutcomeCallable; + typedef std::function&)> RenewInstanceAsyncHandler; + typedef Outcome RescaleApplicationOutcome; + typedef std::future RescaleApplicationOutcomeCallable; + typedef std::function&)> RescaleApplicationAsyncHandler; + typedef Outcome RescaleDeviceServiceOutcome; + typedef std::future RescaleDeviceServiceOutcomeCallable; + typedef std::function&)> RescaleDeviceServiceAsyncHandler; + typedef Outcome ResetDeviceInstanceOutcome; + typedef std::future ResetDeviceInstanceOutcomeCallable; + typedef std::function&)> ResetDeviceInstanceAsyncHandler; + typedef Outcome RestartDeviceInstanceOutcome; + typedef std::future RestartDeviceInstanceOutcomeCallable; + typedef std::function&)> RestartDeviceInstanceAsyncHandler; + typedef Outcome RevokeSecurityGroupOutcome; + typedef std::future RevokeSecurityGroupOutcomeCallable; + typedef std::function&)> RevokeSecurityGroupAsyncHandler; + typedef Outcome RevokeSecurityGroupEgressOutcome; + typedef std::future RevokeSecurityGroupEgressOutcomeCallable; + typedef std::function&)> RevokeSecurityGroupEgressAsyncHandler; + typedef Outcome RollbackApplicationOutcome; + typedef std::future RollbackApplicationOutcomeCallable; + typedef std::function&)> RollbackApplicationAsyncHandler; + typedef Outcome RunInstancesOutcome; + typedef std::future RunInstancesOutcomeCallable; + typedef std::function&)> RunInstancesAsyncHandler; + typedef Outcome RunServiceScheduleOutcome; + typedef std::future RunServiceScheduleOutcomeCallable; + typedef std::function&)> RunServiceScheduleAsyncHandler; + typedef Outcome SchedulePodOutcome; + typedef std::future SchedulePodOutcomeCallable; + typedef std::function&)> SchedulePodAsyncHandler; + typedef Outcome SetBackendServersOutcome; + typedef std::future SetBackendServersOutcomeCallable; + typedef std::function&)> SetBackendServersAsyncHandler; + typedef Outcome SetLoadBalancerHTTPListenerAttributeOutcome; + typedef std::future SetLoadBalancerHTTPListenerAttributeOutcomeCallable; + typedef std::function&)> SetLoadBalancerHTTPListenerAttributeAsyncHandler; + typedef Outcome SetLoadBalancerHTTPSListenerAttributeOutcome; + typedef std::future SetLoadBalancerHTTPSListenerAttributeOutcomeCallable; + typedef std::function&)> SetLoadBalancerHTTPSListenerAttributeAsyncHandler; + typedef Outcome SetLoadBalancerStatusOutcome; + typedef std::future SetLoadBalancerStatusOutcomeCallable; + typedef std::function&)> SetLoadBalancerStatusAsyncHandler; + typedef Outcome SetLoadBalancerTCPListenerAttributeOutcome; + typedef std::future SetLoadBalancerTCPListenerAttributeOutcomeCallable; + typedef std::function&)> SetLoadBalancerTCPListenerAttributeAsyncHandler; + typedef Outcome SetLoadBalancerUDPListenerAttributeOutcome; + typedef std::future SetLoadBalancerUDPListenerAttributeOutcomeCallable; + typedef std::function&)> SetLoadBalancerUDPListenerAttributeAsyncHandler; + typedef Outcome StartEpnInstanceOutcome; + typedef std::future StartEpnInstanceOutcomeCallable; + typedef std::function&)> StartEpnInstanceAsyncHandler; + typedef Outcome StartInstanceOutcome; + typedef std::future StartInstanceOutcomeCallable; + typedef std::function&)> StartInstanceAsyncHandler; + typedef Outcome StartLoadBalancerListenerOutcome; + typedef std::future StartLoadBalancerListenerOutcomeCallable; + typedef std::function&)> StartLoadBalancerListenerAsyncHandler; + typedef Outcome StopEpnInstanceOutcome; + typedef std::future StopEpnInstanceOutcomeCallable; + typedef std::function&)> StopEpnInstanceAsyncHandler; + typedef Outcome StopInstanceOutcome; + typedef std::future StopInstanceOutcomeCallable; + typedef std::function&)> StopInstanceAsyncHandler; + typedef Outcome StopLoadBalancerListenerOutcome; + typedef std::future StopLoadBalancerListenerOutcomeCallable; + typedef std::function&)> StopLoadBalancerListenerAsyncHandler; + typedef Outcome UnAssociateEnsEipAddressOutcome; + typedef std::future UnAssociateEnsEipAddressOutcomeCallable; + typedef std::function&)> UnAssociateEnsEipAddressAsyncHandler; + typedef Outcome UnassociateEipAddressOutcome; + typedef std::future UnassociateEipAddressOutcomeCallable; + typedef std::function&)> UnassociateEipAddressAsyncHandler; + typedef Outcome UpgradeApplicationOutcome; + typedef std::future UpgradeApplicationOutcomeCallable; + typedef std::function&)> UpgradeApplicationAsyncHandler; + + EnsClient(const Credentials &credentials, const ClientConfiguration &configuration); + EnsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + EnsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~EnsClient(); + AddBackendServersOutcome addBackendServers(const Model::AddBackendServersRequest &request)const; + void addBackendServersAsync(const Model::AddBackendServersRequest& request, const AddBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddBackendServersOutcomeCallable addBackendServersCallable(const Model::AddBackendServersRequest& request) const; + AddDeviceInternetPortOutcome addDeviceInternetPort(const Model::AddDeviceInternetPortRequest &request)const; + void addDeviceInternetPortAsync(const Model::AddDeviceInternetPortRequest& request, const AddDeviceInternetPortAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddDeviceInternetPortOutcomeCallable addDeviceInternetPortCallable(const Model::AddDeviceInternetPortRequest& request) const; + AddNetworkInterfaceToInstanceOutcome addNetworkInterfaceToInstance(const Model::AddNetworkInterfaceToInstanceRequest &request)const; + void addNetworkInterfaceToInstanceAsync(const Model::AddNetworkInterfaceToInstanceRequest& request, const AddNetworkInterfaceToInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddNetworkInterfaceToInstanceOutcomeCallable addNetworkInterfaceToInstanceCallable(const Model::AddNetworkInterfaceToInstanceRequest& 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; + 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; + AssociateEnsEipAddressOutcome associateEnsEipAddress(const Model::AssociateEnsEipAddressRequest &request)const; + void associateEnsEipAddressAsync(const Model::AssociateEnsEipAddressRequest& request, const AssociateEnsEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateEnsEipAddressOutcomeCallable associateEnsEipAddressCallable(const Model::AssociateEnsEipAddressRequest& 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; + AttachEnsInstancesOutcome attachEnsInstances(const Model::AttachEnsInstancesRequest &request)const; + void attachEnsInstancesAsync(const Model::AttachEnsInstancesRequest& request, const AttachEnsInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachEnsInstancesOutcomeCallable attachEnsInstancesCallable(const Model::AttachEnsInstancesRequest& 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; + 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; + CheckQuotaOutcome checkQuota(const Model::CheckQuotaRequest &request)const; + void checkQuotaAsync(const Model::CheckQuotaRequest& request, const CheckQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckQuotaOutcomeCallable checkQuotaCallable(const Model::CheckQuotaRequest& request) const; + ConfigureSecurityGroupPermissionsOutcome configureSecurityGroupPermissions(const Model::ConfigureSecurityGroupPermissionsRequest &request)const; + void configureSecurityGroupPermissionsAsync(const Model::ConfigureSecurityGroupPermissionsRequest& request, const ConfigureSecurityGroupPermissionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ConfigureSecurityGroupPermissionsOutcomeCallable configureSecurityGroupPermissionsCallable(const Model::ConfigureSecurityGroupPermissionsRequest& request) const; + CreateApplicationOutcome createApplication(const Model::CreateApplicationRequest &request)const; + void createApplicationAsync(const Model::CreateApplicationRequest& request, const CreateApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateApplicationOutcomeCallable createApplicationCallable(const Model::CreateApplicationRequest& 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; + CreateDiskBuyOrderOutcome createDiskBuyOrder(const Model::CreateDiskBuyOrderRequest &request)const; + void createDiskBuyOrderAsync(const Model::CreateDiskBuyOrderRequest& request, const CreateDiskBuyOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDiskBuyOrderOutcomeCallable createDiskBuyOrderCallable(const Model::CreateDiskBuyOrderRequest& request) const; + CreateEPInstanceOutcome createEPInstance(const Model::CreateEPInstanceRequest &request)const; + void createEPInstanceAsync(const Model::CreateEPInstanceRequest& request, const CreateEPInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateEPInstanceOutcomeCallable createEPInstanceCallable(const Model::CreateEPInstanceRequest& request) const; + CreateEipInstanceOutcome createEipInstance(const Model::CreateEipInstanceRequest &request)const; + void createEipInstanceAsync(const Model::CreateEipInstanceRequest& request, const CreateEipInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateEipInstanceOutcomeCallable createEipInstanceCallable(const Model::CreateEipInstanceRequest& request) const; + CreateElbBuyOrderOutcome createElbBuyOrder(const Model::CreateElbBuyOrderRequest &request)const; + void createElbBuyOrderAsync(const Model::CreateElbBuyOrderRequest& request, const CreateElbBuyOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateElbBuyOrderOutcomeCallable createElbBuyOrderCallable(const Model::CreateElbBuyOrderRequest& request) const; + CreateEnsServiceOutcome createEnsService(const Model::CreateEnsServiceRequest &request)const; + void createEnsServiceAsync(const Model::CreateEnsServiceRequest& request, const CreateEnsServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateEnsServiceOutcomeCallable createEnsServiceCallable(const Model::CreateEnsServiceRequest& request) const; + CreateEpnInstanceOutcome createEpnInstance(const Model::CreateEpnInstanceRequest &request)const; + void createEpnInstanceAsync(const Model::CreateEpnInstanceRequest& request, const CreateEpnInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateEpnInstanceOutcomeCallable createEpnInstanceCallable(const Model::CreateEpnInstanceRequest& 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; + 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; + 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; + CreateLoadBalancerOutcome createLoadBalancer(const Model::CreateLoadBalancerRequest &request)const; + void createLoadBalancerAsync(const Model::CreateLoadBalancerRequest& request, const CreateLoadBalancerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLoadBalancerOutcomeCallable createLoadBalancerCallable(const Model::CreateLoadBalancerRequest& request) const; + CreateLoadBalancerHTTPListenerOutcome createLoadBalancerHTTPListener(const Model::CreateLoadBalancerHTTPListenerRequest &request)const; + void createLoadBalancerHTTPListenerAsync(const Model::CreateLoadBalancerHTTPListenerRequest& request, const CreateLoadBalancerHTTPListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLoadBalancerHTTPListenerOutcomeCallable createLoadBalancerHTTPListenerCallable(const Model::CreateLoadBalancerHTTPListenerRequest& request) const; + CreateLoadBalancerHTTPSListenerOutcome createLoadBalancerHTTPSListener(const Model::CreateLoadBalancerHTTPSListenerRequest &request)const; + void createLoadBalancerHTTPSListenerAsync(const Model::CreateLoadBalancerHTTPSListenerRequest& request, const CreateLoadBalancerHTTPSListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLoadBalancerHTTPSListenerOutcomeCallable createLoadBalancerHTTPSListenerCallable(const Model::CreateLoadBalancerHTTPSListenerRequest& request) const; + CreateLoadBalancerTCPListenerOutcome createLoadBalancerTCPListener(const Model::CreateLoadBalancerTCPListenerRequest &request)const; + void createLoadBalancerTCPListenerAsync(const Model::CreateLoadBalancerTCPListenerRequest& request, const CreateLoadBalancerTCPListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLoadBalancerTCPListenerOutcomeCallable createLoadBalancerTCPListenerCallable(const Model::CreateLoadBalancerTCPListenerRequest& request) const; + CreateLoadBalancerUDPListenerOutcome createLoadBalancerUDPListener(const Model::CreateLoadBalancerUDPListenerRequest &request)const; + void createLoadBalancerUDPListenerAsync(const Model::CreateLoadBalancerUDPListenerRequest& request, const CreateLoadBalancerUDPListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLoadBalancerUDPListenerOutcomeCallable createLoadBalancerUDPListenerCallable(const Model::CreateLoadBalancerUDPListenerRequest& request) const; + CreateNetworkOutcome createNetwork(const Model::CreateNetworkRequest &request)const; + void createNetworkAsync(const Model::CreateNetworkRequest& request, const CreateNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNetworkOutcomeCallable createNetworkCallable(const Model::CreateNetworkRequest& 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; + 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; + CreateVmAndSaveStockOutcome createVmAndSaveStock(const Model::CreateVmAndSaveStockRequest &request)const; + void createVmAndSaveStockAsync(const Model::CreateVmAndSaveStockRequest& request, const CreateVmAndSaveStockAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVmAndSaveStockOutcomeCallable createVmAndSaveStockCallable(const Model::CreateVmAndSaveStockRequest& request) const; + DeleteApplicationOutcome deleteApplication(const Model::DeleteApplicationRequest &request)const; + void deleteApplicationAsync(const Model::DeleteApplicationRequest& request, const DeleteApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteApplicationOutcomeCallable deleteApplicationCallable(const Model::DeleteApplicationRequest& request) const; + DeleteDeviceInternetPortOutcome deleteDeviceInternetPort(const Model::DeleteDeviceInternetPortRequest &request)const; + void deleteDeviceInternetPortAsync(const Model::DeleteDeviceInternetPortRequest& request, const DeleteDeviceInternetPortAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDeviceInternetPortOutcomeCallable deleteDeviceInternetPortCallable(const Model::DeleteDeviceInternetPortRequest& request) const; + DeleteEpnInstanceOutcome deleteEpnInstance(const Model::DeleteEpnInstanceRequest &request)const; + void deleteEpnInstanceAsync(const Model::DeleteEpnInstanceRequest& request, const DeleteEpnInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteEpnInstanceOutcomeCallable deleteEpnInstanceCallable(const Model::DeleteEpnInstanceRequest& 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; + DeleteLoadBalancerListenerOutcome deleteLoadBalancerListener(const Model::DeleteLoadBalancerListenerRequest &request)const; + void deleteLoadBalancerListenerAsync(const Model::DeleteLoadBalancerListenerRequest& request, const DeleteLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLoadBalancerListenerOutcomeCallable deleteLoadBalancerListenerCallable(const Model::DeleteLoadBalancerListenerRequest& request) const; + DeleteNetworkOutcome deleteNetwork(const Model::DeleteNetworkRequest &request)const; + void deleteNetworkAsync(const Model::DeleteNetworkRequest& request, const DeleteNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNetworkOutcomeCallable deleteNetworkCallable(const Model::DeleteNetworkRequest& 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; + 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; + DeleteVmOutcome deleteVm(const Model::DeleteVmRequest &request)const; + void deleteVmAsync(const Model::DeleteVmRequest& request, const DeleteVmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVmOutcomeCallable deleteVmCallable(const Model::DeleteVmRequest& request) const; + DescribeApplicationOutcome describeApplication(const Model::DescribeApplicationRequest &request)const; + void describeApplicationAsync(const Model::DescribeApplicationRequest& request, const DescribeApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApplicationOutcomeCallable describeApplicationCallable(const Model::DescribeApplicationRequest& request) const; + DescribeApplicationResourceSummaryOutcome describeApplicationResourceSummary(const Model::DescribeApplicationResourceSummaryRequest &request)const; + void describeApplicationResourceSummaryAsync(const Model::DescribeApplicationResourceSummaryRequest& request, const DescribeApplicationResourceSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApplicationResourceSummaryOutcomeCallable describeApplicationResourceSummaryCallable(const Model::DescribeApplicationResourceSummaryRequest& request) const; + DescribeAvailableResourceOutcome describeAvailableResource(const Model::DescribeAvailableResourceRequest &request)const; + void describeAvailableResourceAsync(const Model::DescribeAvailableResourceRequest& request, const DescribeAvailableResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAvailableResourceOutcomeCallable describeAvailableResourceCallable(const Model::DescribeAvailableResourceRequest& request) const; + DescribeAvailableResourceInfoOutcome describeAvailableResourceInfo(const Model::DescribeAvailableResourceInfoRequest &request)const; + void describeAvailableResourceInfoAsync(const Model::DescribeAvailableResourceInfoRequest& request, const DescribeAvailableResourceInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAvailableResourceInfoOutcomeCallable describeAvailableResourceInfoCallable(const Model::DescribeAvailableResourceInfoRequest& request) const; + DescribeBandWithdChargeTypeOutcome describeBandWithdChargeType(const Model::DescribeBandWithdChargeTypeRequest &request)const; + void describeBandWithdChargeTypeAsync(const Model::DescribeBandWithdChargeTypeRequest& request, const DescribeBandWithdChargeTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBandWithdChargeTypeOutcomeCallable describeBandWithdChargeTypeCallable(const Model::DescribeBandWithdChargeTypeRequest& request) const; + DescribeBandwitdhByInternetChargeTypeOutcome describeBandwitdhByInternetChargeType(const Model::DescribeBandwitdhByInternetChargeTypeRequest &request)const; + void describeBandwitdhByInternetChargeTypeAsync(const Model::DescribeBandwitdhByInternetChargeTypeRequest& request, const DescribeBandwitdhByInternetChargeTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBandwitdhByInternetChargeTypeOutcomeCallable describeBandwitdhByInternetChargeTypeCallable(const Model::DescribeBandwitdhByInternetChargeTypeRequest& request) const; + DescribeCloudDiskAvailableResourceInfoOutcome describeCloudDiskAvailableResourceInfo(const Model::DescribeCloudDiskAvailableResourceInfoRequest &request)const; + void describeCloudDiskAvailableResourceInfoAsync(const Model::DescribeCloudDiskAvailableResourceInfoRequest& request, const DescribeCloudDiskAvailableResourceInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCloudDiskAvailableResourceInfoOutcomeCallable describeCloudDiskAvailableResourceInfoCallable(const Model::DescribeCloudDiskAvailableResourceInfoRequest& request) const; + DescribeCloudDiskTypesOutcome describeCloudDiskTypes(const Model::DescribeCloudDiskTypesRequest &request)const; + void describeCloudDiskTypesAsync(const Model::DescribeCloudDiskTypesRequest& request, const DescribeCloudDiskTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCloudDiskTypesOutcomeCallable describeCloudDiskTypesCallable(const Model::DescribeCloudDiskTypesRequest& request) const; + DescribeCreatePrePaidInstanceResultOutcome describeCreatePrePaidInstanceResult(const Model::DescribeCreatePrePaidInstanceResultRequest &request)const; + void describeCreatePrePaidInstanceResultAsync(const Model::DescribeCreatePrePaidInstanceResultRequest& request, const DescribeCreatePrePaidInstanceResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCreatePrePaidInstanceResultOutcomeCallable describeCreatePrePaidInstanceResultCallable(const Model::DescribeCreatePrePaidInstanceResultRequest& request) const; + DescribeDataDistResultOutcome describeDataDistResult(const Model::DescribeDataDistResultRequest &request)const; + void describeDataDistResultAsync(const Model::DescribeDataDistResultRequest& request, const DescribeDataDistResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataDistResultOutcomeCallable describeDataDistResultCallable(const Model::DescribeDataDistResultRequest& request) const; + DescribeDataDownloadURLOutcome describeDataDownloadURL(const Model::DescribeDataDownloadURLRequest &request)const; + void describeDataDownloadURLAsync(const Model::DescribeDataDownloadURLRequest& request, const DescribeDataDownloadURLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataDownloadURLOutcomeCallable describeDataDownloadURLCallable(const Model::DescribeDataDownloadURLRequest& request) const; + DescribeDataPushResultOutcome describeDataPushResult(const Model::DescribeDataPushResultRequest &request)const; + void describeDataPushResultAsync(const Model::DescribeDataPushResultRequest& request, const DescribeDataPushResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDataPushResultOutcomeCallable describeDataPushResultCallable(const Model::DescribeDataPushResultRequest& request) const; + DescribeDeviceServiceOutcome describeDeviceService(const Model::DescribeDeviceServiceRequest &request)const; + void describeDeviceServiceAsync(const Model::DescribeDeviceServiceRequest& request, const DescribeDeviceServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDeviceServiceOutcomeCallable describeDeviceServiceCallable(const Model::DescribeDeviceServiceRequest& 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; + 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; + DescribeElbAvailableResourceInfoOutcome describeElbAvailableResourceInfo(const Model::DescribeElbAvailableResourceInfoRequest &request)const; + void describeElbAvailableResourceInfoAsync(const Model::DescribeElbAvailableResourceInfoRequest& request, const DescribeElbAvailableResourceInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeElbAvailableResourceInfoOutcomeCallable describeElbAvailableResourceInfoCallable(const Model::DescribeElbAvailableResourceInfoRequest& request) const; + DescribeEnsEipAddressesOutcome describeEnsEipAddresses(const Model::DescribeEnsEipAddressesRequest &request)const; + void describeEnsEipAddressesAsync(const Model::DescribeEnsEipAddressesRequest& request, const DescribeEnsEipAddressesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEnsEipAddressesOutcomeCallable describeEnsEipAddressesCallable(const Model::DescribeEnsEipAddressesRequest& request) const; + DescribeEnsNetDistrictOutcome describeEnsNetDistrict(const Model::DescribeEnsNetDistrictRequest &request)const; + void describeEnsNetDistrictAsync(const Model::DescribeEnsNetDistrictRequest& request, const DescribeEnsNetDistrictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEnsNetDistrictOutcomeCallable describeEnsNetDistrictCallable(const Model::DescribeEnsNetDistrictRequest& request) const; + DescribeEnsNetLevelOutcome describeEnsNetLevel(const Model::DescribeEnsNetLevelRequest &request)const; + void describeEnsNetLevelAsync(const Model::DescribeEnsNetLevelRequest& request, const DescribeEnsNetLevelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEnsNetLevelOutcomeCallable describeEnsNetLevelCallable(const Model::DescribeEnsNetLevelRequest& request) const; + DescribeEnsNetSaleDistrictOutcome describeEnsNetSaleDistrict(const Model::DescribeEnsNetSaleDistrictRequest &request)const; + void describeEnsNetSaleDistrictAsync(const Model::DescribeEnsNetSaleDistrictRequest& request, const DescribeEnsNetSaleDistrictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEnsNetSaleDistrictOutcomeCallable describeEnsNetSaleDistrictCallable(const Model::DescribeEnsNetSaleDistrictRequest& request) const; + DescribeEnsRegionIdIpv6InfoOutcome describeEnsRegionIdIpv6Info(const Model::DescribeEnsRegionIdIpv6InfoRequest &request)const; + void describeEnsRegionIdIpv6InfoAsync(const Model::DescribeEnsRegionIdIpv6InfoRequest& request, const DescribeEnsRegionIdIpv6InfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEnsRegionIdIpv6InfoOutcomeCallable describeEnsRegionIdIpv6InfoCallable(const Model::DescribeEnsRegionIdIpv6InfoRequest& request) const; + DescribeEnsRegionIdResourceOutcome describeEnsRegionIdResource(const Model::DescribeEnsRegionIdResourceRequest &request)const; + void describeEnsRegionIdResourceAsync(const Model::DescribeEnsRegionIdResourceRequest& request, const DescribeEnsRegionIdResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEnsRegionIdResourceOutcomeCallable describeEnsRegionIdResourceCallable(const Model::DescribeEnsRegionIdResourceRequest& request) const; + DescribeEnsRegionsOutcome describeEnsRegions(const Model::DescribeEnsRegionsRequest &request)const; + void describeEnsRegionsAsync(const Model::DescribeEnsRegionsRequest& request, const DescribeEnsRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEnsRegionsOutcomeCallable describeEnsRegionsCallable(const Model::DescribeEnsRegionsRequest& request) const; + DescribeEnsResourceUsageOutcome describeEnsResourceUsage(const Model::DescribeEnsResourceUsageRequest &request)const; + void describeEnsResourceUsageAsync(const Model::DescribeEnsResourceUsageRequest& request, const DescribeEnsResourceUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEnsResourceUsageOutcomeCallable describeEnsResourceUsageCallable(const Model::DescribeEnsResourceUsageRequest& request) const; + DescribeEpnBandWidthDataOutcome describeEpnBandWidthData(const Model::DescribeEpnBandWidthDataRequest &request)const; + void describeEpnBandWidthDataAsync(const Model::DescribeEpnBandWidthDataRequest& request, const DescribeEpnBandWidthDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEpnBandWidthDataOutcomeCallable describeEpnBandWidthDataCallable(const Model::DescribeEpnBandWidthDataRequest& request) const; + DescribeEpnBandwitdhByInternetChargeTypeOutcome describeEpnBandwitdhByInternetChargeType(const Model::DescribeEpnBandwitdhByInternetChargeTypeRequest &request)const; + void describeEpnBandwitdhByInternetChargeTypeAsync(const Model::DescribeEpnBandwitdhByInternetChargeTypeRequest& request, const DescribeEpnBandwitdhByInternetChargeTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEpnBandwitdhByInternetChargeTypeOutcomeCallable describeEpnBandwitdhByInternetChargeTypeCallable(const Model::DescribeEpnBandwitdhByInternetChargeTypeRequest& request) const; + DescribeEpnInstanceAttributeOutcome describeEpnInstanceAttribute(const Model::DescribeEpnInstanceAttributeRequest &request)const; + void describeEpnInstanceAttributeAsync(const Model::DescribeEpnInstanceAttributeRequest& request, const DescribeEpnInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEpnInstanceAttributeOutcomeCallable describeEpnInstanceAttributeCallable(const Model::DescribeEpnInstanceAttributeRequest& request) const; + DescribeEpnInstancesOutcome describeEpnInstances(const Model::DescribeEpnInstancesRequest &request)const; + void describeEpnInstancesAsync(const Model::DescribeEpnInstancesRequest& request, const DescribeEpnInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEpnInstancesOutcomeCallable describeEpnInstancesCallable(const Model::DescribeEpnInstancesRequest& request) const; + DescribeEpnMeasurementDataOutcome describeEpnMeasurementData(const Model::DescribeEpnMeasurementDataRequest &request)const; + void describeEpnMeasurementDataAsync(const Model::DescribeEpnMeasurementDataRequest& request, const DescribeEpnMeasurementDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEpnMeasurementDataOutcomeCallable describeEpnMeasurementDataCallable(const Model::DescribeEpnMeasurementDataRequest& request) const; + DescribeExportImageInfoOutcome describeExportImageInfo(const Model::DescribeExportImageInfoRequest &request)const; + void describeExportImageInfoAsync(const Model::DescribeExportImageInfoRequest& request, const DescribeExportImageInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeExportImageInfoOutcomeCallable describeExportImageInfoCallable(const Model::DescribeExportImageInfoRequest& request) const; + DescribeExportImageStatusOutcome describeExportImageStatus(const Model::DescribeExportImageStatusRequest &request)const; + void describeExportImageStatusAsync(const Model::DescribeExportImageStatusRequest& request, const DescribeExportImageStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeExportImageStatusOutcomeCallable describeExportImageStatusCallable(const Model::DescribeExportImageStatusRequest& request) const; + DescribeImageInfosOutcome describeImageInfos(const Model::DescribeImageInfosRequest &request)const; + void describeImageInfosAsync(const Model::DescribeImageInfosRequest& request, const DescribeImageInfosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeImageInfosOutcomeCallable describeImageInfosCallable(const Model::DescribeImageInfosRequest& 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; + 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; + 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; + 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; + DescribeInstanceSpecOutcome describeInstanceSpec(const Model::DescribeInstanceSpecRequest &request)const; + void describeInstanceSpecAsync(const Model::DescribeInstanceSpecRequest& request, const DescribeInstanceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeInstanceSpecOutcomeCallable describeInstanceSpecCallable(const Model::DescribeInstanceSpecRequest& 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; + 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; + 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; + 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; + DescribeLoadBalancerAttributeOutcome describeLoadBalancerAttribute(const Model::DescribeLoadBalancerAttributeRequest &request)const; + void describeLoadBalancerAttributeAsync(const Model::DescribeLoadBalancerAttributeRequest& request, const DescribeLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLoadBalancerAttributeOutcomeCallable describeLoadBalancerAttributeCallable(const Model::DescribeLoadBalancerAttributeRequest& request) const; + DescribeLoadBalancerHTTPListenerAttributeOutcome describeLoadBalancerHTTPListenerAttribute(const Model::DescribeLoadBalancerHTTPListenerAttributeRequest &request)const; + void describeLoadBalancerHTTPListenerAttributeAsync(const Model::DescribeLoadBalancerHTTPListenerAttributeRequest& request, const DescribeLoadBalancerHTTPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLoadBalancerHTTPListenerAttributeOutcomeCallable describeLoadBalancerHTTPListenerAttributeCallable(const Model::DescribeLoadBalancerHTTPListenerAttributeRequest& request) const; + DescribeLoadBalancerHTTPSListenerAttributeOutcome describeLoadBalancerHTTPSListenerAttribute(const Model::DescribeLoadBalancerHTTPSListenerAttributeRequest &request)const; + void describeLoadBalancerHTTPSListenerAttributeAsync(const Model::DescribeLoadBalancerHTTPSListenerAttributeRequest& request, const DescribeLoadBalancerHTTPSListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLoadBalancerHTTPSListenerAttributeOutcomeCallable describeLoadBalancerHTTPSListenerAttributeCallable(const Model::DescribeLoadBalancerHTTPSListenerAttributeRequest& request) const; + DescribeLoadBalancerSpecOutcome describeLoadBalancerSpec(const Model::DescribeLoadBalancerSpecRequest &request)const; + void describeLoadBalancerSpecAsync(const Model::DescribeLoadBalancerSpecRequest& request, const DescribeLoadBalancerSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLoadBalancerSpecOutcomeCallable describeLoadBalancerSpecCallable(const Model::DescribeLoadBalancerSpecRequest& request) const; + DescribeLoadBalancerTCPListenerAttributeOutcome describeLoadBalancerTCPListenerAttribute(const Model::DescribeLoadBalancerTCPListenerAttributeRequest &request)const; + void describeLoadBalancerTCPListenerAttributeAsync(const Model::DescribeLoadBalancerTCPListenerAttributeRequest& request, const DescribeLoadBalancerTCPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLoadBalancerTCPListenerAttributeOutcomeCallable describeLoadBalancerTCPListenerAttributeCallable(const Model::DescribeLoadBalancerTCPListenerAttributeRequest& request) const; + DescribeLoadBalancerUDPListenerAttributeOutcome describeLoadBalancerUDPListenerAttribute(const Model::DescribeLoadBalancerUDPListenerAttributeRequest &request)const; + void describeLoadBalancerUDPListenerAttributeAsync(const Model::DescribeLoadBalancerUDPListenerAttributeRequest& request, const DescribeLoadBalancerUDPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLoadBalancerUDPListenerAttributeOutcomeCallable describeLoadBalancerUDPListenerAttributeCallable(const Model::DescribeLoadBalancerUDPListenerAttributeRequest& request) const; + DescribeLoadBalancersOutcome describeLoadBalancers(const Model::DescribeLoadBalancersRequest &request)const; + void describeLoadBalancersAsync(const Model::DescribeLoadBalancersRequest& request, const DescribeLoadBalancersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLoadBalancersOutcomeCallable describeLoadBalancersCallable(const Model::DescribeLoadBalancersRequest& request) const; + DescribeMeasurementDataOutcome describeMeasurementData(const Model::DescribeMeasurementDataRequest &request)const; + void describeMeasurementDataAsync(const Model::DescribeMeasurementDataRequest& request, const DescribeMeasurementDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMeasurementDataOutcomeCallable describeMeasurementDataCallable(const Model::DescribeMeasurementDataRequest& request) const; + DescribeNetworkAttributeOutcome describeNetworkAttribute(const Model::DescribeNetworkAttributeRequest &request)const; + void describeNetworkAttributeAsync(const Model::DescribeNetworkAttributeRequest& request, const DescribeNetworkAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNetworkAttributeOutcomeCallable describeNetworkAttributeCallable(const Model::DescribeNetworkAttributeRequest& 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; + DescribeNetworksOutcome describeNetworks(const Model::DescribeNetworksRequest &request)const; + void describeNetworksAsync(const Model::DescribeNetworksRequest& request, const DescribeNetworksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNetworksOutcomeCallable describeNetworksCallable(const Model::DescribeNetworksRequest& request) const; + DescribePrePaidInstanceStockOutcome describePrePaidInstanceStock(const Model::DescribePrePaidInstanceStockRequest &request)const; + void describePrePaidInstanceStockAsync(const Model::DescribePrePaidInstanceStockRequest& request, const DescribePrePaidInstanceStockAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePrePaidInstanceStockOutcomeCallable describePrePaidInstanceStockCallable(const Model::DescribePrePaidInstanceStockRequest& 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; + DescribeRegionIspsOutcome describeRegionIsps(const Model::DescribeRegionIspsRequest &request)const; + void describeRegionIspsAsync(const Model::DescribeRegionIspsRequest& request, const DescribeRegionIspsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionIspsOutcomeCallable describeRegionIspsCallable(const Model::DescribeRegionIspsRequest& request) const; + DescribeReservedResourceOutcome describeReservedResource(const Model::DescribeReservedResourceRequest &request)const; + void describeReservedResourceAsync(const Model::DescribeReservedResourceRequest& request, const DescribeReservedResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeReservedResourceOutcomeCallable describeReservedResourceCallable(const Model::DescribeReservedResourceRequest& 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; + 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; + DescribeServcieScheduleOutcome describeServcieSchedule(const Model::DescribeServcieScheduleRequest &request)const; + void describeServcieScheduleAsync(const Model::DescribeServcieScheduleRequest& request, const DescribeServcieScheduleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeServcieScheduleOutcomeCallable describeServcieScheduleCallable(const Model::DescribeServcieScheduleRequest& request) const; + DescribeUserBandWidthDataOutcome describeUserBandWidthData(const Model::DescribeUserBandWidthDataRequest &request)const; + void describeUserBandWidthDataAsync(const Model::DescribeUserBandWidthDataRequest& request, const DescribeUserBandWidthDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUserBandWidthDataOutcomeCallable describeUserBandWidthDataCallable(const Model::DescribeUserBandWidthDataRequest& 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; + 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; + DistApplicationDataOutcome distApplicationData(const Model::DistApplicationDataRequest &request)const; + void distApplicationDataAsync(const Model::DistApplicationDataRequest& request, const DistApplicationDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DistApplicationDataOutcomeCallable distApplicationDataCallable(const Model::DistApplicationDataRequest& request) const; + ExportBillDetailDataOutcome exportBillDetailData(const Model::ExportBillDetailDataRequest &request)const; + void exportBillDetailDataAsync(const Model::ExportBillDetailDataRequest& request, const ExportBillDetailDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExportBillDetailDataOutcomeCallable exportBillDetailDataCallable(const Model::ExportBillDetailDataRequest& 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; + ExportMeasurementDataOutcome exportMeasurementData(const Model::ExportMeasurementDataRequest &request)const; + void exportMeasurementDataAsync(const Model::ExportMeasurementDataRequest& request, const ExportMeasurementDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExportMeasurementDataOutcomeCallable exportMeasurementDataCallable(const Model::ExportMeasurementDataRequest& request) const; + GetDeviceInternetPortOutcome getDeviceInternetPort(const Model::GetDeviceInternetPortRequest &request)const; + void getDeviceInternetPortAsync(const Model::GetDeviceInternetPortRequest& request, const GetDeviceInternetPortAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDeviceInternetPortOutcomeCallable getDeviceInternetPortCallable(const Model::GetDeviceInternetPortRequest& request) const; + GetVmListOutcome getVmList(const Model::GetVmListRequest &request)const; + void getVmListAsync(const Model::GetVmListRequest& request, const GetVmListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVmListOutcomeCallable getVmListCallable(const Model::GetVmListRequest& 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; + JoinPublicIpsToEpnInstanceOutcome joinPublicIpsToEpnInstance(const Model::JoinPublicIpsToEpnInstanceRequest &request)const; + void joinPublicIpsToEpnInstanceAsync(const Model::JoinPublicIpsToEpnInstanceRequest& request, const JoinPublicIpsToEpnInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + JoinPublicIpsToEpnInstanceOutcomeCallable joinPublicIpsToEpnInstanceCallable(const Model::JoinPublicIpsToEpnInstanceRequest& 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; + JoinVSwitchesToEpnInstanceOutcome joinVSwitchesToEpnInstance(const Model::JoinVSwitchesToEpnInstanceRequest &request)const; + void joinVSwitchesToEpnInstanceAsync(const Model::JoinVSwitchesToEpnInstanceRequest& request, const JoinVSwitchesToEpnInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + JoinVSwitchesToEpnInstanceOutcomeCallable joinVSwitchesToEpnInstanceCallable(const Model::JoinVSwitchesToEpnInstanceRequest& 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; + ListApplicationsOutcome listApplications(const Model::ListApplicationsRequest &request)const; + void listApplicationsAsync(const Model::ListApplicationsRequest& request, const ListApplicationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListApplicationsOutcomeCallable listApplicationsCallable(const Model::ListApplicationsRequest& request) const; + MigrateVmOutcome migrateVm(const Model::MigrateVmRequest &request)const; + void migrateVmAsync(const Model::MigrateVmRequest& request, const MigrateVmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MigrateVmOutcomeCallable migrateVmCallable(const Model::MigrateVmRequest& request) const; + ModifyEnsEipAddressAttributeOutcome modifyEnsEipAddressAttribute(const Model::ModifyEnsEipAddressAttributeRequest &request)const; + void modifyEnsEipAddressAttributeAsync(const Model::ModifyEnsEipAddressAttributeRequest& request, const ModifyEnsEipAddressAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyEnsEipAddressAttributeOutcomeCallable modifyEnsEipAddressAttributeCallable(const Model::ModifyEnsEipAddressAttributeRequest& request) const; + ModifyEpnInstanceOutcome modifyEpnInstance(const Model::ModifyEpnInstanceRequest &request)const; + void modifyEpnInstanceAsync(const Model::ModifyEpnInstanceRequest& request, const ModifyEpnInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyEpnInstanceOutcomeCallable modifyEpnInstanceCallable(const Model::ModifyEpnInstanceRequest& 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; + 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; + 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; + 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; + ModifyLoadBalancerAttributeOutcome modifyLoadBalancerAttribute(const Model::ModifyLoadBalancerAttributeRequest &request)const; + void modifyLoadBalancerAttributeAsync(const Model::ModifyLoadBalancerAttributeRequest& request, const ModifyLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyLoadBalancerAttributeOutcomeCallable modifyLoadBalancerAttributeCallable(const Model::ModifyLoadBalancerAttributeRequest& request) const; + ModifyNetworkAttributeOutcome modifyNetworkAttribute(const Model::ModifyNetworkAttributeRequest &request)const; + void modifyNetworkAttributeAsync(const Model::ModifyNetworkAttributeRequest& request, const ModifyNetworkAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyNetworkAttributeOutcomeCallable modifyNetworkAttributeCallable(const Model::ModifyNetworkAttributeRequest& 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; + 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; + PreCreateEnsServiceOutcome preCreateEnsService(const Model::PreCreateEnsServiceRequest &request)const; + void preCreateEnsServiceAsync(const Model::PreCreateEnsServiceRequest& request, const PreCreateEnsServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PreCreateEnsServiceOutcomeCallable preCreateEnsServiceCallable(const Model::PreCreateEnsServiceRequest& request) const; + PushApplicationDataOutcome pushApplicationData(const Model::PushApplicationDataRequest &request)const; + void pushApplicationDataAsync(const Model::PushApplicationDataRequest& request, const PushApplicationDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PushApplicationDataOutcomeCallable pushApplicationDataCallable(const Model::PushApplicationDataRequest& 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; + 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; + 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; + ReleaseInstanceOutcome releaseInstance(const Model::ReleaseInstanceRequest &request)const; + void releaseInstanceAsync(const Model::ReleaseInstanceRequest& request, const ReleaseInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseInstanceOutcomeCallable releaseInstanceCallable(const Model::ReleaseInstanceRequest& request) const; + ReleasePostPaidInstanceOutcome releasePostPaidInstance(const Model::ReleasePostPaidInstanceRequest &request)const; + void releasePostPaidInstanceAsync(const Model::ReleasePostPaidInstanceRequest& request, const ReleasePostPaidInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleasePostPaidInstanceOutcomeCallable releasePostPaidInstanceCallable(const Model::ReleasePostPaidInstanceRequest& request) const; + ReleasePrePaidInstanceOutcome releasePrePaidInstance(const Model::ReleasePrePaidInstanceRequest &request)const; + void releasePrePaidInstanceAsync(const Model::ReleasePrePaidInstanceRequest& request, const ReleasePrePaidInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleasePrePaidInstanceOutcomeCallable releasePrePaidInstanceCallable(const Model::ReleasePrePaidInstanceRequest& request) const; + RemoveBackendServersOutcome removeBackendServers(const Model::RemoveBackendServersRequest &request)const; + void removeBackendServersAsync(const Model::RemoveBackendServersRequest& request, const RemoveBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveBackendServersOutcomeCallable removeBackendServersCallable(const Model::RemoveBackendServersRequest& request) const; + RemovePublicIpsFromEpnInstanceOutcome removePublicIpsFromEpnInstance(const Model::RemovePublicIpsFromEpnInstanceRequest &request)const; + void removePublicIpsFromEpnInstanceAsync(const Model::RemovePublicIpsFromEpnInstanceRequest& request, const RemovePublicIpsFromEpnInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemovePublicIpsFromEpnInstanceOutcomeCallable removePublicIpsFromEpnInstanceCallable(const Model::RemovePublicIpsFromEpnInstanceRequest& request) const; + RemoveVSwitchesFromEpnInstanceOutcome removeVSwitchesFromEpnInstance(const Model::RemoveVSwitchesFromEpnInstanceRequest &request)const; + void removeVSwitchesFromEpnInstanceAsync(const Model::RemoveVSwitchesFromEpnInstanceRequest& request, const RemoveVSwitchesFromEpnInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveVSwitchesFromEpnInstanceOutcomeCallable removeVSwitchesFromEpnInstanceCallable(const Model::RemoveVSwitchesFromEpnInstanceRequest& 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; + RescaleApplicationOutcome rescaleApplication(const Model::RescaleApplicationRequest &request)const; + void rescaleApplicationAsync(const Model::RescaleApplicationRequest& request, const RescaleApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RescaleApplicationOutcomeCallable rescaleApplicationCallable(const Model::RescaleApplicationRequest& request) const; + RescaleDeviceServiceOutcome rescaleDeviceService(const Model::RescaleDeviceServiceRequest &request)const; + void rescaleDeviceServiceAsync(const Model::RescaleDeviceServiceRequest& request, const RescaleDeviceServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RescaleDeviceServiceOutcomeCallable rescaleDeviceServiceCallable(const Model::RescaleDeviceServiceRequest& request) const; + ResetDeviceInstanceOutcome resetDeviceInstance(const Model::ResetDeviceInstanceRequest &request)const; + void resetDeviceInstanceAsync(const Model::ResetDeviceInstanceRequest& request, const ResetDeviceInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetDeviceInstanceOutcomeCallable resetDeviceInstanceCallable(const Model::ResetDeviceInstanceRequest& request) const; + RestartDeviceInstanceOutcome restartDeviceInstance(const Model::RestartDeviceInstanceRequest &request)const; + void restartDeviceInstanceAsync(const Model::RestartDeviceInstanceRequest& request, const RestartDeviceInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestartDeviceInstanceOutcomeCallable restartDeviceInstanceCallable(const Model::RestartDeviceInstanceRequest& 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; + 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; + RollbackApplicationOutcome rollbackApplication(const Model::RollbackApplicationRequest &request)const; + void rollbackApplicationAsync(const Model::RollbackApplicationRequest& request, const RollbackApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RollbackApplicationOutcomeCallable rollbackApplicationCallable(const Model::RollbackApplicationRequest& 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; + RunServiceScheduleOutcome runServiceSchedule(const Model::RunServiceScheduleRequest &request)const; + void runServiceScheduleAsync(const Model::RunServiceScheduleRequest& request, const RunServiceScheduleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RunServiceScheduleOutcomeCallable runServiceScheduleCallable(const Model::RunServiceScheduleRequest& request) const; + SchedulePodOutcome schedulePod(const Model::SchedulePodRequest &request)const; + void schedulePodAsync(const Model::SchedulePodRequest& request, const SchedulePodAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SchedulePodOutcomeCallable schedulePodCallable(const Model::SchedulePodRequest& request) const; + SetBackendServersOutcome setBackendServers(const Model::SetBackendServersRequest &request)const; + void setBackendServersAsync(const Model::SetBackendServersRequest& request, const SetBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetBackendServersOutcomeCallable setBackendServersCallable(const Model::SetBackendServersRequest& request) const; + SetLoadBalancerHTTPListenerAttributeOutcome setLoadBalancerHTTPListenerAttribute(const Model::SetLoadBalancerHTTPListenerAttributeRequest &request)const; + void setLoadBalancerHTTPListenerAttributeAsync(const Model::SetLoadBalancerHTTPListenerAttributeRequest& request, const SetLoadBalancerHTTPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetLoadBalancerHTTPListenerAttributeOutcomeCallable setLoadBalancerHTTPListenerAttributeCallable(const Model::SetLoadBalancerHTTPListenerAttributeRequest& request) const; + SetLoadBalancerHTTPSListenerAttributeOutcome setLoadBalancerHTTPSListenerAttribute(const Model::SetLoadBalancerHTTPSListenerAttributeRequest &request)const; + void setLoadBalancerHTTPSListenerAttributeAsync(const Model::SetLoadBalancerHTTPSListenerAttributeRequest& request, const SetLoadBalancerHTTPSListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetLoadBalancerHTTPSListenerAttributeOutcomeCallable setLoadBalancerHTTPSListenerAttributeCallable(const Model::SetLoadBalancerHTTPSListenerAttributeRequest& request) const; + SetLoadBalancerStatusOutcome setLoadBalancerStatus(const Model::SetLoadBalancerStatusRequest &request)const; + void setLoadBalancerStatusAsync(const Model::SetLoadBalancerStatusRequest& request, const SetLoadBalancerStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetLoadBalancerStatusOutcomeCallable setLoadBalancerStatusCallable(const Model::SetLoadBalancerStatusRequest& request) const; + SetLoadBalancerTCPListenerAttributeOutcome setLoadBalancerTCPListenerAttribute(const Model::SetLoadBalancerTCPListenerAttributeRequest &request)const; + void setLoadBalancerTCPListenerAttributeAsync(const Model::SetLoadBalancerTCPListenerAttributeRequest& request, const SetLoadBalancerTCPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetLoadBalancerTCPListenerAttributeOutcomeCallable setLoadBalancerTCPListenerAttributeCallable(const Model::SetLoadBalancerTCPListenerAttributeRequest& request) const; + SetLoadBalancerUDPListenerAttributeOutcome setLoadBalancerUDPListenerAttribute(const Model::SetLoadBalancerUDPListenerAttributeRequest &request)const; + void setLoadBalancerUDPListenerAttributeAsync(const Model::SetLoadBalancerUDPListenerAttributeRequest& request, const SetLoadBalancerUDPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetLoadBalancerUDPListenerAttributeOutcomeCallable setLoadBalancerUDPListenerAttributeCallable(const Model::SetLoadBalancerUDPListenerAttributeRequest& request) const; + StartEpnInstanceOutcome startEpnInstance(const Model::StartEpnInstanceRequest &request)const; + void startEpnInstanceAsync(const Model::StartEpnInstanceRequest& request, const StartEpnInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartEpnInstanceOutcomeCallable startEpnInstanceCallable(const Model::StartEpnInstanceRequest& 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; + StartLoadBalancerListenerOutcome startLoadBalancerListener(const Model::StartLoadBalancerListenerRequest &request)const; + void startLoadBalancerListenerAsync(const Model::StartLoadBalancerListenerRequest& request, const StartLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartLoadBalancerListenerOutcomeCallable startLoadBalancerListenerCallable(const Model::StartLoadBalancerListenerRequest& request) const; + StopEpnInstanceOutcome stopEpnInstance(const Model::StopEpnInstanceRequest &request)const; + void stopEpnInstanceAsync(const Model::StopEpnInstanceRequest& request, const StopEpnInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopEpnInstanceOutcomeCallable stopEpnInstanceCallable(const Model::StopEpnInstanceRequest& 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; + StopLoadBalancerListenerOutcome stopLoadBalancerListener(const Model::StopLoadBalancerListenerRequest &request)const; + void stopLoadBalancerListenerAsync(const Model::StopLoadBalancerListenerRequest& request, const StopLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopLoadBalancerListenerOutcomeCallable stopLoadBalancerListenerCallable(const Model::StopLoadBalancerListenerRequest& request) const; + UnAssociateEnsEipAddressOutcome unAssociateEnsEipAddress(const Model::UnAssociateEnsEipAddressRequest &request)const; + void unAssociateEnsEipAddressAsync(const Model::UnAssociateEnsEipAddressRequest& request, const UnAssociateEnsEipAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnAssociateEnsEipAddressOutcomeCallable unAssociateEnsEipAddressCallable(const Model::UnAssociateEnsEipAddressRequest& 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; + UpgradeApplicationOutcome upgradeApplication(const Model::UpgradeApplicationRequest &request)const; + void upgradeApplicationAsync(const Model::UpgradeApplicationRequest& request, const UpgradeApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeApplicationOutcomeCallable upgradeApplicationCallable(const Model::UpgradeApplicationRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_ENS_ENSCLIENT_H_ diff --git a/ens/include/alibabacloud/ens/EnsExport.h b/ens/include/alibabacloud/ens/EnsExport.h new file mode 100644 index 000000000..584e4a12c --- /dev/null +++ b/ens/include/alibabacloud/ens/EnsExport.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_ENS_ENSEXPORT_H_ +#define ALIBABACLOUD_ENS_ENSEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_ENS_LIBRARY) +# define ALIBABACLOUD_ENS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_ENS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_ENS_EXPORT +#endif + +#endif // !ALIBABACLOUD_ENS_ENSEXPORT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/AddBackendServersRequest.h b/ens/include/alibabacloud/ens/model/AddBackendServersRequest.h new file mode 100644 index 000000000..1e9a4eff3 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AddBackendServersRequest.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_ENS_MODEL_ADDBACKENDSERVERSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_ADDBACKENDSERVERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT AddBackendServersRequest : public RpcServiceRequest { +public: + struct BackendServers { + int port; + std::string ip; + int weight; + std::string type; + std::string serverId; + }; + AddBackendServersRequest(); + ~AddBackendServersRequest(); + std::vector getBackendServers() const; + void setBackendServers(const std::vector &backendServers); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::vector backendServers_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_ADDBACKENDSERVERSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/AddBackendServersResult.h b/ens/include/alibabacloud/ens/model/AddBackendServersResult.h new file mode 100644 index 000000000..b2f4be4c7 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AddBackendServersResult.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_ENS_MODEL_ADDBACKENDSERVERSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_ADDBACKENDSERVERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT AddBackendServersResult : public ServiceResult + { + public: + struct BackendServer + { + std::string type; + std::string serverId; + std::string ip; + int port; + int weight; + }; + + + AddBackendServersResult(); + explicit AddBackendServersResult(const std::string &payload); + ~AddBackendServersResult(); + std::vector getBackendServers()const; + + protected: + void parse(const std::string &payload); + private: + std::vector backendServers_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_ADDBACKENDSERVERSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/AddDeviceInternetPortRequest.h b/ens/include/alibabacloud/ens/model/AddDeviceInternetPortRequest.h new file mode 100644 index 000000000..17182e67b --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AddDeviceInternetPortRequest.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_ENS_MODEL_ADDDEVICEINTERNETPORTREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_ADDDEVICEINTERNETPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT AddDeviceInternetPortRequest : public RpcServiceRequest { +public: + AddDeviceInternetPortRequest(); + ~AddDeviceInternetPortRequest(); + std::string getISP() const; + void setISP(const std::string &iSP); + std::string getInternalIp() const; + void setInternalIp(const std::string &internalIp); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNatType() const; + void setNatType(const std::string &natType); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getInternalPort() const; + void setInternalPort(const std::string &internalPort); + +private: + std::string iSP_; + std::string internalIp_; + std::string regionId_; + std::string natType_; + std::string instanceId_; + std::string internalPort_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_ADDDEVICEINTERNETPORTREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/AddDeviceInternetPortResult.h b/ens/include/alibabacloud/ens/model/AddDeviceInternetPortResult.h new file mode 100644 index 000000000..9852edb16 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AddDeviceInternetPortResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_ADDDEVICEINTERNETPORTRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_ADDDEVICEINTERNETPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT AddDeviceInternetPortResult : public ServiceResult + { + public: + + + AddDeviceInternetPortResult(); + explicit AddDeviceInternetPortResult(const std::string &payload); + ~AddDeviceInternetPortResult(); + std::vector getRuleIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector ruleIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_ADDDEVICEINTERNETPORTRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/AddNetworkInterfaceToInstanceRequest.h b/ens/include/alibabacloud/ens/model/AddNetworkInterfaceToInstanceRequest.h new file mode 100644 index 000000000..c81fdad58 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AddNetworkInterfaceToInstanceRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_ADDNETWORKINTERFACETOINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_ADDNETWORKINTERFACETOINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT AddNetworkInterfaceToInstanceRequest : public RpcServiceRequest { +public: + AddNetworkInterfaceToInstanceRequest(); + ~AddNetworkInterfaceToInstanceRequest(); + std::string getNetworks() const; + void setNetworks(const std::string &networks); + bool getAutoStart() const; + void setAutoStart(bool autoStart); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string networks_; + bool autoStart_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_ADDNETWORKINTERFACETOINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/AddNetworkInterfaceToInstanceResult.h b/ens/include/alibabacloud/ens/model/AddNetworkInterfaceToInstanceResult.h new file mode 100644 index 000000000..33ba34354 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AddNetworkInterfaceToInstanceResult.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_ENS_MODEL_ADDNETWORKINTERFACETOINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_ADDNETWORKINTERFACETOINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT AddNetworkInterfaceToInstanceResult : public ServiceResult + { + public: + + + AddNetworkInterfaceToInstanceResult(); + explicit AddNetworkInterfaceToInstanceResult(const std::string &payload); + ~AddNetworkInterfaceToInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_ADDNETWORKINTERFACETOINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/AllocateEipAddressRequest.h b/ens/include/alibabacloud/ens/model/AllocateEipAddressRequest.h new file mode 100644 index 000000000..1fa5c19f2 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AllocateEipAddressRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT AllocateEipAddressRequest : public RpcServiceRequest { +public: + AllocateEipAddressRequest(); + ~AllocateEipAddressRequest(); + int getMinCount() const; + void setMinCount(int minCount); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + int getCount() const; + void setCount(int count); + +private: + int minCount_; + std::string ensRegionId_; + int count_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/AllocateEipAddressResult.h b/ens/include/alibabacloud/ens/model/AllocateEipAddressResult.h new file mode 100644 index 000000000..d78e349e2 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AllocateEipAddressResult.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_ENS_MODEL_ALLOCATEEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_ALLOCATEEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT AllocateEipAddressResult : public ServiceResult + { + public: + struct EipAddress + { + std::string eip; + }; + + + AllocateEipAddressResult(); + explicit AllocateEipAddressResult(const std::string &payload); + ~AllocateEipAddressResult(); + std::vector getEipAddresses()const; + std::string getBizStatusCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector eipAddresses_; + std::string bizStatusCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_ALLOCATEEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/AssociateEipAddressRequest.h b/ens/include/alibabacloud/ens/model/AssociateEipAddressRequest.h new file mode 100644 index 000000000..a40890f3b --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AssociateEipAddressRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT AssociateEipAddressRequest : public RpcServiceRequest { +public: + AssociateEipAddressRequest(); + ~AssociateEipAddressRequest(); + std::string getEip() const; + void setEip(const std::string &eip); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getInstanceIdInternetIp() const; + void setInstanceIdInternetIp(const std::string &instanceIdInternetIp); + +private: + std::string eip_; + std::string ensRegionId_; + std::string instanceIdInternetIp_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/AssociateEipAddressResult.h b/ens/include/alibabacloud/ens/model/AssociateEipAddressResult.h new file mode 100644 index 000000000..cff656b94 --- /dev/null +++ b/ens/include/alibabacloud/ens/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_ENS_MODEL_ASSOCIATEEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_ASSOCIATEEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT AssociateEipAddressResult : public ServiceResult + { + public: + + + AssociateEipAddressResult(); + explicit AssociateEipAddressResult(const std::string &payload); + ~AssociateEipAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_ASSOCIATEEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/AssociateEnsEipAddressRequest.h b/ens/include/alibabacloud/ens/model/AssociateEnsEipAddressRequest.h new file mode 100644 index 000000000..0c5a586ba --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AssociateEnsEipAddressRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_ASSOCIATEENSEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_ASSOCIATEENSEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT AssociateEnsEipAddressRequest : public RpcServiceRequest { +public: + AssociateEnsEipAddressRequest(); + ~AssociateEnsEipAddressRequest(); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string allocationId_; + std::string instanceType_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_ASSOCIATEENSEIPADDRESSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/AssociateEnsEipAddressResult.h b/ens/include/alibabacloud/ens/model/AssociateEnsEipAddressResult.h new file mode 100644 index 000000000..9942a88b9 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AssociateEnsEipAddressResult.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_ENS_MODEL_ASSOCIATEENSEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_ASSOCIATEENSEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT AssociateEnsEipAddressResult : public ServiceResult + { + public: + + + AssociateEnsEipAddressResult(); + explicit AssociateEnsEipAddressResult(const std::string &payload); + ~AssociateEnsEipAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_ASSOCIATEENSEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/AttachDiskRequest.h b/ens/include/alibabacloud/ens/model/AttachDiskRequest.h new file mode 100644 index 000000000..7a242e017 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AttachDiskRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_ATTACHDISKREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_ATTACHDISKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT AttachDiskRequest : public RpcServiceRequest { +public: + AttachDiskRequest(); + ~AttachDiskRequest(); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + std::string getDeleteWithInstance() const; + void setDeleteWithInstance(const std::string &deleteWithInstance); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string diskId_; + std::string deleteWithInstance_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_ATTACHDISKREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/AttachDiskResult.h b/ens/include/alibabacloud/ens/model/AttachDiskResult.h new file mode 100644 index 000000000..180e6e6c8 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AttachDiskResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_ATTACHDISKRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_ATTACHDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT AttachDiskResult : public ServiceResult + { + public: + + + AttachDiskResult(); + explicit AttachDiskResult(const std::string &payload); + ~AttachDiskResult(); + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_ATTACHDISKRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/AttachEnsInstancesRequest.h b/ens/include/alibabacloud/ens/model/AttachEnsInstancesRequest.h new file mode 100644 index 000000000..41c7057be --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AttachEnsInstancesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_ATTACHENSINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_ATTACHENSINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT AttachEnsInstancesRequest : public RpcServiceRequest { +public: + AttachEnsInstancesRequest(); + ~AttachEnsInstancesRequest(); + std::string getScripts() const; + void setScripts(const std::string &scripts); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string scripts_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_ATTACHENSINSTANCESREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/AttachEnsInstancesResult.h b/ens/include/alibabacloud/ens/model/AttachEnsInstancesResult.h new file mode 100644 index 000000000..ad3e46e1c --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AttachEnsInstancesResult.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_ENS_MODEL_ATTACHENSINSTANCESRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_ATTACHENSINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT AttachEnsInstancesResult : public ServiceResult + { + public: + + + AttachEnsInstancesResult(); + explicit AttachEnsInstancesResult(const std::string &payload); + ~AttachEnsInstancesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_ATTACHENSINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/AuthorizeSecurityGroupEgressRequest.h b/ens/include/alibabacloud/ens/model/AuthorizeSecurityGroupEgressRequest.h new file mode 100644 index 000000000..7317a3810 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AuthorizeSecurityGroupEgressRequest.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_ENS_MODEL_AUTHORIZESECURITYGROUPEGRESSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_AUTHORIZESECURITYGROUPEGRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT AuthorizeSecurityGroupEgressRequest : public RpcServiceRequest { +public: + AuthorizeSecurityGroupEgressRequest(); + ~AuthorizeSecurityGroupEgressRequest(); + std::string getSourcePortRange() const; + void setSourcePortRange(const std::string &sourcePortRange); + std::string getPortRange() const; + void setPortRange(const std::string &portRange); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + int getPriority() const; + void setPriority(int priority); + std::string getDestCidrIp() const; + void setDestCidrIp(const std::string &destCidrIp); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getPolicy() const; + void setPolicy(const std::string &policy); + +private: + std::string sourcePortRange_; + std::string portRange_; + std::string ipProtocol_; + int priority_; + std::string destCidrIp_; + std::string securityGroupId_; + std::string policy_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_AUTHORIZESECURITYGROUPEGRESSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/AuthorizeSecurityGroupEgressResult.h b/ens/include/alibabacloud/ens/model/AuthorizeSecurityGroupEgressResult.h new file mode 100644 index 000000000..e8b8f9e83 --- /dev/null +++ b/ens/include/alibabacloud/ens/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_ENS_MODEL_AUTHORIZESECURITYGROUPEGRESSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_AUTHORIZESECURITYGROUPEGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT AuthorizeSecurityGroupEgressResult : public ServiceResult + { + public: + + + AuthorizeSecurityGroupEgressResult(); + explicit AuthorizeSecurityGroupEgressResult(const std::string &payload); + ~AuthorizeSecurityGroupEgressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_AUTHORIZESECURITYGROUPEGRESSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/AuthorizeSecurityGroupRequest.h b/ens/include/alibabacloud/ens/model/AuthorizeSecurityGroupRequest.h new file mode 100644 index 000000000..bf69b7f9f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/AuthorizeSecurityGroupRequest.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_ENS_MODEL_AUTHORIZESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_AUTHORIZESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT AuthorizeSecurityGroupRequest : public RpcServiceRequest { +public: + AuthorizeSecurityGroupRequest(); + ~AuthorizeSecurityGroupRequest(); + std::string getSourcePortRange() const; + void setSourcePortRange(const std::string &sourcePortRange); + std::string getPortRange() const; + void setPortRange(const std::string &portRange); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getSourceCidrIp() const; + void setSourceCidrIp(const std::string &sourceCidrIp); + int getPriority() const; + void setPriority(int priority); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getPolicy() const; + void setPolicy(const std::string &policy); + +private: + std::string sourcePortRange_; + std::string portRange_; + std::string ipProtocol_; + std::string sourceCidrIp_; + int priority_; + std::string securityGroupId_; + std::string policy_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_AUTHORIZESECURITYGROUPREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/AuthorizeSecurityGroupResult.h b/ens/include/alibabacloud/ens/model/AuthorizeSecurityGroupResult.h new file mode 100644 index 000000000..492219e49 --- /dev/null +++ b/ens/include/alibabacloud/ens/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_ENS_MODEL_AUTHORIZESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_AUTHORIZESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT AuthorizeSecurityGroupResult : public ServiceResult + { + public: + + + AuthorizeSecurityGroupResult(); + explicit AuthorizeSecurityGroupResult(const std::string &payload); + ~AuthorizeSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_AUTHORIZESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CheckQuotaRequest.h b/ens/include/alibabacloud/ens/model/CheckQuotaRequest.h new file mode 100644 index 000000000..bb3ada9f1 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CheckQuotaRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CHECKQUOTAREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CHECKQUOTAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CheckQuotaRequest : public RpcServiceRequest { +public: + CheckQuotaRequest(); + ~CheckQuotaRequest(); + std::string getGroupUuid() const; + void setGroupUuid(const std::string &groupUuid); + std::string getResourceAttribute() const; + void setResourceAttribute(const std::string &resourceAttribute); + long getAliUid() const; + void setAliUid(long aliUid); + +private: + std::string groupUuid_; + std::string resourceAttribute_; + long aliUid_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CHECKQUOTAREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CheckQuotaResult.h b/ens/include/alibabacloud/ens/model/CheckQuotaResult.h new file mode 100644 index 000000000..28e374f38 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CheckQuotaResult.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_ENS_MODEL_CHECKQUOTARESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CHECKQUOTARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CheckQuotaResult : public ServiceResult + { + public: + + + CheckQuotaResult(); + explicit CheckQuotaResult(const std::string &payload); + ~CheckQuotaResult(); + std::string getMsg()const; + std::string getDesc()const; + std::string getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string desc_; + std::string data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CHECKQUOTARESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ConfigureSecurityGroupPermissionsRequest.h b/ens/include/alibabacloud/ens/model/ConfigureSecurityGroupPermissionsRequest.h new file mode 100644 index 000000000..7db655956 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ConfigureSecurityGroupPermissionsRequest.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_ENS_MODEL_CONFIGURESECURITYGROUPPERMISSIONSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CONFIGURESECURITYGROUPPERMISSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ConfigureSecurityGroupPermissionsRequest : public RpcServiceRequest { +public: + struct RevokePermissions { + std::string sourcePortRange; + std::string portRange; + std::string ipProtocol; + std::string sourceCidrIp; + int priority; + std::string destCidrIp; + std::string direction; + std::string policy; + }; + struct AuthorizePermissions { + std::string sourcePortRange; + std::string portRange; + std::string ipProtocol; + std::string sourceCidrIp; + std::string description; + int priority; + std::string destCidrIp; + std::string direction; + std::string policy; + }; + ConfigureSecurityGroupPermissionsRequest(); + ~ConfigureSecurityGroupPermissionsRequest(); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::vector getRevokePermissions() const; + void setRevokePermissions(const std::vector &revokePermissions); + std::vector getAuthorizePermissions() const; + void setAuthorizePermissions(const std::vector &authorizePermissions); + +private: + std::string securityGroupId_; + std::vector revokePermissions_; + std::vector authorizePermissions_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CONFIGURESECURITYGROUPPERMISSIONSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ConfigureSecurityGroupPermissionsResult.h b/ens/include/alibabacloud/ens/model/ConfigureSecurityGroupPermissionsResult.h new file mode 100644 index 000000000..7a97fe94c --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ConfigureSecurityGroupPermissionsResult.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_ENS_MODEL_CONFIGURESECURITYGROUPPERMISSIONSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CONFIGURESECURITYGROUPPERMISSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ConfigureSecurityGroupPermissionsResult : public ServiceResult + { + public: + + + ConfigureSecurityGroupPermissionsResult(); + explicit ConfigureSecurityGroupPermissionsResult(const std::string &payload); + ~ConfigureSecurityGroupPermissionsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CONFIGURESECURITYGROUPPERMISSIONSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateApplicationRequest.h b/ens/include/alibabacloud/ens/model/CreateApplicationRequest.h new file mode 100644 index 000000000..66b19422b --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateApplicationRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateApplicationRequest : public RpcServiceRequest { +public: + CreateApplicationRequest(); + ~CreateApplicationRequest(); + std::string get_Template() const; + void set_Template(const std::string &_template); + int getTimeout() const; + void setTimeout(int timeout); + +private: + std::string _template_; + int timeout_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEAPPLICATIONREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateApplicationResult.h b/ens/include/alibabacloud/ens/model/CreateApplicationResult.h new file mode 100644 index 000000000..0e03d20b2 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateApplicationResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateApplicationResult : public ServiceResult + { + public: + + + CreateApplicationResult(); + explicit CreateApplicationResult(const std::string &payload); + ~CreateApplicationResult(); + std::string getAppId()const; + + protected: + void parse(const std::string &payload); + private: + std::string appId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateDiskBuyOrderRequest.h b/ens/include/alibabacloud/ens/model/CreateDiskBuyOrderRequest.h new file mode 100644 index 000000000..e38263f2d --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateDiskBuyOrderRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEDISKBUYORDERREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEDISKBUYORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateDiskBuyOrderRequest : public RpcServiceRequest { +public: + CreateDiskBuyOrderRequest(); + ~CreateDiskBuyOrderRequest(); + std::string getOrderDetails() const; + void setOrderDetails(const std::string &orderDetails); + +private: + std::string orderDetails_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEDISKBUYORDERREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateDiskBuyOrderResult.h b/ens/include/alibabacloud/ens/model/CreateDiskBuyOrderResult.h new file mode 100644 index 000000000..853f1f0a9 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateDiskBuyOrderResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEDISKBUYORDERRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEDISKBUYORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateDiskBuyOrderResult : public ServiceResult + { + public: + + + CreateDiskBuyOrderResult(); + explicit CreateDiskBuyOrderResult(const std::string &payload); + ~CreateDiskBuyOrderResult(); + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEDISKBUYORDERRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateDiskRequest.h b/ens/include/alibabacloud/ens/model/CreateDiskRequest.h new file mode 100644 index 000000000..06b7d30a4 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateDiskRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEDISKREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEDISKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateDiskRequest : public RpcServiceRequest { +public: + CreateDiskRequest(); + ~CreateDiskRequest(); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::string getSize() const; + void setSize(const std::string &size); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + std::string ensRegionId_; + std::string instanceChargeType_; + std::string size_; + std::string category_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEDISKREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateDiskResult.h b/ens/include/alibabacloud/ens/model/CreateDiskResult.h new file mode 100644 index 000000000..8ae4ffea8 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateDiskResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEDISKRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateDiskResult : public ServiceResult + { + public: + + + CreateDiskResult(); + explicit CreateDiskResult(const std::string &payload); + ~CreateDiskResult(); + std::vector getInstanceIds()const; + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instanceIds_; + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEDISKRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateEPInstanceRequest.h b/ens/include/alibabacloud/ens/model/CreateEPInstanceRequest.h new file mode 100644 index 000000000..ee5097e9f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateEPInstanceRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEEPINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEEPINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateEPInstanceRequest : public RpcServiceRequest { +public: + CreateEPInstanceRequest(); + ~CreateEPInstanceRequest(); + std::string getNetworkingModel() const; + void setNetworkingModel(const std::string &networkingModel); + int getInternetMaxBandwidthOut() const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + std::string getEPNInstanceType() const; + void setEPNInstanceType(const std::string &ePNInstanceType); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + std::string getEPNInstanceName() const; + void setEPNInstanceName(const std::string &ePNInstanceName); + +private: + std::string networkingModel_; + int internetMaxBandwidthOut_; + std::string ePNInstanceType_; + std::string internetChargeType_; + std::string ePNInstanceName_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEEPINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateEPInstanceResult.h b/ens/include/alibabacloud/ens/model/CreateEPInstanceResult.h new file mode 100644 index 000000000..792cb81cd --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateEPInstanceResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEEPINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEEPINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateEPInstanceResult : public ServiceResult + { + public: + + + CreateEPInstanceResult(); + explicit CreateEPInstanceResult(const std::string &payload); + ~CreateEPInstanceResult(); + std::string getEPNInstanceId()const; + + protected: + void parse(const std::string &payload); + private: + std::string ePNInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEEPINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateEipInstanceRequest.h b/ens/include/alibabacloud/ens/model/CreateEipInstanceRequest.h new file mode 100644 index 000000000..3a7875f99 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateEipInstanceRequest.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_ENS_MODEL_CREATEEIPINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEEIPINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateEipInstanceRequest : public RpcServiceRequest { +public: + CreateEipInstanceRequest(); + ~CreateEipInstanceRequest(); + std::string getIsp() const; + void setIsp(const std::string &isp); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + long getBandwidth() const; + void setBandwidth(long bandwidth); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string isp_; + std::string ensRegionId_; + std::string instanceChargeType_; + long bandwidth_; + std::string internetChargeType_; + std::string name_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEEIPINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateEipInstanceResult.h b/ens/include/alibabacloud/ens/model/CreateEipInstanceResult.h new file mode 100644 index 000000000..1f95ec929 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateEipInstanceResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEEIPINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEEIPINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateEipInstanceResult : public ServiceResult + { + public: + + + CreateEipInstanceResult(); + explicit CreateEipInstanceResult(const std::string &payload); + ~CreateEipInstanceResult(); + std::string getAllocationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string allocationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEEIPINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateElbBuyOrderRequest.h b/ens/include/alibabacloud/ens/model/CreateElbBuyOrderRequest.h new file mode 100644 index 000000000..1702b8e8a --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateElbBuyOrderRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEELBBUYORDERREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEELBBUYORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateElbBuyOrderRequest : public RpcServiceRequest { +public: + CreateElbBuyOrderRequest(); + ~CreateElbBuyOrderRequest(); + std::string getOrderDetails() const; + void setOrderDetails(const std::string &orderDetails); + +private: + std::string orderDetails_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEELBBUYORDERREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateElbBuyOrderResult.h b/ens/include/alibabacloud/ens/model/CreateElbBuyOrderResult.h new file mode 100644 index 000000000..f5d9e61e8 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateElbBuyOrderResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEELBBUYORDERRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEELBBUYORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateElbBuyOrderResult : public ServiceResult + { + public: + + + CreateElbBuyOrderResult(); + explicit CreateElbBuyOrderResult(const std::string &payload); + ~CreateElbBuyOrderResult(); + std::vector getLoadBalancerIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector loadBalancerIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEELBBUYORDERRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateEnsServiceRequest.h b/ens/include/alibabacloud/ens/model/CreateEnsServiceRequest.h new file mode 100644 index 000000000..7488fde5e --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateEnsServiceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEENSSERVICEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEENSSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateEnsServiceRequest : public RpcServiceRequest { +public: + CreateEnsServiceRequest(); + ~CreateEnsServiceRequest(); + std::string getEnsServiceId() const; + void setEnsServiceId(const std::string &ensServiceId); + std::string getOrderType() const; + void setOrderType(const std::string &orderType); + +private: + std::string ensServiceId_; + std::string orderType_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEENSSERVICEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateEnsServiceResult.h b/ens/include/alibabacloud/ens/model/CreateEnsServiceResult.h new file mode 100644 index 000000000..bb5d3c2e4 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateEnsServiceResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEENSSERVICERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEENSSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateEnsServiceResult : public ServiceResult + { + public: + + + CreateEnsServiceResult(); + explicit CreateEnsServiceResult(const std::string &payload); + ~CreateEnsServiceResult(); + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEENSSERVICERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateEpnInstanceRequest.h b/ens/include/alibabacloud/ens/model/CreateEpnInstanceRequest.h new file mode 100644 index 000000000..9f98f5e37 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateEpnInstanceRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEEPNINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEEPNINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateEpnInstanceRequest : public RpcServiceRequest { +public: + CreateEpnInstanceRequest(); + ~CreateEpnInstanceRequest(); + std::string getNetworkingModel() const; + void setNetworkingModel(const std::string &networkingModel); + int getInternetMaxBandwidthOut() const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + std::string getEPNInstanceType() const; + void setEPNInstanceType(const std::string &ePNInstanceType); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + std::string getEPNInstanceName() const; + void setEPNInstanceName(const std::string &ePNInstanceName); + +private: + std::string networkingModel_; + int internetMaxBandwidthOut_; + std::string ePNInstanceType_; + std::string internetChargeType_; + std::string ePNInstanceName_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEEPNINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateEpnInstanceResult.h b/ens/include/alibabacloud/ens/model/CreateEpnInstanceResult.h new file mode 100644 index 000000000..e2bd4dcda --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateEpnInstanceResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEEPNINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEEPNINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateEpnInstanceResult : public ServiceResult + { + public: + + + CreateEpnInstanceResult(); + explicit CreateEpnInstanceResult(const std::string &payload); + ~CreateEpnInstanceResult(); + std::string getEPNInstanceId()const; + + protected: + void parse(const std::string &payload); + private: + std::string ePNInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEEPNINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateImageRequest.h b/ens/include/alibabacloud/ens/model/CreateImageRequest.h new file mode 100644 index 000000000..070c08c1f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateImageRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEIMAGEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateImageRequest : public RpcServiceRequest { +public: + CreateImageRequest(); + ~CreateImageRequest(); + std::string getDeleteAfterImageUpload() const; + void setDeleteAfterImageUpload(const std::string &deleteAfterImageUpload); + std::string getImageName() const; + void setImageName(const std::string &imageName); + std::string getProduct() const; + void setProduct(const std::string &product); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string deleteAfterImageUpload_; + std::string imageName_; + std::string product_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEIMAGEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateImageResult.h b/ens/include/alibabacloud/ens/model/CreateImageResult.h new file mode 100644 index 000000000..1fa3790d3 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateImageResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEIMAGERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateImageResult : public ServiceResult + { + public: + + + CreateImageResult(); + explicit CreateImageResult(const std::string &payload); + ~CreateImageResult(); + std::string getImageId()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string imageId_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEIMAGERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateInstanceRequest.h b/ens/include/alibabacloud/ens/model/CreateInstanceRequest.h new file mode 100644 index 000000000..809c321c2 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateInstanceRequest.h @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateInstanceRequest : public RpcServiceRequest { +public: + CreateInstanceRequest(); + ~CreateInstanceRequest(); + bool getUniqueSuffix() const; + void setUniqueSuffix(bool uniqueSuffix); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + std::string getPassword() const; + void setPassword(const std::string &password); + std::string getHostName() const; + void setHostName(const std::string &hostName); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getAutoRenewPeriod() const; + void setAutoRenewPeriod(const std::string &autoRenewPeriod); + std::string getPeriod() const; + void setPeriod(const std::string &period); + bool getPublicIpIdentification() const; + void setPublicIpIdentification(bool publicIpIdentification); + 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 getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getAutoRenew() const; + void setAutoRenew(const std::string &autoRenew); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getDataDisk1Size() const; + void setDataDisk1Size(const std::string &dataDisk1Size); + std::string getQuantity() const; + void setQuantity(const std::string &quantity); + std::string getIpType() const; + void setIpType(const std::string &ipType); + std::string getSystemDiskSize() const; + void setSystemDiskSize(const std::string &systemDiskSize); + std::string getPaymentType() const; + void setPaymentType(const std::string &paymentType); + +private: + bool uniqueSuffix_; + std::string keyPairName_; + std::string password_; + std::string hostName_; + std::string ensRegionId_; + std::string autoRenewPeriod_; + std::string period_; + bool publicIpIdentification_; + long ownerId_; + std::string vSwitchId_; + std::string privateIpAddress_; + std::string instanceName_; + std::string autoRenew_; + std::string internetChargeType_; + std::string imageId_; + std::string userData_; + std::string instanceType_; + std::string dataDisk1Size_; + std::string quantity_; + std::string ipType_; + std::string systemDiskSize_; + std::string paymentType_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateInstanceResult.h b/ens/include/alibabacloud/ens/model/CreateInstanceResult.h new file mode 100644 index 000000000..9c98fe30a --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateInstanceResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateInstanceResult : public ServiceResult + { + public: + + + CreateInstanceResult(); + explicit CreateInstanceResult(const std::string &payload); + ~CreateInstanceResult(); + std::vector getInstanceIds()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instanceIds_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateKeyPairRequest.h b/ens/include/alibabacloud/ens/model/CreateKeyPairRequest.h new file mode 100644 index 000000000..6e5403458 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateKeyPairRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEKEYPAIRREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEKEYPAIRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateKeyPairRequest : public RpcServiceRequest { +public: + CreateKeyPairRequest(); + ~CreateKeyPairRequest(); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + +private: + std::string keyPairName_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEKEYPAIRREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateKeyPairResult.h b/ens/include/alibabacloud/ens/model/CreateKeyPairResult.h new file mode 100644 index 000000000..2120343de --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateKeyPairResult.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_ENS_MODEL_CREATEKEYPAIRRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEKEYPAIRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateKeyPairResult : public ServiceResult + { + public: + + + CreateKeyPairResult(); + explicit CreateKeyPairResult(const std::string &payload); + ~CreateKeyPairResult(); + std::string getKeyPairFingerPrint()const; + std::string getKeyPairName()const; + std::string getKeyPairId()const; + std::string getPrivateKeyBody()const; + + protected: + void parse(const std::string &payload); + private: + std::string keyPairFingerPrint_; + std::string keyPairName_; + std::string keyPairId_; + std::string privateKeyBody_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEKEYPAIRRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateLoadBalancerHTTPListenerRequest.h b/ens/include/alibabacloud/ens/model/CreateLoadBalancerHTTPListenerRequest.h new file mode 100644 index 000000000..1b9de728a --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateLoadBalancerHTTPListenerRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERHTTPLISTENERREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERHTTPLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateLoadBalancerHTTPListenerRequest : public RpcServiceRequest { +public: + CreateLoadBalancerHTTPListenerRequest(); + ~CreateLoadBalancerHTTPListenerRequest(); + std::string getListenerForward() const; + void setListenerForward(const std::string &listenerForward); + int getHealthCheckTimeout() const; + void setHealthCheckTimeout(int healthCheckTimeout); + std::string getXForwardedFor() const; + void setXForwardedFor(const std::string &xForwardedFor); + std::string getHealthCheckURI() const; + void setHealthCheckURI(const std::string &healthCheckURI); + std::string getHealthCheck() const; + void setHealthCheck(const std::string &healthCheck); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + std::string getCookie() const; + void setCookie(const std::string &cookie); + std::string getHealthCheckMethod() const; + void setHealthCheckMethod(const std::string &healthCheckMethod); + std::string getHealthCheckDomain() const; + void setHealthCheckDomain(const std::string &healthCheckDomain); + int getRequestTimeout() const; + void setRequestTimeout(int requestTimeout); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + std::string getDescription() const; + void setDescription(const std::string &description); + int getUnhealthyThreshold() const; + void setUnhealthyThreshold(int unhealthyThreshold); + int getHealthyThreshold() const; + void setHealthyThreshold(int healthyThreshold); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + int getForwardPort() const; + void setForwardPort(int forwardPort); + int getCookieTimeout() const; + void setCookieTimeout(int cookieTimeout); + std::string getStickySessionType() const; + void setStickySessionType(const std::string &stickySessionType); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getStickySession() const; + void setStickySession(const std::string &stickySession); + int getIdleTimeout() const; + void setIdleTimeout(int idleTimeout); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + std::string getHealthCheckHttpCode() const; + void setHealthCheckHttpCode(const std::string &healthCheckHttpCode); + +private: + std::string listenerForward_; + int healthCheckTimeout_; + std::string xForwardedFor_; + std::string healthCheckURI_; + std::string healthCheck_; + std::string protocol_; + std::string cookie_; + std::string healthCheckMethod_; + std::string healthCheckDomain_; + int requestTimeout_; + std::string loadBalancerId_; + int healthCheckInterval_; + std::string description_; + int unhealthyThreshold_; + int healthyThreshold_; + std::string scheduler_; + int forwardPort_; + int cookieTimeout_; + std::string stickySessionType_; + int listenerPort_; + std::string stickySession_; + int idleTimeout_; + int healthCheckConnectPort_; + std::string healthCheckHttpCode_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERHTTPLISTENERREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateLoadBalancerHTTPListenerResult.h b/ens/include/alibabacloud/ens/model/CreateLoadBalancerHTTPListenerResult.h new file mode 100644 index 000000000..aca083724 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateLoadBalancerHTTPListenerResult.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_ENS_MODEL_CREATELOADBALANCERHTTPLISTENERRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERHTTPLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateLoadBalancerHTTPListenerResult : public ServiceResult + { + public: + + + CreateLoadBalancerHTTPListenerResult(); + explicit CreateLoadBalancerHTTPListenerResult(const std::string &payload); + ~CreateLoadBalancerHTTPListenerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERHTTPLISTENERRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateLoadBalancerHTTPSListenerRequest.h b/ens/include/alibabacloud/ens/model/CreateLoadBalancerHTTPSListenerRequest.h new file mode 100644 index 000000000..da060feb1 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateLoadBalancerHTTPSListenerRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERHTTPSLISTENERREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERHTTPSLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateLoadBalancerHTTPSListenerRequest : public RpcServiceRequest { +public: + CreateLoadBalancerHTTPSListenerRequest(); + ~CreateLoadBalancerHTTPSListenerRequest(); + std::string getListenerForward() const; + void setListenerForward(const std::string &listenerForward); + int getHealthCheckTimeout() const; + void setHealthCheckTimeout(int healthCheckTimeout); + std::string getHealthCheckURI() const; + void setHealthCheckURI(const std::string &healthCheckURI); + std::string getHealthCheck() const; + void setHealthCheck(const std::string &healthCheck); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + std::string getCookie() const; + void setCookie(const std::string &cookie); + std::string getHealthCheckMethod() const; + void setHealthCheckMethod(const std::string &healthCheckMethod); + std::string getHealthCheckDomain() const; + void setHealthCheckDomain(const std::string &healthCheckDomain); + int getRequestTimeout() const; + void setRequestTimeout(int requestTimeout); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + std::string getDescription() const; + void setDescription(const std::string &description); + int getUnhealthyThreshold() const; + void setUnhealthyThreshold(int unhealthyThreshold); + int getHealthyThreshold() const; + void setHealthyThreshold(int healthyThreshold); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + int getForwardPort() const; + void setForwardPort(int forwardPort); + int getCookieTimeout() const; + void setCookieTimeout(int cookieTimeout); + std::string getStickySessionType() const; + void setStickySessionType(const std::string &stickySessionType); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getStickySession() const; + void setStickySession(const std::string &stickySession); + std::string getServerCertificateId() const; + void setServerCertificateId(const std::string &serverCertificateId); + int getIdleTimeout() const; + void setIdleTimeout(int idleTimeout); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + std::string getHealthCheckHttpCode() const; + void setHealthCheckHttpCode(const std::string &healthCheckHttpCode); + +private: + std::string listenerForward_; + int healthCheckTimeout_; + std::string healthCheckURI_; + std::string healthCheck_; + std::string protocol_; + std::string cookie_; + std::string healthCheckMethod_; + std::string healthCheckDomain_; + int requestTimeout_; + std::string loadBalancerId_; + int healthCheckInterval_; + std::string description_; + int unhealthyThreshold_; + int healthyThreshold_; + std::string scheduler_; + int forwardPort_; + int cookieTimeout_; + std::string stickySessionType_; + int listenerPort_; + std::string stickySession_; + std::string serverCertificateId_; + int idleTimeout_; + int healthCheckConnectPort_; + std::string healthCheckHttpCode_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERHTTPSLISTENERREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateLoadBalancerHTTPSListenerResult.h b/ens/include/alibabacloud/ens/model/CreateLoadBalancerHTTPSListenerResult.h new file mode 100644 index 000000000..49253b7c4 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateLoadBalancerHTTPSListenerResult.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_ENS_MODEL_CREATELOADBALANCERHTTPSLISTENERRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERHTTPSLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateLoadBalancerHTTPSListenerResult : public ServiceResult + { + public: + + + CreateLoadBalancerHTTPSListenerResult(); + explicit CreateLoadBalancerHTTPSListenerResult(const std::string &payload); + ~CreateLoadBalancerHTTPSListenerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERHTTPSLISTENERRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateLoadBalancerRequest.h b/ens/include/alibabacloud/ens/model/CreateLoadBalancerRequest.h new file mode 100644 index 000000000..a176ffb2c --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateLoadBalancerRequest.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_ENS_MODEL_CREATELOADBALANCERREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateLoadBalancerRequest : public RpcServiceRequest { +public: + CreateLoadBalancerRequest(); + ~CreateLoadBalancerRequest(); + std::string getLoadBalancerName() const; + void setLoadBalancerName(const std::string &loadBalancerName); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getLoadBalancerSpec() const; + void setLoadBalancerSpec(const std::string &loadBalancerSpec); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getNetworkId() const; + void setNetworkId(const std::string &networkId); + std::string getPayType() const; + void setPayType(const std::string &payType); + +private: + std::string loadBalancerName_; + std::string ensRegionId_; + std::string loadBalancerSpec_; + std::string vSwitchId_; + std::string networkId_; + std::string payType_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateLoadBalancerResult.h b/ens/include/alibabacloud/ens/model/CreateLoadBalancerResult.h new file mode 100644 index 000000000..5c3e34287 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateLoadBalancerResult.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_ENS_MODEL_CREATELOADBALANCERRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateLoadBalancerResult : public ServiceResult + { + public: + + + CreateLoadBalancerResult(); + explicit CreateLoadBalancerResult(const std::string &payload); + ~CreateLoadBalancerResult(); + std::string getLoadBalancerName()const; + std::string getVSwitchId()const; + std::string getLoadBalancerId()const; + std::string getNetworkId()const; + + protected: + void parse(const std::string &payload); + private: + std::string loadBalancerName_; + std::string vSwitchId_; + std::string loadBalancerId_; + std::string networkId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateLoadBalancerTCPListenerRequest.h b/ens/include/alibabacloud/ens/model/CreateLoadBalancerTCPListenerRequest.h new file mode 100644 index 000000000..b03ac112f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateLoadBalancerTCPListenerRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERTCPLISTENERREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERTCPLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateLoadBalancerTCPListenerRequest : public RpcServiceRequest { +public: + CreateLoadBalancerTCPListenerRequest(); + ~CreateLoadBalancerTCPListenerRequest(); + std::string getHealthCheckURI() const; + void setHealthCheckURI(const std::string &healthCheckURI); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + int getEstablishedTimeout() const; + void setEstablishedTimeout(int establishedTimeout); + int getPersistenceTimeout() const; + void setPersistenceTimeout(int persistenceTimeout); + std::string getHealthCheckDomain() const; + void setHealthCheckDomain(const std::string &healthCheckDomain); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + int getBackendServerPort() const; + void setBackendServerPort(int backendServerPort); + int getHealthCheckConnectTimeout() const; + void setHealthCheckConnectTimeout(int healthCheckConnectTimeout); + std::string getDescription() const; + void setDescription(const std::string &description); + int getUnhealthyThreshold() const; + void setUnhealthyThreshold(int unhealthyThreshold); + int getHealthyThreshold() const; + void setHealthyThreshold(int healthyThreshold); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + std::string getEipTransmit() const; + void setEipTransmit(const std::string &eipTransmit); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getHealthCheckType() const; + void setHealthCheckType(const std::string &healthCheckType); + std::string getHealthCheckHttpCode() const; + void setHealthCheckHttpCode(const std::string &healthCheckHttpCode); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + +private: + std::string healthCheckURI_; + std::string protocol_; + int establishedTimeout_; + int persistenceTimeout_; + std::string healthCheckDomain_; + std::string loadBalancerId_; + int healthCheckInterval_; + int backendServerPort_; + int healthCheckConnectTimeout_; + std::string description_; + int unhealthyThreshold_; + int healthyThreshold_; + std::string scheduler_; + std::string eipTransmit_; + int listenerPort_; + std::string healthCheckType_; + std::string healthCheckHttpCode_; + int healthCheckConnectPort_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERTCPLISTENERREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateLoadBalancerTCPListenerResult.h b/ens/include/alibabacloud/ens/model/CreateLoadBalancerTCPListenerResult.h new file mode 100644 index 000000000..50a399405 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateLoadBalancerTCPListenerResult.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_ENS_MODEL_CREATELOADBALANCERTCPLISTENERRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERTCPLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateLoadBalancerTCPListenerResult : public ServiceResult + { + public: + + + CreateLoadBalancerTCPListenerResult(); + explicit CreateLoadBalancerTCPListenerResult(const std::string &payload); + ~CreateLoadBalancerTCPListenerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERTCPLISTENERRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateLoadBalancerUDPListenerRequest.h b/ens/include/alibabacloud/ens/model/CreateLoadBalancerUDPListenerRequest.h new file mode 100644 index 000000000..850ec3974 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateLoadBalancerUDPListenerRequest.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_ENS_MODEL_CREATELOADBALANCERUDPLISTENERREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERUDPLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateLoadBalancerUDPListenerRequest : public RpcServiceRequest { +public: + CreateLoadBalancerUDPListenerRequest(); + ~CreateLoadBalancerUDPListenerRequest(); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + std::string getHealthCheckReq() const; + void setHealthCheckReq(const std::string &healthCheckReq); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + int getBackendServerPort() const; + void setBackendServerPort(int backendServerPort); + std::string getHealthCheckExp() const; + void setHealthCheckExp(const std::string &healthCheckExp); + int getHealthCheckConnectTimeout() const; + void setHealthCheckConnectTimeout(int healthCheckConnectTimeout); + std::string getDescription() const; + void setDescription(const std::string &description); + int getUnhealthyThreshold() const; + void setUnhealthyThreshold(int unhealthyThreshold); + int getHealthyThreshold() const; + void setHealthyThreshold(int healthyThreshold); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + std::string getEipTransmit() const; + void setEipTransmit(const std::string &eipTransmit); + int getListenerPort() const; + void setListenerPort(int listenerPort); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + +private: + std::string protocol_; + std::string loadBalancerId_; + std::string healthCheckReq_; + int healthCheckInterval_; + int backendServerPort_; + std::string healthCheckExp_; + int healthCheckConnectTimeout_; + std::string description_; + int unhealthyThreshold_; + int healthyThreshold_; + std::string scheduler_; + std::string eipTransmit_; + int listenerPort_; + int healthCheckConnectPort_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERUDPLISTENERREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateLoadBalancerUDPListenerResult.h b/ens/include/alibabacloud/ens/model/CreateLoadBalancerUDPListenerResult.h new file mode 100644 index 000000000..c4f448460 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateLoadBalancerUDPListenerResult.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_ENS_MODEL_CREATELOADBALANCERUDPLISTENERRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERUDPLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateLoadBalancerUDPListenerResult : public ServiceResult + { + public: + + + CreateLoadBalancerUDPListenerResult(); + explicit CreateLoadBalancerUDPListenerResult(const std::string &payload); + ~CreateLoadBalancerUDPListenerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATELOADBALANCERUDPLISTENERRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateNetworkRequest.h b/ens/include/alibabacloud/ens/model/CreateNetworkRequest.h new file mode 100644 index 000000000..323da2239 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateNetworkRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATENETWORKREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATENETWORKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateNetworkRequest : public RpcServiceRequest { +public: + CreateNetworkRequest(); + ~CreateNetworkRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getNetworkName() const; + void setNetworkName(const std::string &networkName); + std::string getCidrBlock() const; + void setCidrBlock(const std::string &cidrBlock); + +private: + std::string description_; + std::string ensRegionId_; + std::string networkName_; + std::string cidrBlock_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATENETWORKREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateNetworkResult.h b/ens/include/alibabacloud/ens/model/CreateNetworkResult.h new file mode 100644 index 000000000..508ab2d89 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateNetworkResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATENETWORKRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATENETWORKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateNetworkResult : public ServiceResult + { + public: + + + CreateNetworkResult(); + explicit CreateNetworkResult(const std::string &payload); + ~CreateNetworkResult(); + std::string getNetworkId()const; + + protected: + void parse(const std::string &payload); + private: + std::string networkId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATENETWORKRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateSecurityGroupRequest.h b/ens/include/alibabacloud/ens/model/CreateSecurityGroupRequest.h new file mode 100644 index 000000000..498b7db27 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateSecurityGroupRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateSecurityGroupRequest : public RpcServiceRequest { +public: + CreateSecurityGroupRequest(); + ~CreateSecurityGroupRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSecurityGroupName() const; + void setSecurityGroupName(const std::string &securityGroupName); + +private: + std::string description_; + std::string securityGroupName_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATESECURITYGROUPREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateSecurityGroupResult.h b/ens/include/alibabacloud/ens/model/CreateSecurityGroupResult.h new file mode 100644 index 000000000..e4f6b0d5d --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateSecurityGroupResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateSecurityGroupResult : public ServiceResult + { + public: + + + CreateSecurityGroupResult(); + explicit CreateSecurityGroupResult(const std::string &payload); + ~CreateSecurityGroupResult(); + std::string getSecurityGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string securityGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateVSwitchRequest.h b/ens/include/alibabacloud/ens/model/CreateVSwitchRequest.h new file mode 100644 index 000000000..c57d56733 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateVSwitchRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEVSWITCHREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEVSWITCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateVSwitchRequest : public RpcServiceRequest { +public: + CreateVSwitchRequest(); + ~CreateVSwitchRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getVSwitchName() const; + void setVSwitchName(const std::string &vSwitchName); + std::string getCidrBlock() const; + void setCidrBlock(const std::string &cidrBlock); + std::string getNetworkId() const; + void setNetworkId(const std::string &networkId); + +private: + std::string description_; + std::string ensRegionId_; + std::string vSwitchName_; + std::string cidrBlock_; + std::string networkId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEVSWITCHREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateVSwitchResult.h b/ens/include/alibabacloud/ens/model/CreateVSwitchResult.h new file mode 100644 index 000000000..7ab111cc5 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateVSwitchResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEVSWITCHRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEVSWITCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateVSwitchResult : public ServiceResult + { + public: + + + CreateVSwitchResult(); + explicit CreateVSwitchResult(const std::string &payload); + ~CreateVSwitchResult(); + std::string getVSwitchId()const; + + protected: + void parse(const std::string &payload); + private: + std::string vSwitchId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEVSWITCHRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/CreateVmAndSaveStockRequest.h b/ens/include/alibabacloud/ens/model/CreateVmAndSaveStockRequest.h new file mode 100644 index 000000000..19a23c4de --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateVmAndSaveStockRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_CREATEVMANDSAVESTOCKREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEVMANDSAVESTOCKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT CreateVmAndSaveStockRequest : public RpcServiceRequest { +public: + CreateVmAndSaveStockRequest(); + ~CreateVmAndSaveStockRequest(); + std::string getGroupUuid() const; + void setGroupUuid(const std::string &groupUuid); + std::string getResourceAttribute() const; + void setResourceAttribute(const std::string &resourceAttribute); + long getAliUid() const; + void setAliUid(long aliUid); + std::string getTenant() const; + void setTenant(const std::string &tenant); + std::string getWorkloadUuid() const; + void setWorkloadUuid(const std::string &workloadUuid); + +private: + std::string groupUuid_; + std::string resourceAttribute_; + long aliUid_; + std::string tenant_; + std::string workloadUuid_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEVMANDSAVESTOCKREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/CreateVmAndSaveStockResult.h b/ens/include/alibabacloud/ens/model/CreateVmAndSaveStockResult.h new file mode 100644 index 000000000..f77ea0151 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/CreateVmAndSaveStockResult.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_ENS_MODEL_CREATEVMANDSAVESTOCKRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_CREATEVMANDSAVESTOCKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT CreateVmAndSaveStockResult : public ServiceResult + { + public: + + + CreateVmAndSaveStockResult(); + explicit CreateVmAndSaveStockResult(const std::string &payload); + ~CreateVmAndSaveStockResult(); + std::string getMsg()const; + std::string getDesc()const; + std::string getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string desc_; + std::string data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_CREATEVMANDSAVESTOCKRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DeleteApplicationRequest.h b/ens/include/alibabacloud/ens/model/DeleteApplicationRequest.h new file mode 100644 index 000000000..0025c04f4 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteApplicationRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DELETEAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETEAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DeleteApplicationRequest : public RpcServiceRequest { +public: + DeleteApplicationRequest(); + ~DeleteApplicationRequest(); + int getTimeout() const; + void setTimeout(int timeout); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + int timeout_; + std::string appId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DELETEAPPLICATIONREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DeleteApplicationResult.h b/ens/include/alibabacloud/ens/model/DeleteApplicationResult.h new file mode 100644 index 000000000..330817815 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteApplicationResult.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_ENS_MODEL_DELETEAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETEAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DeleteApplicationResult : public ServiceResult + { + public: + + + DeleteApplicationResult(); + explicit DeleteApplicationResult(const std::string &payload); + ~DeleteApplicationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DELETEAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DeleteDeviceInternetPortRequest.h b/ens/include/alibabacloud/ens/model/DeleteDeviceInternetPortRequest.h new file mode 100644 index 000000000..c5395771c --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteDeviceInternetPortRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DELETEDEVICEINTERNETPORTREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETEDEVICEINTERNETPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DeleteDeviceInternetPortRequest : public RpcServiceRequest { +public: + DeleteDeviceInternetPortRequest(); + ~DeleteDeviceInternetPortRequest(); + std::string getNatType() const; + void setNatType(const std::string &natType); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + +private: + std::string natType_; + std::string instanceId_; + std::string ruleId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DELETEDEVICEINTERNETPORTREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DeleteDeviceInternetPortResult.h b/ens/include/alibabacloud/ens/model/DeleteDeviceInternetPortResult.h new file mode 100644 index 000000000..6b0ea5701 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteDeviceInternetPortResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DELETEDEVICEINTERNETPORTRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETEDEVICEINTERNETPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DeleteDeviceInternetPortResult : public ServiceResult + { + public: + + + DeleteDeviceInternetPortResult(); + explicit DeleteDeviceInternetPortResult(const std::string &payload); + ~DeleteDeviceInternetPortResult(); + std::vector getRuleIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector ruleIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DELETEDEVICEINTERNETPORTRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DeleteEpnInstanceRequest.h b/ens/include/alibabacloud/ens/model/DeleteEpnInstanceRequest.h new file mode 100644 index 000000000..8b4c4f087 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteEpnInstanceRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DELETEEPNINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETEEPNINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DeleteEpnInstanceRequest : public RpcServiceRequest { +public: + DeleteEpnInstanceRequest(); + ~DeleteEpnInstanceRequest(); + std::string getEPNInstanceId() const; + void setEPNInstanceId(const std::string &ePNInstanceId); + +private: + std::string ePNInstanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DELETEEPNINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DeleteEpnInstanceResult.h b/ens/include/alibabacloud/ens/model/DeleteEpnInstanceResult.h new file mode 100644 index 000000000..128b8e1e3 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteEpnInstanceResult.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_ENS_MODEL_DELETEEPNINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETEEPNINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DeleteEpnInstanceResult : public ServiceResult + { + public: + + + DeleteEpnInstanceResult(); + explicit DeleteEpnInstanceResult(const std::string &payload); + ~DeleteEpnInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DELETEEPNINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DeleteKeyPairsRequest.h b/ens/include/alibabacloud/ens/model/DeleteKeyPairsRequest.h new file mode 100644 index 000000000..ba5234de9 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteKeyPairsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DELETEKEYPAIRSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETEKEYPAIRSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DeleteKeyPairsRequest : public RpcServiceRequest { +public: + DeleteKeyPairsRequest(); + ~DeleteKeyPairsRequest(); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + +private: + std::string keyPairName_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DELETEKEYPAIRSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DeleteKeyPairsResult.h b/ens/include/alibabacloud/ens/model/DeleteKeyPairsResult.h new file mode 100644 index 000000000..5bf47266a --- /dev/null +++ b/ens/include/alibabacloud/ens/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_ENS_MODEL_DELETEKEYPAIRSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETEKEYPAIRSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DeleteKeyPairsResult : public ServiceResult + { + public: + + + DeleteKeyPairsResult(); + explicit DeleteKeyPairsResult(const std::string &payload); + ~DeleteKeyPairsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DELETEKEYPAIRSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DeleteLoadBalancerListenerRequest.h b/ens/include/alibabacloud/ens/model/DeleteLoadBalancerListenerRequest.h new file mode 100644 index 000000000..2ee38a4a5 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteLoadBalancerListenerRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DELETELOADBALANCERLISTENERREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETELOADBALANCERLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DeleteLoadBalancerListenerRequest : public RpcServiceRequest { +public: + DeleteLoadBalancerListenerRequest(); + ~DeleteLoadBalancerListenerRequest(); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + int listenerPort_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DELETELOADBALANCERLISTENERREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DeleteLoadBalancerListenerResult.h b/ens/include/alibabacloud/ens/model/DeleteLoadBalancerListenerResult.h new file mode 100644 index 000000000..75c0efe81 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteLoadBalancerListenerResult.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_ENS_MODEL_DELETELOADBALANCERLISTENERRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETELOADBALANCERLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DeleteLoadBalancerListenerResult : public ServiceResult + { + public: + + + DeleteLoadBalancerListenerResult(); + explicit DeleteLoadBalancerListenerResult(const std::string &payload); + ~DeleteLoadBalancerListenerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DELETELOADBALANCERLISTENERRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DeleteNetworkRequest.h b/ens/include/alibabacloud/ens/model/DeleteNetworkRequest.h new file mode 100644 index 000000000..427d1f5ec --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteNetworkRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DELETENETWORKREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETENETWORKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DeleteNetworkRequest : public RpcServiceRequest { +public: + DeleteNetworkRequest(); + ~DeleteNetworkRequest(); + std::string getNetworkId() const; + void setNetworkId(const std::string &networkId); + +private: + std::string networkId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DELETENETWORKREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DeleteNetworkResult.h b/ens/include/alibabacloud/ens/model/DeleteNetworkResult.h new file mode 100644 index 000000000..8135ec8ae --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteNetworkResult.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_ENS_MODEL_DELETENETWORKRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETENETWORKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DeleteNetworkResult : public ServiceResult + { + public: + + + DeleteNetworkResult(); + explicit DeleteNetworkResult(const std::string &payload); + ~DeleteNetworkResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DELETENETWORKRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DeleteSecurityGroupRequest.h b/ens/include/alibabacloud/ens/model/DeleteSecurityGroupRequest.h new file mode 100644 index 000000000..efdca2181 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteSecurityGroupRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DELETESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DeleteSecurityGroupRequest : public RpcServiceRequest { +public: + DeleteSecurityGroupRequest(); + ~DeleteSecurityGroupRequest(); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + +private: + std::string securityGroupId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DELETESECURITYGROUPREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DeleteSecurityGroupResult.h b/ens/include/alibabacloud/ens/model/DeleteSecurityGroupResult.h new file mode 100644 index 000000000..acee1a697 --- /dev/null +++ b/ens/include/alibabacloud/ens/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_ENS_MODEL_DELETESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DeleteSecurityGroupResult : public ServiceResult + { + public: + + + DeleteSecurityGroupResult(); + explicit DeleteSecurityGroupResult(const std::string &payload); + ~DeleteSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DELETESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DeleteVSwitchRequest.h b/ens/include/alibabacloud/ens/model/DeleteVSwitchRequest.h new file mode 100644 index 000000000..2cc2d9abf --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteVSwitchRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DELETEVSWITCHREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETEVSWITCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DeleteVSwitchRequest : public RpcServiceRequest { +public: + DeleteVSwitchRequest(); + ~DeleteVSwitchRequest(); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + +private: + std::string vSwitchId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DELETEVSWITCHREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DeleteVSwitchResult.h b/ens/include/alibabacloud/ens/model/DeleteVSwitchResult.h new file mode 100644 index 000000000..53040f63e --- /dev/null +++ b/ens/include/alibabacloud/ens/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_ENS_MODEL_DELETEVSWITCHRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETEVSWITCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DeleteVSwitchResult : public ServiceResult + { + public: + + + DeleteVSwitchResult(); + explicit DeleteVSwitchResult(const std::string &payload); + ~DeleteVSwitchResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DELETEVSWITCHRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DeleteVmRequest.h b/ens/include/alibabacloud/ens/model/DeleteVmRequest.h new file mode 100644 index 000000000..812ce65e6 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteVmRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DELETEVMREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETEVMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DeleteVmRequest : public RpcServiceRequest { +public: + DeleteVmRequest(); + ~DeleteVmRequest(); + long getAliUid() const; + void setAliUid(long aliUid); + std::string getWorkloadUuid() const; + void setWorkloadUuid(const std::string &workloadUuid); + +private: + long aliUid_; + std::string workloadUuid_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DELETEVMREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DeleteVmResult.h b/ens/include/alibabacloud/ens/model/DeleteVmResult.h new file mode 100644 index 000000000..3294e2834 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DeleteVmResult.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_ENS_MODEL_DELETEVMRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DELETEVMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DeleteVmResult : public ServiceResult + { + public: + + + DeleteVmResult(); + explicit DeleteVmResult(const std::string &payload); + ~DeleteVmResult(); + std::string getMsg()const; + std::string getDesc()const; + std::string getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string desc_; + std::string data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DELETEVMRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeApplicationRequest.h b/ens/include/alibabacloud/ens/model/DescribeApplicationRequest.h new file mode 100644 index 000000000..8a1a5ed7a --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeApplicationRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeApplicationRequest : public RpcServiceRequest { +public: + DescribeApplicationRequest(); + ~DescribeApplicationRequest(); + std::string getAppVersions() const; + void setAppVersions(const std::string &appVersions); + std::string getOutDetailStatParams() const; + void setOutDetailStatParams(const std::string &outDetailStatParams); + std::string getLevel() const; + void setLevel(const std::string &level); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string appVersions_; + std::string outDetailStatParams_; + std::string level_; + std::string appId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEAPPLICATIONREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeApplicationResourceSummaryRequest.h b/ens/include/alibabacloud/ens/model/DescribeApplicationResourceSummaryRequest.h new file mode 100644 index 000000000..78f1d8dc3 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeApplicationResourceSummaryRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEAPPLICATIONRESOURCESUMMARYREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEAPPLICATIONRESOURCESUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeApplicationResourceSummaryRequest : public RpcServiceRequest { +public: + DescribeApplicationResourceSummaryRequest(); + ~DescribeApplicationResourceSummaryRequest(); + std::string getLevel() const; + void setLevel(const std::string &level); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::string level_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEAPPLICATIONRESOURCESUMMARYREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeApplicationResourceSummaryResult.h b/ens/include/alibabacloud/ens/model/DescribeApplicationResourceSummaryResult.h new file mode 100644 index 000000000..82f0bd7a6 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeApplicationResourceSummaryResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEAPPLICATIONRESOURCESUMMARYRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEAPPLICATIONRESOURCESUMMARYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeApplicationResourceSummaryResult : public ServiceResult + { + public: + + + DescribeApplicationResourceSummaryResult(); + explicit DescribeApplicationResourceSummaryResult(const std::string &payload); + ~DescribeApplicationResourceSummaryResult(); + std::string getApplicationResource()const; + + protected: + void parse(const std::string &payload); + private: + std::string applicationResource_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEAPPLICATIONRESOURCESUMMARYRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeApplicationResult.h b/ens/include/alibabacloud/ens/model/DescribeApplicationResult.h new file mode 100644 index 000000000..4b3d8e954 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeApplicationResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeApplicationResult : public ServiceResult + { + public: + + + DescribeApplicationResult(); + explicit DescribeApplicationResult(const std::string &payload); + ~DescribeApplicationResult(); + std::string getApplication()const; + + protected: + void parse(const std::string &payload); + private: + std::string application_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeAvailableResourceInfoRequest.h b/ens/include/alibabacloud/ens/model/DescribeAvailableResourceInfoRequest.h new file mode 100644 index 000000000..ba70642a5 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeAvailableResourceInfoRequest.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_ENS_MODEL_DESCRIBEAVAILABLERESOURCEINFOREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEAVAILABLERESOURCEINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeAvailableResourceInfoRequest : public RpcServiceRequest { +public: + DescribeAvailableResourceInfoRequest(); + ~DescribeAvailableResourceInfoRequest(); + +private: +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEAVAILABLERESOURCEINFOREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeAvailableResourceInfoResult.h b/ens/include/alibabacloud/ens/model/DescribeAvailableResourceInfoResult.h new file mode 100644 index 000000000..9ed86f5c9 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeAvailableResourceInfoResult.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_ENS_MODEL_DESCRIBEAVAILABLERESOURCEINFORESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEAVAILABLERESOURCEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeAvailableResourceInfoResult : public ServiceResult + { + public: + struct Image + { + std::string imageName; + int imageSize; + std::string imageId; + }; + struct SupportResource + { + struct EnsRegionId + { + std::string area; + std::string enName; + std::string ensRegionId; + std::string province; + std::string name; + }; + int dataDiskMinSize; + int systemDiskMinSize; + std::vector bandwidthTypes; + std::vector instanceSpeces; + int systemDiskMaxSize; + std::vector ensRegionIdsExtends; + int dataDiskMaxSize; + std::vector ensRegionIds; + }; + + + DescribeAvailableResourceInfoResult(); + explicit DescribeAvailableResourceInfoResult(const std::string &payload); + ~DescribeAvailableResourceInfoResult(); + std::vector getImages()const; + std::vector getSupportResources()const; + + protected: + void parse(const std::string &payload); + private: + std::vector images_; + std::vector supportResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEAVAILABLERESOURCEINFORESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeAvailableResourceRequest.h b/ens/include/alibabacloud/ens/model/DescribeAvailableResourceRequest.h new file mode 100644 index 000000000..63b94839c --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeAvailableResourceRequest.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_ENS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeAvailableResourceRequest : public RpcServiceRequest { +public: + DescribeAvailableResourceRequest(); + ~DescribeAvailableResourceRequest(); + +private: +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeAvailableResourceResult.h b/ens/include/alibabacloud/ens/model/DescribeAvailableResourceResult.h new file mode 100644 index 000000000..d31938b61 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeAvailableResourceResult.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_ENS_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeAvailableResourceResult : public ServiceResult + { + public: + struct Image + { + std::string imageName; + std::string imageId; + }; + struct SupportResource + { + std::string instanceSpec; + std::string supportResourcesCount; + std::string systemDiskSize; + std::string dataDiskSize; + std::string ensRegionId; + }; + + + DescribeAvailableResourceResult(); + explicit DescribeAvailableResourceResult(const std::string &payload); + ~DescribeAvailableResourceResult(); + std::vector getImages()const; + std::vector getSupportResources()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector images_; + std::vector supportResources_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeBandWithdChargeTypeRequest.h b/ens/include/alibabacloud/ens/model/DescribeBandWithdChargeTypeRequest.h new file mode 100644 index 000000000..4e3c0d9eb --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeBandWithdChargeTypeRequest.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_ENS_MODEL_DESCRIBEBANDWITHDCHARGETYPEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEBANDWITHDCHARGETYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeBandWithdChargeTypeRequest : public RpcServiceRequest { +public: + DescribeBandWithdChargeTypeRequest(); + ~DescribeBandWithdChargeTypeRequest(); + +private: +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEBANDWITHDCHARGETYPEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeBandWithdChargeTypeResult.h b/ens/include/alibabacloud/ens/model/DescribeBandWithdChargeTypeResult.h new file mode 100644 index 000000000..cc9f6c2b4 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeBandWithdChargeTypeResult.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_ENS_MODEL_DESCRIBEBANDWITHDCHARGETYPERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEBANDWITHDCHARGETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeBandWithdChargeTypeResult : public ServiceResult + { + public: + + + DescribeBandWithdChargeTypeResult(); + explicit DescribeBandWithdChargeTypeResult(const std::string &payload); + ~DescribeBandWithdChargeTypeResult(); + std::string getBandWithTypeInfo()const; + std::string getChargeCycleInfo()const; + int getCode()const; + std::string getChargeContractType()const; + + protected: + void parse(const std::string &payload); + private: + std::string bandWithTypeInfo_; + std::string chargeCycleInfo_; + int code_; + std::string chargeContractType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEBANDWITHDCHARGETYPERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeBandwitdhByInternetChargeTypeRequest.h b/ens/include/alibabacloud/ens/model/DescribeBandwitdhByInternetChargeTypeRequest.h new file mode 100644 index 000000000..b852b4e41 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeBandwitdhByInternetChargeTypeRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEBANDWITDHBYINTERNETCHARGETYPEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEBANDWITDHBYINTERNETCHARGETYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeBandwitdhByInternetChargeTypeRequest : public RpcServiceRequest { +public: + DescribeBandwitdhByInternetChargeTypeRequest(); + ~DescribeBandwitdhByInternetChargeTypeRequest(); + std::string getIsp() const; + void setIsp(const std::string &isp); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + +private: + std::string isp_; + std::string startTime_; + std::string ensRegionId_; + std::string endTime_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEBANDWITDHBYINTERNETCHARGETYPEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeBandwitdhByInternetChargeTypeResult.h b/ens/include/alibabacloud/ens/model/DescribeBandwitdhByInternetChargeTypeResult.h new file mode 100644 index 000000000..673d7ec36 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeBandwitdhByInternetChargeTypeResult.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_ENS_MODEL_DESCRIBEBANDWITDHBYINTERNETCHARGETYPERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEBANDWITDHBYINTERNETCHARGETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeBandwitdhByInternetChargeTypeResult : public ServiceResult + { + public: + + + DescribeBandwitdhByInternetChargeTypeResult(); + explicit DescribeBandwitdhByInternetChargeTypeResult(const std::string &payload); + ~DescribeBandwitdhByInternetChargeTypeResult(); + long getBandwidthValue()const; + std::string getTimeStamp()const; + std::string getInternetChargeType()const; + + protected: + void parse(const std::string &payload); + private: + long bandwidthValue_; + std::string timeStamp_; + std::string internetChargeType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEBANDWITDHBYINTERNETCHARGETYPERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeCloudDiskAvailableResourceInfoRequest.h b/ens/include/alibabacloud/ens/model/DescribeCloudDiskAvailableResourceInfoRequest.h new file mode 100644 index 000000000..3c48c47b0 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeCloudDiskAvailableResourceInfoRequest.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_ENS_MODEL_DESCRIBECLOUDDISKAVAILABLERESOURCEINFOREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBECLOUDDISKAVAILABLERESOURCEINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeCloudDiskAvailableResourceInfoRequest : public RpcServiceRequest { +public: + DescribeCloudDiskAvailableResourceInfoRequest(); + ~DescribeCloudDiskAvailableResourceInfoRequest(); + +private: +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBECLOUDDISKAVAILABLERESOURCEINFOREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeCloudDiskAvailableResourceInfoResult.h b/ens/include/alibabacloud/ens/model/DescribeCloudDiskAvailableResourceInfoResult.h new file mode 100644 index 000000000..0942595d8 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeCloudDiskAvailableResourceInfoResult.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_ENS_MODEL_DESCRIBECLOUDDISKAVAILABLERESOURCEINFORESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBECLOUDDISKAVAILABLERESOURCEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeCloudDiskAvailableResourceInfoResult : public ServiceResult + { + public: + struct SupportResource + { + long canBuyCount; + std::string category; + std::string ensRegionName; + long defaultDiskSize; + long diskMinSize; + long diskMaxSize; + std::string ensRegionId; + }; + + + DescribeCloudDiskAvailableResourceInfoResult(); + explicit DescribeCloudDiskAvailableResourceInfoResult(const std::string &payload); + ~DescribeCloudDiskAvailableResourceInfoResult(); + std::vector getSupportResources()const; + + protected: + void parse(const std::string &payload); + private: + std::vector supportResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBECLOUDDISKAVAILABLERESOURCEINFORESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeCloudDiskTypesRequest.h b/ens/include/alibabacloud/ens/model/DescribeCloudDiskTypesRequest.h new file mode 100644 index 000000000..db67eab7e --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeCloudDiskTypesRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBECLOUDDISKTYPESREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBECLOUDDISKTYPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeCloudDiskTypesRequest : public RpcServiceRequest { +public: + DescribeCloudDiskTypesRequest(); + ~DescribeCloudDiskTypesRequest(); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + +private: + std::string ensRegionId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBECLOUDDISKTYPESREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeCloudDiskTypesResult.h b/ens/include/alibabacloud/ens/model/DescribeCloudDiskTypesResult.h new file mode 100644 index 000000000..404d3acb9 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeCloudDiskTypesResult.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_ENS_MODEL_DESCRIBECLOUDDISKTYPESRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBECLOUDDISKTYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeCloudDiskTypesResult : public ServiceResult + { + public: + struct SupportResource + { + std::string category; + std::string ensRegionId; + }; + + + DescribeCloudDiskTypesResult(); + explicit DescribeCloudDiskTypesResult(const std::string &payload); + ~DescribeCloudDiskTypesResult(); + std::vector getSupportResources()const; + + protected: + void parse(const std::string &payload); + private: + std::vector supportResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBECLOUDDISKTYPESRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeCreatePrePaidInstanceResultRequest.h b/ens/include/alibabacloud/ens/model/DescribeCreatePrePaidInstanceResultRequest.h new file mode 100644 index 000000000..e53e13cca --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeCreatePrePaidInstanceResultRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBECREATEPREPAIDINSTANCERESULTREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBECREATEPREPAIDINSTANCERESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeCreatePrePaidInstanceResultRequest : public RpcServiceRequest { +public: + DescribeCreatePrePaidInstanceResultRequest(); + ~DescribeCreatePrePaidInstanceResultRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBECREATEPREPAIDINSTANCERESULTREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeCreatePrePaidInstanceResultResult.h b/ens/include/alibabacloud/ens/model/DescribeCreatePrePaidInstanceResultResult.h new file mode 100644 index 000000000..488967e7c --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeCreatePrePaidInstanceResultResult.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_ENS_MODEL_DESCRIBECREATEPREPAIDINSTANCERESULTRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBECREATEPREPAIDINSTANCERESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeCreatePrePaidInstanceResultResult : public ServiceResult + { + public: + struct InstanceCreateResult + { + std::string instanceId; + std::string instanceCreateStatus; + }; + + + DescribeCreatePrePaidInstanceResultResult(); + explicit DescribeCreatePrePaidInstanceResultResult(const std::string &payload); + ~DescribeCreatePrePaidInstanceResultResult(); + InstanceCreateResult getInstanceCreateResult()const; + + protected: + void parse(const std::string &payload); + private: + InstanceCreateResult instanceCreateResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBECREATEPREPAIDINSTANCERESULTRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeDataDistResultRequest.h b/ens/include/alibabacloud/ens/model/DescribeDataDistResultRequest.h new file mode 100644 index 000000000..5066c8c20 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeDataDistResultRequest.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_ENS_MODEL_DESCRIBEDATADISTRESULTREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEDATADISTRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeDataDistResultRequest : public RpcServiceRequest { +public: + DescribeDataDistResultRequest(); + ~DescribeDataDistResultRequest(); + std::string getDataVersions() const; + void setDataVersions(const std::string &dataVersions); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + std::string getMaxDate() const; + void setMaxDate(const std::string &maxDate); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getMinDate() const; + void setMinDate(const std::string &minDate); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getDataNames() const; + void setDataNames(const std::string &dataNames); + +private: + std::string dataVersions_; + std::string instanceIds_; + std::string maxDate_; + int pageNumber_; + int pageSize_; + std::string minDate_; + std::string appId_; + std::string dataNames_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEDATADISTRESULTREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeDataDistResultResult.h b/ens/include/alibabacloud/ens/model/DescribeDataDistResultResult.h new file mode 100644 index 000000000..ab7aa8684 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeDataDistResultResult.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_ENS_MODEL_DESCRIBEDATADISTRESULTRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEDATADISTRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeDataDistResultResult : public ServiceResult + { + public: + struct DistResult + { + struct StatusStat + { + struct Instance + { + std::string instanceId; + std::string startTime; + std::string updateTime; + std::string statusDescrip; + }; + std::vector instances; + std::string status; + std::string instanceCount; + }; + std::string version; + std::vector statusStats; + std::string name; + }; + + + DescribeDataDistResultResult(); + explicit DescribeDataDistResultResult(const std::string &payload); + ~DescribeDataDistResultResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getDistResults()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector distResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEDATADISTRESULTRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeDataDownloadURLRequest.h b/ens/include/alibabacloud/ens/model/DescribeDataDownloadURLRequest.h new file mode 100644 index 000000000..84886d747 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeDataDownloadURLRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEDATADOWNLOADURLREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEDATADOWNLOADURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeDataDownloadURLRequest : public RpcServiceRequest { +public: + DescribeDataDownloadURLRequest(); + ~DescribeDataDownloadURLRequest(); + long getExpireTimeout() const; + void setExpireTimeout(long expireTimeout); + std::string getServerFilterStrategy() const; + void setServerFilterStrategy(const std::string &serverFilterStrategy); + std::string getDataName() const; + void setDataName(const std::string &dataName); + std::string getDataVersion() const; + void setDataVersion(const std::string &dataVersion); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + long expireTimeout_; + std::string serverFilterStrategy_; + std::string dataName_; + std::string dataVersion_; + std::string appId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEDATADOWNLOADURLREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeDataDownloadURLResult.h b/ens/include/alibabacloud/ens/model/DescribeDataDownloadURLResult.h new file mode 100644 index 000000000..39dbee429 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeDataDownloadURLResult.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_ENS_MODEL_DESCRIBEDATADOWNLOADURLRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEDATADOWNLOADURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeDataDownloadURLResult : public ServiceResult + { + public: + struct Data + { + struct ServerListItem + { + std::string host; + std::string regionId; + }; + std::vector serverList; + std::string expireTime; + std::string url; + }; + + + DescribeDataDownloadURLResult(); + explicit DescribeDataDownloadURLResult(const std::string &payload); + ~DescribeDataDownloadURLResult(); + std::string getMessage()const; + Data getData()const; + long getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Data data_; + long code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEDATADOWNLOADURLRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeDataPushResultRequest.h b/ens/include/alibabacloud/ens/model/DescribeDataPushResultRequest.h new file mode 100644 index 000000000..ba86866c9 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeDataPushResultRequest.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_ENS_MODEL_DESCRIBEDATAPUSHRESULTREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEDATAPUSHRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeDataPushResultRequest : public RpcServiceRequest { +public: + DescribeDataPushResultRequest(); + ~DescribeDataPushResultRequest(); + std::string getRegionIds() const; + void setRegionIds(const std::string ®ionIds); + std::string getDataVersions() const; + void setDataVersions(const std::string &dataVersions); + std::string getMaxDate() const; + void setMaxDate(const std::string &maxDate); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getMinDate() const; + void setMinDate(const std::string &minDate); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getDataNames() const; + void setDataNames(const std::string &dataNames); + +private: + std::string regionIds_; + std::string dataVersions_; + std::string maxDate_; + int pageNumber_; + int pageSize_; + std::string minDate_; + std::string appId_; + std::string dataNames_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEDATAPUSHRESULTREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeDataPushResultResult.h b/ens/include/alibabacloud/ens/model/DescribeDataPushResultResult.h new file mode 100644 index 000000000..aa06be5f4 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeDataPushResultResult.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_ENS_MODEL_DESCRIBEDATAPUSHRESULTRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEDATAPUSHRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeDataPushResultResult : public ServiceResult + { + public: + struct PushResult + { + struct StatusStat + { + struct RegionId + { + std::string startTime; + std::string updateTime; + std::string regionId; + std::string statusDescrip; + }; + std::string status; + std::vector regionIds; + int regionIdCount; + }; + std::string version; + std::vector statusStatS; + std::string name; + }; + + + DescribeDataPushResultResult(); + explicit DescribeDataPushResultResult(const std::string &payload); + ~DescribeDataPushResultResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getPushResults()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector pushResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEDATAPUSHRESULTRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeDeviceServiceRequest.h b/ens/include/alibabacloud/ens/model/DescribeDeviceServiceRequest.h new file mode 100644 index 000000000..69b7e8182 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeDeviceServiceRequest.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_ENS_MODEL_DESCRIBEDEVICESERVICEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEDEVICESERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeDeviceServiceRequest : public RpcServiceRequest { +public: + DescribeDeviceServiceRequest(); + ~DescribeDeviceServiceRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getOrderId() const; + void setOrderId(const std::string &orderId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getServiceId() const; + void setServiceId(const std::string &serviceId); + +private: + std::string regionId_; + std::string ensRegionId_; + std::string orderId_; + std::string instanceId_; + std::string appId_; + std::string serviceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEDEVICESERVICEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeDeviceServiceResult.h b/ens/include/alibabacloud/ens/model/DescribeDeviceServiceResult.h new file mode 100644 index 000000000..f88822450 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeDeviceServiceResult.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_ENS_MODEL_DESCRIBEDEVICESERVICERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEDEVICESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeDeviceServiceResult : public ServiceResult + { + public: + struct AppStatus + { + std::string phase; + std::string updateTime; + std::string statusDescrip; + }; + struct AppMetaData + { + std::string description; + std::string appId; + std::string createTime; + std::string clusterName; + std::string appType; + std::string appStableVersion; + std::string appName; + }; + struct DeviceInfo + { + std::string status; + std::string type; + std::string server; + std::string iP; + std::string iSP; + std::string imageID; + std::string regionID; + std::string iD; + std::string mac; + std::string deviceName; + }; + struct ResourceInfosItem + { + struct DeviceInfosItem + { + struct Ports + { + std::string containerPorts; + std::string hostPorts; + std::string externalIp; + std::string protocol; + }; + std::string status; + std::vector network; + std::string name; + }; + struct InternalIpsItem + { + std::string ip; + }; + struct PublicIpsItem + { + std::string ip; + }; + std::string appVersion; + std::string areaName; + std::vector publicIps; + std::string regionCode; + std::vector deviceInfos; + std::string instanceId; + std::string regionName; + std::string instanceStatus; + std::string createTime; + std::string areaCode; + std::string regionId; + std::vector internalIps; + }; + + + DescribeDeviceServiceResult(); + explicit DescribeDeviceServiceResult(const std::string &payload); + ~DescribeDeviceServiceResult(); + AppStatus getAppStatus()const; + AppMetaData getAppMetaData()const; + std::vector getResourceDetailInfos()const; + std::vector getResourceInfos()const; + + protected: + void parse(const std::string &payload); + private: + AppStatus appStatus_; + AppMetaData appMetaData_; + std::vector resourceDetailInfos_; + std::vector resourceInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEDEVICESERVICERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeDisksRequest.h b/ens/include/alibabacloud/ens/model/DescribeDisksRequest.h new file mode 100644 index 000000000..5e65f96fe --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeDisksRequest.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_ENS_MODEL_DESCRIBEDISKSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEDISKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeDisksRequest : public RpcServiceRequest { +public: + DescribeDisksRequest(); + ~DescribeDisksRequest(); + std::string getType() const; + void setType(const std::string &type); + std::string getOrderByParams() const; + void setOrderByParams(const std::string &orderByParams); + std::string getDiskName() const; + void setDiskName(const std::string &diskName); + std::string getDiskChargeType() const; + void setDiskChargeType(const std::string &diskChargeType); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getStatus() const; + void setStatus(const std::string &status); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getDiskIds() const; + void setDiskIds(const std::string &diskIds); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + std::string getEnsRegionIds() const; + void setEnsRegionIds(const std::string &ensRegionIds); + std::string getDiskType() const; + void setDiskType(const std::string &diskType); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + std::string type_; + std::string orderByParams_; + std::string diskName_; + std::string diskChargeType_; + std::string ensRegionId_; + std::string status_; + std::string pageNumber_; + std::string pageSize_; + std::string diskIds_; + std::string diskId_; + std::string ensRegionIds_; + std::string diskType_; + std::string category_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEDISKSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeDisksResult.h b/ens/include/alibabacloud/ens/model/DescribeDisksResult.h new file mode 100644 index 000000000..1ccee78c6 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeDisksResult.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_ENS_MODEL_DESCRIBEDISKSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEDISKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeDisksResult : public ServiceResult + { + public: + struct DisksItem + { + std::string instanceName; + std::string status; + bool portable; + std::string type; + std::string category; + std::string instanceId; + int size; + std::string creationTime; + std::string diskChargeType; + std::string diskName; + std::string ensRegionId; + std::string diskId; + }; + + + DescribeDisksResult(); + explicit DescribeDisksResult(const std::string &payload); + ~DescribeDisksResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getDisks()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector disks_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEDISKSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeEipAddressesRequest.h b/ens/include/alibabacloud/ens/model/DescribeEipAddressesRequest.h new file mode 100644 index 000000000..bd2988622 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEipAddressesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeEipAddressesRequest : public RpcServiceRequest { +public: + DescribeEipAddressesRequest(); + ~DescribeEipAddressesRequest(); + std::string getEips() const; + void setEips(const std::string &eips); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + +private: + std::string eips_; + std::string ensRegionId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeEipAddressesResult.h b/ens/include/alibabacloud/ens/model/DescribeEipAddressesResult.h new file mode 100644 index 000000000..7e435ca83 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEipAddressesResult.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_ENS_MODEL_DESCRIBEEIPADDRESSESRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEEIPADDRESSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeEipAddressesResult : public ServiceResult + { + public: + struct EipAddress + { + std::string instanceIdInternetIp; + std::string eip; + }; + + + DescribeEipAddressesResult(); + explicit DescribeEipAddressesResult(const std::string &payload); + ~DescribeEipAddressesResult(); + std::vector getEipAddresses()const; + + protected: + void parse(const std::string &payload); + private: + std::vector eipAddresses_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEEIPADDRESSESRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeElbAvailableResourceInfoRequest.h b/ens/include/alibabacloud/ens/model/DescribeElbAvailableResourceInfoRequest.h new file mode 100644 index 000000000..8cbacd37d --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeElbAvailableResourceInfoRequest.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_ENS_MODEL_DESCRIBEELBAVAILABLERESOURCEINFOREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEELBAVAILABLERESOURCEINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeElbAvailableResourceInfoRequest : public RpcServiceRequest { +public: + DescribeElbAvailableResourceInfoRequest(); + ~DescribeElbAvailableResourceInfoRequest(); + +private: +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEELBAVAILABLERESOURCEINFOREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeElbAvailableResourceInfoResult.h b/ens/include/alibabacloud/ens/model/DescribeElbAvailableResourceInfoResult.h new file mode 100644 index 000000000..18e26cc4a --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeElbAvailableResourceInfoResult.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_ENS_MODEL_DESCRIBEELBAVAILABLERESOURCEINFORESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEELBAVAILABLERESOURCEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeElbAvailableResourceInfoResult : public ServiceResult + { + public: + struct ElbAvailableResourceInfoItem + { + std::string area; + std::string canBuyCount; + std::string enName; + std::string ensRegionId; + std::string province; + std::string name; + std::vector loadBalancerSpec; + }; + + + DescribeElbAvailableResourceInfoResult(); + explicit DescribeElbAvailableResourceInfoResult(const std::string &payload); + ~DescribeElbAvailableResourceInfoResult(); + std::vector getElbAvailableResourceInfo()const; + + protected: + void parse(const std::string &payload); + private: + std::vector elbAvailableResourceInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEELBAVAILABLERESOURCEINFORESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsEipAddressesRequest.h b/ens/include/alibabacloud/ens/model/DescribeEnsEipAddressesRequest.h new file mode 100644 index 000000000..98402eecd --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEnsEipAddressesRequest.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_ENS_MODEL_DESCRIBEENSEIPADDRESSESREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEENSEIPADDRESSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeEnsEipAddressesRequest : public RpcServiceRequest { +public: + DescribeEnsEipAddressesRequest(); + ~DescribeEnsEipAddressesRequest(); + std::string getEipAddress() const; + void setEipAddress(const std::string &eipAddress); + std::string getStatus() const; + void setStatus(const std::string &status); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAssociatedInstanceType() const; + void setAssociatedInstanceType(const std::string &associatedInstanceType); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAssociatedInstanceId() const; + void setAssociatedInstanceId(const std::string &associatedInstanceId); + +private: + std::string eipAddress_; + std::string status_; + std::string allocationId_; + int pageNumber_; + std::string associatedInstanceType_; + int pageSize_; + std::string associatedInstanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEENSEIPADDRESSESREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsEipAddressesResult.h b/ens/include/alibabacloud/ens/model/DescribeEnsEipAddressesResult.h new file mode 100644 index 000000000..67c72b165 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEnsEipAddressesResult.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_ENS_MODEL_DESCRIBEENSEIPADDRESSESRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEENSEIPADDRESSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeEnsEipAddressesResult : public ServiceResult + { + public: + struct EipAddress + { + std::string status; + std::string description; + std::string instanceId; + std::string allocationId; + std::string isp; + std::string internetChargeType; + std::string name; + std::string allocationTime; + std::string chargeType; + int bandwidth; + std::string ipAddress; + std::string instanceType; + std::string ensRegionId; + }; + + + DescribeEnsEipAddressesResult(); + explicit DescribeEnsEipAddressesResult(const std::string &payload); + ~DescribeEnsEipAddressesResult(); + int getTotalCount()const; + std::vector getEipAddresses()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector eipAddresses_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEENSEIPADDRESSESRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsNetDistrictRequest.h b/ens/include/alibabacloud/ens/model/DescribeEnsNetDistrictRequest.h new file mode 100644 index 000000000..fd1ecaf41 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEnsNetDistrictRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEENSNETDISTRICTREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEENSNETDISTRICTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeEnsNetDistrictRequest : public RpcServiceRequest { +public: + DescribeEnsNetDistrictRequest(); + ~DescribeEnsNetDistrictRequest(); + std::string getNetLevelCode() const; + void setNetLevelCode(const std::string &netLevelCode); + std::string getNetDistrictCode() const; + void setNetDistrictCode(const std::string &netDistrictCode); + +private: + std::string netLevelCode_; + std::string netDistrictCode_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEENSNETDISTRICTREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsNetDistrictResult.h b/ens/include/alibabacloud/ens/model/DescribeEnsNetDistrictResult.h new file mode 100644 index 000000000..9dddddbf4 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEnsNetDistrictResult.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_ENS_MODEL_DESCRIBEENSNETDISTRICTRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEENSNETDISTRICTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeEnsNetDistrictResult : public ServiceResult + { + public: + struct EnsNetDistrict + { + std::string netDistrictEnName; + std::string netDistrictFatherCode; + std::string netDistrictName; + std::string netDistrictCode; + std::string netDistrictLevel; + std::string ensRegionIdCount; + }; + + + DescribeEnsNetDistrictResult(); + explicit DescribeEnsNetDistrictResult(const std::string &payload); + ~DescribeEnsNetDistrictResult(); + int getCode()const; + std::vector getEnsNetDistricts()const; + + protected: + void parse(const std::string &payload); + private: + int code_; + std::vector ensNetDistricts_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEENSNETDISTRICTRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsNetLevelRequest.h b/ens/include/alibabacloud/ens/model/DescribeEnsNetLevelRequest.h new file mode 100644 index 000000000..7af0ff7ba --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEnsNetLevelRequest.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_ENS_MODEL_DESCRIBEENSNETLEVELREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEENSNETLEVELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeEnsNetLevelRequest : public RpcServiceRequest { +public: + DescribeEnsNetLevelRequest(); + ~DescribeEnsNetLevelRequest(); + +private: +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEENSNETLEVELREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsNetLevelResult.h b/ens/include/alibabacloud/ens/model/DescribeEnsNetLevelResult.h new file mode 100644 index 000000000..e735d82ce --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEnsNetLevelResult.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_ENS_MODEL_DESCRIBEENSNETLEVELRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEENSNETLEVELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeEnsNetLevelResult : public ServiceResult + { + public: + struct EnsNetLevel + { + std::string ensNetLevelCode; + }; + + + DescribeEnsNetLevelResult(); + explicit DescribeEnsNetLevelResult(const std::string &payload); + ~DescribeEnsNetLevelResult(); + std::vector getEnsNetLevels()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector ensNetLevels_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEENSNETLEVELRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsNetSaleDistrictRequest.h b/ens/include/alibabacloud/ens/model/DescribeEnsNetSaleDistrictRequest.h new file mode 100644 index 000000000..f68debb2f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEnsNetSaleDistrictRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEENSNETSALEDISTRICTREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEENSNETSALEDISTRICTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeEnsNetSaleDistrictRequest : public RpcServiceRequest { +public: + DescribeEnsNetSaleDistrictRequest(); + ~DescribeEnsNetSaleDistrictRequest(); + std::string getNetLevelCode() const; + void setNetLevelCode(const std::string &netLevelCode); + std::string getNetDistrictCode() const; + void setNetDistrictCode(const std::string &netDistrictCode); + +private: + std::string netLevelCode_; + std::string netDistrictCode_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEENSNETSALEDISTRICTREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsNetSaleDistrictResult.h b/ens/include/alibabacloud/ens/model/DescribeEnsNetSaleDistrictResult.h new file mode 100644 index 000000000..41c1ec3bc --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEnsNetSaleDistrictResult.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_ENS_MODEL_DESCRIBEENSNETSALEDISTRICTRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEENSNETSALEDISTRICTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeEnsNetSaleDistrictResult : public ServiceResult + { + public: + struct EnsNetDistrict + { + std::string instanceCount; + std::string netDistrictEnName; + std::string netDistrictFatherCode; + std::string netDistrictName; + std::string netDistrictCode; + std::string netDistrictLevel; + std::string ensRegionIdCount; + }; + + + DescribeEnsNetSaleDistrictResult(); + explicit DescribeEnsNetSaleDistrictResult(const std::string &payload); + ~DescribeEnsNetSaleDistrictResult(); + int getCode()const; + std::vector getEnsNetDistricts()const; + + protected: + void parse(const std::string &payload); + private: + int code_; + std::vector ensNetDistricts_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEENSNETSALEDISTRICTRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsRegionIdIpv6InfoRequest.h b/ens/include/alibabacloud/ens/model/DescribeEnsRegionIdIpv6InfoRequest.h new file mode 100644 index 000000000..24e05167f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEnsRegionIdIpv6InfoRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEENSREGIONIDIPV6INFOREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEENSREGIONIDIPV6INFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeEnsRegionIdIpv6InfoRequest : public RpcServiceRequest { +public: + DescribeEnsRegionIdIpv6InfoRequest(); + ~DescribeEnsRegionIdIpv6InfoRequest(); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + +private: + std::string ensRegionId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEENSREGIONIDIPV6INFOREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsRegionIdIpv6InfoResult.h b/ens/include/alibabacloud/ens/model/DescribeEnsRegionIdIpv6InfoResult.h new file mode 100644 index 000000000..34f2e676d --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEnsRegionIdIpv6InfoResult.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_ENS_MODEL_DESCRIBEENSREGIONIDIPV6INFORESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEENSREGIONIDIPV6INFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeEnsRegionIdIpv6InfoResult : public ServiceResult + { + public: + struct SupportIpv6Info + { + bool supportIpv6; + std::string ensRegionId; + }; + + + DescribeEnsRegionIdIpv6InfoResult(); + explicit DescribeEnsRegionIdIpv6InfoResult(const std::string &payload); + ~DescribeEnsRegionIdIpv6InfoResult(); + SupportIpv6Info getSupportIpv6Info()const; + + protected: + void parse(const std::string &payload); + private: + SupportIpv6Info supportIpv6Info_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEENSREGIONIDIPV6INFORESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsRegionIdResourceRequest.h b/ens/include/alibabacloud/ens/model/DescribeEnsRegionIdResourceRequest.h new file mode 100644 index 000000000..97b02b069 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEnsRegionIdResourceRequest.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_ENS_MODEL_DESCRIBEENSREGIONIDRESOURCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEENSREGIONIDRESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeEnsRegionIdResourceRequest : public RpcServiceRequest { +public: + DescribeEnsRegionIdResourceRequest(); + ~DescribeEnsRegionIdResourceRequest(); + std::string getIsp() const; + void setIsp(const std::string &isp); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getOrderByParams() const; + void setOrderByParams(const std::string &orderByParams); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + +private: + std::string isp_; + std::string startTime_; + int pageNumber_; + std::string orderByParams_; + std::string pageSize_; + std::string endTime_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEENSREGIONIDRESOURCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsRegionIdResourceResult.h b/ens/include/alibabacloud/ens/model/DescribeEnsRegionIdResourceResult.h new file mode 100644 index 000000000..9098706f5 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEnsRegionIdResourceResult.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_ENS_MODEL_DESCRIBEENSREGIONIDRESOURCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEENSREGIONIDRESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeEnsRegionIdResourceResult : public ServiceResult + { + public: + struct EnsRegionIdResource + { + long internetBandwidth; + int instanceCount; + std::string area; + std::string ensRegionIdName; + std::string isp; + std::string areaCode; + int vCpu; + std::string ensRegionId; + std::string bizDate; + }; + + + DescribeEnsRegionIdResourceResult(); + explicit DescribeEnsRegionIdResourceResult(const std::string &payload); + ~DescribeEnsRegionIdResourceResult(); + std::vector getEnsRegionIdResources()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector ensRegionIdResources_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEENSREGIONIDRESOURCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsRegionsRequest.h b/ens/include/alibabacloud/ens/model/DescribeEnsRegionsRequest.h new file mode 100644 index 000000000..2acb6bf69 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEnsRegionsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEENSREGIONSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEENSREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeEnsRegionsRequest : public RpcServiceRequest { +public: + DescribeEnsRegionsRequest(); + ~DescribeEnsRegionsRequest(); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + +private: + std::string ensRegionId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEENSREGIONSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsRegionsResult.h b/ens/include/alibabacloud/ens/model/DescribeEnsRegionsResult.h new file mode 100644 index 000000000..1776862a5 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEnsRegionsResult.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_ENS_MODEL_DESCRIBEENSREGIONSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEENSREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeEnsRegionsResult : public ServiceResult + { + public: + struct EnsRegionsItem + { + std::string area; + std::string enName; + std::string ensRegionId; + std::string province; + std::string name; + }; + + + DescribeEnsRegionsResult(); + explicit DescribeEnsRegionsResult(const std::string &payload); + ~DescribeEnsRegionsResult(); + std::vector getEnsRegions()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector ensRegions_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEENSREGIONSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsResourceUsageRequest.h b/ens/include/alibabacloud/ens/model/DescribeEnsResourceUsageRequest.h new file mode 100644 index 000000000..28711b985 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEnsResourceUsageRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEENSRESOURCEUSAGEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEENSRESOURCEUSAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeEnsResourceUsageRequest : public RpcServiceRequest { +public: + DescribeEnsResourceUsageRequest(); + ~DescribeEnsResourceUsageRequest(); + std::string getExpiredStartTime() const; + void setExpiredStartTime(const std::string &expiredStartTime); + std::string getExpiredEndTime() const; + void setExpiredEndTime(const std::string &expiredEndTime); + +private: + std::string expiredStartTime_; + std::string expiredEndTime_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEENSRESOURCEUSAGEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeEnsResourceUsageResult.h b/ens/include/alibabacloud/ens/model/DescribeEnsResourceUsageResult.h new file mode 100644 index 000000000..a92677f96 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEnsResourceUsageResult.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_ENS_MODEL_DESCRIBEENSRESOURCEUSAGERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEENSRESOURCEUSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeEnsResourceUsageResult : public ServiceResult + { + public: + struct EnsResourceUsageItem + { + int instanceCount; + int diskCount; + int downCount; + int runningCount; + std::string serviceType; + long cpuSum; + int expiredCount; + long gpuSum; + long storageSum; + int computeResourceCount; + int expiringCount; + }; + + + DescribeEnsResourceUsageResult(); + explicit DescribeEnsResourceUsageResult(const std::string &payload); + ~DescribeEnsResourceUsageResult(); + std::vector getEnsResourceUsage()const; + + protected: + void parse(const std::string &payload); + private: + std::vector ensResourceUsage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEENSRESOURCEUSAGERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeEpnBandWidthDataRequest.h b/ens/include/alibabacloud/ens/model/DescribeEpnBandWidthDataRequest.h new file mode 100644 index 000000000..128fb07c6 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEpnBandWidthDataRequest.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_ENS_MODEL_DESCRIBEEPNBANDWIDTHDATAREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNBANDWIDTHDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeEpnBandWidthDataRequest : public RpcServiceRequest { +public: + DescribeEpnBandWidthDataRequest(); + ~DescribeEpnBandWidthDataRequest(); + std::string getIsp() const; + void setIsp(const std::string &isp); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getEPNInstanceId() const; + void setEPNInstanceId(const std::string &ePNInstanceId); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getNetworkingModel() const; + void setNetworkingModel(const std::string &networkingModel); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + +private: + std::string isp_; + std::string startTime_; + std::string ensRegionId_; + std::string ePNInstanceId_; + std::string period_; + std::string instanceId_; + std::string networkingModel_; + std::string endTime_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNBANDWIDTHDATAREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeEpnBandWidthDataResult.h b/ens/include/alibabacloud/ens/model/DescribeEpnBandWidthDataResult.h new file mode 100644 index 000000000..af398913e --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEpnBandWidthDataResult.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_ENS_MODEL_DESCRIBEEPNBANDWIDTHDATARESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNBANDWIDTHDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeEpnBandWidthDataResult : public ServiceResult + { + public: + struct MonitorData + { + struct BandWidthMonitorDataItem + { + long upBandWidth; + long downBandWidth; + long internetTX; + long internetRX; + std::string timeStamp; + }; + long maxDownBandWidth; + long maxUpBandWidth; + std::vector bandWidthMonitorData; + }; + + + DescribeEpnBandWidthDataResult(); + explicit DescribeEpnBandWidthDataResult(const std::string &payload); + ~DescribeEpnBandWidthDataResult(); + MonitorData getMonitorData()const; + + protected: + void parse(const std::string &payload); + private: + MonitorData monitorData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNBANDWIDTHDATARESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeEpnBandwitdhByInternetChargeTypeRequest.h b/ens/include/alibabacloud/ens/model/DescribeEpnBandwitdhByInternetChargeTypeRequest.h new file mode 100644 index 000000000..449e1086c --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEpnBandwitdhByInternetChargeTypeRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNBANDWITDHBYINTERNETCHARGETYPEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNBANDWITDHBYINTERNETCHARGETYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeEpnBandwitdhByInternetChargeTypeRequest : public RpcServiceRequest { +public: + DescribeEpnBandwitdhByInternetChargeTypeRequest(); + ~DescribeEpnBandwitdhByInternetChargeTypeRequest(); + std::string getNetworkingModel() const; + void setNetworkingModel(const std::string &networkingModel); + std::string getIsp() const; + void setIsp(const std::string &isp); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + +private: + std::string networkingModel_; + std::string isp_; + std::string startTime_; + std::string ensRegionId_; + std::string endTime_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNBANDWITDHBYINTERNETCHARGETYPEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeEpnBandwitdhByInternetChargeTypeResult.h b/ens/include/alibabacloud/ens/model/DescribeEpnBandwitdhByInternetChargeTypeResult.h new file mode 100644 index 000000000..5ecca0008 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEpnBandwitdhByInternetChargeTypeResult.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_ENS_MODEL_DESCRIBEEPNBANDWITDHBYINTERNETCHARGETYPERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNBANDWITDHBYINTERNETCHARGETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeEpnBandwitdhByInternetChargeTypeResult : public ServiceResult + { + public: + + + DescribeEpnBandwitdhByInternetChargeTypeResult(); + explicit DescribeEpnBandwitdhByInternetChargeTypeResult(const std::string &payload); + ~DescribeEpnBandwitdhByInternetChargeTypeResult(); + long getBandwidthValue()const; + std::string getTimeStamp()const; + std::string getInternetChargeType()const; + + protected: + void parse(const std::string &payload); + private: + long bandwidthValue_; + std::string timeStamp_; + std::string internetChargeType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNBANDWITDHBYINTERNETCHARGETYPERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeEpnInstanceAttributeRequest.h b/ens/include/alibabacloud/ens/model/DescribeEpnInstanceAttributeRequest.h new file mode 100644 index 000000000..97a89c6f3 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEpnInstanceAttributeRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNINSTANCEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeEpnInstanceAttributeRequest : public RpcServiceRequest { +public: + DescribeEpnInstanceAttributeRequest(); + ~DescribeEpnInstanceAttributeRequest(); + std::string getEPNInstanceId() const; + void setEPNInstanceId(const std::string &ePNInstanceId); + +private: + std::string ePNInstanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNINSTANCEATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeEpnInstanceAttributeResult.h b/ens/include/alibabacloud/ens/model/DescribeEpnInstanceAttributeResult.h new file mode 100644 index 000000000..18a9fe9ae --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEpnInstanceAttributeResult.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_ENS_MODEL_DESCRIBEEPNINSTANCEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNINSTANCEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeEpnInstanceAttributeResult : public ServiceResult + { + public: + struct ConfVersionsItem + { + std::string confVersion; + std::string ensRegionId; + }; + struct EPNInstance + { + std::string instanceName; + std::string publicIpAddress; + std::string status; + std::string privateIpAddress; + std::string instanceId; + std::string isp; + std::string ensRegionId; + }; + struct EPNInstance1 + { + std::string vSwitchId; + std::string cidrBlock; + std::string vSwitchName; + std::string ensRegionId; + }; + + + DescribeEpnInstanceAttributeResult(); + explicit DescribeEpnInstanceAttributeResult(const std::string &payload); + ~DescribeEpnInstanceAttributeResult(); + std::vector getInstances()const; + std::string getNetworkingModel()const; + std::vector getVSwitches()const; + std::string getEPNInstanceId()const; + std::vector getConfVersions()const; + std::string getEPNInstanceName()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instances_; + std::string networkingModel_; + std::vector vSwitches_; + std::string ePNInstanceId_; + std::vector confVersions_; + std::string ePNInstanceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNINSTANCEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeEpnInstancesRequest.h b/ens/include/alibabacloud/ens/model/DescribeEpnInstancesRequest.h new file mode 100644 index 000000000..7ac5a6d7f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEpnInstancesRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeEpnInstancesRequest : public RpcServiceRequest { +public: + DescribeEpnInstancesRequest(); + ~DescribeEpnInstancesRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getEPNInstanceId() const; + void setEPNInstanceId(const std::string &ePNInstanceId); + std::string getEPNInstanceName() const; + void setEPNInstanceName(const std::string &ePNInstanceName); + +private: + int pageNumber_; + int pageSize_; + std::string ePNInstanceId_; + std::string ePNInstanceName_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNINSTANCESREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeEpnInstancesResult.h b/ens/include/alibabacloud/ens/model/DescribeEpnInstancesResult.h new file mode 100644 index 000000000..14d44ead9 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEpnInstancesResult.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_ENS_MODEL_DESCRIBEEPNINSTANCESRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeEpnInstancesResult : public ServiceResult + { + public: + struct EPNInstance + { + std::string ePNInstanceType; + std::string status; + std::string modifyTime; + int internetMaxBandwidthOut; + std::string endTime; + std::string networkingModel; + std::string creationTime; + std::string startTime; + std::string ePNInstanceId; + std::string ePNInstanceName; + }; + + + DescribeEpnInstancesResult(); + explicit DescribeEpnInstancesResult(const std::string &payload); + ~DescribeEpnInstancesResult(); + int getTotalCount()const; + std::vector getEPNInstances()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector ePNInstances_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeEpnMeasurementDataRequest.h b/ens/include/alibabacloud/ens/model/DescribeEpnMeasurementDataRequest.h new file mode 100644 index 000000000..b96b275a2 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEpnMeasurementDataRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNMEASUREMENTDATAREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNMEASUREMENTDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeEpnMeasurementDataRequest : public RpcServiceRequest { +public: + DescribeEpnMeasurementDataRequest(); + ~DescribeEpnMeasurementDataRequest(); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + +private: + std::string startDate_; + std::string endDate_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNMEASUREMENTDATAREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeEpnMeasurementDataResult.h b/ens/include/alibabacloud/ens/model/DescribeEpnMeasurementDataResult.h new file mode 100644 index 000000000..5cc4ec479 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeEpnMeasurementDataResult.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_ENS_MODEL_DESCRIBEEPNMEASUREMENTDATARESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNMEASUREMENTDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeEpnMeasurementDataResult : public ServiceResult + { + public: + struct MeasurementData + { + struct BandWidthFeeData + { + int costVal; + std::string costCode; + std::string ispLine; + std::string costType; + std::string costName; + }; + std::vector bandWidthFeeDatas; + std::string chargeModel; + std::string costCycle; + std::string costEndTime; + std::string costStartTime; + }; + + + DescribeEpnMeasurementDataResult(); + explicit DescribeEpnMeasurementDataResult(const std::string &payload); + ~DescribeEpnMeasurementDataResult(); + std::vector getMeasurementDatas()const; + + protected: + void parse(const std::string &payload); + private: + std::vector measurementDatas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEEPNMEASUREMENTDATARESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeExportImageInfoRequest.h b/ens/include/alibabacloud/ens/model/DescribeExportImageInfoRequest.h new file mode 100644 index 000000000..5519d1cc8 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeExportImageInfoRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEEXPORTIMAGEINFOREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEEXPORTIMAGEINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeExportImageInfoRequest : public RpcServiceRequest { +public: + DescribeExportImageInfoRequest(); + ~DescribeExportImageInfoRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getImageName() const; + void setImageName(const std::string &imageName); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string imageId_; + int pageNumber_; + std::string imageName_; + int pageSize_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEEXPORTIMAGEINFOREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeExportImageInfoResult.h b/ens/include/alibabacloud/ens/model/DescribeExportImageInfoResult.h new file mode 100644 index 000000000..f05417b57 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeExportImageInfoResult.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_ENS_MODEL_DESCRIBEEXPORTIMAGEINFORESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEEXPORTIMAGEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeExportImageInfoResult : public ServiceResult + { + public: + struct Image + { + std::string imageOwnerAlias; + std::string imageName; + std::string architecture; + std::string platform; + std::string exportedImageURL; + std::string creationTime; + std::string imageId; + std::string imageExportStatus; + }; + + + DescribeExportImageInfoResult(); + explicit DescribeExportImageInfoResult(const std::string &payload); + ~DescribeExportImageInfoResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getImages()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector images_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEEXPORTIMAGEINFORESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeExportImageStatusRequest.h b/ens/include/alibabacloud/ens/model/DescribeExportImageStatusRequest.h new file mode 100644 index 000000000..f50ce1cd2 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeExportImageStatusRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEEXPORTIMAGESTATUSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEEXPORTIMAGESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeExportImageStatusRequest : public RpcServiceRequest { +public: + DescribeExportImageStatusRequest(); + ~DescribeExportImageStatusRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + +private: + std::string imageId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEEXPORTIMAGESTATUSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeExportImageStatusResult.h b/ens/include/alibabacloud/ens/model/DescribeExportImageStatusResult.h new file mode 100644 index 000000000..aae3c0858 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeExportImageStatusResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEEXPORTIMAGESTATUSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEEXPORTIMAGESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeExportImageStatusResult : public ServiceResult + { + public: + + + DescribeExportImageStatusResult(); + explicit DescribeExportImageStatusResult(const std::string &payload); + ~DescribeExportImageStatusResult(); + std::string getImageExportStatus()const; + + protected: + void parse(const std::string &payload); + private: + std::string imageExportStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEEXPORTIMAGESTATUSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeImageInfosRequest.h b/ens/include/alibabacloud/ens/model/DescribeImageInfosRequest.h new file mode 100644 index 000000000..1e8a00a48 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeImageInfosRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEIMAGEINFOSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEIMAGEINFOSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeImageInfosRequest : public RpcServiceRequest { +public: + DescribeImageInfosRequest(); + ~DescribeImageInfosRequest(); + std::string getOsType() const; + void setOsType(const std::string &osType); + +private: + std::string osType_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEIMAGEINFOSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeImageInfosResult.h b/ens/include/alibabacloud/ens/model/DescribeImageInfosResult.h new file mode 100644 index 000000000..e3c670415 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeImageInfosResult.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_ENS_MODEL_DESCRIBEIMAGEINFOSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEIMAGEINFOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeImageInfosResult : public ServiceResult + { + public: + struct Image + { + std::string description; + std::string imageVersion; + std::string imageSize; + std::string oSType; + std::string imageId; + std::string oSName; + }; + + + DescribeImageInfosResult(); + explicit DescribeImageInfosResult(const std::string &payload); + ~DescribeImageInfosResult(); + std::vector getImages()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector images_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEIMAGEINFOSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeImageSharePermissionRequest.h b/ens/include/alibabacloud/ens/model/DescribeImageSharePermissionRequest.h new file mode 100644 index 000000000..310f6d22b --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeImageSharePermissionRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEIMAGESHAREPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEIMAGESHAREPERMISSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeImageSharePermissionRequest : public RpcServiceRequest { +public: + DescribeImageSharePermissionRequest(); + ~DescribeImageSharePermissionRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + long getAliyunId() const; + void setAliyunId(long aliyunId); + +private: + std::string imageId_; + std::string pageNumber_; + std::string pageSize_; + long aliyunId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEIMAGESHAREPERMISSIONREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeImageSharePermissionResult.h b/ens/include/alibabacloud/ens/model/DescribeImageSharePermissionResult.h new file mode 100644 index 000000000..987671013 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeImageSharePermissionResult.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_ENS_MODEL_DESCRIBEIMAGESHAREPERMISSIONRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEIMAGESHAREPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeImageSharePermissionResult : public ServiceResult + { + public: + + + DescribeImageSharePermissionResult(); + explicit DescribeImageSharePermissionResult(const std::string &payload); + ~DescribeImageSharePermissionResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getImageId()const; + std::vector getAccounts()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::string imageId_; + std::vector accounts_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEIMAGESHAREPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeImagesRequest.h b/ens/include/alibabacloud/ens/model/DescribeImagesRequest.h new file mode 100644 index 000000000..40a1f9fd8 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeImagesRequest.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_ENS_MODEL_DESCRIBEIMAGESREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEIMAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeImagesRequest : public RpcServiceRequest { +public: + DescribeImagesRequest(); + ~DescribeImagesRequest(); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getStatus() const; + void setStatus(const std::string &status); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getImageName() const; + void setImageName(const std::string &imageName); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getProduct() const; + void setProduct(const std::string &product); + +private: + std::string ensRegionId_; + std::string status_; + std::string imageId_; + std::string pageNumber_; + std::string imageName_; + std::string pageSize_; + std::string product_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEIMAGESREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeImagesResult.h b/ens/include/alibabacloud/ens/model/DescribeImagesResult.h new file mode 100644 index 000000000..e497205fb --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeImagesResult.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_ENS_MODEL_DESCRIBEIMAGESRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeImagesResult : public ServiceResult + { + public: + struct Image + { + std::string imageOwnerAlias; + std::string imageName; + std::string architecture; + std::string platform; + std::string imageSize; + std::string creationTime; + std::string imageId; + }; + + + DescribeImagesResult(); + explicit DescribeImagesResult(const std::string &payload); + ~DescribeImagesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getImages()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector images_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEIMAGESRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeInstanceAutoRenewAttributeRequest.h b/ens/include/alibabacloud/ens/model/DescribeInstanceAutoRenewAttributeRequest.h new file mode 100644 index 000000000..152871d75 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeInstanceAutoRenewAttributeRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeInstanceAutoRenewAttributeRequest : public RpcServiceRequest { +public: + DescribeInstanceAutoRenewAttributeRequest(); + ~DescribeInstanceAutoRenewAttributeRequest(); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + +private: + long ownerId_; + std::string instanceIds_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeInstanceAutoRenewAttributeResult.h b/ens/include/alibabacloud/ens/model/DescribeInstanceAutoRenewAttributeResult.h new file mode 100644 index 000000000..511efa4a4 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeInstanceAutoRenewAttributeResult.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_ENS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeInstanceAutoRenewAttributeResult : public ServiceResult + { + public: + struct InstanceRenewAttribute + { + bool autoRenewal; + std::string instanceId; + std::string duration; + }; + + + DescribeInstanceAutoRenewAttributeResult(); + explicit DescribeInstanceAutoRenewAttributeResult(const std::string &payload); + ~DescribeInstanceAutoRenewAttributeResult(); + std::vector getInstanceRenewAttributes()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instanceRenewAttributes_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeInstanceMonitorDataRequest.h b/ens/include/alibabacloud/ens/model/DescribeInstanceMonitorDataRequest.h new file mode 100644 index 000000000..db0476d0d --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeInstanceMonitorDataRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCEMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCEMONITORDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeInstanceMonitorDataRequest : public RpcServiceRequest { +public: + DescribeInstanceMonitorDataRequest(); + ~DescribeInstanceMonitorDataRequest(); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string startTime_; + std::string period_; + std::string endTime_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCEMONITORDATAREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeInstanceMonitorDataResult.h b/ens/include/alibabacloud/ens/model/DescribeInstanceMonitorDataResult.h new file mode 100644 index 000000000..1c4df55fe --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeInstanceMonitorDataResult.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_ENS_MODEL_DESCRIBEINSTANCEMONITORDATARESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCEMONITORDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeInstanceMonitorDataResult : public ServiceResult + { + public: + struct InstanceMonitorData + { + std::string instanceId; + std::string memory; + std::string cPU; + }; + + + DescribeInstanceMonitorDataResult(); + explicit DescribeInstanceMonitorDataResult(const std::string &payload); + ~DescribeInstanceMonitorDataResult(); + std::vector getMonitorData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector monitorData_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCEMONITORDATARESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeInstanceSpecRequest.h b/ens/include/alibabacloud/ens/model/DescribeInstanceSpecRequest.h new file mode 100644 index 000000000..29cf441e8 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeInstanceSpecRequest.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_ENS_MODEL_DESCRIBEINSTANCESPECREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCESPECREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeInstanceSpecRequest : public RpcServiceRequest { +public: + DescribeInstanceSpecRequest(); + ~DescribeInstanceSpecRequest(); + +private: +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCESPECREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeInstanceSpecResult.h b/ens/include/alibabacloud/ens/model/DescribeInstanceSpecResult.h new file mode 100644 index 000000000..ba71f603c --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeInstanceSpecResult.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_ENS_MODEL_DESCRIBEINSTANCESPECRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeInstanceSpecResult : public ServiceResult + { + public: + struct InstanceSpec + { + std::string memory; + std::string displayName; + std::string instanceType; + std::string core; + }; + + + DescribeInstanceSpecResult(); + explicit DescribeInstanceSpecResult(const std::string &payload); + ~DescribeInstanceSpecResult(); + int getDataDiskMinSize()const; + int getSystemDiskMaxSize()const; + int getDataDiskMaxSize()const; + int getCode()const; + std::vector getInstanceSpecs()const; + int getBandwidthLimit()const; + + protected: + void parse(const std::string &payload); + private: + int dataDiskMinSize_; + int systemDiskMaxSize_; + int dataDiskMaxSize_; + int code_; + std::vector instanceSpecs_; + int bandwidthLimit_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCESPECRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeInstanceTypesRequest.h b/ens/include/alibabacloud/ens/model/DescribeInstanceTypesRequest.h new file mode 100644 index 000000000..4f477a797 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeInstanceTypesRequest.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_ENS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeInstanceTypesRequest : public RpcServiceRequest { +public: + DescribeInstanceTypesRequest(); + ~DescribeInstanceTypesRequest(); + +private: +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeInstanceTypesResult.h b/ens/include/alibabacloud/ens/model/DescribeInstanceTypesResult.h new file mode 100644 index 000000000..959b8d460 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeInstanceTypesResult.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_ENS_MODEL_DESCRIBEINSTANCETYPESRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCETYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeInstanceTypesResult : public ServiceResult + { + public: + struct InstanceType + { + int memorySize; + int cpuCoreCount; + std::string instanceTypeId; + std::string instanceTypeName; + }; + + + DescribeInstanceTypesResult(); + explicit DescribeInstanceTypesResult(const std::string &payload); + ~DescribeInstanceTypesResult(); + std::vector getInstanceTypes()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instanceTypes_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCETYPESRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeInstanceVncUrlRequest.h b/ens/include/alibabacloud/ens/model/DescribeInstanceVncUrlRequest.h new file mode 100644 index 000000000..287e546a8 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeInstanceVncUrlRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeInstanceVncUrlRequest : public RpcServiceRequest { +public: + DescribeInstanceVncUrlRequest(); + ~DescribeInstanceVncUrlRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeInstanceVncUrlResult.h b/ens/include/alibabacloud/ens/model/DescribeInstanceVncUrlResult.h new file mode 100644 index 000000000..d1c92121b --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeInstanceVncUrlResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCEVNCURLRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCEVNCURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeInstanceVncUrlResult : public ServiceResult + { + public: + + + DescribeInstanceVncUrlResult(); + explicit DescribeInstanceVncUrlResult(const std::string &payload); + ~DescribeInstanceVncUrlResult(); + std::string getVncUrl()const; + + protected: + void parse(const std::string &payload); + private: + std::string vncUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCEVNCURLRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeInstancesRequest.h b/ens/include/alibabacloud/ens/model/DescribeInstancesRequest.h new file mode 100644 index 000000000..3b2e001b3 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeInstancesRequest.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeInstancesRequest : public RpcServiceRequest { +public: + DescribeInstancesRequest(); + ~DescribeInstancesRequest(); + std::string getOrderByParams() const; + void setOrderByParams(const std::string &orderByParams); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getInstanceResourceType() const; + void setInstanceResourceType(const std::string &instanceResourceType); + std::string getEnsServiceId() const; + void setEnsServiceId(const std::string &ensServiceId); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + std::string getNetworkId() const; + void setNetworkId(const std::string &networkId); + std::string getStatus() const; + void setStatus(const std::string &status); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getSearchKey() const; + void setSearchKey(const std::string &searchKey); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getEnsRegionIds() const; + void setEnsRegionIds(const std::string &ensRegionIds); + +private: + std::string orderByParams_; + std::string ensRegionId_; + std::string instanceResourceType_; + std::string ensServiceId_; + std::string vSwitchId_; + std::string instanceId_; + std::string instanceName_; + std::string instanceIds_; + std::string networkId_; + std::string status_; + std::string imageId_; + std::string securityGroupId_; + std::string searchKey_; + int pageNumber_; + std::string pageSize_; + std::string ensRegionIds_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCESREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeInstancesResult.h b/ens/include/alibabacloud/ens/model/DescribeInstancesResult.h new file mode 100644 index 000000000..1e01ef053 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeInstancesResult.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_ENS_MODEL_DESCRIBEINSTANCESRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeInstancesResult : public ServiceResult + { + public: + struct Instance + { + struct SystemDisk + { + std::string device_type; + std::string disk_type; + std::string uuid; + int storage; + std::string category; + int size; + std::string diskName; + std::string diskId; + std::string name; + }; + struct NetworkAttributes + { + std::vector privateIpAddress; + std::string vSwitchId; + std::string networkId; + }; + struct DataDiskItem + { + std::string device_type; + std::string disk_type; + std::string uuid; + int storage; + std::string category; + int size; + std::string diskName; + std::string diskId; + std::string name; + }; + struct PublicIpAddress + { + std::string gateWay; + std::string ip; + std::string isp; + }; + struct PrivateIpAddress + { + std::string gateWay; + std::string ip; + std::string isp; + }; + std::string status; + std::vector privateIpAddresses; + std::string instanceId; + int memory; + std::string cpu; + std::string specName; + std::string oSName; + std::vector securityGroupIds; + SystemDisk systemDisk; + std::string instanceName; + std::vector publicIpAddress; + NetworkAttributes networkAttributes; + std::vector innerIpAddress; + std::vector dataDisk; + int internetMaxBandwidthOut; + int internetMaxBandwidthIn; + std::string expiredTime; + std::string creationTime; + std::string imageId; + std::vector publicIpAddresses; + std::string ensRegionId; + int disk; + std::string hostName; + std::string instanceResourceType; + }; + + + DescribeInstancesResult(); + explicit DescribeInstancesResult(const std::string &payload); + ~DescribeInstancesResult(); + std::vector getInstances()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instances_; + int totalCount_; + int pageSize_; + int pageNumber_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeKeyPairsRequest.h b/ens/include/alibabacloud/ens/model/DescribeKeyPairsRequest.h new file mode 100644 index 000000000..dc82a9913 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeKeyPairsRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEKEYPAIRSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEKEYPAIRSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeKeyPairsRequest : public RpcServiceRequest { +public: + DescribeKeyPairsRequest(); + ~DescribeKeyPairsRequest(); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + +private: + std::string keyPairName_; + std::string pageNumber_; + std::string pageSize_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEKEYPAIRSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeKeyPairsResult.h b/ens/include/alibabacloud/ens/model/DescribeKeyPairsResult.h new file mode 100644 index 000000000..7943e849e --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeKeyPairsResult.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_ENS_MODEL_DESCRIBEKEYPAIRSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEKEYPAIRSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeKeyPairsResult : public ServiceResult + { + public: + struct KeyPair + { + std::string keyPairFingerPrint; + std::string keyPairName; + std::string creationTime; + }; + + + DescribeKeyPairsResult(); + explicit DescribeKeyPairsResult(const std::string &payload); + ~DescribeKeyPairsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getKeyPairs()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector keyPairs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEKEYPAIRSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerAttributeRequest.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerAttributeRequest.h new file mode 100644 index 000000000..bb0137ee3 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerAttributeRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeLoadBalancerAttributeRequest : public RpcServiceRequest { +public: + DescribeLoadBalancerAttributeRequest(); + ~DescribeLoadBalancerAttributeRequest(); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerAttributeResult.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerAttributeResult.h new file mode 100644 index 000000000..8f971358f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerAttributeResult.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_ENS_MODEL_DESCRIBELOADBALANCERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeLoadBalancerAttributeResult : public ServiceResult + { + public: + struct Rs + { + std::string type; + std::string serverId; + std::string ip; + std::string port; + int weight; + }; + struct Listener + { + std::string listenerForward; + int listenerPort; + std::string description; + int forwardPort; + std::string listenerProtocol; + }; + + + DescribeLoadBalancerAttributeResult(); + explicit DescribeLoadBalancerAttributeResult(const std::string &payload); + ~DescribeLoadBalancerAttributeResult(); + std::string getAddress()const; + std::string getEndTime()const; + std::string getVSwitchId()const; + std::string getCreateTime()const; + std::string getAddressIPVersion()const; + std::string getLoadBalancerId()const; + std::string getPayType()const; + std::vector getBackendServers()const; + std::string getNetworkId()const; + std::string getLoadBalancerSpec()const; + std::string getLoadBalancerName()const; + int getBandwidth()const; + std::vector getListenerPortsAndProtocols()const; + std::string getEnsRegionId()const; + std::string getLoadBalancerStatus()const; + std::vector getListenerPorts()const; + + protected: + void parse(const std::string &payload); + private: + std::string address_; + std::string endTime_; + std::string vSwitchId_; + std::string createTime_; + std::string addressIPVersion_; + std::string loadBalancerId_; + std::string payType_; + std::vector backendServers_; + std::string networkId_; + std::string loadBalancerSpec_; + std::string loadBalancerName_; + int bandwidth_; + std::vector listenerPortsAndProtocols_; + std::string ensRegionId_; + std::string loadBalancerStatus_; + std::vector listenerPorts_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerHTTPListenerAttributeRequest.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerHTTPListenerAttributeRequest.h new file mode 100644 index 000000000..5a6d6c678 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerHTTPListenerAttributeRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERHTTPLISTENERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERHTTPLISTENERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeLoadBalancerHTTPListenerAttributeRequest : public RpcServiceRequest { +public: + DescribeLoadBalancerHTTPListenerAttributeRequest(); + ~DescribeLoadBalancerHTTPListenerAttributeRequest(); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string protocol_; + int listenerPort_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERHTTPLISTENERATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerHTTPListenerAttributeResult.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerHTTPListenerAttributeResult.h new file mode 100644 index 000000000..b5c1e4c66 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerHTTPListenerAttributeResult.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_ENS_MODEL_DESCRIBELOADBALANCERHTTPLISTENERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERHTTPLISTENERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeLoadBalancerHTTPListenerAttributeResult : public ServiceResult + { + public: + + + DescribeLoadBalancerHTTPListenerAttributeResult(); + explicit DescribeLoadBalancerHTTPListenerAttributeResult(const std::string &payload); + ~DescribeLoadBalancerHTTPListenerAttributeResult(); + std::string getStatus()const; + int getCookieTimeout()const; + std::string getCookie()const; + int getListenerPort()const; + int getRequestTimeout()const; + int getHealthCheckInterval()const; + std::string getDescription()const; + int getUnhealthyThreshold()const; + std::string getScheduler()const; + std::string getHealthCheckURI()const; + std::string getHealthCheck()const; + int getIdleTimeout()const; + int getHealthCheckTimeout()const; + std::string getListenerForward()const; + std::string getStickySession()const; + int getHealthCheckConnectPort()const; + int getForwardPort()const; + std::string getHealthCheckMethod()const; + int getBandwidth()const; + int getHealthyThreshold()const; + std::string getHealthCheckDomain()const; + std::string getServerCertificateId()const; + std::string getStickySessionType()const; + std::string getHealthCheckHttpCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + int cookieTimeout_; + std::string cookie_; + int listenerPort_; + int requestTimeout_; + int healthCheckInterval_; + std::string description_; + int unhealthyThreshold_; + std::string scheduler_; + std::string healthCheckURI_; + std::string healthCheck_; + int idleTimeout_; + int healthCheckTimeout_; + std::string listenerForward_; + std::string stickySession_; + int healthCheckConnectPort_; + int forwardPort_; + std::string healthCheckMethod_; + int bandwidth_; + int healthyThreshold_; + std::string healthCheckDomain_; + std::string serverCertificateId_; + std::string stickySessionType_; + std::string healthCheckHttpCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERHTTPLISTENERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.h new file mode 100644 index 000000000..e17df6191 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERHTTPSLISTENERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERHTTPSLISTENERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeLoadBalancerHTTPSListenerAttributeRequest : public RpcServiceRequest { +public: + DescribeLoadBalancerHTTPSListenerAttributeRequest(); + ~DescribeLoadBalancerHTTPSListenerAttributeRequest(); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string protocol_; + int listenerPort_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERHTTPSLISTENERATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerHTTPSListenerAttributeResult.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerHTTPSListenerAttributeResult.h new file mode 100644 index 000000000..559912fa8 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerHTTPSListenerAttributeResult.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_ENS_MODEL_DESCRIBELOADBALANCERHTTPSLISTENERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERHTTPSLISTENERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeLoadBalancerHTTPSListenerAttributeResult : public ServiceResult + { + public: + + + DescribeLoadBalancerHTTPSListenerAttributeResult(); + explicit DescribeLoadBalancerHTTPSListenerAttributeResult(const std::string &payload); + ~DescribeLoadBalancerHTTPSListenerAttributeResult(); + std::string getStatus()const; + int getCookieTimeout()const; + std::string getCookie()const; + int getListenerPort()const; + int getRequestTimeout()const; + int getHealthCheckInterval()const; + std::string getDescription()const; + int getUnhealthyThreshold()const; + std::string getScheduler()const; + std::string getHealthCheckURI()const; + std::string getHealthCheck()const; + int getIdleTimeout()const; + int getHealthCheckTimeout()const; + std::string getListenerForward()const; + std::string getStickySession()const; + int getHealthCheckConnectPort()const; + int getForwardPort()const; + std::string getHealthCheckMethod()const; + int getBandwidth()const; + int getHealthyThreshold()const; + std::string getHealthCheckDomain()const; + std::string getServerCertificateId()const; + std::string getStickySessionType()const; + std::string getHealthCheckHttpCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + int cookieTimeout_; + std::string cookie_; + int listenerPort_; + int requestTimeout_; + int healthCheckInterval_; + std::string description_; + int unhealthyThreshold_; + std::string scheduler_; + std::string healthCheckURI_; + std::string healthCheck_; + int idleTimeout_; + int healthCheckTimeout_; + std::string listenerForward_; + std::string stickySession_; + int healthCheckConnectPort_; + int forwardPort_; + std::string healthCheckMethod_; + int bandwidth_; + int healthyThreshold_; + std::string healthCheckDomain_; + std::string serverCertificateId_; + std::string stickySessionType_; + std::string healthCheckHttpCode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERHTTPSLISTENERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerSpecRequest.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerSpecRequest.h new file mode 100644 index 000000000..3eabba347 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerSpecRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERSPECREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERSPECREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeLoadBalancerSpecRequest : public RpcServiceRequest { +public: + DescribeLoadBalancerSpecRequest(); + ~DescribeLoadBalancerSpecRequest(); + std::string getLoadBalancerSpec() const; + void setLoadBalancerSpec(const std::string &loadBalancerSpec); + +private: + std::string loadBalancerSpec_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERSPECREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerSpecResult.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerSpecResult.h new file mode 100644 index 000000000..d6da770f0 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerSpecResult.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_ENS_MODEL_DESCRIBELOADBALANCERSPECRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERSPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeLoadBalancerSpecResult : public ServiceResult + { + public: + struct LoadBalancerSpecsItem + { + std::string displayName; + std::string loadBalancerSpec; + }; + + + DescribeLoadBalancerSpecResult(); + explicit DescribeLoadBalancerSpecResult(const std::string &payload); + ~DescribeLoadBalancerSpecResult(); + int getTotalCount()const; + int getPageSize()const; + std::vector getLoadBalancerSpecs()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::vector loadBalancerSpecs_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERSPECRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerTCPListenerAttributeRequest.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerTCPListenerAttributeRequest.h new file mode 100644 index 000000000..f42fc5439 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerTCPListenerAttributeRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERTCPLISTENERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERTCPLISTENERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeLoadBalancerTCPListenerAttributeRequest : public RpcServiceRequest { +public: + DescribeLoadBalancerTCPListenerAttributeRequest(); + ~DescribeLoadBalancerTCPListenerAttributeRequest(); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string protocol_; + int listenerPort_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERTCPLISTENERATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerTCPListenerAttributeResult.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerTCPListenerAttributeResult.h new file mode 100644 index 000000000..b6154af8d --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerTCPListenerAttributeResult.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERTCPLISTENERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERTCPLISTENERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeLoadBalancerTCPListenerAttributeResult : public ServiceResult + { + public: + + + DescribeLoadBalancerTCPListenerAttributeResult(); + explicit DescribeLoadBalancerTCPListenerAttributeResult(const std::string &payload); + ~DescribeLoadBalancerTCPListenerAttributeResult(); + std::string getStatus()const; + int getListenerPort()const; + int getHealthCheckInterval()const; + std::string getDescription()const; + int getUnhealthyThreshold()const; + std::string getScheduler()const; + std::string getHealthCheckURI()const; + std::string getHealthCheck()const; + int getHealthCheckConnectTimeout()const; + int getBackendServerPort()const; + int getPersistenceTimeout()const; + int getHealthCheckConnectPort()const; + int getBandwidth()const; + int getHealthyThreshold()const; + std::string getHealthCheckDomain()const; + std::string getEipTransmit()const; + std::string getHealthCheckHttpCode()const; + std::string getHealthCheckType()const; + int getEstablishedTimeout()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + int listenerPort_; + int healthCheckInterval_; + std::string description_; + int unhealthyThreshold_; + std::string scheduler_; + std::string healthCheckURI_; + std::string healthCheck_; + int healthCheckConnectTimeout_; + int backendServerPort_; + int persistenceTimeout_; + int healthCheckConnectPort_; + int bandwidth_; + int healthyThreshold_; + std::string healthCheckDomain_; + std::string eipTransmit_; + std::string healthCheckHttpCode_; + std::string healthCheckType_; + int establishedTimeout_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERTCPLISTENERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerUDPListenerAttributeRequest.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerUDPListenerAttributeRequest.h new file mode 100644 index 000000000..f2e5a7677 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerUDPListenerAttributeRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERUDPLISTENERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERUDPLISTENERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeLoadBalancerUDPListenerAttributeRequest : public RpcServiceRequest { +public: + DescribeLoadBalancerUDPListenerAttributeRequest(); + ~DescribeLoadBalancerUDPListenerAttributeRequest(); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string protocol_; + int listenerPort_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERUDPLISTENERATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancerUDPListenerAttributeResult.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerUDPListenerAttributeResult.h new file mode 100644 index 000000000..d2e1fbe03 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancerUDPListenerAttributeResult.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_ENS_MODEL_DESCRIBELOADBALANCERUDPLISTENERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERUDPLISTENERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeLoadBalancerUDPListenerAttributeResult : public ServiceResult + { + public: + + + DescribeLoadBalancerUDPListenerAttributeResult(); + explicit DescribeLoadBalancerUDPListenerAttributeResult(const std::string &payload); + ~DescribeLoadBalancerUDPListenerAttributeResult(); + std::string getStatus()const; + int getListenerPort()const; + int getHealthCheckInterval()const; + std::string getDescription()const; + int getUnhealthyThreshold()const; + std::string getScheduler()const; + std::string getHealthCheck()const; + int getHealthCheckConnectTimeout()const; + int getBackendServerPort()const; + int getHealthCheckConnectPort()const; + std::string getHealthCheckReq()const; + int getBandwidth()const; + int getHealthyThreshold()const; + std::string getHealthCheckExp()const; + std::string getEipTransmit()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + int listenerPort_; + int healthCheckInterval_; + std::string description_; + int unhealthyThreshold_; + std::string scheduler_; + std::string healthCheck_; + int healthCheckConnectTimeout_; + int backendServerPort_; + int healthCheckConnectPort_; + std::string healthCheckReq_; + int bandwidth_; + int healthyThreshold_; + std::string healthCheckExp_; + std::string eipTransmit_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERUDPLISTENERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancersRequest.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancersRequest.h new file mode 100644 index 000000000..8433a4b51 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancersRequest.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_ENS_MODEL_DESCRIBELOADBALANCERSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeLoadBalancersRequest : public RpcServiceRequest { +public: + DescribeLoadBalancersRequest(); + ~DescribeLoadBalancersRequest(); + std::string getLoadBalancerName() const; + void setLoadBalancerName(const std::string &loadBalancerName); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getServerId() const; + void setServerId(const std::string &serverId); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + std::string getNetworkId() const; + void setNetworkId(const std::string &networkId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAddress() const; + void setAddress(const std::string &address); + std::string getLoadBalancerStatus() const; + void setLoadBalancerStatus(const std::string &loadBalancerStatus); + +private: + std::string loadBalancerName_; + std::string ensRegionId_; + std::string serverId_; + std::string vSwitchId_; + std::string loadBalancerId_; + std::string networkId_; + int pageNumber_; + int pageSize_; + std::string address_; + std::string loadBalancerStatus_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeLoadBalancersResult.h b/ens/include/alibabacloud/ens/model/DescribeLoadBalancersResult.h new file mode 100644 index 000000000..c7bd851e4 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeLoadBalancersResult.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_ENS_MODEL_DESCRIBELOADBALANCERSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeLoadBalancersResult : public ServiceResult + { + public: + struct LoadBalancer + { + std::string loadBalancerName; + std::string address; + std::string vSwitchId; + std::string createTime; + std::string addressIPVersion; + std::string loadBalancerId; + std::string payType; + std::string ensRegionId; + std::string networkId; + std::string loadBalancerStatus; + }; + + + DescribeLoadBalancersResult(); + explicit DescribeLoadBalancersResult(const std::string &payload); + ~DescribeLoadBalancersResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getLoadBalancers()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector loadBalancers_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBELOADBALANCERSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeMeasurementDataRequest.h b/ens/include/alibabacloud/ens/model/DescribeMeasurementDataRequest.h new file mode 100644 index 000000000..a9b939cf4 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeMeasurementDataRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEMEASUREMENTDATAREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEMEASUREMENTDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeMeasurementDataRequest : public RpcServiceRequest { +public: + DescribeMeasurementDataRequest(); + ~DescribeMeasurementDataRequest(); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + +private: + std::string startDate_; + std::string endDate_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEMEASUREMENTDATAREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeMeasurementDataResult.h b/ens/include/alibabacloud/ens/model/DescribeMeasurementDataResult.h new file mode 100644 index 000000000..5cec3d665 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeMeasurementDataResult.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_ENS_MODEL_DESCRIBEMEASUREMENTDATARESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEMEASUREMENTDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeMeasurementDataResult : public ServiceResult + { + public: + struct MeasurementData + { + struct ResourceFeeData + { + int storage; + int memory; + int vcpu; + }; + struct BandWidthFeeData + { + int costVal; + std::string costCode; + std::string costName; + }; + struct ResourceFeeDataDetail + { + int costVal; + std::string costCode; + std::string resourceType; + std::string costName; + }; + ResourceFeeData resourceFeeData; + std::vector bandWidthFeeDatas; + std::vector resourceFeeDataDetails; + std::string chargeModel; + std::string costCycle; + std::string costEndTime; + std::string costStartTime; + }; + + + DescribeMeasurementDataResult(); + explicit DescribeMeasurementDataResult(const std::string &payload); + ~DescribeMeasurementDataResult(); + std::vector getMeasurementDatas()const; + + protected: + void parse(const std::string &payload); + private: + std::vector measurementDatas_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEMEASUREMENTDATARESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeNetworkAttributeRequest.h b/ens/include/alibabacloud/ens/model/DescribeNetworkAttributeRequest.h new file mode 100644 index 000000000..3d7e3af74 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeNetworkAttributeRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeNetworkAttributeRequest : public RpcServiceRequest { +public: + DescribeNetworkAttributeRequest(); + ~DescribeNetworkAttributeRequest(); + std::string getNetworkId() const; + void setNetworkId(const std::string &networkId); + +private: + std::string networkId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeNetworkAttributeResult.h b/ens/include/alibabacloud/ens/model/DescribeNetworkAttributeResult.h new file mode 100644 index 000000000..ad70b4ae9 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeNetworkAttributeResult.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_ENS_MODEL_DESCRIBENETWORKATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeNetworkAttributeResult : public ServiceResult + { + public: + struct CloudResourceSetType + { + int resourceCount; + std::string resourceType; + }; + + + DescribeNetworkAttributeResult(); + explicit DescribeNetworkAttributeResult(const std::string &payload); + ~DescribeNetworkAttributeResult(); + std::string getStatus()const; + std::string getNetworkName()const; + std::string getDescription()const; + std::string getCreatedTime()const; + std::vector getVSwitchIds()const; + std::string getCidrBlock()const; + std::string getEnsRegionId()const; + std::string getNetworkId()const; + std::vector getCloudResources()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string networkName_; + std::string description_; + std::string createdTime_; + std::vector vSwitchIds_; + std::string cidrBlock_; + std::string ensRegionId_; + std::string networkId_; + std::vector cloudResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeNetworkInterfacesRequest.h b/ens/include/alibabacloud/ens/model/DescribeNetworkInterfacesRequest.h new file mode 100644 index 000000000..8d9c0ed37 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeNetworkInterfacesRequest.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_ENS_MODEL_DESCRIBENETWORKINTERFACESREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKINTERFACESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeNetworkInterfacesRequest : public RpcServiceRequest { +public: + DescribeNetworkInterfacesRequest(); + ~DescribeNetworkInterfacesRequest(); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getPrimaryIpAddress() const; + void setPrimaryIpAddress(const std::string &primaryIpAddress); + +private: + std::string ensRegionId_; + std::string vSwitchId_; + std::string instanceId_; + std::string pageNumber_; + std::string pageSize_; + std::string primaryIpAddress_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKINTERFACESREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeNetworkInterfacesResult.h b/ens/include/alibabacloud/ens/model/DescribeNetworkInterfacesResult.h new file mode 100644 index 000000000..d3622b843 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeNetworkInterfacesResult.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_ENS_MODEL_DESCRIBENETWORKINTERFACESRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKINTERFACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeNetworkInterfacesResult : public ServiceResult + { + public: + struct NetworkInterfaceSet + { + std::string status; + std::string instanceId; + std::string vSwitchId; + std::string creationTime; + std::string primaryIpType; + std::string primaryIp; + std::string ensRegionId; + std::string macAddress; + std::string networkInterfaceId; + }; + + + DescribeNetworkInterfacesResult(); + explicit DescribeNetworkInterfacesResult(const std::string &payload); + ~DescribeNetworkInterfacesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getNetworkInterfaceSets()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector networkInterfaceSets_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKINTERFACESRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeNetworksRequest.h b/ens/include/alibabacloud/ens/model/DescribeNetworksRequest.h new file mode 100644 index 000000000..4ce9ab53b --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeNetworksRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeNetworksRequest : public RpcServiceRequest { +public: + DescribeNetworksRequest(); + ~DescribeNetworksRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getNetworkName() const; + void setNetworkName(const std::string &networkName); + std::string getNetworkId() const; + void setNetworkId(const std::string &networkId); + +private: + int pageNumber_; + std::string ensRegionId_; + int pageSize_; + std::string networkName_; + std::string networkId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeNetworksResult.h b/ens/include/alibabacloud/ens/model/DescribeNetworksResult.h new file mode 100644 index 000000000..1299338f9 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeNetworksResult.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_ENS_MODEL_DESCRIBENETWORKSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeNetworksResult : public ServiceResult + { + public: + struct Network + { + std::string status; + std::string networkName; + std::string description; + std::string createdTime; + std::vector vSwitchIds; + std::string cidrBlock; + std::string ensRegionId; + std::string networkId; + }; + + + DescribeNetworksResult(); + explicit DescribeNetworksResult(const std::string &payload); + ~DescribeNetworksResult(); + std::vector getNetworks()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector networks_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBENETWORKSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribePrePaidInstanceStockRequest.h b/ens/include/alibabacloud/ens/model/DescribePrePaidInstanceStockRequest.h new file mode 100644 index 000000000..582914ed4 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribePrePaidInstanceStockRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEPREPAIDINSTANCESTOCKREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEPREPAIDINSTANCESTOCKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribePrePaidInstanceStockRequest : public RpcServiceRequest { +public: + DescribePrePaidInstanceStockRequest(); + ~DescribePrePaidInstanceStockRequest(); + std::string getInstanceSpec() const; + void setInstanceSpec(const std::string &instanceSpec); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + int getSystemDiskSize() const; + void setSystemDiskSize(int systemDiskSize); + int getDataDiskSize() const; + void setDataDiskSize(int dataDiskSize); + +private: + std::string instanceSpec_; + std::string ensRegionId_; + int systemDiskSize_; + int dataDiskSize_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEPREPAIDINSTANCESTOCKREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribePrePaidInstanceStockResult.h b/ens/include/alibabacloud/ens/model/DescribePrePaidInstanceStockResult.h new file mode 100644 index 000000000..b50bfc38f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribePrePaidInstanceStockResult.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_ENS_MODEL_DESCRIBEPREPAIDINSTANCESTOCKRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEPREPAIDINSTANCESTOCKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribePrePaidInstanceStockResult : public ServiceResult + { + public: + + + DescribePrePaidInstanceStockResult(); + explicit DescribePrePaidInstanceStockResult(const std::string &payload); + ~DescribePrePaidInstanceStockResult(); + int getCores()const; + int getAvaliableCount()const; + std::string getInstanceSpec()const; + int getSystemDiskSize()const; + int getMemory()const; + int getDataDiskSize()const; + std::string getEnsRegionId()const; + + protected: + void parse(const std::string &payload); + private: + int cores_; + int avaliableCount_; + std::string instanceSpec_; + int systemDiskSize_; + int memory_; + int dataDiskSize_; + std::string ensRegionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEPREPAIDINSTANCESTOCKRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribePriceRequest.h b/ens/include/alibabacloud/ens/model/DescribePriceRequest.h new file mode 100644 index 000000000..7c040471b --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribePriceRequest.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_ENS_MODEL_DESCRIBEPRICEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEPRICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribePriceRequest : public RpcServiceRequest { +public: + DescribePriceRequest(); + ~DescribePriceRequest(); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + int getPeriod() const; + void setPeriod(int period); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + int getDataDisk1Size() const; + void setDataDisk1Size(int dataDisk1Size); + int getQuantity() const; + void setQuantity(int quantity); + int getSystemDiskSize() const; + void setSystemDiskSize(int systemDiskSize); + +private: + std::string ensRegionId_; + int period_; + std::string internetChargeType_; + std::string instanceType_; + int dataDisk1Size_; + int quantity_; + int systemDiskSize_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEPRICEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribePriceResult.h b/ens/include/alibabacloud/ens/model/DescribePriceResult.h new file mode 100644 index 000000000..58ab70af2 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribePriceResult.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_ENS_MODEL_DESCRIBEPRICERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribePriceResult : public ServiceResult + { + public: + struct PriceInfo + { + struct Price + { + float originalPrice; + std::string currency; + float discountPrice; + float tradePrice; + }; + Price price; + }; + + + DescribePriceResult(); + explicit DescribePriceResult(const std::string &payload); + ~DescribePriceResult(); + PriceInfo getPriceInfo()const; + + protected: + void parse(const std::string &payload); + private: + PriceInfo priceInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEPRICERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeRegionIspsRequest.h b/ens/include/alibabacloud/ens/model/DescribeRegionIspsRequest.h new file mode 100644 index 000000000..d76e46f46 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeRegionIspsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBEREGIONISPSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEREGIONISPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeRegionIspsRequest : public RpcServiceRequest { +public: + DescribeRegionIspsRequest(); + ~DescribeRegionIspsRequest(); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + +private: + std::string ensRegionId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEREGIONISPSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeRegionIspsResult.h b/ens/include/alibabacloud/ens/model/DescribeRegionIspsResult.h new file mode 100644 index 000000000..109744327 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeRegionIspsResult.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_ENS_MODEL_DESCRIBEREGIONISPSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEREGIONISPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeRegionIspsResult : public ServiceResult + { + public: + struct Isp + { + std::string code; + std::string name; + }; + + + DescribeRegionIspsResult(); + explicit DescribeRegionIspsResult(const std::string &payload); + ~DescribeRegionIspsResult(); + std::vector getIsps()const; + + protected: + void parse(const std::string &payload); + private: + std::vector isps_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEREGIONISPSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeReservedResourceRequest.h b/ens/include/alibabacloud/ens/model/DescribeReservedResourceRequest.h new file mode 100644 index 000000000..d09d3315f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeReservedResourceRequest.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_ENS_MODEL_DESCRIBERESERVEDRESOURCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBERESERVEDRESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeReservedResourceRequest : public RpcServiceRequest { +public: + DescribeReservedResourceRequest(); + ~DescribeReservedResourceRequest(); + +private: +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBERESERVEDRESOURCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeReservedResourceResult.h b/ens/include/alibabacloud/ens/model/DescribeReservedResourceResult.h new file mode 100644 index 000000000..60df5c488 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeReservedResourceResult.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_ENS_MODEL_DESCRIBERESERVEDRESOURCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBERESERVEDRESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeReservedResourceResult : public ServiceResult + { + public: + struct Image + { + std::string imageName; + std::string imageId; + }; + struct SupportResource + { + std::string instanceSpec; + std::string supportResourcesCount; + std::vector systemDiskSizes; + std::vector dataDiskSizes; + std::string ensRegionId; + }; + + + DescribeReservedResourceResult(); + explicit DescribeReservedResourceResult(const std::string &payload); + ~DescribeReservedResourceResult(); + std::vector getImages()const; + std::vector getSupportResources()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::vector images_; + std::vector supportResources_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBERESERVEDRESOURCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeSecurityGroupAttributeRequest.h b/ens/include/alibabacloud/ens/model/DescribeSecurityGroupAttributeRequest.h new file mode 100644 index 000000000..a056089bb --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeSecurityGroupAttributeRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBESECURITYGROUPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBESECURITYGROUPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeSecurityGroupAttributeRequest : public RpcServiceRequest { +public: + DescribeSecurityGroupAttributeRequest(); + ~DescribeSecurityGroupAttributeRequest(); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + +private: + std::string securityGroupId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBESECURITYGROUPATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeSecurityGroupAttributeResult.h b/ens/include/alibabacloud/ens/model/DescribeSecurityGroupAttributeResult.h new file mode 100644 index 000000000..8b0ea026d --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeSecurityGroupAttributeResult.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_ENS_MODEL_DESCRIBESECURITYGROUPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBESECURITYGROUPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeSecurityGroupAttributeResult : public ServiceResult + { + public: + struct Permission + { + std::string policy; + std::string portRange; + std::string description; + std::string sourcePortRange; + int priority; + std::string sourceCidrIp; + std::string creationTime; + std::string ipProtocol; + std::string destCidrIp; + std::string direction; + }; + + + DescribeSecurityGroupAttributeResult(); + explicit DescribeSecurityGroupAttributeResult(const std::string &payload); + ~DescribeSecurityGroupAttributeResult(); + std::string getDescription()const; + std::string getSecurityGroupName()const; + std::string getSecurityGroupId()const; + std::vector getPermissions()const; + + protected: + void parse(const std::string &payload); + private: + std::string description_; + std::string securityGroupName_; + std::string securityGroupId_; + std::vector permissions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBESECURITYGROUPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeSecurityGroupsRequest.h b/ens/include/alibabacloud/ens/model/DescribeSecurityGroupsRequest.h new file mode 100644 index 000000000..33b7b4dae --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeSecurityGroupsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBESECURITYGROUPSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBESECURITYGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeSecurityGroupsRequest : public RpcServiceRequest { +public: + DescribeSecurityGroupsRequest(); + ~DescribeSecurityGroupsRequest(); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getSecurityGroupName() const; + void setSecurityGroupName(const std::string &securityGroupName); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string securityGroupId_; + std::string securityGroupName_; + int pageNumber_; + int pageSize_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBESECURITYGROUPSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeSecurityGroupsResult.h b/ens/include/alibabacloud/ens/model/DescribeSecurityGroupsResult.h new file mode 100644 index 000000000..0b1b1a2e3 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeSecurityGroupsResult.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_ENS_MODEL_DESCRIBESECURITYGROUPSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBESECURITYGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeSecurityGroupsResult : public ServiceResult + { + public: + struct SecurityGroup + { + int instanceCount; + std::string description; + std::string securityGroupName; + std::string securityGroupId; + std::string creationTime; + }; + + + DescribeSecurityGroupsResult(); + explicit DescribeSecurityGroupsResult(const std::string &payload); + ~DescribeSecurityGroupsResult(); + std::vector getSecurityGroups()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector securityGroups_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBESECURITYGROUPSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeServcieScheduleRequest.h b/ens/include/alibabacloud/ens/model/DescribeServcieScheduleRequest.h new file mode 100644 index 000000000..fe9d924e1 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeServcieScheduleRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DESCRIBESERVCIESCHEDULEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBESERVCIESCHEDULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeServcieScheduleRequest : public RpcServiceRequest { +public: + DescribeServcieScheduleRequest(); + ~DescribeServcieScheduleRequest(); + std::string getUuid() const; + void setUuid(const std::string &uuid); + std::string getPodConfigName() const; + void setPodConfigName(const std::string &podConfigName); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string uuid_; + std::string podConfigName_; + std::string appId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBESERVCIESCHEDULEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeServcieScheduleResult.h b/ens/include/alibabacloud/ens/model/DescribeServcieScheduleResult.h new file mode 100644 index 000000000..393cb24bb --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeServcieScheduleResult.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_ENS_MODEL_DESCRIBESERVCIESCHEDULERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBESERVCIESCHEDULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeServcieScheduleResult : public ServiceResult + { + public: + struct PodAbstractInfo + { + struct ContainerStatus + { + std::string containerId; + std::string name; + }; + bool status; + bool resourceScope; + std::vector containerStatuses; + bool _namespace; + bool containerService; + bool name; + }; + + + DescribeServcieScheduleResult(); + explicit DescribeServcieScheduleResult(const std::string &payload); + ~DescribeServcieScheduleResult(); + bool getRequestRepeated()const; + std::string getTcpPorts()const; + std::string getInstanceId()const; + int getInstancePort()const; + std::string getInstanceIp()const; + int getIndex()const; + PodAbstractInfo getPodAbstractInfo()const; + + protected: + void parse(const std::string &payload); + private: + bool requestRepeated_; + std::string tcpPorts_; + std::string instanceId_; + int instancePort_; + std::string instanceIp_; + int index_; + PodAbstractInfo podAbstractInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBESERVCIESCHEDULERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeUserBandWidthDataRequest.h b/ens/include/alibabacloud/ens/model/DescribeUserBandWidthDataRequest.h new file mode 100644 index 000000000..6117875dd --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeUserBandWidthDataRequest.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_ENS_MODEL_DESCRIBEUSERBANDWIDTHDATAREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEUSERBANDWIDTHDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeUserBandWidthDataRequest : public RpcServiceRequest { +public: + DescribeUserBandWidthDataRequest(); + ~DescribeUserBandWidthDataRequest(); + std::string getIsp() const; + void setIsp(const std::string &isp); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + +private: + std::string isp_; + std::string startTime_; + std::string ensRegionId_; + std::string period_; + std::string instanceId_; + std::string endTime_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEUSERBANDWIDTHDATAREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeUserBandWidthDataResult.h b/ens/include/alibabacloud/ens/model/DescribeUserBandWidthDataResult.h new file mode 100644 index 000000000..b9c347740 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeUserBandWidthDataResult.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_ENS_MODEL_DESCRIBEUSERBANDWIDTHDATARESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEUSERBANDWIDTHDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeUserBandWidthDataResult : public ServiceResult + { + public: + struct MonitorData + { + struct BandWidthMonitorDataItem + { + int upBandWidth; + int downBandWidth; + int internetTX; + int internetRX; + std::string timeStamp; + }; + std::string maxDownBandWidth; + std::string maxUpBandWidth; + std::vector bandWidthMonitorData; + }; + + + DescribeUserBandWidthDataResult(); + explicit DescribeUserBandWidthDataResult(const std::string &payload); + ~DescribeUserBandWidthDataResult(); + MonitorData getMonitorData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + MonitorData monitorData_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEUSERBANDWIDTHDATARESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DescribeVSwitchesRequest.h b/ens/include/alibabacloud/ens/model/DescribeVSwitchesRequest.h new file mode 100644 index 000000000..267ac0a47 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeVSwitchesRequest.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_ENS_MODEL_DESCRIBEVSWITCHESREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEVSWITCHESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DescribeVSwitchesRequest : public RpcServiceRequest { +public: + DescribeVSwitchesRequest(); + ~DescribeVSwitchesRequest(); + std::string getOrderByParams() const; + void setOrderByParams(const std::string &orderByParams); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getNetworkId() const; + void setNetworkId(const std::string &networkId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getVSwitchName() const; + void setVSwitchName(const std::string &vSwitchName); + +private: + std::string orderByParams_; + std::string ensRegionId_; + std::string vSwitchId_; + std::string networkId_; + int pageNumber_; + int pageSize_; + std::string vSwitchName_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEVSWITCHESREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DescribeVSwitchesResult.h b/ens/include/alibabacloud/ens/model/DescribeVSwitchesResult.h new file mode 100644 index 000000000..faaf4d794 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DescribeVSwitchesResult.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_ENS_MODEL_DESCRIBEVSWITCHESRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DESCRIBEVSWITCHESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DescribeVSwitchesResult : public ServiceResult + { + public: + struct VSwitch + { + std::string status; + long freeIpCount; + std::string description; + std::string createdTime; + std::string vSwitchId; + std::string cidrBlock; + std::string vSwitchName; + std::string ensRegionId; + std::string networkId; + }; + + + DescribeVSwitchesResult(); + explicit DescribeVSwitchesResult(const std::string &payload); + ~DescribeVSwitchesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getVSwitches()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector vSwitches_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DESCRIBEVSWITCHESRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DetachDiskRequest.h b/ens/include/alibabacloud/ens/model/DetachDiskRequest.h new file mode 100644 index 000000000..d238a9f1e --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DetachDiskRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DETACHDISKREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DETACHDISKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DetachDiskRequest : public RpcServiceRequest { +public: + DetachDiskRequest(); + ~DetachDiskRequest(); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string diskId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DETACHDISKREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DetachDiskResult.h b/ens/include/alibabacloud/ens/model/DetachDiskResult.h new file mode 100644 index 000000000..8d2265f91 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DetachDiskResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DETACHDISKRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DETACHDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DetachDiskResult : public ServiceResult + { + public: + + + DetachDiskResult(); + explicit DetachDiskResult(const std::string &payload); + ~DetachDiskResult(); + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DETACHDISKRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/DistApplicationDataRequest.h b/ens/include/alibabacloud/ens/model/DistApplicationDataRequest.h new file mode 100644 index 000000000..ce8686fce --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DistApplicationDataRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_DISTAPPLICATIONDATAREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_DISTAPPLICATIONDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT DistApplicationDataRequest : public RpcServiceRequest { +public: + DistApplicationDataRequest(); + ~DistApplicationDataRequest(); + std::string getData() const; + void setData(const std::string &data); + std::string getDistStrategy() const; + void setDistStrategy(const std::string &distStrategy); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string data_; + std::string distStrategy_; + std::string appId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_DISTAPPLICATIONDATAREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/DistApplicationDataResult.h b/ens/include/alibabacloud/ens/model/DistApplicationDataResult.h new file mode 100644 index 000000000..217b0f533 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/DistApplicationDataResult.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_ENS_MODEL_DISTAPPLICATIONDATARESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_DISTAPPLICATIONDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT DistApplicationDataResult : public ServiceResult + { + public: + struct DistResult + { + std::string version; + std::string resultDescrip; + int resultCode; + std::string name; + }; + + + DistApplicationDataResult(); + explicit DistApplicationDataResult(const std::string &payload); + ~DistApplicationDataResult(); + std::vector getDistInstanceIds()const; + int getDistInstanceTotalCount()const; + std::vector getDistResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector distInstanceIds_; + int distInstanceTotalCount_; + std::vector distResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_DISTAPPLICATIONDATARESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ExportBillDetailDataRequest.h b/ens/include/alibabacloud/ens/model/ExportBillDetailDataRequest.h new file mode 100644 index 000000000..97379233f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ExportBillDetailDataRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_EXPORTBILLDETAILDATAREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_EXPORTBILLDETAILDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ExportBillDetailDataRequest : public RpcServiceRequest { +public: + ExportBillDetailDataRequest(); + ~ExportBillDetailDataRequest(); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + +private: + std::string startDate_; + std::string endDate_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_EXPORTBILLDETAILDATAREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ExportBillDetailDataResult.h b/ens/include/alibabacloud/ens/model/ExportBillDetailDataResult.h new file mode 100644 index 000000000..8ac33f20f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ExportBillDetailDataResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_EXPORTBILLDETAILDATARESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_EXPORTBILLDETAILDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ExportBillDetailDataResult : public ServiceResult + { + public: + + + ExportBillDetailDataResult(); + explicit ExportBillDetailDataResult(const std::string &payload); + ~ExportBillDetailDataResult(); + std::string getFilePath()const; + + protected: + void parse(const std::string &payload); + private: + std::string filePath_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_EXPORTBILLDETAILDATARESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ExportImageRequest.h b/ens/include/alibabacloud/ens/model/ExportImageRequest.h new file mode 100644 index 000000000..0a2dc8445 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ExportImageRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_EXPORTIMAGEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_EXPORTIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ExportImageRequest : public RpcServiceRequest { +public: + ExportImageRequest(); + ~ExportImageRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getOSSRegionId() const; + void setOSSRegionId(const std::string &oSSRegionId); + std::string getOSSBucket() const; + void setOSSBucket(const std::string &oSSBucket); + std::string getRoleName() const; + void setRoleName(const std::string &roleName); + std::string getOSSPrefix() const; + void setOSSPrefix(const std::string &oSSPrefix); + +private: + std::string imageId_; + std::string oSSRegionId_; + std::string oSSBucket_; + std::string roleName_; + std::string oSSPrefix_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_EXPORTIMAGEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ExportImageResult.h b/ens/include/alibabacloud/ens/model/ExportImageResult.h new file mode 100644 index 000000000..f579fcd2f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ExportImageResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_EXPORTIMAGERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_EXPORTIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ExportImageResult : public ServiceResult + { + public: + + + ExportImageResult(); + explicit ExportImageResult(const std::string &payload); + ~ExportImageResult(); + std::string getExportedImageURL()const; + + protected: + void parse(const std::string &payload); + private: + std::string exportedImageURL_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_EXPORTIMAGERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ExportMeasurementDataRequest.h b/ens/include/alibabacloud/ens/model/ExportMeasurementDataRequest.h new file mode 100644 index 000000000..02e3e7bea --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ExportMeasurementDataRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_EXPORTMEASUREMENTDATAREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_EXPORTMEASUREMENTDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ExportMeasurementDataRequest : public RpcServiceRequest { +public: + ExportMeasurementDataRequest(); + ~ExportMeasurementDataRequest(); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + +private: + std::string startDate_; + std::string endDate_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_EXPORTMEASUREMENTDATAREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ExportMeasurementDataResult.h b/ens/include/alibabacloud/ens/model/ExportMeasurementDataResult.h new file mode 100644 index 000000000..d193f76f0 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ExportMeasurementDataResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_EXPORTMEASUREMENTDATARESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_EXPORTMEASUREMENTDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ExportMeasurementDataResult : public ServiceResult + { + public: + + + ExportMeasurementDataResult(); + explicit ExportMeasurementDataResult(const std::string &payload); + ~ExportMeasurementDataResult(); + std::string getFilePath()const; + + protected: + void parse(const std::string &payload); + private: + std::string filePath_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_EXPORTMEASUREMENTDATARESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/GetDeviceInternetPortRequest.h b/ens/include/alibabacloud/ens/model/GetDeviceInternetPortRequest.h new file mode 100644 index 000000000..d6d1b2752 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/GetDeviceInternetPortRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_GETDEVICEINTERNETPORTREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_GETDEVICEINTERNETPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT GetDeviceInternetPortRequest : public RpcServiceRequest { +public: + GetDeviceInternetPortRequest(); + ~GetDeviceInternetPortRequest(); + std::string getNatType() const; + void setNatType(const std::string &natType); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + +private: + std::string natType_; + std::string instanceId_; + std::string ruleId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_GETDEVICEINTERNETPORTREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/GetDeviceInternetPortResult.h b/ens/include/alibabacloud/ens/model/GetDeviceInternetPortResult.h new file mode 100644 index 000000000..c546822a6 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/GetDeviceInternetPortResult.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_ENS_MODEL_GETDEVICEINTERNETPORTRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_GETDEVICEINTERNETPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT GetDeviceInternetPortResult : public ServiceResult + { + public: + struct NetworkInfoItem + { + std::string status; + std::string externalPort; + std::string externalIp; + std::string iSP; + std::string internalPort; + std::string internalIp; + }; + + + GetDeviceInternetPortResult(); + explicit GetDeviceInternetPortResult(const std::string &payload); + ~GetDeviceInternetPortResult(); + std::vector getNetworkInfo()const; + std::string getInstanceId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector networkInfo_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_GETDEVICEINTERNETPORTRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/GetVmListRequest.h b/ens/include/alibabacloud/ens/model/GetVmListRequest.h new file mode 100644 index 000000000..f51fa0a00 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/GetVmListRequest.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_ENS_MODEL_GETVMLISTREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_GETVMLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT GetVmListRequest : public RpcServiceRequest { +public: + GetVmListRequest(); + ~GetVmListRequest(); + std::string getInstanceUuid() const; + void setInstanceUuid(const std::string &instanceUuid); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getGroupUuid() const; + void setGroupUuid(const std::string &groupUuid); + int getPageSize() const; + void setPageSize(int pageSize); + long getAliUid() const; + void setAliUid(long aliUid); + std::string getWorkloadUuid() const; + void setWorkloadUuid(const std::string &workloadUuid); + +private: + std::string instanceUuid_; + int pageNumber_; + std::string groupUuid_; + int pageSize_; + long aliUid_; + std::string workloadUuid_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_GETVMLISTREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/GetVmListResult.h b/ens/include/alibabacloud/ens/model/GetVmListResult.h new file mode 100644 index 000000000..20b3a2040 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/GetVmListResult.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_ENS_MODEL_GETVMLISTRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_GETVMLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT GetVmListResult : public ServiceResult + { + public: + + + GetVmListResult(); + explicit GetVmListResult(const std::string &payload); + ~GetVmListResult(); + std::string getMsg()const; + std::string getDesc()const; + std::string getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string desc_; + std::string data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_GETVMLISTRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ImportKeyPairRequest.h b/ens/include/alibabacloud/ens/model/ImportKeyPairRequest.h new file mode 100644 index 000000000..abfd2d4b2 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ImportKeyPairRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_IMPORTKEYPAIRREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_IMPORTKEYPAIRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ImportKeyPairRequest : public RpcServiceRequest { +public: + ImportKeyPairRequest(); + ~ImportKeyPairRequest(); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + std::string getPublicKeyBody() const; + void setPublicKeyBody(const std::string &publicKeyBody); + +private: + std::string keyPairName_; + std::string publicKeyBody_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_IMPORTKEYPAIRREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ImportKeyPairResult.h b/ens/include/alibabacloud/ens/model/ImportKeyPairResult.h new file mode 100644 index 000000000..927f22514 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ImportKeyPairResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_IMPORTKEYPAIRRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_IMPORTKEYPAIRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ImportKeyPairResult : public ServiceResult + { + public: + + + ImportKeyPairResult(); + explicit ImportKeyPairResult(const std::string &payload); + ~ImportKeyPairResult(); + std::string getKeyPairFingerPrint()const; + std::string getKeyPairName()const; + + protected: + void parse(const std::string &payload); + private: + std::string keyPairFingerPrint_; + std::string keyPairName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_IMPORTKEYPAIRRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/JoinPublicIpsToEpnInstanceRequest.h b/ens/include/alibabacloud/ens/model/JoinPublicIpsToEpnInstanceRequest.h new file mode 100644 index 000000000..42157807d --- /dev/null +++ b/ens/include/alibabacloud/ens/model/JoinPublicIpsToEpnInstanceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_JOINPUBLICIPSTOEPNINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_JOINPUBLICIPSTOEPNINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT JoinPublicIpsToEpnInstanceRequest : public RpcServiceRequest { +public: + JoinPublicIpsToEpnInstanceRequest(); + ~JoinPublicIpsToEpnInstanceRequest(); + std::string getEPNInstanceId() const; + void setEPNInstanceId(const std::string &ePNInstanceId); + std::string getInstanceInfos() const; + void setInstanceInfos(const std::string &instanceInfos); + +private: + std::string ePNInstanceId_; + std::string instanceInfos_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_JOINPUBLICIPSTOEPNINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/JoinPublicIpsToEpnInstanceResult.h b/ens/include/alibabacloud/ens/model/JoinPublicIpsToEpnInstanceResult.h new file mode 100644 index 000000000..155d47332 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/JoinPublicIpsToEpnInstanceResult.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_ENS_MODEL_JOINPUBLICIPSTOEPNINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_JOINPUBLICIPSTOEPNINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT JoinPublicIpsToEpnInstanceResult : public ServiceResult + { + public: + + + JoinPublicIpsToEpnInstanceResult(); + explicit JoinPublicIpsToEpnInstanceResult(const std::string &payload); + ~JoinPublicIpsToEpnInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_JOINPUBLICIPSTOEPNINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/JoinSecurityGroupRequest.h b/ens/include/alibabacloud/ens/model/JoinSecurityGroupRequest.h new file mode 100644 index 000000000..87337fa13 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/JoinSecurityGroupRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_JOINSECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_JOINSECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT JoinSecurityGroupRequest : public RpcServiceRequest { +public: + JoinSecurityGroupRequest(); + ~JoinSecurityGroupRequest(); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string securityGroupId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_JOINSECURITYGROUPREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/JoinSecurityGroupResult.h b/ens/include/alibabacloud/ens/model/JoinSecurityGroupResult.h new file mode 100644 index 000000000..c67ef9f79 --- /dev/null +++ b/ens/include/alibabacloud/ens/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_ENS_MODEL_JOINSECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_JOINSECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT JoinSecurityGroupResult : public ServiceResult + { + public: + + + JoinSecurityGroupResult(); + explicit JoinSecurityGroupResult(const std::string &payload); + ~JoinSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_JOINSECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/JoinVSwitchesToEpnInstanceRequest.h b/ens/include/alibabacloud/ens/model/JoinVSwitchesToEpnInstanceRequest.h new file mode 100644 index 000000000..38bf3be58 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/JoinVSwitchesToEpnInstanceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_JOINVSWITCHESTOEPNINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_JOINVSWITCHESTOEPNINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT JoinVSwitchesToEpnInstanceRequest : public RpcServiceRequest { +public: + JoinVSwitchesToEpnInstanceRequest(); + ~JoinVSwitchesToEpnInstanceRequest(); + std::string getVSwitchesInfo() const; + void setVSwitchesInfo(const std::string &vSwitchesInfo); + std::string getEPNInstanceId() const; + void setEPNInstanceId(const std::string &ePNInstanceId); + +private: + std::string vSwitchesInfo_; + std::string ePNInstanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_JOINVSWITCHESTOEPNINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/JoinVSwitchesToEpnInstanceResult.h b/ens/include/alibabacloud/ens/model/JoinVSwitchesToEpnInstanceResult.h new file mode 100644 index 000000000..4f45699d2 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/JoinVSwitchesToEpnInstanceResult.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_ENS_MODEL_JOINVSWITCHESTOEPNINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_JOINVSWITCHESTOEPNINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT JoinVSwitchesToEpnInstanceResult : public ServiceResult + { + public: + + + JoinVSwitchesToEpnInstanceResult(); + explicit JoinVSwitchesToEpnInstanceResult(const std::string &payload); + ~JoinVSwitchesToEpnInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_JOINVSWITCHESTOEPNINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/LeaveSecurityGroupRequest.h b/ens/include/alibabacloud/ens/model/LeaveSecurityGroupRequest.h new file mode 100644 index 000000000..1ab3c8504 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/LeaveSecurityGroupRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_LEAVESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_LEAVESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT LeaveSecurityGroupRequest : public RpcServiceRequest { +public: + LeaveSecurityGroupRequest(); + ~LeaveSecurityGroupRequest(); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string securityGroupId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_LEAVESECURITYGROUPREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/LeaveSecurityGroupResult.h b/ens/include/alibabacloud/ens/model/LeaveSecurityGroupResult.h new file mode 100644 index 000000000..a76cda060 --- /dev/null +++ b/ens/include/alibabacloud/ens/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_ENS_MODEL_LEAVESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_LEAVESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT LeaveSecurityGroupResult : public ServiceResult + { + public: + + + LeaveSecurityGroupResult(); + explicit LeaveSecurityGroupResult(const std::string &payload); + ~LeaveSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_LEAVESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ListApplicationsRequest.h b/ens/include/alibabacloud/ens/model/ListApplicationsRequest.h new file mode 100644 index 000000000..28b3aa1a4 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ListApplicationsRequest.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_ENS_MODEL_LISTAPPLICATIONSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_LISTAPPLICATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ListApplicationsRequest : public RpcServiceRequest { +public: + ListApplicationsRequest(); + ~ListApplicationsRequest(); + std::string getClusterNames() const; + void setClusterNames(const std::string &clusterNames); + std::string getLevel() const; + void setLevel(const std::string &level); + std::string getOutAppInfoParams() const; + void setOutAppInfoParams(const std::string &outAppInfoParams); + std::string getMaxDate() const; + void setMaxDate(const std::string &maxDate); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAppVersions() const; + void setAppVersions(const std::string &appVersions); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getMinDate() const; + void setMinDate(const std::string &minDate); + +private: + std::string clusterNames_; + std::string level_; + std::string outAppInfoParams_; + std::string maxDate_; + int pageNumber_; + std::string appVersions_; + int pageSize_; + std::string minDate_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_LISTAPPLICATIONSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ListApplicationsResult.h b/ens/include/alibabacloud/ens/model/ListApplicationsResult.h new file mode 100644 index 000000000..38adda959 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ListApplicationsResult.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_ENS_MODEL_LISTAPPLICATIONSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_LISTAPPLICATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ListApplicationsResult : public ServiceResult + { + public: + struct Application + { + struct App + { + std::string appId; + std::string appInfo; + }; + std::string clusterName; + std::vector appList; + }; + + + ListApplicationsResult(); + explicit ListApplicationsResult(const std::string &payload); + ~ListApplicationsResult(); + int getTotalCount()const; + std::vector getApplications()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector applications_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_LISTAPPLICATIONSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/MigrateVmRequest.h b/ens/include/alibabacloud/ens/model/MigrateVmRequest.h new file mode 100644 index 000000000..b6a2bb1d3 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/MigrateVmRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_MIGRATEVMREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_MIGRATEVMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT MigrateVmRequest : public RpcServiceRequest { +public: + MigrateVmRequest(); + ~MigrateVmRequest(); + std::string getInstances() const; + void setInstances(const std::string &instances); + std::string getGroupUuid() const; + void setGroupUuid(const std::string &groupUuid); + std::string getTenant() const; + void setTenant(const std::string &tenant); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + +private: + std::string instances_; + std::string groupUuid_; + std::string tenant_; + std::string instanceIds_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_MIGRATEVMREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/MigrateVmResult.h b/ens/include/alibabacloud/ens/model/MigrateVmResult.h new file mode 100644 index 000000000..bcfa69e3e --- /dev/null +++ b/ens/include/alibabacloud/ens/model/MigrateVmResult.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_ENS_MODEL_MIGRATEVMRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_MIGRATEVMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT MigrateVmResult : public ServiceResult + { + public: + + + MigrateVmResult(); + explicit MigrateVmResult(const std::string &payload); + ~MigrateVmResult(); + std::string getMsg()const; + std::string getDesc()const; + std::string getData()const; + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string desc_; + std::string data_; + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_MIGRATEVMRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ModifyEnsEipAddressAttributeRequest.h b/ens/include/alibabacloud/ens/model/ModifyEnsEipAddressAttributeRequest.h new file mode 100644 index 000000000..31929615e --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyEnsEipAddressAttributeRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_MODIFYENSEIPADDRESSATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYENSEIPADDRESSATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ModifyEnsEipAddressAttributeRequest : public RpcServiceRequest { +public: + ModifyEnsEipAddressAttributeRequest(); + ~ModifyEnsEipAddressAttributeRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + int getBandwidth() const; + void setBandwidth(int bandwidth); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string description_; + std::string allocationId_; + int bandwidth_; + std::string name_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYENSEIPADDRESSATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ModifyEnsEipAddressAttributeResult.h b/ens/include/alibabacloud/ens/model/ModifyEnsEipAddressAttributeResult.h new file mode 100644 index 000000000..a54d55a41 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyEnsEipAddressAttributeResult.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_ENS_MODEL_MODIFYENSEIPADDRESSATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYENSEIPADDRESSATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ModifyEnsEipAddressAttributeResult : public ServiceResult + { + public: + + + ModifyEnsEipAddressAttributeResult(); + explicit ModifyEnsEipAddressAttributeResult(const std::string &payload); + ~ModifyEnsEipAddressAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYENSEIPADDRESSATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ModifyEpnInstanceRequest.h b/ens/include/alibabacloud/ens/model/ModifyEpnInstanceRequest.h new file mode 100644 index 000000000..4631fafe3 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyEpnInstanceRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_MODIFYEPNINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYEPNINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ModifyEpnInstanceRequest : public RpcServiceRequest { +public: + ModifyEpnInstanceRequest(); + ~ModifyEpnInstanceRequest(); + std::string getNetworkingModel() const; + void setNetworkingModel(const std::string &networkingModel); + int getInternetMaxBandwidthOut() const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + std::string getEPNInstanceId() const; + void setEPNInstanceId(const std::string &ePNInstanceId); + std::string getEPNInstanceName() const; + void setEPNInstanceName(const std::string &ePNInstanceName); + +private: + std::string networkingModel_; + int internetMaxBandwidthOut_; + std::string ePNInstanceId_; + std::string ePNInstanceName_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYEPNINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ModifyEpnInstanceResult.h b/ens/include/alibabacloud/ens/model/ModifyEpnInstanceResult.h new file mode 100644 index 000000000..f01c1f7cc --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyEpnInstanceResult.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_ENS_MODEL_MODIFYEPNINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYEPNINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ModifyEpnInstanceResult : public ServiceResult + { + public: + + + ModifyEpnInstanceResult(); + explicit ModifyEpnInstanceResult(const std::string &payload); + ~ModifyEpnInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYEPNINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ModifyImageAttributeRequest.h b/ens/include/alibabacloud/ens/model/ModifyImageAttributeRequest.h new file mode 100644 index 000000000..f26627d50 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyImageAttributeRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_MODIFYIMAGEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYIMAGEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ModifyImageAttributeRequest : public RpcServiceRequest { +public: + ModifyImageAttributeRequest(); + ~ModifyImageAttributeRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getImageName() const; + void setImageName(const std::string &imageName); + std::string getProduct() const; + void setProduct(const std::string &product); + +private: + std::string imageId_; + std::string imageName_; + std::string product_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYIMAGEATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ModifyImageAttributeResult.h b/ens/include/alibabacloud/ens/model/ModifyImageAttributeResult.h new file mode 100644 index 000000000..390d5de58 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyImageAttributeResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_MODIFYIMAGEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYIMAGEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ModifyImageAttributeResult : public ServiceResult + { + public: + + + ModifyImageAttributeResult(); + explicit ModifyImageAttributeResult(const std::string &payload); + ~ModifyImageAttributeResult(); + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYIMAGEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ModifyImageSharePermissionRequest.h b/ens/include/alibabacloud/ens/model/ModifyImageSharePermissionRequest.h new file mode 100644 index 000000000..00a32fba7 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyImageSharePermissionRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_MODIFYIMAGESHAREPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYIMAGESHAREPERMISSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ModifyImageSharePermissionRequest : public RpcServiceRequest { +public: + ModifyImageSharePermissionRequest(); + ~ModifyImageSharePermissionRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getRemoveAccounts() const; + void setRemoveAccounts(const std::string &removeAccounts); + std::string getAddAccounts() const; + void setAddAccounts(const std::string &addAccounts); + +private: + std::string imageId_; + std::string removeAccounts_; + std::string addAccounts_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYIMAGESHAREPERMISSIONREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ModifyImageSharePermissionResult.h b/ens/include/alibabacloud/ens/model/ModifyImageSharePermissionResult.h new file mode 100644 index 000000000..5f43c8952 --- /dev/null +++ b/ens/include/alibabacloud/ens/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_ENS_MODEL_MODIFYIMAGESHAREPERMISSIONRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYIMAGESHAREPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ModifyImageSharePermissionResult : public ServiceResult + { + public: + + + ModifyImageSharePermissionResult(); + explicit ModifyImageSharePermissionResult(const std::string &payload); + ~ModifyImageSharePermissionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYIMAGESHAREPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ModifyInstanceAttributeRequest.h b/ens/include/alibabacloud/ens/model/ModifyInstanceAttributeRequest.h new file mode 100644 index 000000000..996c72851 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyInstanceAttributeRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_MODIFYINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYINSTANCEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ModifyInstanceAttributeRequest : public RpcServiceRequest { +public: + ModifyInstanceAttributeRequest(); + ~ModifyInstanceAttributeRequest(); + std::string getPassword() const; + void setPassword(const std::string &password); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + +private: + std::string password_; + std::string instanceId_; + std::string instanceName_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYINSTANCEATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ModifyInstanceAttributeResult.h b/ens/include/alibabacloud/ens/model/ModifyInstanceAttributeResult.h new file mode 100644 index 000000000..05fedbd6d --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyInstanceAttributeResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_MODIFYINSTANCEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYINSTANCEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ModifyInstanceAttributeResult : public ServiceResult + { + public: + + + ModifyInstanceAttributeResult(); + explicit ModifyInstanceAttributeResult(const std::string &payload); + ~ModifyInstanceAttributeResult(); + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYINSTANCEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ModifyInstanceAutoRenewAttributeRequest.h b/ens/include/alibabacloud/ens/model/ModifyInstanceAutoRenewAttributeRequest.h new file mode 100644 index 000000000..9e552226a --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyInstanceAutoRenewAttributeRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ModifyInstanceAutoRenewAttributeRequest : public RpcServiceRequest { +public: + ModifyInstanceAutoRenewAttributeRequest(); + ~ModifyInstanceAutoRenewAttributeRequest(); + std::string getDuration() const; + void setDuration(const std::string &duration); + std::string getRenewalStatus() const; + void setRenewalStatus(const std::string &renewalStatus); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getAutoRenew() const; + void setAutoRenew(const std::string &autoRenew); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + +private: + std::string duration_; + std::string renewalStatus_; + std::string ownerId_; + std::string autoRenew_; + std::string instanceIds_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ModifyInstanceAutoRenewAttributeResult.h b/ens/include/alibabacloud/ens/model/ModifyInstanceAutoRenewAttributeResult.h new file mode 100644 index 000000000..73fb34452 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyInstanceAutoRenewAttributeResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ModifyInstanceAutoRenewAttributeResult : public ServiceResult + { + public: + + + ModifyInstanceAutoRenewAttributeResult(); + explicit ModifyInstanceAutoRenewAttributeResult(const std::string &payload); + ~ModifyInstanceAutoRenewAttributeResult(); + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ModifyLoadBalancerAttributeRequest.h b/ens/include/alibabacloud/ens/model/ModifyLoadBalancerAttributeRequest.h new file mode 100644 index 000000000..8065fa220 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyLoadBalancerAttributeRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_MODIFYLOADBALANCERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYLOADBALANCERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ModifyLoadBalancerAttributeRequest : public RpcServiceRequest { +public: + ModifyLoadBalancerAttributeRequest(); + ~ModifyLoadBalancerAttributeRequest(); + std::string getLoadBalancerName() const; + void setLoadBalancerName(const std::string &loadBalancerName); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string loadBalancerName_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYLOADBALANCERATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ModifyLoadBalancerAttributeResult.h b/ens/include/alibabacloud/ens/model/ModifyLoadBalancerAttributeResult.h new file mode 100644 index 000000000..80c0e3712 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyLoadBalancerAttributeResult.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_ENS_MODEL_MODIFYLOADBALANCERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYLOADBALANCERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ModifyLoadBalancerAttributeResult : public ServiceResult + { + public: + + + ModifyLoadBalancerAttributeResult(); + explicit ModifyLoadBalancerAttributeResult(const std::string &payload); + ~ModifyLoadBalancerAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYLOADBALANCERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ModifyNetworkAttributeRequest.h b/ens/include/alibabacloud/ens/model/ModifyNetworkAttributeRequest.h new file mode 100644 index 000000000..2a212c27b --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyNetworkAttributeRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_MODIFYNETWORKATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYNETWORKATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ModifyNetworkAttributeRequest : public RpcServiceRequest { +public: + ModifyNetworkAttributeRequest(); + ~ModifyNetworkAttributeRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getNetworkName() const; + void setNetworkName(const std::string &networkName); + std::string getNetworkId() const; + void setNetworkId(const std::string &networkId); + +private: + std::string description_; + std::string networkName_; + std::string networkId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYNETWORKATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ModifyNetworkAttributeResult.h b/ens/include/alibabacloud/ens/model/ModifyNetworkAttributeResult.h new file mode 100644 index 000000000..9332b6afb --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyNetworkAttributeResult.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_ENS_MODEL_MODIFYNETWORKATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYNETWORKATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ModifyNetworkAttributeResult : public ServiceResult + { + public: + + + ModifyNetworkAttributeResult(); + explicit ModifyNetworkAttributeResult(const std::string &payload); + ~ModifyNetworkAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYNETWORKATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ModifySecurityGroupAttributeRequest.h b/ens/include/alibabacloud/ens/model/ModifySecurityGroupAttributeRequest.h new file mode 100644 index 000000000..74a8d3ccc --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifySecurityGroupAttributeRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_MODIFYSECURITYGROUPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYSECURITYGROUPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ModifySecurityGroupAttributeRequest : public RpcServiceRequest { +public: + ModifySecurityGroupAttributeRequest(); + ~ModifySecurityGroupAttributeRequest(); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSecurityGroupName() const; + void setSecurityGroupName(const std::string &securityGroupName); + +private: + std::string securityGroupId_; + std::string description_; + std::string securityGroupName_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYSECURITYGROUPATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ModifySecurityGroupAttributeResult.h b/ens/include/alibabacloud/ens/model/ModifySecurityGroupAttributeResult.h new file mode 100644 index 000000000..640d9a501 --- /dev/null +++ b/ens/include/alibabacloud/ens/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_ENS_MODEL_MODIFYSECURITYGROUPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYSECURITYGROUPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ModifySecurityGroupAttributeResult : public ServiceResult + { + public: + + + ModifySecurityGroupAttributeResult(); + explicit ModifySecurityGroupAttributeResult(const std::string &payload); + ~ModifySecurityGroupAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYSECURITYGROUPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ModifyVSwitchAttributeRequest.h b/ens/include/alibabacloud/ens/model/ModifyVSwitchAttributeRequest.h new file mode 100644 index 000000000..be64dfe13 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ModifyVSwitchAttributeRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ModifyVSwitchAttributeRequest : public RpcServiceRequest { +public: + ModifyVSwitchAttributeRequest(); + ~ModifyVSwitchAttributeRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getVSwitchName() const; + void setVSwitchName(const std::string &vSwitchName); + +private: + std::string description_; + std::string vSwitchId_; + std::string vSwitchName_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ModifyVSwitchAttributeResult.h b/ens/include/alibabacloud/ens/model/ModifyVSwitchAttributeResult.h new file mode 100644 index 000000000..8fcd7ba8e --- /dev/null +++ b/ens/include/alibabacloud/ens/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_ENS_MODEL_MODIFYVSWITCHATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_MODIFYVSWITCHATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ModifyVSwitchAttributeResult : public ServiceResult + { + public: + + + ModifyVSwitchAttributeResult(); + explicit ModifyVSwitchAttributeResult(const std::string &payload); + ~ModifyVSwitchAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_MODIFYVSWITCHATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/PreCreateEnsServiceRequest.h b/ens/include/alibabacloud/ens/model/PreCreateEnsServiceRequest.h new file mode 100644 index 000000000..d95e35a4f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/PreCreateEnsServiceRequest.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_ENS_MODEL_PRECREATEENSSERVICEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_PRECREATEENSSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT PreCreateEnsServiceRequest : public RpcServiceRequest { +public: + PreCreateEnsServiceRequest(); + ~PreCreateEnsServiceRequest(); + std::string getBandwidthType() const; + void setBandwidthType(const std::string &bandwidthType); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + std::string getPassword() const; + void setPassword(const std::string &password); + std::string getBuyResourcesDetail() const; + void setBuyResourcesDetail(const std::string &buyResourcesDetail); + std::string getSystemDiskSize() const; + void setSystemDiskSize(const std::string &systemDiskSize); + std::string getInstanceBandwithdLimit() const; + void setInstanceBandwithdLimit(const std::string &instanceBandwithdLimit); + std::string getEnsServiceName() const; + void setEnsServiceName(const std::string &ensServiceName); + std::string getNetLevel() const; + void setNetLevel(const std::string &netLevel); + std::string getDataDiskSize() const; + void setDataDiskSize(const std::string &dataDiskSize); + std::string getSchedulingPriceStrategy() const; + void setSchedulingPriceStrategy(const std::string &schedulingPriceStrategy); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getInstanceSpec() const; + void setInstanceSpec(const std::string &instanceSpec); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getSchedulingStrategy() const; + void setSchedulingStrategy(const std::string &schedulingStrategy); + +private: + std::string bandwidthType_; + std::string keyPairName_; + std::string password_; + std::string buyResourcesDetail_; + std::string systemDiskSize_; + std::string instanceBandwithdLimit_; + std::string ensServiceName_; + std::string netLevel_; + std::string dataDiskSize_; + std::string schedulingPriceStrategy_; + std::string imageId_; + std::string instanceSpec_; + std::string userData_; + std::string schedulingStrategy_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_PRECREATEENSSERVICEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/PreCreateEnsServiceResult.h b/ens/include/alibabacloud/ens/model/PreCreateEnsServiceResult.h new file mode 100644 index 000000000..97d873c8d --- /dev/null +++ b/ens/include/alibabacloud/ens/model/PreCreateEnsServiceResult.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_ENS_MODEL_PRECREATEENSSERVICERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_PRECREATEENSSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT PreCreateEnsServiceResult : public ServiceResult + { + public: + + + PreCreateEnsServiceResult(); + explicit PreCreateEnsServiceResult(const std::string &payload); + ~PreCreateEnsServiceResult(); + std::string getEnsServiceId()const; + std::string getNetLevel()const; + int getCode()const; + std::string getBuyResourcesDetail()const; + + protected: + void parse(const std::string &payload); + private: + std::string ensServiceId_; + std::string netLevel_; + int code_; + std::string buyResourcesDetail_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_PRECREATEENSSERVICERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/PushApplicationDataRequest.h b/ens/include/alibabacloud/ens/model/PushApplicationDataRequest.h new file mode 100644 index 000000000..a37b4d83c --- /dev/null +++ b/ens/include/alibabacloud/ens/model/PushApplicationDataRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_PUSHAPPLICATIONDATAREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_PUSHAPPLICATIONDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT PushApplicationDataRequest : public RpcServiceRequest { +public: + PushApplicationDataRequest(); + ~PushApplicationDataRequest(); + std::string getData() const; + void setData(const std::string &data); + int getTimeout() const; + void setTimeout(int timeout); + std::string getPushStrategy() const; + void setPushStrategy(const std::string &pushStrategy); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string data_; + int timeout_; + std::string pushStrategy_; + std::string appId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_PUSHAPPLICATIONDATAREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/PushApplicationDataResult.h b/ens/include/alibabacloud/ens/model/PushApplicationDataResult.h new file mode 100644 index 000000000..19b32bb40 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/PushApplicationDataResult.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_ENS_MODEL_PUSHAPPLICATIONDATARESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_PUSHAPPLICATIONDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT PushApplicationDataResult : public ServiceResult + { + public: + struct PushResult + { + std::string version; + std::string resultDescrip; + int resultCode; + std::string name; + }; + + + PushApplicationDataResult(); + explicit PushApplicationDataResult(const std::string &payload); + ~PushApplicationDataResult(); + std::vector getPushResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector pushResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_PUSHAPPLICATIONDATARESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ReInitDiskRequest.h b/ens/include/alibabacloud/ens/model/ReInitDiskRequest.h new file mode 100644 index 000000000..962ff3399 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ReInitDiskRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_REINITDISKREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_REINITDISKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ReInitDiskRequest : public RpcServiceRequest { +public: + ReInitDiskRequest(); + ~ReInitDiskRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + +private: + std::string imageId_; + std::string diskId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_REINITDISKREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ReInitDiskResult.h b/ens/include/alibabacloud/ens/model/ReInitDiskResult.h new file mode 100644 index 000000000..b64b05e59 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ReInitDiskResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_REINITDISKRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_REINITDISKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ReInitDiskResult : public ServiceResult + { + public: + + + ReInitDiskResult(); + explicit ReInitDiskResult(const std::string &payload); + ~ReInitDiskResult(); + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_REINITDISKRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/RebootInstanceRequest.h b/ens/include/alibabacloud/ens/model/RebootInstanceRequest.h new file mode 100644 index 000000000..81d7b3e75 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RebootInstanceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_REBOOTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_REBOOTINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT RebootInstanceRequest : public RpcServiceRequest { +public: + RebootInstanceRequest(); + ~RebootInstanceRequest(); + std::string getForceStop() const; + void setForceStop(const std::string &forceStop); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string forceStop_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_REBOOTINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/RebootInstanceResult.h b/ens/include/alibabacloud/ens/model/RebootInstanceResult.h new file mode 100644 index 000000000..27a32066f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RebootInstanceResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_REBOOTINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_REBOOTINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT RebootInstanceResult : public ServiceResult + { + public: + + + RebootInstanceResult(); + explicit RebootInstanceResult(const std::string &payload); + ~RebootInstanceResult(); + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_REBOOTINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ReleaseEipAddressRequest.h b/ens/include/alibabacloud/ens/model/ReleaseEipAddressRequest.h new file mode 100644 index 000000000..695c57ce5 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ReleaseEipAddressRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_RELEASEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_RELEASEEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ReleaseEipAddressRequest : public RpcServiceRequest { +public: + ReleaseEipAddressRequest(); + ~ReleaseEipAddressRequest(); + std::string getEips() const; + void setEips(const std::string &eips); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + +private: + std::string eips_; + std::string ensRegionId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_RELEASEEIPADDRESSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ReleaseEipAddressResult.h b/ens/include/alibabacloud/ens/model/ReleaseEipAddressResult.h new file mode 100644 index 000000000..77c531eaa --- /dev/null +++ b/ens/include/alibabacloud/ens/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_ENS_MODEL_RELEASEEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_RELEASEEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ReleaseEipAddressResult : public ServiceResult + { + public: + + + ReleaseEipAddressResult(); + explicit ReleaseEipAddressResult(const std::string &payload); + ~ReleaseEipAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_RELEASEEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ReleaseInstanceRequest.h b/ens/include/alibabacloud/ens/model/ReleaseInstanceRequest.h new file mode 100644 index 000000000..2c96ba1cd --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ReleaseInstanceRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_RELEASEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_RELEASEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ReleaseInstanceRequest : public RpcServiceRequest { +public: + ReleaseInstanceRequest(); + ~ReleaseInstanceRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_RELEASEINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ReleaseInstanceResult.h b/ens/include/alibabacloud/ens/model/ReleaseInstanceResult.h new file mode 100644 index 000000000..f01f2e398 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ReleaseInstanceResult.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_ENS_MODEL_RELEASEINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_RELEASEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ReleaseInstanceResult : public ServiceResult + { + public: + + + ReleaseInstanceResult(); + explicit ReleaseInstanceResult(const std::string &payload); + ~ReleaseInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_RELEASEINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ReleasePostPaidInstanceRequest.h b/ens/include/alibabacloud/ens/model/ReleasePostPaidInstanceRequest.h new file mode 100644 index 000000000..602aa5b02 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ReleasePostPaidInstanceRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_RELEASEPOSTPAIDINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_RELEASEPOSTPAIDINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ReleasePostPaidInstanceRequest : public RpcServiceRequest { +public: + ReleasePostPaidInstanceRequest(); + ~ReleasePostPaidInstanceRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_RELEASEPOSTPAIDINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ReleasePostPaidInstanceResult.h b/ens/include/alibabacloud/ens/model/ReleasePostPaidInstanceResult.h new file mode 100644 index 000000000..2ee28e701 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ReleasePostPaidInstanceResult.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_ENS_MODEL_RELEASEPOSTPAIDINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_RELEASEPOSTPAIDINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ReleasePostPaidInstanceResult : public ServiceResult + { + public: + + + ReleasePostPaidInstanceResult(); + explicit ReleasePostPaidInstanceResult(const std::string &payload); + ~ReleasePostPaidInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_RELEASEPOSTPAIDINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ReleasePrePaidInstanceRequest.h b/ens/include/alibabacloud/ens/model/ReleasePrePaidInstanceRequest.h new file mode 100644 index 000000000..6eadd5dec --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ReleasePrePaidInstanceRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_RELEASEPREPAIDINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_RELEASEPREPAIDINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ReleasePrePaidInstanceRequest : public RpcServiceRequest { +public: + ReleasePrePaidInstanceRequest(); + ~ReleasePrePaidInstanceRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_RELEASEPREPAIDINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ReleasePrePaidInstanceResult.h b/ens/include/alibabacloud/ens/model/ReleasePrePaidInstanceResult.h new file mode 100644 index 000000000..dd7fa693b --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ReleasePrePaidInstanceResult.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_ENS_MODEL_RELEASEPREPAIDINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_RELEASEPREPAIDINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ReleasePrePaidInstanceResult : public ServiceResult + { + public: + + + ReleasePrePaidInstanceResult(); + explicit ReleasePrePaidInstanceResult(const std::string &payload); + ~ReleasePrePaidInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_RELEASEPREPAIDINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/RemoveBackendServersRequest.h b/ens/include/alibabacloud/ens/model/RemoveBackendServersRequest.h new file mode 100644 index 000000000..3d3696218 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RemoveBackendServersRequest.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_ENS_MODEL_REMOVEBACKENDSERVERSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_REMOVEBACKENDSERVERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT RemoveBackendServersRequest : public RpcServiceRequest { +public: + struct BackendServers { + int port; + std::string ip; + int weight; + std::string type; + std::string serverId; + }; + RemoveBackendServersRequest(); + ~RemoveBackendServersRequest(); + std::vector getBackendServers() const; + void setBackendServers(const std::vector &backendServers); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::vector backendServers_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_REMOVEBACKENDSERVERSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/RemoveBackendServersResult.h b/ens/include/alibabacloud/ens/model/RemoveBackendServersResult.h new file mode 100644 index 000000000..80e6f951e --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RemoveBackendServersResult.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_ENS_MODEL_REMOVEBACKENDSERVERSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_REMOVEBACKENDSERVERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT RemoveBackendServersResult : public ServiceResult + { + public: + struct BackendServer + { + std::string type; + std::string serverId; + std::string ip; + int port; + int weight; + }; + + + RemoveBackendServersResult(); + explicit RemoveBackendServersResult(const std::string &payload); + ~RemoveBackendServersResult(); + std::vector getBackendServers()const; + + protected: + void parse(const std::string &payload); + private: + std::vector backendServers_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_REMOVEBACKENDSERVERSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/RemovePublicIpsFromEpnInstanceRequest.h b/ens/include/alibabacloud/ens/model/RemovePublicIpsFromEpnInstanceRequest.h new file mode 100644 index 000000000..2e03cfef0 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RemovePublicIpsFromEpnInstanceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_REMOVEPUBLICIPSFROMEPNINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_REMOVEPUBLICIPSFROMEPNINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT RemovePublicIpsFromEpnInstanceRequest : public RpcServiceRequest { +public: + RemovePublicIpsFromEpnInstanceRequest(); + ~RemovePublicIpsFromEpnInstanceRequest(); + std::string getEPNInstanceId() const; + void setEPNInstanceId(const std::string &ePNInstanceId); + std::string getInstanceInfos() const; + void setInstanceInfos(const std::string &instanceInfos); + +private: + std::string ePNInstanceId_; + std::string instanceInfos_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_REMOVEPUBLICIPSFROMEPNINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/RemovePublicIpsFromEpnInstanceResult.h b/ens/include/alibabacloud/ens/model/RemovePublicIpsFromEpnInstanceResult.h new file mode 100644 index 000000000..724d09114 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RemovePublicIpsFromEpnInstanceResult.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_ENS_MODEL_REMOVEPUBLICIPSFROMEPNINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_REMOVEPUBLICIPSFROMEPNINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT RemovePublicIpsFromEpnInstanceResult : public ServiceResult + { + public: + + + RemovePublicIpsFromEpnInstanceResult(); + explicit RemovePublicIpsFromEpnInstanceResult(const std::string &payload); + ~RemovePublicIpsFromEpnInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_REMOVEPUBLICIPSFROMEPNINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/RemoveVSwitchesFromEpnInstanceRequest.h b/ens/include/alibabacloud/ens/model/RemoveVSwitchesFromEpnInstanceRequest.h new file mode 100644 index 000000000..f80fd77f5 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RemoveVSwitchesFromEpnInstanceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_REMOVEVSWITCHESFROMEPNINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_REMOVEVSWITCHESFROMEPNINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT RemoveVSwitchesFromEpnInstanceRequest : public RpcServiceRequest { +public: + RemoveVSwitchesFromEpnInstanceRequest(); + ~RemoveVSwitchesFromEpnInstanceRequest(); + std::string getVSwitchesInfo() const; + void setVSwitchesInfo(const std::string &vSwitchesInfo); + std::string getEPNInstanceId() const; + void setEPNInstanceId(const std::string &ePNInstanceId); + +private: + std::string vSwitchesInfo_; + std::string ePNInstanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_REMOVEVSWITCHESFROMEPNINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/RemoveVSwitchesFromEpnInstanceResult.h b/ens/include/alibabacloud/ens/model/RemoveVSwitchesFromEpnInstanceResult.h new file mode 100644 index 000000000..2dc0055aa --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RemoveVSwitchesFromEpnInstanceResult.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_ENS_MODEL_REMOVEVSWITCHESFROMEPNINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_REMOVEVSWITCHESFROMEPNINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT RemoveVSwitchesFromEpnInstanceResult : public ServiceResult + { + public: + + + RemoveVSwitchesFromEpnInstanceResult(); + explicit RemoveVSwitchesFromEpnInstanceResult(const std::string &payload); + ~RemoveVSwitchesFromEpnInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_REMOVEVSWITCHESFROMEPNINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/RenewInstanceRequest.h b/ens/include/alibabacloud/ens/model/RenewInstanceRequest.h new file mode 100644 index 000000000..056193bf6 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RenewInstanceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_RENEWINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_RENEWINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT RenewInstanceRequest : public RpcServiceRequest { +public: + RenewInstanceRequest(); + ~RenewInstanceRequest(); + long getPeriod() const; + void setPeriod(long period); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long period_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_RENEWINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/RenewInstanceResult.h b/ens/include/alibabacloud/ens/model/RenewInstanceResult.h new file mode 100644 index 000000000..590fce85d --- /dev/null +++ b/ens/include/alibabacloud/ens/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_ENS_MODEL_RENEWINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_RENEWINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT RenewInstanceResult : public ServiceResult + { + public: + + + RenewInstanceResult(); + explicit RenewInstanceResult(const std::string &payload); + ~RenewInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_RENEWINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/RescaleApplicationRequest.h b/ens/include/alibabacloud/ens/model/RescaleApplicationRequest.h new file mode 100644 index 000000000..1e29ee84a --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RescaleApplicationRequest.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_ENS_MODEL_RESCALEAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_RESCALEAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT RescaleApplicationRequest : public RpcServiceRequest { +public: + RescaleApplicationRequest(); + ~RescaleApplicationRequest(); + std::string getResourceSelector() const; + void setResourceSelector(const std::string &resourceSelector); + std::string getToAppVersion() const; + void setToAppVersion(const std::string &toAppVersion); + std::string getRescaleType() const; + void setRescaleType(const std::string &rescaleType); + int getTimeout() const; + void setTimeout(int timeout); + std::string getRescaleLevel() const; + void setRescaleLevel(const std::string &rescaleLevel); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string resourceSelector_; + std::string toAppVersion_; + std::string rescaleType_; + int timeout_; + std::string rescaleLevel_; + std::string appId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_RESCALEAPPLICATIONREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/RescaleApplicationResult.h b/ens/include/alibabacloud/ens/model/RescaleApplicationResult.h new file mode 100644 index 000000000..c12fbd7d0 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RescaleApplicationResult.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_ENS_MODEL_RESCALEAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_RESCALEAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT RescaleApplicationResult : public ServiceResult + { + public: + + + RescaleApplicationResult(); + explicit RescaleApplicationResult(const std::string &payload); + ~RescaleApplicationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_RESCALEAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/RescaleDeviceServiceRequest.h b/ens/include/alibabacloud/ens/model/RescaleDeviceServiceRequest.h new file mode 100644 index 000000000..3f1c54512 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RescaleDeviceServiceRequest.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_ENS_MODEL_RESCALEDEVICESERVICEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_RESCALEDEVICESERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT RescaleDeviceServiceRequest : public RpcServiceRequest { +public: + RescaleDeviceServiceRequest(); + ~RescaleDeviceServiceRequest(); + std::string getResourceSelector() const; + void setResourceSelector(const std::string &resourceSelector); + std::string getResourceInfo() const; + void setResourceInfo(const std::string &resourceInfo); + std::string getRescaleType() const; + void setRescaleType(const std::string &rescaleType); + std::string getImageId() const; + void setImageId(const std::string &imageId); + long getTimeout() const; + void setTimeout(long timeout); + std::string getRescaleLevel() const; + void setRescaleLevel(const std::string &rescaleLevel); + std::string getResourceSpec() const; + void setResourceSpec(const std::string &resourceSpec); + int getIpType() const; + void setIpType(int ipType); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getServiceId() const; + void setServiceId(const std::string &serviceId); + +private: + std::string resourceSelector_; + std::string resourceInfo_; + std::string rescaleType_; + std::string imageId_; + long timeout_; + std::string rescaleLevel_; + std::string resourceSpec_; + int ipType_; + std::string appId_; + std::string serviceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_RESCALEDEVICESERVICEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/RescaleDeviceServiceResult.h b/ens/include/alibabacloud/ens/model/RescaleDeviceServiceResult.h new file mode 100644 index 000000000..28393f34a --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RescaleDeviceServiceResult.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_ENS_MODEL_RESCALEDEVICESERVICERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_RESCALEDEVICESERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT RescaleDeviceServiceResult : public ServiceResult + { + public: + struct ResourceDetailInfo + { + std::string status; + std::string type; + std::string server; + std::string iP; + std::string iSP; + std::string regionID; + std::string iD; + std::string mac; + }; + + + RescaleDeviceServiceResult(); + explicit RescaleDeviceServiceResult(const std::string &payload); + ~RescaleDeviceServiceResult(); + std::vector getDeviceIds()const; + std::string getOrderId()const; + std::vector getResourceDetailInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::vector deviceIds_; + std::string orderId_; + std::vector resourceDetailInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_RESCALEDEVICESERVICERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/ResetDeviceInstanceRequest.h b/ens/include/alibabacloud/ens/model/ResetDeviceInstanceRequest.h new file mode 100644 index 000000000..dfaacafa2 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ResetDeviceInstanceRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_RESETDEVICEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_RESETDEVICEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT ResetDeviceInstanceRequest : public RpcServiceRequest { +public: + ResetDeviceInstanceRequest(); + ~ResetDeviceInstanceRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string imageId_; + std::string instanceId_; + std::string appId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_RESETDEVICEINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/ResetDeviceInstanceResult.h b/ens/include/alibabacloud/ens/model/ResetDeviceInstanceResult.h new file mode 100644 index 000000000..753a40d66 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/ResetDeviceInstanceResult.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_ENS_MODEL_RESETDEVICEINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_RESETDEVICEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT ResetDeviceInstanceResult : public ServiceResult + { + public: + + + ResetDeviceInstanceResult(); + explicit ResetDeviceInstanceResult(const std::string &payload); + ~ResetDeviceInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_RESETDEVICEINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/RestartDeviceInstanceRequest.h b/ens/include/alibabacloud/ens/model/RestartDeviceInstanceRequest.h new file mode 100644 index 000000000..ffedfecad --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RestartDeviceInstanceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_RESTARTDEVICEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_RESTARTDEVICEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT RestartDeviceInstanceRequest : public RpcServiceRequest { +public: + RestartDeviceInstanceRequest(); + ~RestartDeviceInstanceRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string instanceId_; + std::string appId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_RESTARTDEVICEINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/RestartDeviceInstanceResult.h b/ens/include/alibabacloud/ens/model/RestartDeviceInstanceResult.h new file mode 100644 index 000000000..d9c70448e --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RestartDeviceInstanceResult.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_ENS_MODEL_RESTARTDEVICEINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_RESTARTDEVICEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT RestartDeviceInstanceResult : public ServiceResult + { + public: + + + RestartDeviceInstanceResult(); + explicit RestartDeviceInstanceResult(const std::string &payload); + ~RestartDeviceInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_RESTARTDEVICEINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/RevokeSecurityGroupEgressRequest.h b/ens/include/alibabacloud/ens/model/RevokeSecurityGroupEgressRequest.h new file mode 100644 index 000000000..a1916ef5e --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RevokeSecurityGroupEgressRequest.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_ENS_MODEL_REVOKESECURITYGROUPEGRESSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_REVOKESECURITYGROUPEGRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT RevokeSecurityGroupEgressRequest : public RpcServiceRequest { +public: + RevokeSecurityGroupEgressRequest(); + ~RevokeSecurityGroupEgressRequest(); + std::string getSourcePortRange() const; + void setSourcePortRange(const std::string &sourcePortRange); + std::string getPortRange() const; + void setPortRange(const std::string &portRange); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + int getPriority() const; + void setPriority(int priority); + std::string getDestCidrIp() const; + void setDestCidrIp(const std::string &destCidrIp); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getPolicy() const; + void setPolicy(const std::string &policy); + +private: + std::string sourcePortRange_; + std::string portRange_; + std::string ipProtocol_; + int priority_; + std::string destCidrIp_; + std::string securityGroupId_; + std::string policy_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_REVOKESECURITYGROUPEGRESSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/RevokeSecurityGroupEgressResult.h b/ens/include/alibabacloud/ens/model/RevokeSecurityGroupEgressResult.h new file mode 100644 index 000000000..3d20c922b --- /dev/null +++ b/ens/include/alibabacloud/ens/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_ENS_MODEL_REVOKESECURITYGROUPEGRESSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_REVOKESECURITYGROUPEGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT RevokeSecurityGroupEgressResult : public ServiceResult + { + public: + + + RevokeSecurityGroupEgressResult(); + explicit RevokeSecurityGroupEgressResult(const std::string &payload); + ~RevokeSecurityGroupEgressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_REVOKESECURITYGROUPEGRESSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/RevokeSecurityGroupRequest.h b/ens/include/alibabacloud/ens/model/RevokeSecurityGroupRequest.h new file mode 100644 index 000000000..f92090ee0 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RevokeSecurityGroupRequest.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_ENS_MODEL_REVOKESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_REVOKESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT RevokeSecurityGroupRequest : public RpcServiceRequest { +public: + RevokeSecurityGroupRequest(); + ~RevokeSecurityGroupRequest(); + std::string getSourcePortRange() const; + void setSourcePortRange(const std::string &sourcePortRange); + std::string getPortRange() const; + void setPortRange(const std::string &portRange); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getSourceCidrIp() const; + void setSourceCidrIp(const std::string &sourceCidrIp); + int getPriority() const; + void setPriority(int priority); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getPolicy() const; + void setPolicy(const std::string &policy); + +private: + std::string sourcePortRange_; + std::string portRange_; + std::string ipProtocol_; + std::string sourceCidrIp_; + int priority_; + std::string securityGroupId_; + std::string policy_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_REVOKESECURITYGROUPREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/RevokeSecurityGroupResult.h b/ens/include/alibabacloud/ens/model/RevokeSecurityGroupResult.h new file mode 100644 index 000000000..c0240ab1c --- /dev/null +++ b/ens/include/alibabacloud/ens/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_ENS_MODEL_REVOKESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_REVOKESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT RevokeSecurityGroupResult : public ServiceResult + { + public: + + + RevokeSecurityGroupResult(); + explicit RevokeSecurityGroupResult(const std::string &payload); + ~RevokeSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_REVOKESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/RollbackApplicationRequest.h b/ens/include/alibabacloud/ens/model/RollbackApplicationRequest.h new file mode 100644 index 000000000..60ff61e28 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RollbackApplicationRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_ROLLBACKAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_ROLLBACKAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT RollbackApplicationRequest : public RpcServiceRequest { +public: + RollbackApplicationRequest(); + ~RollbackApplicationRequest(); + int getTimeout() const; + void setTimeout(int timeout); + std::string getFromAppVersion() const; + void setFromAppVersion(const std::string &fromAppVersion); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getToAppVersion() const; + void setToAppVersion(const std::string &toAppVersion); + +private: + int timeout_; + std::string fromAppVersion_; + std::string appId_; + std::string toAppVersion_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_ROLLBACKAPPLICATIONREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/RollbackApplicationResult.h b/ens/include/alibabacloud/ens/model/RollbackApplicationResult.h new file mode 100644 index 000000000..700f2f1c3 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RollbackApplicationResult.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_ENS_MODEL_ROLLBACKAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_ROLLBACKAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT RollbackApplicationResult : public ServiceResult + { + public: + + + RollbackApplicationResult(); + explicit RollbackApplicationResult(const std::string &payload); + ~RollbackApplicationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_ROLLBACKAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/RunInstancesRequest.h b/ens/include/alibabacloud/ens/model/RunInstancesRequest.h new file mode 100644 index 000000000..f0fa74562 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RunInstancesRequest.h @@ -0,0 +1,124 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_RUNINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_RUNINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT RunInstancesRequest : public RpcServiceRequest { +public: + struct SystemDisk { + long size; + }; + struct DataDisk { + long size; + std::string category; + }; + RunInstancesRequest(); + ~RunInstancesRequest(); + std::string getScheduleAreaLevel() const; + void setScheduleAreaLevel(const std::string &scheduleAreaLevel); + bool getUniqueSuffix() const; + void setUniqueSuffix(bool uniqueSuffix); + std::string getSecurityId() const; + void setSecurityId(const std::string &securityId); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + std::string getPassword() const; + void setPassword(const std::string &password); + std::string getHostName() const; + void setHostName(const std::string &hostName); + SystemDisk getSystemDisk() const; + void setSystemDisk(const SystemDisk &systemDisk); + std::string getNetDistrictCode() const; + void setNetDistrictCode(const std::string &netDistrictCode); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + long getPeriod() const; + void setPeriod(long period); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getPrivateIpAddress() const; + void setPrivateIpAddress(const std::string &privateIpAddress); + 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 getNetWorkId() const; + void setNetWorkId(const std::string &netWorkId); + std::string getSchedulingPriceStrategy() const; + void setSchedulingPriceStrategy(const std::string &schedulingPriceStrategy); + std::string getImageId() const; + void setImageId(const std::string &imageId); + long getInternetMaxBandwidthOut() const; + void setInternetMaxBandwidthOut(long internetMaxBandwidthOut); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + long getAmount() const; + void setAmount(long amount); + std::vector getDataDisk() const; + void setDataDisk(const std::vector &dataDisk); + std::string getSchedulingStrategy() const; + void setSchedulingStrategy(const std::string &schedulingStrategy); + std::string getCarrier() const; + void setCarrier(const std::string &carrier); + +private: + std::string scheduleAreaLevel_; + bool uniqueSuffix_; + std::string securityId_; + std::string keyPairName_; + std::string password_; + std::string hostName_; + SystemDisk systemDisk_; + std::string netDistrictCode_; + std::string ensRegionId_; + long period_; + std::string vSwitchId_; + std::string privateIpAddress_; + std::string instanceName_; + bool autoRenew_; + std::string internetChargeType_; + std::string netWorkId_; + std::string schedulingPriceStrategy_; + std::string imageId_; + long internetMaxBandwidthOut_; + std::string userData_; + std::string instanceType_; + std::string instanceChargeType_; + long amount_; + std::vector dataDisk_; + std::string schedulingStrategy_; + std::string carrier_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_RUNINSTANCESREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/RunInstancesResult.h b/ens/include/alibabacloud/ens/model/RunInstancesResult.h new file mode 100644 index 000000000..812345861 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RunInstancesResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_RUNINSTANCESRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_RUNINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT RunInstancesResult : public ServiceResult + { + public: + + + RunInstancesResult(); + explicit RunInstancesResult(const std::string &payload); + ~RunInstancesResult(); + std::vector getInstanceIds()const; + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instanceIds_; + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_RUNINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/RunServiceScheduleRequest.h b/ens/include/alibabacloud/ens/model/RunServiceScheduleRequest.h new file mode 100644 index 000000000..79289fdbe --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RunServiceScheduleRequest.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_ENS_MODEL_RUNSERVICESCHEDULEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_RUNSERVICESCHEDULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT RunServiceScheduleRequest : public RpcServiceRequest { +public: + RunServiceScheduleRequest(); + ~RunServiceScheduleRequest(); + std::string getUuid() const; + void setUuid(const std::string &uuid); + std::string getClientIp() const; + void setClientIp(const std::string &clientIp); + std::string getPodConfigName() const; + void setPodConfigName(const std::string &podConfigName); + std::string getServiceCommands() const; + void setServiceCommands(const std::string &serviceCommands); + std::string getScheduleStrategy() const; + void setScheduleStrategy(const std::string &scheduleStrategy); + std::string getDirectorys() const; + void setDirectorys(const std::string &directorys); + int getPreLockedTimeout() const; + void setPreLockedTimeout(int preLockedTimeout); + std::string getServiceAction() const; + void setServiceAction(const std::string &serviceAction); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string uuid_; + std::string clientIp_; + std::string podConfigName_; + std::string serviceCommands_; + std::string scheduleStrategy_; + std::string directorys_; + int preLockedTimeout_; + std::string serviceAction_; + std::string appId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_RUNSERVICESCHEDULEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/RunServiceScheduleResult.h b/ens/include/alibabacloud/ens/model/RunServiceScheduleResult.h new file mode 100644 index 000000000..8d5457db5 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/RunServiceScheduleResult.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_ENS_MODEL_RUNSERVICESCHEDULERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_RUNSERVICESCHEDULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT RunServiceScheduleResult : public ServiceResult + { + public: + struct CommandResult + { + std::string command; + std::string containerName; + std::string resultMsg; + }; + + + RunServiceScheduleResult(); + explicit RunServiceScheduleResult(const std::string &payload); + ~RunServiceScheduleResult(); + std::string getRequestRepeated()const; + bool getTcpPorts()const; + std::string getInstanceId()const; + int getInstancePort()const; + std::string getInstanceIp()const; + int getIndex()const; + std::vector getCommandResults()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestRepeated_; + bool tcpPorts_; + std::string instanceId_; + int instancePort_; + std::string instanceIp_; + int index_; + std::vector commandResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_RUNSERVICESCHEDULERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/SchedulePodRequest.h b/ens/include/alibabacloud/ens/model/SchedulePodRequest.h new file mode 100644 index 000000000..e34b37e0b --- /dev/null +++ b/ens/include/alibabacloud/ens/model/SchedulePodRequest.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_ENS_MODEL_SCHEDULEPODREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_SCHEDULEPODREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT SchedulePodRequest : public RpcServiceRequest { +public: + SchedulePodRequest(); + ~SchedulePodRequest(); + std::string getAreaCodes() const; + void setAreaCodes(const std::string &areaCodes); + std::string getGroupUuid() const; + void setGroupUuid(const std::string &groupUuid); + std::string getIsps() const; + void setIsps(const std::string &isps); + std::string getTenant() const; + void setTenant(const std::string &tenant); + std::string getWorkloadUuid() const; + void setWorkloadUuid(const std::string &workloadUuid); + std::string getLabels() const; + void setLabels(const std::string &labels); + std::string getRegions() const; + void setRegions(const std::string ®ions); + std::string getResourceAttribute() const; + void setResourceAttribute(const std::string &resourceAttribute); + long getAliUid() const; + void setAliUid(long aliUid); + std::string getRequirements() const; + void setRequirements(const std::string &requirements); + +private: + std::string areaCodes_; + std::string groupUuid_; + std::string isps_; + std::string tenant_; + std::string workloadUuid_; + std::string labels_; + std::string regions_; + std::string resourceAttribute_; + long aliUid_; + std::string requirements_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_SCHEDULEPODREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/SchedulePodResult.h b/ens/include/alibabacloud/ens/model/SchedulePodResult.h new file mode 100644 index 000000000..0be5f4c70 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/SchedulePodResult.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_ENS_MODEL_SCHEDULEPODRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_SCHEDULEPODRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT SchedulePodResult : public ServiceResult + { + public: + + + SchedulePodResult(); + explicit SchedulePodResult(const std::string &payload); + ~SchedulePodResult(); + std::string getMsg()const; + std::string getDesc()const; + std::string getData()const; + long getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string msg_; + std::string desc_; + std::string data_; + long code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_SCHEDULEPODRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/SetBackendServersRequest.h b/ens/include/alibabacloud/ens/model/SetBackendServersRequest.h new file mode 100644 index 000000000..a671051f1 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/SetBackendServersRequest.h @@ -0,0 +1,50 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_SETBACKENDSERVERSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_SETBACKENDSERVERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT SetBackendServersRequest : public RpcServiceRequest { +public: + struct BackendServers { + int weight; + std::string type; + std::string serverId; + }; + SetBackendServersRequest(); + ~SetBackendServersRequest(); + std::vector getBackendServers() const; + void setBackendServers(const std::vector &backendServers); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::vector backendServers_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_SETBACKENDSERVERSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/SetBackendServersResult.h b/ens/include/alibabacloud/ens/model/SetBackendServersResult.h new file mode 100644 index 000000000..9bfc76c92 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/SetBackendServersResult.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_ENS_MODEL_SETBACKENDSERVERSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_SETBACKENDSERVERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT SetBackendServersResult : public ServiceResult + { + public: + struct BackendServer + { + std::string type; + std::string serverId; + std::string ip; + int port; + int weight; + }; + + + SetBackendServersResult(); + explicit SetBackendServersResult(const std::string &payload); + ~SetBackendServersResult(); + std::vector getBackendServers()const; + + protected: + void parse(const std::string &payload); + private: + std::vector backendServers_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_SETBACKENDSERVERSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/SetLoadBalancerHTTPListenerAttributeRequest.h b/ens/include/alibabacloud/ens/model/SetLoadBalancerHTTPListenerAttributeRequest.h new file mode 100644 index 000000000..fc82527c2 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/SetLoadBalancerHTTPListenerAttributeRequest.h @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERHTTPLISTENERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERHTTPLISTENERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT SetLoadBalancerHTTPListenerAttributeRequest : public RpcServiceRequest { +public: + SetLoadBalancerHTTPListenerAttributeRequest(); + ~SetLoadBalancerHTTPListenerAttributeRequest(); + int getHealthCheckTimeout() const; + void setHealthCheckTimeout(int healthCheckTimeout); + std::string getHealthCheckURI() const; + void setHealthCheckURI(const std::string &healthCheckURI); + std::string getHealthCheck() const; + void setHealthCheck(const std::string &healthCheck); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + std::string getCookie() const; + void setCookie(const std::string &cookie); + std::string getHealthCheckMethod() const; + void setHealthCheckMethod(const std::string &healthCheckMethod); + std::string getHealthCheckDomain() const; + void setHealthCheckDomain(const std::string &healthCheckDomain); + int getRequestTimeout() const; + void setRequestTimeout(int requestTimeout); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + std::string getDescription() const; + void setDescription(const std::string &description); + int getUnhealthyThreshold() const; + void setUnhealthyThreshold(int unhealthyThreshold); + int getHealthyThreshold() const; + void setHealthyThreshold(int healthyThreshold); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + int getCookieTimeout() const; + void setCookieTimeout(int cookieTimeout); + std::string getStickySessionType() const; + void setStickySessionType(const std::string &stickySessionType); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getStickySession() const; + void setStickySession(const std::string &stickySession); + int getIdleTimeout() const; + void setIdleTimeout(int idleTimeout); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + std::string getHealthCheckHttpCode() const; + void setHealthCheckHttpCode(const std::string &healthCheckHttpCode); + +private: + int healthCheckTimeout_; + std::string healthCheckURI_; + std::string healthCheck_; + std::string protocol_; + std::string cookie_; + std::string healthCheckMethod_; + std::string healthCheckDomain_; + int requestTimeout_; + std::string loadBalancerId_; + int healthCheckInterval_; + std::string description_; + int unhealthyThreshold_; + int healthyThreshold_; + std::string scheduler_; + int cookieTimeout_; + std::string stickySessionType_; + int listenerPort_; + std::string stickySession_; + int idleTimeout_; + int healthCheckConnectPort_; + std::string healthCheckHttpCode_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERHTTPLISTENERATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/SetLoadBalancerHTTPListenerAttributeResult.h b/ens/include/alibabacloud/ens/model/SetLoadBalancerHTTPListenerAttributeResult.h new file mode 100644 index 000000000..7e13b77ed --- /dev/null +++ b/ens/include/alibabacloud/ens/model/SetLoadBalancerHTTPListenerAttributeResult.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_ENS_MODEL_SETLOADBALANCERHTTPLISTENERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERHTTPLISTENERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT SetLoadBalancerHTTPListenerAttributeResult : public ServiceResult + { + public: + + + SetLoadBalancerHTTPListenerAttributeResult(); + explicit SetLoadBalancerHTTPListenerAttributeResult(const std::string &payload); + ~SetLoadBalancerHTTPListenerAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERHTTPLISTENERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/SetLoadBalancerHTTPSListenerAttributeRequest.h b/ens/include/alibabacloud/ens/model/SetLoadBalancerHTTPSListenerAttributeRequest.h new file mode 100644 index 000000000..2322a9be4 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/SetLoadBalancerHTTPSListenerAttributeRequest.h @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERHTTPSLISTENERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERHTTPSLISTENERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT SetLoadBalancerHTTPSListenerAttributeRequest : public RpcServiceRequest { +public: + SetLoadBalancerHTTPSListenerAttributeRequest(); + ~SetLoadBalancerHTTPSListenerAttributeRequest(); + int getHealthCheckTimeout() const; + void setHealthCheckTimeout(int healthCheckTimeout); + std::string getHealthCheckURI() const; + void setHealthCheckURI(const std::string &healthCheckURI); + std::string getHealthCheck() const; + void setHealthCheck(const std::string &healthCheck); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + std::string getCookie() const; + void setCookie(const std::string &cookie); + std::string getHealthCheckMethod() const; + void setHealthCheckMethod(const std::string &healthCheckMethod); + std::string getHealthCheckDomain() const; + void setHealthCheckDomain(const std::string &healthCheckDomain); + int getRequestTimeout() const; + void setRequestTimeout(int requestTimeout); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + std::string getDescription() const; + void setDescription(const std::string &description); + int getUnhealthyThreshold() const; + void setUnhealthyThreshold(int unhealthyThreshold); + int getHealthyThreshold() const; + void setHealthyThreshold(int healthyThreshold); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + int getCookieTimeout() const; + void setCookieTimeout(int cookieTimeout); + std::string getStickySessionType() const; + void setStickySessionType(const std::string &stickySessionType); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getStickySession() const; + void setStickySession(const std::string &stickySession); + std::string getServerCertificateId() const; + void setServerCertificateId(const std::string &serverCertificateId); + int getIdleTimeout() const; + void setIdleTimeout(int idleTimeout); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + std::string getHealthCheckHttpCode() const; + void setHealthCheckHttpCode(const std::string &healthCheckHttpCode); + +private: + int healthCheckTimeout_; + std::string healthCheckURI_; + std::string healthCheck_; + std::string protocol_; + std::string cookie_; + std::string healthCheckMethod_; + std::string healthCheckDomain_; + int requestTimeout_; + std::string loadBalancerId_; + int healthCheckInterval_; + std::string description_; + int unhealthyThreshold_; + int healthyThreshold_; + std::string scheduler_; + int cookieTimeout_; + std::string stickySessionType_; + int listenerPort_; + std::string stickySession_; + std::string serverCertificateId_; + int idleTimeout_; + int healthCheckConnectPort_; + std::string healthCheckHttpCode_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERHTTPSLISTENERATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/SetLoadBalancerHTTPSListenerAttributeResult.h b/ens/include/alibabacloud/ens/model/SetLoadBalancerHTTPSListenerAttributeResult.h new file mode 100644 index 000000000..7ec4b694b --- /dev/null +++ b/ens/include/alibabacloud/ens/model/SetLoadBalancerHTTPSListenerAttributeResult.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_ENS_MODEL_SETLOADBALANCERHTTPSLISTENERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERHTTPSLISTENERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT SetLoadBalancerHTTPSListenerAttributeResult : public ServiceResult + { + public: + + + SetLoadBalancerHTTPSListenerAttributeResult(); + explicit SetLoadBalancerHTTPSListenerAttributeResult(const std::string &payload); + ~SetLoadBalancerHTTPSListenerAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERHTTPSLISTENERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/SetLoadBalancerStatusRequest.h b/ens/include/alibabacloud/ens/model/SetLoadBalancerStatusRequest.h new file mode 100644 index 000000000..3483a25eb --- /dev/null +++ b/ens/include/alibabacloud/ens/model/SetLoadBalancerStatusRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERSTATUSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT SetLoadBalancerStatusRequest : public RpcServiceRequest { +public: + SetLoadBalancerStatusRequest(); + ~SetLoadBalancerStatusRequest(); + std::string getLoadBalancerStatus() const; + void setLoadBalancerStatus(const std::string &loadBalancerStatus); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string loadBalancerStatus_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERSTATUSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/SetLoadBalancerStatusResult.h b/ens/include/alibabacloud/ens/model/SetLoadBalancerStatusResult.h new file mode 100644 index 000000000..6ee14acc9 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/SetLoadBalancerStatusResult.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_ENS_MODEL_SETLOADBALANCERSTATUSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT SetLoadBalancerStatusResult : public ServiceResult + { + public: + + + SetLoadBalancerStatusResult(); + explicit SetLoadBalancerStatusResult(const std::string &payload); + ~SetLoadBalancerStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERSTATUSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/SetLoadBalancerTCPListenerAttributeRequest.h b/ens/include/alibabacloud/ens/model/SetLoadBalancerTCPListenerAttributeRequest.h new file mode 100644 index 000000000..5fb06ea8a --- /dev/null +++ b/ens/include/alibabacloud/ens/model/SetLoadBalancerTCPListenerAttributeRequest.h @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERTCPLISTENERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERTCPLISTENERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT SetLoadBalancerTCPListenerAttributeRequest : public RpcServiceRequest { +public: + SetLoadBalancerTCPListenerAttributeRequest(); + ~SetLoadBalancerTCPListenerAttributeRequest(); + std::string getHealthCheckURI() const; + void setHealthCheckURI(const std::string &healthCheckURI); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + int getEstablishedTimeout() const; + void setEstablishedTimeout(int establishedTimeout); + int getPersistenceTimeout() const; + void setPersistenceTimeout(int persistenceTimeout); + std::string getHealthCheckDomain() const; + void setHealthCheckDomain(const std::string &healthCheckDomain); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + int getHealthCheckConnectTimeout() const; + void setHealthCheckConnectTimeout(int healthCheckConnectTimeout); + std::string getDescription() const; + void setDescription(const std::string &description); + int getUnhealthyThreshold() const; + void setUnhealthyThreshold(int unhealthyThreshold); + int getHealthyThreshold() const; + void setHealthyThreshold(int healthyThreshold); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + std::string getEipTransmit() const; + void setEipTransmit(const std::string &eipTransmit); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getHealthCheckType() const; + void setHealthCheckType(const std::string &healthCheckType); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + std::string getHealthCheckHttpCode() const; + void setHealthCheckHttpCode(const std::string &healthCheckHttpCode); + +private: + std::string healthCheckURI_; + std::string protocol_; + int establishedTimeout_; + int persistenceTimeout_; + std::string healthCheckDomain_; + std::string loadBalancerId_; + int healthCheckInterval_; + int healthCheckConnectTimeout_; + std::string description_; + int unhealthyThreshold_; + int healthyThreshold_; + std::string scheduler_; + std::string eipTransmit_; + int listenerPort_; + std::string healthCheckType_; + int healthCheckConnectPort_; + std::string healthCheckHttpCode_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERTCPLISTENERATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/SetLoadBalancerTCPListenerAttributeResult.h b/ens/include/alibabacloud/ens/model/SetLoadBalancerTCPListenerAttributeResult.h new file mode 100644 index 000000000..6d8214772 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/SetLoadBalancerTCPListenerAttributeResult.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_ENS_MODEL_SETLOADBALANCERTCPLISTENERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERTCPLISTENERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT SetLoadBalancerTCPListenerAttributeResult : public ServiceResult + { + public: + + + SetLoadBalancerTCPListenerAttributeResult(); + explicit SetLoadBalancerTCPListenerAttributeResult(const std::string &payload); + ~SetLoadBalancerTCPListenerAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERTCPLISTENERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/SetLoadBalancerUDPListenerAttributeRequest.h b/ens/include/alibabacloud/ens/model/SetLoadBalancerUDPListenerAttributeRequest.h new file mode 100644 index 000000000..bbe34a47d --- /dev/null +++ b/ens/include/alibabacloud/ens/model/SetLoadBalancerUDPListenerAttributeRequest.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_ENS_MODEL_SETLOADBALANCERUDPLISTENERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERUDPLISTENERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT SetLoadBalancerUDPListenerAttributeRequest : public RpcServiceRequest { +public: + SetLoadBalancerUDPListenerAttributeRequest(); + ~SetLoadBalancerUDPListenerAttributeRequest(); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + std::string getHealthCheckReq() const; + void setHealthCheckReq(const std::string &healthCheckReq); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + std::string getHealthCheckExp() const; + void setHealthCheckExp(const std::string &healthCheckExp); + int getHealthCheckConnectTimeout() const; + void setHealthCheckConnectTimeout(int healthCheckConnectTimeout); + std::string getDescription() const; + void setDescription(const std::string &description); + int getUnhealthyThreshold() const; + void setUnhealthyThreshold(int unhealthyThreshold); + int getHealthyThreshold() const; + void setHealthyThreshold(int healthyThreshold); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + std::string getEipTransmit() const; + void setEipTransmit(const std::string &eipTransmit); + int getListenerPort() const; + void setListenerPort(int listenerPort); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + +private: + std::string protocol_; + std::string loadBalancerId_; + std::string healthCheckReq_; + int healthCheckInterval_; + std::string healthCheckExp_; + int healthCheckConnectTimeout_; + std::string description_; + int unhealthyThreshold_; + int healthyThreshold_; + std::string scheduler_; + std::string eipTransmit_; + int listenerPort_; + int healthCheckConnectPort_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERUDPLISTENERATTRIBUTEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/SetLoadBalancerUDPListenerAttributeResult.h b/ens/include/alibabacloud/ens/model/SetLoadBalancerUDPListenerAttributeResult.h new file mode 100644 index 000000000..d2d5451d6 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/SetLoadBalancerUDPListenerAttributeResult.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_ENS_MODEL_SETLOADBALANCERUDPLISTENERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERUDPLISTENERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT SetLoadBalancerUDPListenerAttributeResult : public ServiceResult + { + public: + + + SetLoadBalancerUDPListenerAttributeResult(); + explicit SetLoadBalancerUDPListenerAttributeResult(const std::string &payload); + ~SetLoadBalancerUDPListenerAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_SETLOADBALANCERUDPLISTENERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/StartEpnInstanceRequest.h b/ens/include/alibabacloud/ens/model/StartEpnInstanceRequest.h new file mode 100644 index 000000000..d45ab67b7 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/StartEpnInstanceRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_STARTEPNINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_STARTEPNINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT StartEpnInstanceRequest : public RpcServiceRequest { +public: + StartEpnInstanceRequest(); + ~StartEpnInstanceRequest(); + std::string getEPNInstanceId() const; + void setEPNInstanceId(const std::string &ePNInstanceId); + +private: + std::string ePNInstanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_STARTEPNINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/StartEpnInstanceResult.h b/ens/include/alibabacloud/ens/model/StartEpnInstanceResult.h new file mode 100644 index 000000000..cf5031dc0 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/StartEpnInstanceResult.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_ENS_MODEL_STARTEPNINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_STARTEPNINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT StartEpnInstanceResult : public ServiceResult + { + public: + + + StartEpnInstanceResult(); + explicit StartEpnInstanceResult(const std::string &payload); + ~StartEpnInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_STARTEPNINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/StartInstanceRequest.h b/ens/include/alibabacloud/ens/model/StartInstanceRequest.h new file mode 100644 index 000000000..03b9d2b9c --- /dev/null +++ b/ens/include/alibabacloud/ens/model/StartInstanceRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_STARTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_STARTINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT StartInstanceRequest : public RpcServiceRequest { +public: + StartInstanceRequest(); + ~StartInstanceRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_STARTINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/StartInstanceResult.h b/ens/include/alibabacloud/ens/model/StartInstanceResult.h new file mode 100644 index 000000000..32d6d1546 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/StartInstanceResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_STARTINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_STARTINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT StartInstanceResult : public ServiceResult + { + public: + + + StartInstanceResult(); + explicit StartInstanceResult(const std::string &payload); + ~StartInstanceResult(); + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_STARTINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/StartLoadBalancerListenerRequest.h b/ens/include/alibabacloud/ens/model/StartLoadBalancerListenerRequest.h new file mode 100644 index 000000000..24a894b27 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/StartLoadBalancerListenerRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_STARTLOADBALANCERLISTENERREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_STARTLOADBALANCERLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT StartLoadBalancerListenerRequest : public RpcServiceRequest { +public: + StartLoadBalancerListenerRequest(); + ~StartLoadBalancerListenerRequest(); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + int listenerPort_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_STARTLOADBALANCERLISTENERREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/StartLoadBalancerListenerResult.h b/ens/include/alibabacloud/ens/model/StartLoadBalancerListenerResult.h new file mode 100644 index 000000000..92ebcb387 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/StartLoadBalancerListenerResult.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_ENS_MODEL_STARTLOADBALANCERLISTENERRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_STARTLOADBALANCERLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT StartLoadBalancerListenerResult : public ServiceResult + { + public: + + + StartLoadBalancerListenerResult(); + explicit StartLoadBalancerListenerResult(const std::string &payload); + ~StartLoadBalancerListenerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_STARTLOADBALANCERLISTENERRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/StopEpnInstanceRequest.h b/ens/include/alibabacloud/ens/model/StopEpnInstanceRequest.h new file mode 100644 index 000000000..c2206bcb8 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/StopEpnInstanceRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_STOPEPNINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_STOPEPNINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT StopEpnInstanceRequest : public RpcServiceRequest { +public: + StopEpnInstanceRequest(); + ~StopEpnInstanceRequest(); + std::string getEPNInstanceId() const; + void setEPNInstanceId(const std::string &ePNInstanceId); + +private: + std::string ePNInstanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_STOPEPNINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/StopEpnInstanceResult.h b/ens/include/alibabacloud/ens/model/StopEpnInstanceResult.h new file mode 100644 index 000000000..efe054889 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/StopEpnInstanceResult.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_ENS_MODEL_STOPEPNINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_STOPEPNINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT StopEpnInstanceResult : public ServiceResult + { + public: + + + StopEpnInstanceResult(); + explicit StopEpnInstanceResult(const std::string &payload); + ~StopEpnInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_STOPEPNINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/StopInstanceRequest.h b/ens/include/alibabacloud/ens/model/StopInstanceRequest.h new file mode 100644 index 000000000..4d2dc9ef5 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/StopInstanceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_STOPINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_STOPINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT StopInstanceRequest : public RpcServiceRequest { +public: + StopInstanceRequest(); + ~StopInstanceRequest(); + std::string getForceStop() const; + void setForceStop(const std::string &forceStop); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string forceStop_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_STOPINSTANCEREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/StopInstanceResult.h b/ens/include/alibabacloud/ens/model/StopInstanceResult.h new file mode 100644 index 000000000..e2691ffd3 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/StopInstanceResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_STOPINSTANCERESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_STOPINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT StopInstanceResult : public ServiceResult + { + public: + + + StopInstanceResult(); + explicit StopInstanceResult(const std::string &payload); + ~StopInstanceResult(); + int getCode()const; + + protected: + void parse(const std::string &payload); + private: + int code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_STOPINSTANCERESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/StopLoadBalancerListenerRequest.h b/ens/include/alibabacloud/ens/model/StopLoadBalancerListenerRequest.h new file mode 100644 index 000000000..db4821ed8 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/StopLoadBalancerListenerRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_STOPLOADBALANCERLISTENERREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_STOPLOADBALANCERLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT StopLoadBalancerListenerRequest : public RpcServiceRequest { +public: + StopLoadBalancerListenerRequest(); + ~StopLoadBalancerListenerRequest(); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + int listenerPort_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_STOPLOADBALANCERLISTENERREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/StopLoadBalancerListenerResult.h b/ens/include/alibabacloud/ens/model/StopLoadBalancerListenerResult.h new file mode 100644 index 000000000..fa6ae7c62 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/StopLoadBalancerListenerResult.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_ENS_MODEL_STOPLOADBALANCERLISTENERRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_STOPLOADBALANCERLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT StopLoadBalancerListenerResult : public ServiceResult + { + public: + + + StopLoadBalancerListenerResult(); + explicit StopLoadBalancerListenerResult(const std::string &payload); + ~StopLoadBalancerListenerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_STOPLOADBALANCERLISTENERRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/UnAssociateEnsEipAddressRequest.h b/ens/include/alibabacloud/ens/model/UnAssociateEnsEipAddressRequest.h new file mode 100644 index 000000000..b0b4d67e6 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/UnAssociateEnsEipAddressRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_UNASSOCIATEENSEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_UNASSOCIATEENSEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT UnAssociateEnsEipAddressRequest : public RpcServiceRequest { +public: + UnAssociateEnsEipAddressRequest(); + ~UnAssociateEnsEipAddressRequest(); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + +private: + std::string allocationId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_UNASSOCIATEENSEIPADDRESSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/UnAssociateEnsEipAddressResult.h b/ens/include/alibabacloud/ens/model/UnAssociateEnsEipAddressResult.h new file mode 100644 index 000000000..b9ca94e03 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/UnAssociateEnsEipAddressResult.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_ENS_MODEL_UNASSOCIATEENSEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_UNASSOCIATEENSEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT UnAssociateEnsEipAddressResult : public ServiceResult + { + public: + + + UnAssociateEnsEipAddressResult(); + explicit UnAssociateEnsEipAddressResult(const std::string &payload); + ~UnAssociateEnsEipAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_UNASSOCIATEENSEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/UnassociateEipAddressRequest.h b/ens/include/alibabacloud/ens/model/UnassociateEipAddressRequest.h new file mode 100644 index 000000000..36f497a2f --- /dev/null +++ b/ens/include/alibabacloud/ens/model/UnassociateEipAddressRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT UnassociateEipAddressRequest : public RpcServiceRequest { +public: + UnassociateEipAddressRequest(); + ~UnassociateEipAddressRequest(); + std::string getEip() const; + void setEip(const std::string &eip); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); + std::string getInstanceIdInternetIp() const; + void setInstanceIdInternetIp(const std::string &instanceIdInternetIp); + +private: + std::string eip_; + std::string ensRegionId_; + std::string instanceIdInternetIp_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/UnassociateEipAddressResult.h b/ens/include/alibabacloud/ens/model/UnassociateEipAddressResult.h new file mode 100644 index 000000000..6bb70a136 --- /dev/null +++ b/ens/include/alibabacloud/ens/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_ENS_MODEL_UNASSOCIATEEIPADDRESSRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_UNASSOCIATEEIPADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT UnassociateEipAddressResult : public ServiceResult + { + public: + + + UnassociateEipAddressResult(); + explicit UnassociateEipAddressResult(const std::string &payload); + ~UnassociateEipAddressResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_UNASSOCIATEEIPADDRESSRESULT_H_ \ No newline at end of file diff --git a/ens/include/alibabacloud/ens/model/UpgradeApplicationRequest.h b/ens/include/alibabacloud/ens/model/UpgradeApplicationRequest.h new file mode 100644 index 000000000..fb4f7bf1b --- /dev/null +++ b/ens/include/alibabacloud/ens/model/UpgradeApplicationRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ENS_MODEL_UPGRADEAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_ENS_MODEL_UPGRADEAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ens { +namespace Model { +class ALIBABACLOUD_ENS_EXPORT UpgradeApplicationRequest : public RpcServiceRequest { +public: + UpgradeApplicationRequest(); + ~UpgradeApplicationRequest(); + std::string get_Template() const; + void set_Template(const std::string &_template); + int getTimeout() const; + void setTimeout(int timeout); + std::string getAppId() const; + void setAppId(const std::string &appId); + +private: + std::string _template_; + int timeout_; + std::string appId_; +}; +} // namespace Model +} // namespace Ens +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ENS_MODEL_UPGRADEAPPLICATIONREQUEST_H_ diff --git a/ens/include/alibabacloud/ens/model/UpgradeApplicationResult.h b/ens/include/alibabacloud/ens/model/UpgradeApplicationResult.h new file mode 100644 index 000000000..aacea1452 --- /dev/null +++ b/ens/include/alibabacloud/ens/model/UpgradeApplicationResult.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_ENS_MODEL_UPGRADEAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_ENS_MODEL_UPGRADEAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Ens + { + namespace Model + { + class ALIBABACLOUD_ENS_EXPORT UpgradeApplicationResult : public ServiceResult + { + public: + + + UpgradeApplicationResult(); + explicit UpgradeApplicationResult(const std::string &payload); + ~UpgradeApplicationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ENS_MODEL_UPGRADEAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/ens/src/EnsClient.cc b/ens/src/EnsClient.cc new file mode 100644 index 000000000..dcabe62b5 --- /dev/null +++ b/ens/src/EnsClient.cc @@ -0,0 +1,5921 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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::Ens; +using namespace AlibabaCloud::Ens::Model; + +namespace +{ + const std::string SERVICE_NAME = "Ens"; +} + +EnsClient::EnsClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ens"); +} + +EnsClient::EnsClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ens"); +} + +EnsClient::EnsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "ens"); +} + +EnsClient::~EnsClient() +{} + +EnsClient::AddBackendServersOutcome EnsClient::addBackendServers(const AddBackendServersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddBackendServersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddBackendServersOutcome(AddBackendServersResult(outcome.result())); + else + return AddBackendServersOutcome(outcome.error()); +} + +void EnsClient::addBackendServersAsync(const AddBackendServersRequest& request, const AddBackendServersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addBackendServers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::AddBackendServersOutcomeCallable EnsClient::addBackendServersCallable(const AddBackendServersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addBackendServers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::AddDeviceInternetPortOutcome EnsClient::addDeviceInternetPort(const AddDeviceInternetPortRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddDeviceInternetPortOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddDeviceInternetPortOutcome(AddDeviceInternetPortResult(outcome.result())); + else + return AddDeviceInternetPortOutcome(outcome.error()); +} + +void EnsClient::addDeviceInternetPortAsync(const AddDeviceInternetPortRequest& request, const AddDeviceInternetPortAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addDeviceInternetPort(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::AddDeviceInternetPortOutcomeCallable EnsClient::addDeviceInternetPortCallable(const AddDeviceInternetPortRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addDeviceInternetPort(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::AddNetworkInterfaceToInstanceOutcome EnsClient::addNetworkInterfaceToInstance(const AddNetworkInterfaceToInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddNetworkInterfaceToInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddNetworkInterfaceToInstanceOutcome(AddNetworkInterfaceToInstanceResult(outcome.result())); + else + return AddNetworkInterfaceToInstanceOutcome(outcome.error()); +} + +void EnsClient::addNetworkInterfaceToInstanceAsync(const AddNetworkInterfaceToInstanceRequest& request, const AddNetworkInterfaceToInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addNetworkInterfaceToInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::AddNetworkInterfaceToInstanceOutcomeCallable EnsClient::addNetworkInterfaceToInstanceCallable(const AddNetworkInterfaceToInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addNetworkInterfaceToInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::AllocateEipAddressOutcome EnsClient::allocateEipAddress(const AllocateEipAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::AllocateEipAddressOutcomeCallable EnsClient::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(); +} + +EnsClient::AssociateEipAddressOutcome EnsClient::associateEipAddress(const AssociateEipAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::AssociateEipAddressOutcomeCallable EnsClient::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(); +} + +EnsClient::AssociateEnsEipAddressOutcome EnsClient::associateEnsEipAddress(const AssociateEnsEipAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateEnsEipAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateEnsEipAddressOutcome(AssociateEnsEipAddressResult(outcome.result())); + else + return AssociateEnsEipAddressOutcome(outcome.error()); +} + +void EnsClient::associateEnsEipAddressAsync(const AssociateEnsEipAddressRequest& request, const AssociateEnsEipAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateEnsEipAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::AssociateEnsEipAddressOutcomeCallable EnsClient::associateEnsEipAddressCallable(const AssociateEnsEipAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateEnsEipAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::AttachDiskOutcome EnsClient::attachDisk(const AttachDiskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::AttachDiskOutcomeCallable EnsClient::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(); +} + +EnsClient::AttachEnsInstancesOutcome EnsClient::attachEnsInstances(const AttachEnsInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachEnsInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachEnsInstancesOutcome(AttachEnsInstancesResult(outcome.result())); + else + return AttachEnsInstancesOutcome(outcome.error()); +} + +void EnsClient::attachEnsInstancesAsync(const AttachEnsInstancesRequest& request, const AttachEnsInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachEnsInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::AttachEnsInstancesOutcomeCallable EnsClient::attachEnsInstancesCallable(const AttachEnsInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachEnsInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::AuthorizeSecurityGroupOutcome EnsClient::authorizeSecurityGroup(const AuthorizeSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::AuthorizeSecurityGroupOutcomeCallable EnsClient::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(); +} + +EnsClient::AuthorizeSecurityGroupEgressOutcome EnsClient::authorizeSecurityGroupEgress(const AuthorizeSecurityGroupEgressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::AuthorizeSecurityGroupEgressOutcomeCallable EnsClient::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(); +} + +EnsClient::CheckQuotaOutcome EnsClient::checkQuota(const CheckQuotaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckQuotaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckQuotaOutcome(CheckQuotaResult(outcome.result())); + else + return CheckQuotaOutcome(outcome.error()); +} + +void EnsClient::checkQuotaAsync(const CheckQuotaRequest& request, const CheckQuotaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkQuota(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CheckQuotaOutcomeCallable EnsClient::checkQuotaCallable(const CheckQuotaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkQuota(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::ConfigureSecurityGroupPermissionsOutcome EnsClient::configureSecurityGroupPermissions(const ConfigureSecurityGroupPermissionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ConfigureSecurityGroupPermissionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConfigureSecurityGroupPermissionsOutcome(ConfigureSecurityGroupPermissionsResult(outcome.result())); + else + return ConfigureSecurityGroupPermissionsOutcome(outcome.error()); +} + +void EnsClient::configureSecurityGroupPermissionsAsync(const ConfigureSecurityGroupPermissionsRequest& request, const ConfigureSecurityGroupPermissionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, configureSecurityGroupPermissions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::ConfigureSecurityGroupPermissionsOutcomeCallable EnsClient::configureSecurityGroupPermissionsCallable(const ConfigureSecurityGroupPermissionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->configureSecurityGroupPermissions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::CreateApplicationOutcome EnsClient::createApplication(const CreateApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateApplicationOutcome(CreateApplicationResult(outcome.result())); + else + return CreateApplicationOutcome(outcome.error()); +} + +void EnsClient::createApplicationAsync(const CreateApplicationRequest& request, const CreateApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateApplicationOutcomeCallable EnsClient::createApplicationCallable(const CreateApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::CreateDiskOutcome EnsClient::createDisk(const CreateDiskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::CreateDiskOutcomeCallable EnsClient::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(); +} + +EnsClient::CreateDiskBuyOrderOutcome EnsClient::createDiskBuyOrder(const CreateDiskBuyOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDiskBuyOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDiskBuyOrderOutcome(CreateDiskBuyOrderResult(outcome.result())); + else + return CreateDiskBuyOrderOutcome(outcome.error()); +} + +void EnsClient::createDiskBuyOrderAsync(const CreateDiskBuyOrderRequest& request, const CreateDiskBuyOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDiskBuyOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateDiskBuyOrderOutcomeCallable EnsClient::createDiskBuyOrderCallable(const CreateDiskBuyOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDiskBuyOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::CreateEPInstanceOutcome EnsClient::createEPInstance(const CreateEPInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateEPInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateEPInstanceOutcome(CreateEPInstanceResult(outcome.result())); + else + return CreateEPInstanceOutcome(outcome.error()); +} + +void EnsClient::createEPInstanceAsync(const CreateEPInstanceRequest& request, const CreateEPInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createEPInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateEPInstanceOutcomeCallable EnsClient::createEPInstanceCallable(const CreateEPInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createEPInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::CreateEipInstanceOutcome EnsClient::createEipInstance(const CreateEipInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateEipInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateEipInstanceOutcome(CreateEipInstanceResult(outcome.result())); + else + return CreateEipInstanceOutcome(outcome.error()); +} + +void EnsClient::createEipInstanceAsync(const CreateEipInstanceRequest& request, const CreateEipInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createEipInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateEipInstanceOutcomeCallable EnsClient::createEipInstanceCallable(const CreateEipInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createEipInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::CreateElbBuyOrderOutcome EnsClient::createElbBuyOrder(const CreateElbBuyOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateElbBuyOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateElbBuyOrderOutcome(CreateElbBuyOrderResult(outcome.result())); + else + return CreateElbBuyOrderOutcome(outcome.error()); +} + +void EnsClient::createElbBuyOrderAsync(const CreateElbBuyOrderRequest& request, const CreateElbBuyOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createElbBuyOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateElbBuyOrderOutcomeCallable EnsClient::createElbBuyOrderCallable(const CreateElbBuyOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createElbBuyOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::CreateEnsServiceOutcome EnsClient::createEnsService(const CreateEnsServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateEnsServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateEnsServiceOutcome(CreateEnsServiceResult(outcome.result())); + else + return CreateEnsServiceOutcome(outcome.error()); +} + +void EnsClient::createEnsServiceAsync(const CreateEnsServiceRequest& request, const CreateEnsServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createEnsService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateEnsServiceOutcomeCallable EnsClient::createEnsServiceCallable(const CreateEnsServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createEnsService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::CreateEpnInstanceOutcome EnsClient::createEpnInstance(const CreateEpnInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateEpnInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateEpnInstanceOutcome(CreateEpnInstanceResult(outcome.result())); + else + return CreateEpnInstanceOutcome(outcome.error()); +} + +void EnsClient::createEpnInstanceAsync(const CreateEpnInstanceRequest& request, const CreateEpnInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createEpnInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateEpnInstanceOutcomeCallable EnsClient::createEpnInstanceCallable(const CreateEpnInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createEpnInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::CreateImageOutcome EnsClient::createImage(const CreateImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::CreateImageOutcomeCallable EnsClient::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(); +} + +EnsClient::CreateInstanceOutcome EnsClient::createInstance(const CreateInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::CreateInstanceOutcomeCallable EnsClient::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(); +} + +EnsClient::CreateKeyPairOutcome EnsClient::createKeyPair(const CreateKeyPairRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::CreateKeyPairOutcomeCallable EnsClient::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(); +} + +EnsClient::CreateLoadBalancerOutcome EnsClient::createLoadBalancer(const CreateLoadBalancerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLoadBalancerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLoadBalancerOutcome(CreateLoadBalancerResult(outcome.result())); + else + return CreateLoadBalancerOutcome(outcome.error()); +} + +void EnsClient::createLoadBalancerAsync(const CreateLoadBalancerRequest& request, const CreateLoadBalancerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLoadBalancer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateLoadBalancerOutcomeCallable EnsClient::createLoadBalancerCallable(const CreateLoadBalancerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLoadBalancer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::CreateLoadBalancerHTTPListenerOutcome EnsClient::createLoadBalancerHTTPListener(const CreateLoadBalancerHTTPListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLoadBalancerHTTPListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLoadBalancerHTTPListenerOutcome(CreateLoadBalancerHTTPListenerResult(outcome.result())); + else + return CreateLoadBalancerHTTPListenerOutcome(outcome.error()); +} + +void EnsClient::createLoadBalancerHTTPListenerAsync(const CreateLoadBalancerHTTPListenerRequest& request, const CreateLoadBalancerHTTPListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLoadBalancerHTTPListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateLoadBalancerHTTPListenerOutcomeCallable EnsClient::createLoadBalancerHTTPListenerCallable(const CreateLoadBalancerHTTPListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLoadBalancerHTTPListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::CreateLoadBalancerHTTPSListenerOutcome EnsClient::createLoadBalancerHTTPSListener(const CreateLoadBalancerHTTPSListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLoadBalancerHTTPSListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLoadBalancerHTTPSListenerOutcome(CreateLoadBalancerHTTPSListenerResult(outcome.result())); + else + return CreateLoadBalancerHTTPSListenerOutcome(outcome.error()); +} + +void EnsClient::createLoadBalancerHTTPSListenerAsync(const CreateLoadBalancerHTTPSListenerRequest& request, const CreateLoadBalancerHTTPSListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLoadBalancerHTTPSListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateLoadBalancerHTTPSListenerOutcomeCallable EnsClient::createLoadBalancerHTTPSListenerCallable(const CreateLoadBalancerHTTPSListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLoadBalancerHTTPSListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::CreateLoadBalancerTCPListenerOutcome EnsClient::createLoadBalancerTCPListener(const CreateLoadBalancerTCPListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLoadBalancerTCPListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLoadBalancerTCPListenerOutcome(CreateLoadBalancerTCPListenerResult(outcome.result())); + else + return CreateLoadBalancerTCPListenerOutcome(outcome.error()); +} + +void EnsClient::createLoadBalancerTCPListenerAsync(const CreateLoadBalancerTCPListenerRequest& request, const CreateLoadBalancerTCPListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLoadBalancerTCPListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateLoadBalancerTCPListenerOutcomeCallable EnsClient::createLoadBalancerTCPListenerCallable(const CreateLoadBalancerTCPListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLoadBalancerTCPListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::CreateLoadBalancerUDPListenerOutcome EnsClient::createLoadBalancerUDPListener(const CreateLoadBalancerUDPListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLoadBalancerUDPListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLoadBalancerUDPListenerOutcome(CreateLoadBalancerUDPListenerResult(outcome.result())); + else + return CreateLoadBalancerUDPListenerOutcome(outcome.error()); +} + +void EnsClient::createLoadBalancerUDPListenerAsync(const CreateLoadBalancerUDPListenerRequest& request, const CreateLoadBalancerUDPListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLoadBalancerUDPListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateLoadBalancerUDPListenerOutcomeCallable EnsClient::createLoadBalancerUDPListenerCallable(const CreateLoadBalancerUDPListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLoadBalancerUDPListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::CreateNetworkOutcome EnsClient::createNetwork(const CreateNetworkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNetworkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNetworkOutcome(CreateNetworkResult(outcome.result())); + else + return CreateNetworkOutcome(outcome.error()); +} + +void EnsClient::createNetworkAsync(const CreateNetworkRequest& request, const CreateNetworkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNetwork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateNetworkOutcomeCallable EnsClient::createNetworkCallable(const CreateNetworkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNetwork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::CreateSecurityGroupOutcome EnsClient::createSecurityGroup(const CreateSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::CreateSecurityGroupOutcomeCallable EnsClient::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(); +} + +EnsClient::CreateVSwitchOutcome EnsClient::createVSwitch(const CreateVSwitchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::CreateVSwitchOutcomeCallable EnsClient::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(); +} + +EnsClient::CreateVmAndSaveStockOutcome EnsClient::createVmAndSaveStock(const CreateVmAndSaveStockRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVmAndSaveStockOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVmAndSaveStockOutcome(CreateVmAndSaveStockResult(outcome.result())); + else + return CreateVmAndSaveStockOutcome(outcome.error()); +} + +void EnsClient::createVmAndSaveStockAsync(const CreateVmAndSaveStockRequest& request, const CreateVmAndSaveStockAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVmAndSaveStock(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::CreateVmAndSaveStockOutcomeCallable EnsClient::createVmAndSaveStockCallable(const CreateVmAndSaveStockRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVmAndSaveStock(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DeleteApplicationOutcome EnsClient::deleteApplication(const DeleteApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteApplicationOutcome(DeleteApplicationResult(outcome.result())); + else + return DeleteApplicationOutcome(outcome.error()); +} + +void EnsClient::deleteApplicationAsync(const DeleteApplicationRequest& request, const DeleteApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DeleteApplicationOutcomeCallable EnsClient::deleteApplicationCallable(const DeleteApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DeleteDeviceInternetPortOutcome EnsClient::deleteDeviceInternetPort(const DeleteDeviceInternetPortRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDeviceInternetPortOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDeviceInternetPortOutcome(DeleteDeviceInternetPortResult(outcome.result())); + else + return DeleteDeviceInternetPortOutcome(outcome.error()); +} + +void EnsClient::deleteDeviceInternetPortAsync(const DeleteDeviceInternetPortRequest& request, const DeleteDeviceInternetPortAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDeviceInternetPort(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DeleteDeviceInternetPortOutcomeCallable EnsClient::deleteDeviceInternetPortCallable(const DeleteDeviceInternetPortRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDeviceInternetPort(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DeleteEpnInstanceOutcome EnsClient::deleteEpnInstance(const DeleteEpnInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteEpnInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteEpnInstanceOutcome(DeleteEpnInstanceResult(outcome.result())); + else + return DeleteEpnInstanceOutcome(outcome.error()); +} + +void EnsClient::deleteEpnInstanceAsync(const DeleteEpnInstanceRequest& request, const DeleteEpnInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteEpnInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DeleteEpnInstanceOutcomeCallable EnsClient::deleteEpnInstanceCallable(const DeleteEpnInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteEpnInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DeleteKeyPairsOutcome EnsClient::deleteKeyPairs(const DeleteKeyPairsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DeleteKeyPairsOutcomeCallable EnsClient::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(); +} + +EnsClient::DeleteLoadBalancerListenerOutcome EnsClient::deleteLoadBalancerListener(const DeleteLoadBalancerListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteLoadBalancerListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteLoadBalancerListenerOutcome(DeleteLoadBalancerListenerResult(outcome.result())); + else + return DeleteLoadBalancerListenerOutcome(outcome.error()); +} + +void EnsClient::deleteLoadBalancerListenerAsync(const DeleteLoadBalancerListenerRequest& request, const DeleteLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteLoadBalancerListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DeleteLoadBalancerListenerOutcomeCallable EnsClient::deleteLoadBalancerListenerCallable(const DeleteLoadBalancerListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteLoadBalancerListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DeleteNetworkOutcome EnsClient::deleteNetwork(const DeleteNetworkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNetworkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNetworkOutcome(DeleteNetworkResult(outcome.result())); + else + return DeleteNetworkOutcome(outcome.error()); +} + +void EnsClient::deleteNetworkAsync(const DeleteNetworkRequest& request, const DeleteNetworkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNetwork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DeleteNetworkOutcomeCallable EnsClient::deleteNetworkCallable(const DeleteNetworkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNetwork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DeleteSecurityGroupOutcome EnsClient::deleteSecurityGroup(const DeleteSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DeleteSecurityGroupOutcomeCallable EnsClient::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(); +} + +EnsClient::DeleteVSwitchOutcome EnsClient::deleteVSwitch(const DeleteVSwitchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DeleteVSwitchOutcomeCallable EnsClient::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(); +} + +EnsClient::DeleteVmOutcome EnsClient::deleteVm(const DeleteVmRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVmOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVmOutcome(DeleteVmResult(outcome.result())); + else + return DeleteVmOutcome(outcome.error()); +} + +void EnsClient::deleteVmAsync(const DeleteVmRequest& request, const DeleteVmAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVm(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DeleteVmOutcomeCallable EnsClient::deleteVmCallable(const DeleteVmRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVm(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeApplicationOutcome EnsClient::describeApplication(const DescribeApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApplicationOutcome(DescribeApplicationResult(outcome.result())); + else + return DescribeApplicationOutcome(outcome.error()); +} + +void EnsClient::describeApplicationAsync(const DescribeApplicationRequest& request, const DescribeApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeApplicationOutcomeCallable EnsClient::describeApplicationCallable(const DescribeApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeApplicationResourceSummaryOutcome EnsClient::describeApplicationResourceSummary(const DescribeApplicationResourceSummaryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApplicationResourceSummaryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApplicationResourceSummaryOutcome(DescribeApplicationResourceSummaryResult(outcome.result())); + else + return DescribeApplicationResourceSummaryOutcome(outcome.error()); +} + +void EnsClient::describeApplicationResourceSummaryAsync(const DescribeApplicationResourceSummaryRequest& request, const DescribeApplicationResourceSummaryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApplicationResourceSummary(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeApplicationResourceSummaryOutcomeCallable EnsClient::describeApplicationResourceSummaryCallable(const DescribeApplicationResourceSummaryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApplicationResourceSummary(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeAvailableResourceOutcome EnsClient::describeAvailableResource(const DescribeAvailableResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAvailableResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAvailableResourceOutcome(DescribeAvailableResourceResult(outcome.result())); + else + return DescribeAvailableResourceOutcome(outcome.error()); +} + +void EnsClient::describeAvailableResourceAsync(const DescribeAvailableResourceRequest& request, const DescribeAvailableResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAvailableResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeAvailableResourceOutcomeCallable EnsClient::describeAvailableResourceCallable(const DescribeAvailableResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAvailableResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeAvailableResourceInfoOutcome EnsClient::describeAvailableResourceInfo(const DescribeAvailableResourceInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAvailableResourceInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAvailableResourceInfoOutcome(DescribeAvailableResourceInfoResult(outcome.result())); + else + return DescribeAvailableResourceInfoOutcome(outcome.error()); +} + +void EnsClient::describeAvailableResourceInfoAsync(const DescribeAvailableResourceInfoRequest& request, const DescribeAvailableResourceInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAvailableResourceInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeAvailableResourceInfoOutcomeCallable EnsClient::describeAvailableResourceInfoCallable(const DescribeAvailableResourceInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAvailableResourceInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeBandWithdChargeTypeOutcome EnsClient::describeBandWithdChargeType(const DescribeBandWithdChargeTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBandWithdChargeTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBandWithdChargeTypeOutcome(DescribeBandWithdChargeTypeResult(outcome.result())); + else + return DescribeBandWithdChargeTypeOutcome(outcome.error()); +} + +void EnsClient::describeBandWithdChargeTypeAsync(const DescribeBandWithdChargeTypeRequest& request, const DescribeBandWithdChargeTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBandWithdChargeType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeBandWithdChargeTypeOutcomeCallable EnsClient::describeBandWithdChargeTypeCallable(const DescribeBandWithdChargeTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBandWithdChargeType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeBandwitdhByInternetChargeTypeOutcome EnsClient::describeBandwitdhByInternetChargeType(const DescribeBandwitdhByInternetChargeTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBandwitdhByInternetChargeTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBandwitdhByInternetChargeTypeOutcome(DescribeBandwitdhByInternetChargeTypeResult(outcome.result())); + else + return DescribeBandwitdhByInternetChargeTypeOutcome(outcome.error()); +} + +void EnsClient::describeBandwitdhByInternetChargeTypeAsync(const DescribeBandwitdhByInternetChargeTypeRequest& request, const DescribeBandwitdhByInternetChargeTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBandwitdhByInternetChargeType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeBandwitdhByInternetChargeTypeOutcomeCallable EnsClient::describeBandwitdhByInternetChargeTypeCallable(const DescribeBandwitdhByInternetChargeTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBandwitdhByInternetChargeType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeCloudDiskAvailableResourceInfoOutcome EnsClient::describeCloudDiskAvailableResourceInfo(const DescribeCloudDiskAvailableResourceInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCloudDiskAvailableResourceInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCloudDiskAvailableResourceInfoOutcome(DescribeCloudDiskAvailableResourceInfoResult(outcome.result())); + else + return DescribeCloudDiskAvailableResourceInfoOutcome(outcome.error()); +} + +void EnsClient::describeCloudDiskAvailableResourceInfoAsync(const DescribeCloudDiskAvailableResourceInfoRequest& request, const DescribeCloudDiskAvailableResourceInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCloudDiskAvailableResourceInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeCloudDiskAvailableResourceInfoOutcomeCallable EnsClient::describeCloudDiskAvailableResourceInfoCallable(const DescribeCloudDiskAvailableResourceInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCloudDiskAvailableResourceInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeCloudDiskTypesOutcome EnsClient::describeCloudDiskTypes(const DescribeCloudDiskTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCloudDiskTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCloudDiskTypesOutcome(DescribeCloudDiskTypesResult(outcome.result())); + else + return DescribeCloudDiskTypesOutcome(outcome.error()); +} + +void EnsClient::describeCloudDiskTypesAsync(const DescribeCloudDiskTypesRequest& request, const DescribeCloudDiskTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCloudDiskTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeCloudDiskTypesOutcomeCallable EnsClient::describeCloudDiskTypesCallable(const DescribeCloudDiskTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCloudDiskTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeCreatePrePaidInstanceResultOutcome EnsClient::describeCreatePrePaidInstanceResult(const DescribeCreatePrePaidInstanceResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCreatePrePaidInstanceResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCreatePrePaidInstanceResultOutcome(DescribeCreatePrePaidInstanceResultResult(outcome.result())); + else + return DescribeCreatePrePaidInstanceResultOutcome(outcome.error()); +} + +void EnsClient::describeCreatePrePaidInstanceResultAsync(const DescribeCreatePrePaidInstanceResultRequest& request, const DescribeCreatePrePaidInstanceResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCreatePrePaidInstanceResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeCreatePrePaidInstanceResultOutcomeCallable EnsClient::describeCreatePrePaidInstanceResultCallable(const DescribeCreatePrePaidInstanceResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCreatePrePaidInstanceResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeDataDistResultOutcome EnsClient::describeDataDistResult(const DescribeDataDistResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataDistResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataDistResultOutcome(DescribeDataDistResultResult(outcome.result())); + else + return DescribeDataDistResultOutcome(outcome.error()); +} + +void EnsClient::describeDataDistResultAsync(const DescribeDataDistResultRequest& request, const DescribeDataDistResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataDistResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeDataDistResultOutcomeCallable EnsClient::describeDataDistResultCallable(const DescribeDataDistResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataDistResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeDataDownloadURLOutcome EnsClient::describeDataDownloadURL(const DescribeDataDownloadURLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataDownloadURLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataDownloadURLOutcome(DescribeDataDownloadURLResult(outcome.result())); + else + return DescribeDataDownloadURLOutcome(outcome.error()); +} + +void EnsClient::describeDataDownloadURLAsync(const DescribeDataDownloadURLRequest& request, const DescribeDataDownloadURLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataDownloadURL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeDataDownloadURLOutcomeCallable EnsClient::describeDataDownloadURLCallable(const DescribeDataDownloadURLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataDownloadURL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeDataPushResultOutcome EnsClient::describeDataPushResult(const DescribeDataPushResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDataPushResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDataPushResultOutcome(DescribeDataPushResultResult(outcome.result())); + else + return DescribeDataPushResultOutcome(outcome.error()); +} + +void EnsClient::describeDataPushResultAsync(const DescribeDataPushResultRequest& request, const DescribeDataPushResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDataPushResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeDataPushResultOutcomeCallable EnsClient::describeDataPushResultCallable(const DescribeDataPushResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDataPushResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeDeviceServiceOutcome EnsClient::describeDeviceService(const DescribeDeviceServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDeviceServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDeviceServiceOutcome(DescribeDeviceServiceResult(outcome.result())); + else + return DescribeDeviceServiceOutcome(outcome.error()); +} + +void EnsClient::describeDeviceServiceAsync(const DescribeDeviceServiceRequest& request, const DescribeDeviceServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDeviceService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeDeviceServiceOutcomeCallable EnsClient::describeDeviceServiceCallable(const DescribeDeviceServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDeviceService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeDisksOutcome EnsClient::describeDisks(const DescribeDisksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DescribeDisksOutcomeCallable EnsClient::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(); +} + +EnsClient::DescribeEipAddressesOutcome EnsClient::describeEipAddresses(const DescribeEipAddressesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DescribeEipAddressesOutcomeCallable EnsClient::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(); +} + +EnsClient::DescribeElbAvailableResourceInfoOutcome EnsClient::describeElbAvailableResourceInfo(const DescribeElbAvailableResourceInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeElbAvailableResourceInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeElbAvailableResourceInfoOutcome(DescribeElbAvailableResourceInfoResult(outcome.result())); + else + return DescribeElbAvailableResourceInfoOutcome(outcome.error()); +} + +void EnsClient::describeElbAvailableResourceInfoAsync(const DescribeElbAvailableResourceInfoRequest& request, const DescribeElbAvailableResourceInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeElbAvailableResourceInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeElbAvailableResourceInfoOutcomeCallable EnsClient::describeElbAvailableResourceInfoCallable(const DescribeElbAvailableResourceInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeElbAvailableResourceInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeEnsEipAddressesOutcome EnsClient::describeEnsEipAddresses(const DescribeEnsEipAddressesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEnsEipAddressesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEnsEipAddressesOutcome(DescribeEnsEipAddressesResult(outcome.result())); + else + return DescribeEnsEipAddressesOutcome(outcome.error()); +} + +void EnsClient::describeEnsEipAddressesAsync(const DescribeEnsEipAddressesRequest& request, const DescribeEnsEipAddressesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEnsEipAddresses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeEnsEipAddressesOutcomeCallable EnsClient::describeEnsEipAddressesCallable(const DescribeEnsEipAddressesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEnsEipAddresses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeEnsNetDistrictOutcome EnsClient::describeEnsNetDistrict(const DescribeEnsNetDistrictRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEnsNetDistrictOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEnsNetDistrictOutcome(DescribeEnsNetDistrictResult(outcome.result())); + else + return DescribeEnsNetDistrictOutcome(outcome.error()); +} + +void EnsClient::describeEnsNetDistrictAsync(const DescribeEnsNetDistrictRequest& request, const DescribeEnsNetDistrictAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEnsNetDistrict(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeEnsNetDistrictOutcomeCallable EnsClient::describeEnsNetDistrictCallable(const DescribeEnsNetDistrictRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEnsNetDistrict(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeEnsNetLevelOutcome EnsClient::describeEnsNetLevel(const DescribeEnsNetLevelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEnsNetLevelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEnsNetLevelOutcome(DescribeEnsNetLevelResult(outcome.result())); + else + return DescribeEnsNetLevelOutcome(outcome.error()); +} + +void EnsClient::describeEnsNetLevelAsync(const DescribeEnsNetLevelRequest& request, const DescribeEnsNetLevelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEnsNetLevel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeEnsNetLevelOutcomeCallable EnsClient::describeEnsNetLevelCallable(const DescribeEnsNetLevelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEnsNetLevel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeEnsNetSaleDistrictOutcome EnsClient::describeEnsNetSaleDistrict(const DescribeEnsNetSaleDistrictRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEnsNetSaleDistrictOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEnsNetSaleDistrictOutcome(DescribeEnsNetSaleDistrictResult(outcome.result())); + else + return DescribeEnsNetSaleDistrictOutcome(outcome.error()); +} + +void EnsClient::describeEnsNetSaleDistrictAsync(const DescribeEnsNetSaleDistrictRequest& request, const DescribeEnsNetSaleDistrictAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEnsNetSaleDistrict(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeEnsNetSaleDistrictOutcomeCallable EnsClient::describeEnsNetSaleDistrictCallable(const DescribeEnsNetSaleDistrictRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEnsNetSaleDistrict(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeEnsRegionIdIpv6InfoOutcome EnsClient::describeEnsRegionIdIpv6Info(const DescribeEnsRegionIdIpv6InfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEnsRegionIdIpv6InfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEnsRegionIdIpv6InfoOutcome(DescribeEnsRegionIdIpv6InfoResult(outcome.result())); + else + return DescribeEnsRegionIdIpv6InfoOutcome(outcome.error()); +} + +void EnsClient::describeEnsRegionIdIpv6InfoAsync(const DescribeEnsRegionIdIpv6InfoRequest& request, const DescribeEnsRegionIdIpv6InfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEnsRegionIdIpv6Info(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeEnsRegionIdIpv6InfoOutcomeCallable EnsClient::describeEnsRegionIdIpv6InfoCallable(const DescribeEnsRegionIdIpv6InfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEnsRegionIdIpv6Info(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeEnsRegionIdResourceOutcome EnsClient::describeEnsRegionIdResource(const DescribeEnsRegionIdResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEnsRegionIdResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEnsRegionIdResourceOutcome(DescribeEnsRegionIdResourceResult(outcome.result())); + else + return DescribeEnsRegionIdResourceOutcome(outcome.error()); +} + +void EnsClient::describeEnsRegionIdResourceAsync(const DescribeEnsRegionIdResourceRequest& request, const DescribeEnsRegionIdResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEnsRegionIdResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeEnsRegionIdResourceOutcomeCallable EnsClient::describeEnsRegionIdResourceCallable(const DescribeEnsRegionIdResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEnsRegionIdResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeEnsRegionsOutcome EnsClient::describeEnsRegions(const DescribeEnsRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEnsRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEnsRegionsOutcome(DescribeEnsRegionsResult(outcome.result())); + else + return DescribeEnsRegionsOutcome(outcome.error()); +} + +void EnsClient::describeEnsRegionsAsync(const DescribeEnsRegionsRequest& request, const DescribeEnsRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEnsRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeEnsRegionsOutcomeCallable EnsClient::describeEnsRegionsCallable(const DescribeEnsRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEnsRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeEnsResourceUsageOutcome EnsClient::describeEnsResourceUsage(const DescribeEnsResourceUsageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEnsResourceUsageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEnsResourceUsageOutcome(DescribeEnsResourceUsageResult(outcome.result())); + else + return DescribeEnsResourceUsageOutcome(outcome.error()); +} + +void EnsClient::describeEnsResourceUsageAsync(const DescribeEnsResourceUsageRequest& request, const DescribeEnsResourceUsageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEnsResourceUsage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeEnsResourceUsageOutcomeCallable EnsClient::describeEnsResourceUsageCallable(const DescribeEnsResourceUsageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEnsResourceUsage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeEpnBandWidthDataOutcome EnsClient::describeEpnBandWidthData(const DescribeEpnBandWidthDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEpnBandWidthDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEpnBandWidthDataOutcome(DescribeEpnBandWidthDataResult(outcome.result())); + else + return DescribeEpnBandWidthDataOutcome(outcome.error()); +} + +void EnsClient::describeEpnBandWidthDataAsync(const DescribeEpnBandWidthDataRequest& request, const DescribeEpnBandWidthDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEpnBandWidthData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeEpnBandWidthDataOutcomeCallable EnsClient::describeEpnBandWidthDataCallable(const DescribeEpnBandWidthDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEpnBandWidthData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeEpnBandwitdhByInternetChargeTypeOutcome EnsClient::describeEpnBandwitdhByInternetChargeType(const DescribeEpnBandwitdhByInternetChargeTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEpnBandwitdhByInternetChargeTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEpnBandwitdhByInternetChargeTypeOutcome(DescribeEpnBandwitdhByInternetChargeTypeResult(outcome.result())); + else + return DescribeEpnBandwitdhByInternetChargeTypeOutcome(outcome.error()); +} + +void EnsClient::describeEpnBandwitdhByInternetChargeTypeAsync(const DescribeEpnBandwitdhByInternetChargeTypeRequest& request, const DescribeEpnBandwitdhByInternetChargeTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEpnBandwitdhByInternetChargeType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeEpnBandwitdhByInternetChargeTypeOutcomeCallable EnsClient::describeEpnBandwitdhByInternetChargeTypeCallable(const DescribeEpnBandwitdhByInternetChargeTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEpnBandwitdhByInternetChargeType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeEpnInstanceAttributeOutcome EnsClient::describeEpnInstanceAttribute(const DescribeEpnInstanceAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEpnInstanceAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEpnInstanceAttributeOutcome(DescribeEpnInstanceAttributeResult(outcome.result())); + else + return DescribeEpnInstanceAttributeOutcome(outcome.error()); +} + +void EnsClient::describeEpnInstanceAttributeAsync(const DescribeEpnInstanceAttributeRequest& request, const DescribeEpnInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEpnInstanceAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeEpnInstanceAttributeOutcomeCallable EnsClient::describeEpnInstanceAttributeCallable(const DescribeEpnInstanceAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEpnInstanceAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeEpnInstancesOutcome EnsClient::describeEpnInstances(const DescribeEpnInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEpnInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEpnInstancesOutcome(DescribeEpnInstancesResult(outcome.result())); + else + return DescribeEpnInstancesOutcome(outcome.error()); +} + +void EnsClient::describeEpnInstancesAsync(const DescribeEpnInstancesRequest& request, const DescribeEpnInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEpnInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeEpnInstancesOutcomeCallable EnsClient::describeEpnInstancesCallable(const DescribeEpnInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEpnInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeEpnMeasurementDataOutcome EnsClient::describeEpnMeasurementData(const DescribeEpnMeasurementDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEpnMeasurementDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEpnMeasurementDataOutcome(DescribeEpnMeasurementDataResult(outcome.result())); + else + return DescribeEpnMeasurementDataOutcome(outcome.error()); +} + +void EnsClient::describeEpnMeasurementDataAsync(const DescribeEpnMeasurementDataRequest& request, const DescribeEpnMeasurementDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEpnMeasurementData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeEpnMeasurementDataOutcomeCallable EnsClient::describeEpnMeasurementDataCallable(const DescribeEpnMeasurementDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEpnMeasurementData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeExportImageInfoOutcome EnsClient::describeExportImageInfo(const DescribeExportImageInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeExportImageInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeExportImageInfoOutcome(DescribeExportImageInfoResult(outcome.result())); + else + return DescribeExportImageInfoOutcome(outcome.error()); +} + +void EnsClient::describeExportImageInfoAsync(const DescribeExportImageInfoRequest& request, const DescribeExportImageInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeExportImageInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeExportImageInfoOutcomeCallable EnsClient::describeExportImageInfoCallable(const DescribeExportImageInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeExportImageInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeExportImageStatusOutcome EnsClient::describeExportImageStatus(const DescribeExportImageStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeExportImageStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeExportImageStatusOutcome(DescribeExportImageStatusResult(outcome.result())); + else + return DescribeExportImageStatusOutcome(outcome.error()); +} + +void EnsClient::describeExportImageStatusAsync(const DescribeExportImageStatusRequest& request, const DescribeExportImageStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeExportImageStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeExportImageStatusOutcomeCallable EnsClient::describeExportImageStatusCallable(const DescribeExportImageStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeExportImageStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeImageInfosOutcome EnsClient::describeImageInfos(const DescribeImageInfosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeImageInfosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeImageInfosOutcome(DescribeImageInfosResult(outcome.result())); + else + return DescribeImageInfosOutcome(outcome.error()); +} + +void EnsClient::describeImageInfosAsync(const DescribeImageInfosRequest& request, const DescribeImageInfosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeImageInfos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeImageInfosOutcomeCallable EnsClient::describeImageInfosCallable(const DescribeImageInfosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeImageInfos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeImageSharePermissionOutcome EnsClient::describeImageSharePermission(const DescribeImageSharePermissionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DescribeImageSharePermissionOutcomeCallable EnsClient::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(); +} + +EnsClient::DescribeImagesOutcome EnsClient::describeImages(const DescribeImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DescribeImagesOutcomeCallable EnsClient::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(); +} + +EnsClient::DescribeInstanceAutoRenewAttributeOutcome EnsClient::describeInstanceAutoRenewAttribute(const DescribeInstanceAutoRenewAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceAutoRenewAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceAutoRenewAttributeOutcome(DescribeInstanceAutoRenewAttributeResult(outcome.result())); + else + return DescribeInstanceAutoRenewAttributeOutcome(outcome.error()); +} + +void EnsClient::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)); +} + +EnsClient::DescribeInstanceAutoRenewAttributeOutcomeCallable EnsClient::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(); +} + +EnsClient::DescribeInstanceMonitorDataOutcome EnsClient::describeInstanceMonitorData(const DescribeInstanceMonitorDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DescribeInstanceMonitorDataOutcomeCallable EnsClient::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(); +} + +EnsClient::DescribeInstanceSpecOutcome EnsClient::describeInstanceSpec(const DescribeInstanceSpecRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeInstanceSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeInstanceSpecOutcome(DescribeInstanceSpecResult(outcome.result())); + else + return DescribeInstanceSpecOutcome(outcome.error()); +} + +void EnsClient::describeInstanceSpecAsync(const DescribeInstanceSpecRequest& request, const DescribeInstanceSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeInstanceSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeInstanceSpecOutcomeCallable EnsClient::describeInstanceSpecCallable(const DescribeInstanceSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeInstanceSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeInstanceTypesOutcome EnsClient::describeInstanceTypes(const DescribeInstanceTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DescribeInstanceTypesOutcomeCallable EnsClient::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(); +} + +EnsClient::DescribeInstanceVncUrlOutcome EnsClient::describeInstanceVncUrl(const DescribeInstanceVncUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DescribeInstanceVncUrlOutcomeCallable EnsClient::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(); +} + +EnsClient::DescribeInstancesOutcome EnsClient::describeInstances(const DescribeInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DescribeInstancesOutcomeCallable EnsClient::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(); +} + +EnsClient::DescribeKeyPairsOutcome EnsClient::describeKeyPairs(const DescribeKeyPairsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DescribeKeyPairsOutcomeCallable EnsClient::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(); +} + +EnsClient::DescribeLoadBalancerAttributeOutcome EnsClient::describeLoadBalancerAttribute(const DescribeLoadBalancerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLoadBalancerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLoadBalancerAttributeOutcome(DescribeLoadBalancerAttributeResult(outcome.result())); + else + return DescribeLoadBalancerAttributeOutcome(outcome.error()); +} + +void EnsClient::describeLoadBalancerAttributeAsync(const DescribeLoadBalancerAttributeRequest& request, const DescribeLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLoadBalancerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeLoadBalancerAttributeOutcomeCallable EnsClient::describeLoadBalancerAttributeCallable(const DescribeLoadBalancerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLoadBalancerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeLoadBalancerHTTPListenerAttributeOutcome EnsClient::describeLoadBalancerHTTPListenerAttribute(const DescribeLoadBalancerHTTPListenerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLoadBalancerHTTPListenerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLoadBalancerHTTPListenerAttributeOutcome(DescribeLoadBalancerHTTPListenerAttributeResult(outcome.result())); + else + return DescribeLoadBalancerHTTPListenerAttributeOutcome(outcome.error()); +} + +void EnsClient::describeLoadBalancerHTTPListenerAttributeAsync(const DescribeLoadBalancerHTTPListenerAttributeRequest& request, const DescribeLoadBalancerHTTPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLoadBalancerHTTPListenerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeLoadBalancerHTTPListenerAttributeOutcomeCallable EnsClient::describeLoadBalancerHTTPListenerAttributeCallable(const DescribeLoadBalancerHTTPListenerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLoadBalancerHTTPListenerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeLoadBalancerHTTPSListenerAttributeOutcome EnsClient::describeLoadBalancerHTTPSListenerAttribute(const DescribeLoadBalancerHTTPSListenerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLoadBalancerHTTPSListenerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLoadBalancerHTTPSListenerAttributeOutcome(DescribeLoadBalancerHTTPSListenerAttributeResult(outcome.result())); + else + return DescribeLoadBalancerHTTPSListenerAttributeOutcome(outcome.error()); +} + +void EnsClient::describeLoadBalancerHTTPSListenerAttributeAsync(const DescribeLoadBalancerHTTPSListenerAttributeRequest& request, const DescribeLoadBalancerHTTPSListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLoadBalancerHTTPSListenerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeLoadBalancerHTTPSListenerAttributeOutcomeCallable EnsClient::describeLoadBalancerHTTPSListenerAttributeCallable(const DescribeLoadBalancerHTTPSListenerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLoadBalancerHTTPSListenerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeLoadBalancerSpecOutcome EnsClient::describeLoadBalancerSpec(const DescribeLoadBalancerSpecRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLoadBalancerSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLoadBalancerSpecOutcome(DescribeLoadBalancerSpecResult(outcome.result())); + else + return DescribeLoadBalancerSpecOutcome(outcome.error()); +} + +void EnsClient::describeLoadBalancerSpecAsync(const DescribeLoadBalancerSpecRequest& request, const DescribeLoadBalancerSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLoadBalancerSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeLoadBalancerSpecOutcomeCallable EnsClient::describeLoadBalancerSpecCallable(const DescribeLoadBalancerSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLoadBalancerSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeLoadBalancerTCPListenerAttributeOutcome EnsClient::describeLoadBalancerTCPListenerAttribute(const DescribeLoadBalancerTCPListenerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLoadBalancerTCPListenerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLoadBalancerTCPListenerAttributeOutcome(DescribeLoadBalancerTCPListenerAttributeResult(outcome.result())); + else + return DescribeLoadBalancerTCPListenerAttributeOutcome(outcome.error()); +} + +void EnsClient::describeLoadBalancerTCPListenerAttributeAsync(const DescribeLoadBalancerTCPListenerAttributeRequest& request, const DescribeLoadBalancerTCPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLoadBalancerTCPListenerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeLoadBalancerTCPListenerAttributeOutcomeCallable EnsClient::describeLoadBalancerTCPListenerAttributeCallable(const DescribeLoadBalancerTCPListenerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLoadBalancerTCPListenerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeLoadBalancerUDPListenerAttributeOutcome EnsClient::describeLoadBalancerUDPListenerAttribute(const DescribeLoadBalancerUDPListenerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLoadBalancerUDPListenerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLoadBalancerUDPListenerAttributeOutcome(DescribeLoadBalancerUDPListenerAttributeResult(outcome.result())); + else + return DescribeLoadBalancerUDPListenerAttributeOutcome(outcome.error()); +} + +void EnsClient::describeLoadBalancerUDPListenerAttributeAsync(const DescribeLoadBalancerUDPListenerAttributeRequest& request, const DescribeLoadBalancerUDPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLoadBalancerUDPListenerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeLoadBalancerUDPListenerAttributeOutcomeCallable EnsClient::describeLoadBalancerUDPListenerAttributeCallable(const DescribeLoadBalancerUDPListenerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLoadBalancerUDPListenerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeLoadBalancersOutcome EnsClient::describeLoadBalancers(const DescribeLoadBalancersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLoadBalancersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLoadBalancersOutcome(DescribeLoadBalancersResult(outcome.result())); + else + return DescribeLoadBalancersOutcome(outcome.error()); +} + +void EnsClient::describeLoadBalancersAsync(const DescribeLoadBalancersRequest& request, const DescribeLoadBalancersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLoadBalancers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeLoadBalancersOutcomeCallable EnsClient::describeLoadBalancersCallable(const DescribeLoadBalancersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLoadBalancers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeMeasurementDataOutcome EnsClient::describeMeasurementData(const DescribeMeasurementDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMeasurementDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMeasurementDataOutcome(DescribeMeasurementDataResult(outcome.result())); + else + return DescribeMeasurementDataOutcome(outcome.error()); +} + +void EnsClient::describeMeasurementDataAsync(const DescribeMeasurementDataRequest& request, const DescribeMeasurementDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMeasurementData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeMeasurementDataOutcomeCallable EnsClient::describeMeasurementDataCallable(const DescribeMeasurementDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMeasurementData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeNetworkAttributeOutcome EnsClient::describeNetworkAttribute(const DescribeNetworkAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNetworkAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNetworkAttributeOutcome(DescribeNetworkAttributeResult(outcome.result())); + else + return DescribeNetworkAttributeOutcome(outcome.error()); +} + +void EnsClient::describeNetworkAttributeAsync(const DescribeNetworkAttributeRequest& request, const DescribeNetworkAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNetworkAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeNetworkAttributeOutcomeCallable EnsClient::describeNetworkAttributeCallable(const DescribeNetworkAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNetworkAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeNetworkInterfacesOutcome EnsClient::describeNetworkInterfaces(const DescribeNetworkInterfacesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DescribeNetworkInterfacesOutcomeCallable EnsClient::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(); +} + +EnsClient::DescribeNetworksOutcome EnsClient::describeNetworks(const DescribeNetworksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNetworksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNetworksOutcome(DescribeNetworksResult(outcome.result())); + else + return DescribeNetworksOutcome(outcome.error()); +} + +void EnsClient::describeNetworksAsync(const DescribeNetworksRequest& request, const DescribeNetworksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNetworks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeNetworksOutcomeCallable EnsClient::describeNetworksCallable(const DescribeNetworksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNetworks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribePrePaidInstanceStockOutcome EnsClient::describePrePaidInstanceStock(const DescribePrePaidInstanceStockRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePrePaidInstanceStockOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePrePaidInstanceStockOutcome(DescribePrePaidInstanceStockResult(outcome.result())); + else + return DescribePrePaidInstanceStockOutcome(outcome.error()); +} + +void EnsClient::describePrePaidInstanceStockAsync(const DescribePrePaidInstanceStockRequest& request, const DescribePrePaidInstanceStockAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePrePaidInstanceStock(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribePrePaidInstanceStockOutcomeCallable EnsClient::describePrePaidInstanceStockCallable(const DescribePrePaidInstanceStockRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePrePaidInstanceStock(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribePriceOutcome EnsClient::describePrice(const DescribePriceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DescribePriceOutcomeCallable EnsClient::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(); +} + +EnsClient::DescribeRegionIspsOutcome EnsClient::describeRegionIsps(const DescribeRegionIspsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionIspsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionIspsOutcome(DescribeRegionIspsResult(outcome.result())); + else + return DescribeRegionIspsOutcome(outcome.error()); +} + +void EnsClient::describeRegionIspsAsync(const DescribeRegionIspsRequest& request, const DescribeRegionIspsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegionIsps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeRegionIspsOutcomeCallable EnsClient::describeRegionIspsCallable(const DescribeRegionIspsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegionIsps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeReservedResourceOutcome EnsClient::describeReservedResource(const DescribeReservedResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeReservedResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeReservedResourceOutcome(DescribeReservedResourceResult(outcome.result())); + else + return DescribeReservedResourceOutcome(outcome.error()); +} + +void EnsClient::describeReservedResourceAsync(const DescribeReservedResourceRequest& request, const DescribeReservedResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeReservedResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeReservedResourceOutcomeCallable EnsClient::describeReservedResourceCallable(const DescribeReservedResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeReservedResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeSecurityGroupAttributeOutcome EnsClient::describeSecurityGroupAttribute(const DescribeSecurityGroupAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DescribeSecurityGroupAttributeOutcomeCallable EnsClient::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(); +} + +EnsClient::DescribeSecurityGroupsOutcome EnsClient::describeSecurityGroups(const DescribeSecurityGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DescribeSecurityGroupsOutcomeCallable EnsClient::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(); +} + +EnsClient::DescribeServcieScheduleOutcome EnsClient::describeServcieSchedule(const DescribeServcieScheduleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeServcieScheduleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeServcieScheduleOutcome(DescribeServcieScheduleResult(outcome.result())); + else + return DescribeServcieScheduleOutcome(outcome.error()); +} + +void EnsClient::describeServcieScheduleAsync(const DescribeServcieScheduleRequest& request, const DescribeServcieScheduleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeServcieSchedule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeServcieScheduleOutcomeCallable EnsClient::describeServcieScheduleCallable(const DescribeServcieScheduleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeServcieSchedule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeUserBandWidthDataOutcome EnsClient::describeUserBandWidthData(const DescribeUserBandWidthDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUserBandWidthDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUserBandWidthDataOutcome(DescribeUserBandWidthDataResult(outcome.result())); + else + return DescribeUserBandWidthDataOutcome(outcome.error()); +} + +void EnsClient::describeUserBandWidthDataAsync(const DescribeUserBandWidthDataRequest& request, const DescribeUserBandWidthDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUserBandWidthData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DescribeUserBandWidthDataOutcomeCallable EnsClient::describeUserBandWidthDataCallable(const DescribeUserBandWidthDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUserBandWidthData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::DescribeVSwitchesOutcome EnsClient::describeVSwitches(const DescribeVSwitchesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DescribeVSwitchesOutcomeCallable EnsClient::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(); +} + +EnsClient::DetachDiskOutcome EnsClient::detachDisk(const DetachDiskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::DetachDiskOutcomeCallable EnsClient::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(); +} + +EnsClient::DistApplicationDataOutcome EnsClient::distApplicationData(const DistApplicationDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DistApplicationDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DistApplicationDataOutcome(DistApplicationDataResult(outcome.result())); + else + return DistApplicationDataOutcome(outcome.error()); +} + +void EnsClient::distApplicationDataAsync(const DistApplicationDataRequest& request, const DistApplicationDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, distApplicationData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::DistApplicationDataOutcomeCallable EnsClient::distApplicationDataCallable(const DistApplicationDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->distApplicationData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::ExportBillDetailDataOutcome EnsClient::exportBillDetailData(const ExportBillDetailDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExportBillDetailDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExportBillDetailDataOutcome(ExportBillDetailDataResult(outcome.result())); + else + return ExportBillDetailDataOutcome(outcome.error()); +} + +void EnsClient::exportBillDetailDataAsync(const ExportBillDetailDataRequest& request, const ExportBillDetailDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, exportBillDetailData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::ExportBillDetailDataOutcomeCallable EnsClient::exportBillDetailDataCallable(const ExportBillDetailDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->exportBillDetailData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::ExportImageOutcome EnsClient::exportImage(const ExportImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::ExportImageOutcomeCallable EnsClient::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(); +} + +EnsClient::ExportMeasurementDataOutcome EnsClient::exportMeasurementData(const ExportMeasurementDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExportMeasurementDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExportMeasurementDataOutcome(ExportMeasurementDataResult(outcome.result())); + else + return ExportMeasurementDataOutcome(outcome.error()); +} + +void EnsClient::exportMeasurementDataAsync(const ExportMeasurementDataRequest& request, const ExportMeasurementDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, exportMeasurementData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::ExportMeasurementDataOutcomeCallable EnsClient::exportMeasurementDataCallable(const ExportMeasurementDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->exportMeasurementData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::GetDeviceInternetPortOutcome EnsClient::getDeviceInternetPort(const GetDeviceInternetPortRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDeviceInternetPortOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDeviceInternetPortOutcome(GetDeviceInternetPortResult(outcome.result())); + else + return GetDeviceInternetPortOutcome(outcome.error()); +} + +void EnsClient::getDeviceInternetPortAsync(const GetDeviceInternetPortRequest& request, const GetDeviceInternetPortAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDeviceInternetPort(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::GetDeviceInternetPortOutcomeCallable EnsClient::getDeviceInternetPortCallable(const GetDeviceInternetPortRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDeviceInternetPort(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::GetVmListOutcome EnsClient::getVmList(const GetVmListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVmListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVmListOutcome(GetVmListResult(outcome.result())); + else + return GetVmListOutcome(outcome.error()); +} + +void EnsClient::getVmListAsync(const GetVmListRequest& request, const GetVmListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVmList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::GetVmListOutcomeCallable EnsClient::getVmListCallable(const GetVmListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVmList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::ImportKeyPairOutcome EnsClient::importKeyPair(const ImportKeyPairRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::ImportKeyPairOutcomeCallable EnsClient::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(); +} + +EnsClient::JoinPublicIpsToEpnInstanceOutcome EnsClient::joinPublicIpsToEpnInstance(const JoinPublicIpsToEpnInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return JoinPublicIpsToEpnInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return JoinPublicIpsToEpnInstanceOutcome(JoinPublicIpsToEpnInstanceResult(outcome.result())); + else + return JoinPublicIpsToEpnInstanceOutcome(outcome.error()); +} + +void EnsClient::joinPublicIpsToEpnInstanceAsync(const JoinPublicIpsToEpnInstanceRequest& request, const JoinPublicIpsToEpnInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, joinPublicIpsToEpnInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::JoinPublicIpsToEpnInstanceOutcomeCallable EnsClient::joinPublicIpsToEpnInstanceCallable(const JoinPublicIpsToEpnInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->joinPublicIpsToEpnInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::JoinSecurityGroupOutcome EnsClient::joinSecurityGroup(const JoinSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::JoinSecurityGroupOutcomeCallable EnsClient::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(); +} + +EnsClient::JoinVSwitchesToEpnInstanceOutcome EnsClient::joinVSwitchesToEpnInstance(const JoinVSwitchesToEpnInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return JoinVSwitchesToEpnInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return JoinVSwitchesToEpnInstanceOutcome(JoinVSwitchesToEpnInstanceResult(outcome.result())); + else + return JoinVSwitchesToEpnInstanceOutcome(outcome.error()); +} + +void EnsClient::joinVSwitchesToEpnInstanceAsync(const JoinVSwitchesToEpnInstanceRequest& request, const JoinVSwitchesToEpnInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, joinVSwitchesToEpnInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::JoinVSwitchesToEpnInstanceOutcomeCallable EnsClient::joinVSwitchesToEpnInstanceCallable(const JoinVSwitchesToEpnInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->joinVSwitchesToEpnInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::LeaveSecurityGroupOutcome EnsClient::leaveSecurityGroup(const LeaveSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::LeaveSecurityGroupOutcomeCallable EnsClient::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(); +} + +EnsClient::ListApplicationsOutcome EnsClient::listApplications(const ListApplicationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListApplicationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListApplicationsOutcome(ListApplicationsResult(outcome.result())); + else + return ListApplicationsOutcome(outcome.error()); +} + +void EnsClient::listApplicationsAsync(const ListApplicationsRequest& request, const ListApplicationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApplications(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::ListApplicationsOutcomeCallable EnsClient::listApplicationsCallable(const ListApplicationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApplications(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::MigrateVmOutcome EnsClient::migrateVm(const MigrateVmRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MigrateVmOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MigrateVmOutcome(MigrateVmResult(outcome.result())); + else + return MigrateVmOutcome(outcome.error()); +} + +void EnsClient::migrateVmAsync(const MigrateVmRequest& request, const MigrateVmAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, migrateVm(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::MigrateVmOutcomeCallable EnsClient::migrateVmCallable(const MigrateVmRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->migrateVm(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::ModifyEnsEipAddressAttributeOutcome EnsClient::modifyEnsEipAddressAttribute(const ModifyEnsEipAddressAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyEnsEipAddressAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyEnsEipAddressAttributeOutcome(ModifyEnsEipAddressAttributeResult(outcome.result())); + else + return ModifyEnsEipAddressAttributeOutcome(outcome.error()); +} + +void EnsClient::modifyEnsEipAddressAttributeAsync(const ModifyEnsEipAddressAttributeRequest& request, const ModifyEnsEipAddressAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyEnsEipAddressAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::ModifyEnsEipAddressAttributeOutcomeCallable EnsClient::modifyEnsEipAddressAttributeCallable(const ModifyEnsEipAddressAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyEnsEipAddressAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::ModifyEpnInstanceOutcome EnsClient::modifyEpnInstance(const ModifyEpnInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyEpnInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyEpnInstanceOutcome(ModifyEpnInstanceResult(outcome.result())); + else + return ModifyEpnInstanceOutcome(outcome.error()); +} + +void EnsClient::modifyEpnInstanceAsync(const ModifyEpnInstanceRequest& request, const ModifyEpnInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyEpnInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::ModifyEpnInstanceOutcomeCallable EnsClient::modifyEpnInstanceCallable(const ModifyEpnInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyEpnInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::ModifyImageAttributeOutcome EnsClient::modifyImageAttribute(const ModifyImageAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::ModifyImageAttributeOutcomeCallable EnsClient::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(); +} + +EnsClient::ModifyImageSharePermissionOutcome EnsClient::modifyImageSharePermission(const ModifyImageSharePermissionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::ModifyImageSharePermissionOutcomeCallable EnsClient::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(); +} + +EnsClient::ModifyInstanceAttributeOutcome EnsClient::modifyInstanceAttribute(const ModifyInstanceAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::ModifyInstanceAttributeOutcomeCallable EnsClient::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(); +} + +EnsClient::ModifyInstanceAutoRenewAttributeOutcome EnsClient::modifyInstanceAutoRenewAttribute(const ModifyInstanceAutoRenewAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::ModifyInstanceAutoRenewAttributeOutcomeCallable EnsClient::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(); +} + +EnsClient::ModifyLoadBalancerAttributeOutcome EnsClient::modifyLoadBalancerAttribute(const ModifyLoadBalancerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyLoadBalancerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyLoadBalancerAttributeOutcome(ModifyLoadBalancerAttributeResult(outcome.result())); + else + return ModifyLoadBalancerAttributeOutcome(outcome.error()); +} + +void EnsClient::modifyLoadBalancerAttributeAsync(const ModifyLoadBalancerAttributeRequest& request, const ModifyLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyLoadBalancerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::ModifyLoadBalancerAttributeOutcomeCallable EnsClient::modifyLoadBalancerAttributeCallable(const ModifyLoadBalancerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyLoadBalancerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::ModifyNetworkAttributeOutcome EnsClient::modifyNetworkAttribute(const ModifyNetworkAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyNetworkAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyNetworkAttributeOutcome(ModifyNetworkAttributeResult(outcome.result())); + else + return ModifyNetworkAttributeOutcome(outcome.error()); +} + +void EnsClient::modifyNetworkAttributeAsync(const ModifyNetworkAttributeRequest& request, const ModifyNetworkAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyNetworkAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::ModifyNetworkAttributeOutcomeCallable EnsClient::modifyNetworkAttributeCallable(const ModifyNetworkAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyNetworkAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::ModifySecurityGroupAttributeOutcome EnsClient::modifySecurityGroupAttribute(const ModifySecurityGroupAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::ModifySecurityGroupAttributeOutcomeCallable EnsClient::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(); +} + +EnsClient::ModifyVSwitchAttributeOutcome EnsClient::modifyVSwitchAttribute(const ModifyVSwitchAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::ModifyVSwitchAttributeOutcomeCallable EnsClient::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(); +} + +EnsClient::PreCreateEnsServiceOutcome EnsClient::preCreateEnsService(const PreCreateEnsServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PreCreateEnsServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PreCreateEnsServiceOutcome(PreCreateEnsServiceResult(outcome.result())); + else + return PreCreateEnsServiceOutcome(outcome.error()); +} + +void EnsClient::preCreateEnsServiceAsync(const PreCreateEnsServiceRequest& request, const PreCreateEnsServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, preCreateEnsService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::PreCreateEnsServiceOutcomeCallable EnsClient::preCreateEnsServiceCallable(const PreCreateEnsServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->preCreateEnsService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::PushApplicationDataOutcome EnsClient::pushApplicationData(const PushApplicationDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PushApplicationDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PushApplicationDataOutcome(PushApplicationDataResult(outcome.result())); + else + return PushApplicationDataOutcome(outcome.error()); +} + +void EnsClient::pushApplicationDataAsync(const PushApplicationDataRequest& request, const PushApplicationDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pushApplicationData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::PushApplicationDataOutcomeCallable EnsClient::pushApplicationDataCallable(const PushApplicationDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pushApplicationData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::ReInitDiskOutcome EnsClient::reInitDisk(const ReInitDiskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::ReInitDiskOutcomeCallable EnsClient::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(); +} + +EnsClient::RebootInstanceOutcome EnsClient::rebootInstance(const RebootInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::RebootInstanceOutcomeCallable EnsClient::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(); +} + +EnsClient::ReleaseEipAddressOutcome EnsClient::releaseEipAddress(const ReleaseEipAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::ReleaseEipAddressOutcomeCallable EnsClient::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(); +} + +EnsClient::ReleaseInstanceOutcome EnsClient::releaseInstance(const ReleaseInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseInstanceOutcome(ReleaseInstanceResult(outcome.result())); + else + return ReleaseInstanceOutcome(outcome.error()); +} + +void EnsClient::releaseInstanceAsync(const ReleaseInstanceRequest& request, const ReleaseInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::ReleaseInstanceOutcomeCallable EnsClient::releaseInstanceCallable(const ReleaseInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::ReleasePostPaidInstanceOutcome EnsClient::releasePostPaidInstance(const ReleasePostPaidInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleasePostPaidInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleasePostPaidInstanceOutcome(ReleasePostPaidInstanceResult(outcome.result())); + else + return ReleasePostPaidInstanceOutcome(outcome.error()); +} + +void EnsClient::releasePostPaidInstanceAsync(const ReleasePostPaidInstanceRequest& request, const ReleasePostPaidInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releasePostPaidInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::ReleasePostPaidInstanceOutcomeCallable EnsClient::releasePostPaidInstanceCallable(const ReleasePostPaidInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releasePostPaidInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::ReleasePrePaidInstanceOutcome EnsClient::releasePrePaidInstance(const ReleasePrePaidInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleasePrePaidInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleasePrePaidInstanceOutcome(ReleasePrePaidInstanceResult(outcome.result())); + else + return ReleasePrePaidInstanceOutcome(outcome.error()); +} + +void EnsClient::releasePrePaidInstanceAsync(const ReleasePrePaidInstanceRequest& request, const ReleasePrePaidInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releasePrePaidInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::ReleasePrePaidInstanceOutcomeCallable EnsClient::releasePrePaidInstanceCallable(const ReleasePrePaidInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releasePrePaidInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::RemoveBackendServersOutcome EnsClient::removeBackendServers(const RemoveBackendServersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveBackendServersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveBackendServersOutcome(RemoveBackendServersResult(outcome.result())); + else + return RemoveBackendServersOutcome(outcome.error()); +} + +void EnsClient::removeBackendServersAsync(const RemoveBackendServersRequest& request, const RemoveBackendServersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeBackendServers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::RemoveBackendServersOutcomeCallable EnsClient::removeBackendServersCallable(const RemoveBackendServersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeBackendServers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::RemovePublicIpsFromEpnInstanceOutcome EnsClient::removePublicIpsFromEpnInstance(const RemovePublicIpsFromEpnInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemovePublicIpsFromEpnInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemovePublicIpsFromEpnInstanceOutcome(RemovePublicIpsFromEpnInstanceResult(outcome.result())); + else + return RemovePublicIpsFromEpnInstanceOutcome(outcome.error()); +} + +void EnsClient::removePublicIpsFromEpnInstanceAsync(const RemovePublicIpsFromEpnInstanceRequest& request, const RemovePublicIpsFromEpnInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removePublicIpsFromEpnInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::RemovePublicIpsFromEpnInstanceOutcomeCallable EnsClient::removePublicIpsFromEpnInstanceCallable(const RemovePublicIpsFromEpnInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removePublicIpsFromEpnInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::RemoveVSwitchesFromEpnInstanceOutcome EnsClient::removeVSwitchesFromEpnInstance(const RemoveVSwitchesFromEpnInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveVSwitchesFromEpnInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveVSwitchesFromEpnInstanceOutcome(RemoveVSwitchesFromEpnInstanceResult(outcome.result())); + else + return RemoveVSwitchesFromEpnInstanceOutcome(outcome.error()); +} + +void EnsClient::removeVSwitchesFromEpnInstanceAsync(const RemoveVSwitchesFromEpnInstanceRequest& request, const RemoveVSwitchesFromEpnInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeVSwitchesFromEpnInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::RemoveVSwitchesFromEpnInstanceOutcomeCallable EnsClient::removeVSwitchesFromEpnInstanceCallable(const RemoveVSwitchesFromEpnInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeVSwitchesFromEpnInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::RenewInstanceOutcome EnsClient::renewInstance(const RenewInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RenewInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RenewInstanceOutcome(RenewInstanceResult(outcome.result())); + else + return RenewInstanceOutcome(outcome.error()); +} + +void EnsClient::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)); +} + +EnsClient::RenewInstanceOutcomeCallable EnsClient::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(); +} + +EnsClient::RescaleApplicationOutcome EnsClient::rescaleApplication(const RescaleApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RescaleApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RescaleApplicationOutcome(RescaleApplicationResult(outcome.result())); + else + return RescaleApplicationOutcome(outcome.error()); +} + +void EnsClient::rescaleApplicationAsync(const RescaleApplicationRequest& request, const RescaleApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, rescaleApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::RescaleApplicationOutcomeCallable EnsClient::rescaleApplicationCallable(const RescaleApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->rescaleApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::RescaleDeviceServiceOutcome EnsClient::rescaleDeviceService(const RescaleDeviceServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RescaleDeviceServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RescaleDeviceServiceOutcome(RescaleDeviceServiceResult(outcome.result())); + else + return RescaleDeviceServiceOutcome(outcome.error()); +} + +void EnsClient::rescaleDeviceServiceAsync(const RescaleDeviceServiceRequest& request, const RescaleDeviceServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, rescaleDeviceService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::RescaleDeviceServiceOutcomeCallable EnsClient::rescaleDeviceServiceCallable(const RescaleDeviceServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->rescaleDeviceService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::ResetDeviceInstanceOutcome EnsClient::resetDeviceInstance(const ResetDeviceInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetDeviceInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetDeviceInstanceOutcome(ResetDeviceInstanceResult(outcome.result())); + else + return ResetDeviceInstanceOutcome(outcome.error()); +} + +void EnsClient::resetDeviceInstanceAsync(const ResetDeviceInstanceRequest& request, const ResetDeviceInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetDeviceInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::ResetDeviceInstanceOutcomeCallable EnsClient::resetDeviceInstanceCallable(const ResetDeviceInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetDeviceInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::RestartDeviceInstanceOutcome EnsClient::restartDeviceInstance(const RestartDeviceInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestartDeviceInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestartDeviceInstanceOutcome(RestartDeviceInstanceResult(outcome.result())); + else + return RestartDeviceInstanceOutcome(outcome.error()); +} + +void EnsClient::restartDeviceInstanceAsync(const RestartDeviceInstanceRequest& request, const RestartDeviceInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restartDeviceInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::RestartDeviceInstanceOutcomeCallable EnsClient::restartDeviceInstanceCallable(const RestartDeviceInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restartDeviceInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::RevokeSecurityGroupOutcome EnsClient::revokeSecurityGroup(const RevokeSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::RevokeSecurityGroupOutcomeCallable EnsClient::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(); +} + +EnsClient::RevokeSecurityGroupEgressOutcome EnsClient::revokeSecurityGroupEgress(const RevokeSecurityGroupEgressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::RevokeSecurityGroupEgressOutcomeCallable EnsClient::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(); +} + +EnsClient::RollbackApplicationOutcome EnsClient::rollbackApplication(const RollbackApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RollbackApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RollbackApplicationOutcome(RollbackApplicationResult(outcome.result())); + else + return RollbackApplicationOutcome(outcome.error()); +} + +void EnsClient::rollbackApplicationAsync(const RollbackApplicationRequest& request, const RollbackApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, rollbackApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::RollbackApplicationOutcomeCallable EnsClient::rollbackApplicationCallable(const RollbackApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->rollbackApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::RunInstancesOutcome EnsClient::runInstances(const RunInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::RunInstancesOutcomeCallable EnsClient::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(); +} + +EnsClient::RunServiceScheduleOutcome EnsClient::runServiceSchedule(const RunServiceScheduleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RunServiceScheduleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RunServiceScheduleOutcome(RunServiceScheduleResult(outcome.result())); + else + return RunServiceScheduleOutcome(outcome.error()); +} + +void EnsClient::runServiceScheduleAsync(const RunServiceScheduleRequest& request, const RunServiceScheduleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, runServiceSchedule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::RunServiceScheduleOutcomeCallable EnsClient::runServiceScheduleCallable(const RunServiceScheduleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->runServiceSchedule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::SchedulePodOutcome EnsClient::schedulePod(const SchedulePodRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SchedulePodOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SchedulePodOutcome(SchedulePodResult(outcome.result())); + else + return SchedulePodOutcome(outcome.error()); +} + +void EnsClient::schedulePodAsync(const SchedulePodRequest& request, const SchedulePodAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, schedulePod(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::SchedulePodOutcomeCallable EnsClient::schedulePodCallable(const SchedulePodRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->schedulePod(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::SetBackendServersOutcome EnsClient::setBackendServers(const SetBackendServersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetBackendServersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetBackendServersOutcome(SetBackendServersResult(outcome.result())); + else + return SetBackendServersOutcome(outcome.error()); +} + +void EnsClient::setBackendServersAsync(const SetBackendServersRequest& request, const SetBackendServersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setBackendServers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::SetBackendServersOutcomeCallable EnsClient::setBackendServersCallable(const SetBackendServersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setBackendServers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::SetLoadBalancerHTTPListenerAttributeOutcome EnsClient::setLoadBalancerHTTPListenerAttribute(const SetLoadBalancerHTTPListenerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetLoadBalancerHTTPListenerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetLoadBalancerHTTPListenerAttributeOutcome(SetLoadBalancerHTTPListenerAttributeResult(outcome.result())); + else + return SetLoadBalancerHTTPListenerAttributeOutcome(outcome.error()); +} + +void EnsClient::setLoadBalancerHTTPListenerAttributeAsync(const SetLoadBalancerHTTPListenerAttributeRequest& request, const SetLoadBalancerHTTPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setLoadBalancerHTTPListenerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::SetLoadBalancerHTTPListenerAttributeOutcomeCallable EnsClient::setLoadBalancerHTTPListenerAttributeCallable(const SetLoadBalancerHTTPListenerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setLoadBalancerHTTPListenerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::SetLoadBalancerHTTPSListenerAttributeOutcome EnsClient::setLoadBalancerHTTPSListenerAttribute(const SetLoadBalancerHTTPSListenerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetLoadBalancerHTTPSListenerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetLoadBalancerHTTPSListenerAttributeOutcome(SetLoadBalancerHTTPSListenerAttributeResult(outcome.result())); + else + return SetLoadBalancerHTTPSListenerAttributeOutcome(outcome.error()); +} + +void EnsClient::setLoadBalancerHTTPSListenerAttributeAsync(const SetLoadBalancerHTTPSListenerAttributeRequest& request, const SetLoadBalancerHTTPSListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setLoadBalancerHTTPSListenerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::SetLoadBalancerHTTPSListenerAttributeOutcomeCallable EnsClient::setLoadBalancerHTTPSListenerAttributeCallable(const SetLoadBalancerHTTPSListenerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setLoadBalancerHTTPSListenerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::SetLoadBalancerStatusOutcome EnsClient::setLoadBalancerStatus(const SetLoadBalancerStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetLoadBalancerStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetLoadBalancerStatusOutcome(SetLoadBalancerStatusResult(outcome.result())); + else + return SetLoadBalancerStatusOutcome(outcome.error()); +} + +void EnsClient::setLoadBalancerStatusAsync(const SetLoadBalancerStatusRequest& request, const SetLoadBalancerStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setLoadBalancerStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::SetLoadBalancerStatusOutcomeCallable EnsClient::setLoadBalancerStatusCallable(const SetLoadBalancerStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setLoadBalancerStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::SetLoadBalancerTCPListenerAttributeOutcome EnsClient::setLoadBalancerTCPListenerAttribute(const SetLoadBalancerTCPListenerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetLoadBalancerTCPListenerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetLoadBalancerTCPListenerAttributeOutcome(SetLoadBalancerTCPListenerAttributeResult(outcome.result())); + else + return SetLoadBalancerTCPListenerAttributeOutcome(outcome.error()); +} + +void EnsClient::setLoadBalancerTCPListenerAttributeAsync(const SetLoadBalancerTCPListenerAttributeRequest& request, const SetLoadBalancerTCPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setLoadBalancerTCPListenerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::SetLoadBalancerTCPListenerAttributeOutcomeCallable EnsClient::setLoadBalancerTCPListenerAttributeCallable(const SetLoadBalancerTCPListenerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setLoadBalancerTCPListenerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::SetLoadBalancerUDPListenerAttributeOutcome EnsClient::setLoadBalancerUDPListenerAttribute(const SetLoadBalancerUDPListenerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetLoadBalancerUDPListenerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetLoadBalancerUDPListenerAttributeOutcome(SetLoadBalancerUDPListenerAttributeResult(outcome.result())); + else + return SetLoadBalancerUDPListenerAttributeOutcome(outcome.error()); +} + +void EnsClient::setLoadBalancerUDPListenerAttributeAsync(const SetLoadBalancerUDPListenerAttributeRequest& request, const SetLoadBalancerUDPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setLoadBalancerUDPListenerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::SetLoadBalancerUDPListenerAttributeOutcomeCallable EnsClient::setLoadBalancerUDPListenerAttributeCallable(const SetLoadBalancerUDPListenerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setLoadBalancerUDPListenerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::StartEpnInstanceOutcome EnsClient::startEpnInstance(const StartEpnInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartEpnInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartEpnInstanceOutcome(StartEpnInstanceResult(outcome.result())); + else + return StartEpnInstanceOutcome(outcome.error()); +} + +void EnsClient::startEpnInstanceAsync(const StartEpnInstanceRequest& request, const StartEpnInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startEpnInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::StartEpnInstanceOutcomeCallable EnsClient::startEpnInstanceCallable(const StartEpnInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startEpnInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::StartInstanceOutcome EnsClient::startInstance(const StartInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::StartInstanceOutcomeCallable EnsClient::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(); +} + +EnsClient::StartLoadBalancerListenerOutcome EnsClient::startLoadBalancerListener(const StartLoadBalancerListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartLoadBalancerListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartLoadBalancerListenerOutcome(StartLoadBalancerListenerResult(outcome.result())); + else + return StartLoadBalancerListenerOutcome(outcome.error()); +} + +void EnsClient::startLoadBalancerListenerAsync(const StartLoadBalancerListenerRequest& request, const StartLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startLoadBalancerListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::StartLoadBalancerListenerOutcomeCallable EnsClient::startLoadBalancerListenerCallable(const StartLoadBalancerListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startLoadBalancerListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::StopEpnInstanceOutcome EnsClient::stopEpnInstance(const StopEpnInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopEpnInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopEpnInstanceOutcome(StopEpnInstanceResult(outcome.result())); + else + return StopEpnInstanceOutcome(outcome.error()); +} + +void EnsClient::stopEpnInstanceAsync(const StopEpnInstanceRequest& request, const StopEpnInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopEpnInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::StopEpnInstanceOutcomeCallable EnsClient::stopEpnInstanceCallable(const StopEpnInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopEpnInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::StopInstanceOutcome EnsClient::stopInstance(const StopInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::StopInstanceOutcomeCallable EnsClient::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(); +} + +EnsClient::StopLoadBalancerListenerOutcome EnsClient::stopLoadBalancerListener(const StopLoadBalancerListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopLoadBalancerListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopLoadBalancerListenerOutcome(StopLoadBalancerListenerResult(outcome.result())); + else + return StopLoadBalancerListenerOutcome(outcome.error()); +} + +void EnsClient::stopLoadBalancerListenerAsync(const StopLoadBalancerListenerRequest& request, const StopLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopLoadBalancerListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::StopLoadBalancerListenerOutcomeCallable EnsClient::stopLoadBalancerListenerCallable(const StopLoadBalancerListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopLoadBalancerListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::UnAssociateEnsEipAddressOutcome EnsClient::unAssociateEnsEipAddress(const UnAssociateEnsEipAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnAssociateEnsEipAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnAssociateEnsEipAddressOutcome(UnAssociateEnsEipAddressResult(outcome.result())); + else + return UnAssociateEnsEipAddressOutcome(outcome.error()); +} + +void EnsClient::unAssociateEnsEipAddressAsync(const UnAssociateEnsEipAddressRequest& request, const UnAssociateEnsEipAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unAssociateEnsEipAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::UnAssociateEnsEipAddressOutcomeCallable EnsClient::unAssociateEnsEipAddressCallable(const UnAssociateEnsEipAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unAssociateEnsEipAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EnsClient::UnassociateEipAddressOutcome EnsClient::unassociateEipAddress(const UnassociateEipAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + 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 EnsClient::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)); +} + +EnsClient::UnassociateEipAddressOutcomeCallable EnsClient::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(); +} + +EnsClient::UpgradeApplicationOutcome EnsClient::upgradeApplication(const UpgradeApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeApplicationOutcome(UpgradeApplicationResult(outcome.result())); + else + return UpgradeApplicationOutcome(outcome.error()); +} + +void EnsClient::upgradeApplicationAsync(const UpgradeApplicationRequest& request, const UpgradeApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EnsClient::UpgradeApplicationOutcomeCallable EnsClient::upgradeApplicationCallable(const UpgradeApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/ens/src/model/AddBackendServersRequest.cc b/ens/src/model/AddBackendServersRequest.cc new file mode 100644 index 000000000..0f3f71714 --- /dev/null +++ b/ens/src/model/AddBackendServersRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::AddBackendServersRequest; + +AddBackendServersRequest::AddBackendServersRequest() + : RpcServiceRequest("ens", "2017-11-10", "AddBackendServers") { + setMethod(HttpRequest::Method::Post); +} + +AddBackendServersRequest::~AddBackendServersRequest() {} + +std::vector AddBackendServersRequest::getBackendServers() const { + return backendServers_; +} + +void AddBackendServersRequest::setBackendServers(const std::vector &backendServers) { + backendServers_ = backendServers; + for(int dep1 = 0; dep1 != backendServers.size(); dep1++) { + setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".Port", std::to_string(backendServers[dep1].port)); + setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".Ip", backendServers[dep1].ip); + setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".Weight", std::to_string(backendServers[dep1].weight)); + setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".Type", backendServers[dep1].type); + setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".ServerId", backendServers[dep1].serverId); + } +} + +std::string AddBackendServersRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void AddBackendServersRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/ens/src/model/AddBackendServersResult.cc b/ens/src/model/AddBackendServersResult.cc new file mode 100644 index 000000000..95d181a93 --- /dev/null +++ b/ens/src/model/AddBackendServersResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +AddBackendServersResult::AddBackendServersResult() : + ServiceResult() +{} + +AddBackendServersResult::AddBackendServersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddBackendServersResult::~AddBackendServersResult() +{} + +void AddBackendServersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBackendServersNode = value["BackendServers"]["BackendServer"]; + for (auto valueBackendServersBackendServer : allBackendServersNode) + { + BackendServer backendServersObject; + if(!valueBackendServersBackendServer["ServerId"].isNull()) + backendServersObject.serverId = valueBackendServersBackendServer["ServerId"].asString(); + if(!valueBackendServersBackendServer["Weight"].isNull()) + backendServersObject.weight = std::stoi(valueBackendServersBackendServer["Weight"].asString()); + if(!valueBackendServersBackendServer["Type"].isNull()) + backendServersObject.type = valueBackendServersBackendServer["Type"].asString(); + if(!valueBackendServersBackendServer["Ip"].isNull()) + backendServersObject.ip = valueBackendServersBackendServer["Ip"].asString(); + if(!valueBackendServersBackendServer["Port"].isNull()) + backendServersObject.port = std::stoi(valueBackendServersBackendServer["Port"].asString()); + backendServers_.push_back(backendServersObject); + } + +} + +std::vector AddBackendServersResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/ens/src/model/AddDeviceInternetPortRequest.cc b/ens/src/model/AddDeviceInternetPortRequest.cc new file mode 100644 index 000000000..3ea9601cd --- /dev/null +++ b/ens/src/model/AddDeviceInternetPortRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::AddDeviceInternetPortRequest; + +AddDeviceInternetPortRequest::AddDeviceInternetPortRequest() + : RpcServiceRequest("ens", "2017-11-10", "AddDeviceInternetPort") { + setMethod(HttpRequest::Method::Get); +} + +AddDeviceInternetPortRequest::~AddDeviceInternetPortRequest() {} + +std::string AddDeviceInternetPortRequest::getISP() const { + return iSP_; +} + +void AddDeviceInternetPortRequest::setISP(const std::string &iSP) { + iSP_ = iSP; + setParameter(std::string("ISP"), iSP); +} + +std::string AddDeviceInternetPortRequest::getInternalIp() const { + return internalIp_; +} + +void AddDeviceInternetPortRequest::setInternalIp(const std::string &internalIp) { + internalIp_ = internalIp; + setParameter(std::string("InternalIp"), internalIp); +} + +std::string AddDeviceInternetPortRequest::getRegionId() const { + return regionId_; +} + +void AddDeviceInternetPortRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string AddDeviceInternetPortRequest::getNatType() const { + return natType_; +} + +void AddDeviceInternetPortRequest::setNatType(const std::string &natType) { + natType_ = natType; + setParameter(std::string("NatType"), natType); +} + +std::string AddDeviceInternetPortRequest::getInstanceId() const { + return instanceId_; +} + +void AddDeviceInternetPortRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string AddDeviceInternetPortRequest::getInternalPort() const { + return internalPort_; +} + +void AddDeviceInternetPortRequest::setInternalPort(const std::string &internalPort) { + internalPort_ = internalPort; + setParameter(std::string("InternalPort"), internalPort); +} + diff --git a/ens/src/model/AddDeviceInternetPortResult.cc b/ens/src/model/AddDeviceInternetPortResult.cc new file mode 100644 index 000000000..6c555af68 --- /dev/null +++ b/ens/src/model/AddDeviceInternetPortResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +AddDeviceInternetPortResult::AddDeviceInternetPortResult() : + ServiceResult() +{} + +AddDeviceInternetPortResult::AddDeviceInternetPortResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddDeviceInternetPortResult::~AddDeviceInternetPortResult() +{} + +void AddDeviceInternetPortResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRuleIds = value["RuleIds"]["RuleIds"]; + for (const auto &item : allRuleIds) + ruleIds_.push_back(item.asString()); + +} + +std::vector AddDeviceInternetPortResult::getRuleIds()const +{ + return ruleIds_; +} + diff --git a/ens/src/model/AddNetworkInterfaceToInstanceRequest.cc b/ens/src/model/AddNetworkInterfaceToInstanceRequest.cc new file mode 100644 index 000000000..8cc724b7b --- /dev/null +++ b/ens/src/model/AddNetworkInterfaceToInstanceRequest.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 + +using AlibabaCloud::Ens::Model::AddNetworkInterfaceToInstanceRequest; + +AddNetworkInterfaceToInstanceRequest::AddNetworkInterfaceToInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "AddNetworkInterfaceToInstance") { + setMethod(HttpRequest::Method::Post); +} + +AddNetworkInterfaceToInstanceRequest::~AddNetworkInterfaceToInstanceRequest() {} + +std::string AddNetworkInterfaceToInstanceRequest::getNetworks() const { + return networks_; +} + +void AddNetworkInterfaceToInstanceRequest::setNetworks(const std::string &networks) { + networks_ = networks; + setParameter(std::string("Networks"), networks); +} + +bool AddNetworkInterfaceToInstanceRequest::getAutoStart() const { + return autoStart_; +} + +void AddNetworkInterfaceToInstanceRequest::setAutoStart(bool autoStart) { + autoStart_ = autoStart; + setParameter(std::string("AutoStart"), autoStart ? "true" : "false"); +} + +std::string AddNetworkInterfaceToInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void AddNetworkInterfaceToInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/AddNetworkInterfaceToInstanceResult.cc b/ens/src/model/AddNetworkInterfaceToInstanceResult.cc new file mode 100644 index 000000000..4ef489e59 --- /dev/null +++ b/ens/src/model/AddNetworkInterfaceToInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +AddNetworkInterfaceToInstanceResult::AddNetworkInterfaceToInstanceResult() : + ServiceResult() +{} + +AddNetworkInterfaceToInstanceResult::AddNetworkInterfaceToInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddNetworkInterfaceToInstanceResult::~AddNetworkInterfaceToInstanceResult() +{} + +void AddNetworkInterfaceToInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/AllocateEipAddressRequest.cc b/ens/src/model/AllocateEipAddressRequest.cc new file mode 100644 index 000000000..604569344 --- /dev/null +++ b/ens/src/model/AllocateEipAddressRequest.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 + +using AlibabaCloud::Ens::Model::AllocateEipAddressRequest; + +AllocateEipAddressRequest::AllocateEipAddressRequest() + : RpcServiceRequest("ens", "2017-11-10", "AllocateEipAddress") { + setMethod(HttpRequest::Method::Post); +} + +AllocateEipAddressRequest::~AllocateEipAddressRequest() {} + +int AllocateEipAddressRequest::getMinCount() const { + return minCount_; +} + +void AllocateEipAddressRequest::setMinCount(int minCount) { + minCount_ = minCount; + setParameter(std::string("MinCount"), std::to_string(minCount)); +} + +std::string AllocateEipAddressRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void AllocateEipAddressRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +int AllocateEipAddressRequest::getCount() const { + return count_; +} + +void AllocateEipAddressRequest::setCount(int count) { + count_ = count; + setParameter(std::string("Count"), std::to_string(count)); +} + diff --git a/ens/src/model/AllocateEipAddressResult.cc b/ens/src/model/AllocateEipAddressResult.cc new file mode 100644 index 000000000..33398c28d --- /dev/null +++ b/ens/src/model/AllocateEipAddressResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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()); + auto allEipAddressesNode = value["EipAddresses"]["EipAddress"]; + for (auto valueEipAddressesEipAddress : allEipAddressesNode) + { + EipAddress eipAddressesObject; + if(!valueEipAddressesEipAddress["Eip"].isNull()) + eipAddressesObject.eip = valueEipAddressesEipAddress["Eip"].asString(); + eipAddresses_.push_back(eipAddressesObject); + } + if(!value["BizStatusCode"].isNull()) + bizStatusCode_ = value["BizStatusCode"].asString(); + +} + +std::vector AllocateEipAddressResult::getEipAddresses()const +{ + return eipAddresses_; +} + +std::string AllocateEipAddressResult::getBizStatusCode()const +{ + return bizStatusCode_; +} + diff --git a/ens/src/model/AssociateEipAddressRequest.cc b/ens/src/model/AssociateEipAddressRequest.cc new file mode 100644 index 000000000..316b2ee77 --- /dev/null +++ b/ens/src/model/AssociateEipAddressRequest.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 + +using AlibabaCloud::Ens::Model::AssociateEipAddressRequest; + +AssociateEipAddressRequest::AssociateEipAddressRequest() + : RpcServiceRequest("ens", "2017-11-10", "AssociateEipAddress") { + setMethod(HttpRequest::Method::Post); +} + +AssociateEipAddressRequest::~AssociateEipAddressRequest() {} + +std::string AssociateEipAddressRequest::getEip() const { + return eip_; +} + +void AssociateEipAddressRequest::setEip(const std::string &eip) { + eip_ = eip; + setParameter(std::string("Eip"), eip); +} + +std::string AssociateEipAddressRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void AssociateEipAddressRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string AssociateEipAddressRequest::getInstanceIdInternetIp() const { + return instanceIdInternetIp_; +} + +void AssociateEipAddressRequest::setInstanceIdInternetIp(const std::string &instanceIdInternetIp) { + instanceIdInternetIp_ = instanceIdInternetIp; + setParameter(std::string("InstanceIdInternetIp"), instanceIdInternetIp); +} + diff --git a/ens/src/model/AssociateEipAddressResult.cc b/ens/src/model/AssociateEipAddressResult.cc new file mode 100644 index 000000000..d5398d770 --- /dev/null +++ b/ens/src/model/AssociateEipAddressResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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/ens/src/model/AssociateEnsEipAddressRequest.cc b/ens/src/model/AssociateEnsEipAddressRequest.cc new file mode 100644 index 000000000..6d4dd9d6f --- /dev/null +++ b/ens/src/model/AssociateEnsEipAddressRequest.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 + +using AlibabaCloud::Ens::Model::AssociateEnsEipAddressRequest; + +AssociateEnsEipAddressRequest::AssociateEnsEipAddressRequest() + : RpcServiceRequest("ens", "2017-11-10", "AssociateEnsEipAddress") { + setMethod(HttpRequest::Method::Post); +} + +AssociateEnsEipAddressRequest::~AssociateEnsEipAddressRequest() {} + +std::string AssociateEnsEipAddressRequest::getAllocationId() const { + return allocationId_; +} + +void AssociateEnsEipAddressRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); +} + +std::string AssociateEnsEipAddressRequest::getInstanceType() const { + return instanceType_; +} + +void AssociateEnsEipAddressRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); +} + +std::string AssociateEnsEipAddressRequest::getInstanceId() const { + return instanceId_; +} + +void AssociateEnsEipAddressRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/AssociateEnsEipAddressResult.cc b/ens/src/model/AssociateEnsEipAddressResult.cc new file mode 100644 index 000000000..9d690de6e --- /dev/null +++ b/ens/src/model/AssociateEnsEipAddressResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +AssociateEnsEipAddressResult::AssociateEnsEipAddressResult() : + ServiceResult() +{} + +AssociateEnsEipAddressResult::AssociateEnsEipAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateEnsEipAddressResult::~AssociateEnsEipAddressResult() +{} + +void AssociateEnsEipAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/AttachDiskRequest.cc b/ens/src/model/AttachDiskRequest.cc new file mode 100644 index 000000000..cb1f6a71f --- /dev/null +++ b/ens/src/model/AttachDiskRequest.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 + +using AlibabaCloud::Ens::Model::AttachDiskRequest; + +AttachDiskRequest::AttachDiskRequest() + : RpcServiceRequest("ens", "2017-11-10", "AttachDisk") { + setMethod(HttpRequest::Method::Post); +} + +AttachDiskRequest::~AttachDiskRequest() {} + +std::string AttachDiskRequest::getDiskId() const { + return diskId_; +} + +void AttachDiskRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); +} + +std::string AttachDiskRequest::getDeleteWithInstance() const { + return deleteWithInstance_; +} + +void AttachDiskRequest::setDeleteWithInstance(const std::string &deleteWithInstance) { + deleteWithInstance_ = deleteWithInstance; + setParameter(std::string("DeleteWithInstance"), deleteWithInstance); +} + +std::string AttachDiskRequest::getInstanceId() const { + return instanceId_; +} + +void AttachDiskRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/AttachDiskResult.cc b/ens/src/model/AttachDiskResult.cc new file mode 100644 index 000000000..21fdc8f3e --- /dev/null +++ b/ens/src/model/AttachDiskResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +int AttachDiskResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/AttachEnsInstancesRequest.cc b/ens/src/model/AttachEnsInstancesRequest.cc new file mode 100644 index 000000000..7358bdadb --- /dev/null +++ b/ens/src/model/AttachEnsInstancesRequest.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 + +using AlibabaCloud::Ens::Model::AttachEnsInstancesRequest; + +AttachEnsInstancesRequest::AttachEnsInstancesRequest() + : RpcServiceRequest("ens", "2017-11-10", "AttachEnsInstances") { + setMethod(HttpRequest::Method::Post); +} + +AttachEnsInstancesRequest::~AttachEnsInstancesRequest() {} + +std::string AttachEnsInstancesRequest::getScripts() const { + return scripts_; +} + +void AttachEnsInstancesRequest::setScripts(const std::string &scripts) { + scripts_ = scripts; + setParameter(std::string("Scripts"), scripts); +} + +std::string AttachEnsInstancesRequest::getInstanceId() const { + return instanceId_; +} + +void AttachEnsInstancesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/AttachEnsInstancesResult.cc b/ens/src/model/AttachEnsInstancesResult.cc new file mode 100644 index 000000000..c8c63112b --- /dev/null +++ b/ens/src/model/AttachEnsInstancesResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +AttachEnsInstancesResult::AttachEnsInstancesResult() : + ServiceResult() +{} + +AttachEnsInstancesResult::AttachEnsInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachEnsInstancesResult::~AttachEnsInstancesResult() +{} + +void AttachEnsInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/AuthorizeSecurityGroupEgressRequest.cc b/ens/src/model/AuthorizeSecurityGroupEgressRequest.cc new file mode 100644 index 000000000..a8fec55e5 --- /dev/null +++ b/ens/src/model/AuthorizeSecurityGroupEgressRequest.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 + +using AlibabaCloud::Ens::Model::AuthorizeSecurityGroupEgressRequest; + +AuthorizeSecurityGroupEgressRequest::AuthorizeSecurityGroupEgressRequest() + : RpcServiceRequest("ens", "2017-11-10", "AuthorizeSecurityGroupEgress") { + setMethod(HttpRequest::Method::Post); +} + +AuthorizeSecurityGroupEgressRequest::~AuthorizeSecurityGroupEgressRequest() {} + +std::string AuthorizeSecurityGroupEgressRequest::getSourcePortRange() const { + return sourcePortRange_; +} + +void AuthorizeSecurityGroupEgressRequest::setSourcePortRange(const std::string &sourcePortRange) { + sourcePortRange_ = sourcePortRange; + setParameter(std::string("SourcePortRange"), sourcePortRange); +} + +std::string AuthorizeSecurityGroupEgressRequest::getPortRange() const { + return portRange_; +} + +void AuthorizeSecurityGroupEgressRequest::setPortRange(const std::string &portRange) { + portRange_ = portRange; + setParameter(std::string("PortRange"), portRange); +} + +std::string AuthorizeSecurityGroupEgressRequest::getIpProtocol() const { + return ipProtocol_; +} + +void AuthorizeSecurityGroupEgressRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); +} + +int AuthorizeSecurityGroupEgressRequest::getPriority() const { + return priority_; +} + +void AuthorizeSecurityGroupEgressRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); +} + +std::string AuthorizeSecurityGroupEgressRequest::getDestCidrIp() const { + return destCidrIp_; +} + +void AuthorizeSecurityGroupEgressRequest::setDestCidrIp(const std::string &destCidrIp) { + destCidrIp_ = destCidrIp; + setParameter(std::string("DestCidrIp"), destCidrIp); +} + +std::string AuthorizeSecurityGroupEgressRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void AuthorizeSecurityGroupEgressRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + +std::string AuthorizeSecurityGroupEgressRequest::getPolicy() const { + return policy_; +} + +void AuthorizeSecurityGroupEgressRequest::setPolicy(const std::string &policy) { + policy_ = policy; + setParameter(std::string("Policy"), policy); +} + diff --git a/ens/src/model/AuthorizeSecurityGroupEgressResult.cc b/ens/src/model/AuthorizeSecurityGroupEgressResult.cc new file mode 100644 index 000000000..5757d7745 --- /dev/null +++ b/ens/src/model/AuthorizeSecurityGroupEgressResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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/ens/src/model/AuthorizeSecurityGroupRequest.cc b/ens/src/model/AuthorizeSecurityGroupRequest.cc new file mode 100644 index 000000000..3118fd29c --- /dev/null +++ b/ens/src/model/AuthorizeSecurityGroupRequest.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 + +using AlibabaCloud::Ens::Model::AuthorizeSecurityGroupRequest; + +AuthorizeSecurityGroupRequest::AuthorizeSecurityGroupRequest() + : RpcServiceRequest("ens", "2017-11-10", "AuthorizeSecurityGroup") { + setMethod(HttpRequest::Method::Post); +} + +AuthorizeSecurityGroupRequest::~AuthorizeSecurityGroupRequest() {} + +std::string AuthorizeSecurityGroupRequest::getSourcePortRange() const { + return sourcePortRange_; +} + +void AuthorizeSecurityGroupRequest::setSourcePortRange(const std::string &sourcePortRange) { + sourcePortRange_ = sourcePortRange; + setParameter(std::string("SourcePortRange"), sourcePortRange); +} + +std::string AuthorizeSecurityGroupRequest::getPortRange() const { + return portRange_; +} + +void AuthorizeSecurityGroupRequest::setPortRange(const std::string &portRange) { + portRange_ = portRange; + setParameter(std::string("PortRange"), portRange); +} + +std::string AuthorizeSecurityGroupRequest::getIpProtocol() const { + return ipProtocol_; +} + +void AuthorizeSecurityGroupRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); +} + +std::string AuthorizeSecurityGroupRequest::getSourceCidrIp() const { + return sourceCidrIp_; +} + +void AuthorizeSecurityGroupRequest::setSourceCidrIp(const std::string &sourceCidrIp) { + sourceCidrIp_ = sourceCidrIp; + setParameter(std::string("SourceCidrIp"), sourceCidrIp); +} + +int AuthorizeSecurityGroupRequest::getPriority() const { + return priority_; +} + +void AuthorizeSecurityGroupRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); +} + +std::string AuthorizeSecurityGroupRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void AuthorizeSecurityGroupRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + +std::string AuthorizeSecurityGroupRequest::getPolicy() const { + return policy_; +} + +void AuthorizeSecurityGroupRequest::setPolicy(const std::string &policy) { + policy_ = policy; + setParameter(std::string("Policy"), policy); +} + diff --git a/ens/src/model/AuthorizeSecurityGroupResult.cc b/ens/src/model/AuthorizeSecurityGroupResult.cc new file mode 100644 index 000000000..319f0b160 --- /dev/null +++ b/ens/src/model/AuthorizeSecurityGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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/ens/src/model/CheckQuotaRequest.cc b/ens/src/model/CheckQuotaRequest.cc new file mode 100644 index 000000000..b5df76bd9 --- /dev/null +++ b/ens/src/model/CheckQuotaRequest.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 + +using AlibabaCloud::Ens::Model::CheckQuotaRequest; + +CheckQuotaRequest::CheckQuotaRequest() + : RpcServiceRequest("ens", "2017-11-10", "CheckQuota") { + setMethod(HttpRequest::Method::Post); +} + +CheckQuotaRequest::~CheckQuotaRequest() {} + +std::string CheckQuotaRequest::getGroupUuid() const { + return groupUuid_; +} + +void CheckQuotaRequest::setGroupUuid(const std::string &groupUuid) { + groupUuid_ = groupUuid; + setParameter(std::string("GroupUuid"), groupUuid); +} + +std::string CheckQuotaRequest::getResourceAttribute() const { + return resourceAttribute_; +} + +void CheckQuotaRequest::setResourceAttribute(const std::string &resourceAttribute) { + resourceAttribute_ = resourceAttribute; + setBodyParameter(std::string("ResourceAttribute"), resourceAttribute); +} + +long CheckQuotaRequest::getAliUid() const { + return aliUid_; +} + +void CheckQuotaRequest::setAliUid(long aliUid) { + aliUid_ = aliUid; + setParameter(std::string("AliUid"), std::to_string(aliUid)); +} + diff --git a/ens/src/model/CheckQuotaResult.cc b/ens/src/model/CheckQuotaResult.cc new file mode 100644 index 000000000..c6b71929f --- /dev/null +++ b/ens/src/model/CheckQuotaResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +CheckQuotaResult::CheckQuotaResult() : + ServiceResult() +{} + +CheckQuotaResult::CheckQuotaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckQuotaResult::~CheckQuotaResult() +{} + +void CheckQuotaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Desc"].isNull()) + desc_ = value["Desc"].asString(); + +} + +std::string CheckQuotaResult::getMsg()const +{ + return msg_; +} + +std::string CheckQuotaResult::getDesc()const +{ + return desc_; +} + +std::string CheckQuotaResult::getData()const +{ + return data_; +} + +int CheckQuotaResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/ConfigureSecurityGroupPermissionsRequest.cc b/ens/src/model/ConfigureSecurityGroupPermissionsRequest.cc new file mode 100644 index 000000000..99f40d8d8 --- /dev/null +++ b/ens/src/model/ConfigureSecurityGroupPermissionsRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::ConfigureSecurityGroupPermissionsRequest; + +ConfigureSecurityGroupPermissionsRequest::ConfigureSecurityGroupPermissionsRequest() + : RpcServiceRequest("ens", "2017-11-10", "ConfigureSecurityGroupPermissions") { + setMethod(HttpRequest::Method::Post); +} + +ConfigureSecurityGroupPermissionsRequest::~ConfigureSecurityGroupPermissionsRequest() {} + +std::string ConfigureSecurityGroupPermissionsRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void ConfigureSecurityGroupPermissionsRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + +std::vector ConfigureSecurityGroupPermissionsRequest::getRevokePermissions() const { + return revokePermissions_; +} + +void ConfigureSecurityGroupPermissionsRequest::setRevokePermissions(const std::vector &revokePermissions) { + revokePermissions_ = revokePermissions; + for(int dep1 = 0; dep1 != revokePermissions.size(); dep1++) { + setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".SourcePortRange", revokePermissions[dep1].sourcePortRange); + setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".PortRange", revokePermissions[dep1].portRange); + setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".IpProtocol", revokePermissions[dep1].ipProtocol); + setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".SourceCidrIp", revokePermissions[dep1].sourceCidrIp); + setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".Priority", std::to_string(revokePermissions[dep1].priority)); + setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".DestCidrIp", revokePermissions[dep1].destCidrIp); + setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".Direction", revokePermissions[dep1].direction); + setParameter(std::string("RevokePermissions") + "." + std::to_string(dep1 + 1) + ".Policy", revokePermissions[dep1].policy); + } +} + +std::vector ConfigureSecurityGroupPermissionsRequest::getAuthorizePermissions() const { + return authorizePermissions_; +} + +void ConfigureSecurityGroupPermissionsRequest::setAuthorizePermissions(const std::vector &authorizePermissions) { + authorizePermissions_ = authorizePermissions; + for(int dep1 = 0; dep1 != authorizePermissions.size(); dep1++) { + setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".SourcePortRange", authorizePermissions[dep1].sourcePortRange); + setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".PortRange", authorizePermissions[dep1].portRange); + setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".IpProtocol", authorizePermissions[dep1].ipProtocol); + setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".SourceCidrIp", authorizePermissions[dep1].sourceCidrIp); + setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".Description", authorizePermissions[dep1].description); + setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".Priority", std::to_string(authorizePermissions[dep1].priority)); + setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".DestCidrIp", authorizePermissions[dep1].destCidrIp); + setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".Direction", authorizePermissions[dep1].direction); + setParameter(std::string("AuthorizePermissions") + "." + std::to_string(dep1 + 1) + ".Policy", authorizePermissions[dep1].policy); + } +} + diff --git a/ens/src/model/ConfigureSecurityGroupPermissionsResult.cc b/ens/src/model/ConfigureSecurityGroupPermissionsResult.cc new file mode 100644 index 000000000..05e8ea97f --- /dev/null +++ b/ens/src/model/ConfigureSecurityGroupPermissionsResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +ConfigureSecurityGroupPermissionsResult::ConfigureSecurityGroupPermissionsResult() : + ServiceResult() +{} + +ConfigureSecurityGroupPermissionsResult::ConfigureSecurityGroupPermissionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConfigureSecurityGroupPermissionsResult::~ConfigureSecurityGroupPermissionsResult() +{} + +void ConfigureSecurityGroupPermissionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/CreateApplicationRequest.cc b/ens/src/model/CreateApplicationRequest.cc new file mode 100644 index 000000000..4c33e4ff5 --- /dev/null +++ b/ens/src/model/CreateApplicationRequest.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 + +using AlibabaCloud::Ens::Model::CreateApplicationRequest; + +CreateApplicationRequest::CreateApplicationRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateApplication") { + setMethod(HttpRequest::Method::Post); +} + +CreateApplicationRequest::~CreateApplicationRequest() {} + +std::string CreateApplicationRequest::get_Template() const { + return _template_; +} + +void CreateApplicationRequest::set_Template(const std::string &_template) { + _template_ = _template; + setParameter(std::string("Template"), _template); +} + +int CreateApplicationRequest::getTimeout() const { + return timeout_; +} + +void CreateApplicationRequest::setTimeout(int timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); +} + diff --git a/ens/src/model/CreateApplicationResult.cc b/ens/src/model/CreateApplicationResult.cc new file mode 100644 index 000000000..be5836bd1 --- /dev/null +++ b/ens/src/model/CreateApplicationResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateApplicationResult::CreateApplicationResult() : + ServiceResult() +{} + +CreateApplicationResult::CreateApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateApplicationResult::~CreateApplicationResult() +{} + +void CreateApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AppId"].isNull()) + appId_ = value["AppId"].asString(); + +} + +std::string CreateApplicationResult::getAppId()const +{ + return appId_; +} + diff --git a/ens/src/model/CreateDiskBuyOrderRequest.cc b/ens/src/model/CreateDiskBuyOrderRequest.cc new file mode 100644 index 000000000..bde86da6f --- /dev/null +++ b/ens/src/model/CreateDiskBuyOrderRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateDiskBuyOrderRequest; + +CreateDiskBuyOrderRequest::CreateDiskBuyOrderRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateDiskBuyOrder") { + setMethod(HttpRequest::Method::Post); +} + +CreateDiskBuyOrderRequest::~CreateDiskBuyOrderRequest() {} + +std::string CreateDiskBuyOrderRequest::getOrderDetails() const { + return orderDetails_; +} + +void CreateDiskBuyOrderRequest::setOrderDetails(const std::string &orderDetails) { + orderDetails_ = orderDetails; + setParameter(std::string("OrderDetails"), orderDetails); +} + diff --git a/ens/src/model/CreateDiskBuyOrderResult.cc b/ens/src/model/CreateDiskBuyOrderResult.cc new file mode 100644 index 000000000..c9ceb8538 --- /dev/null +++ b/ens/src/model/CreateDiskBuyOrderResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateDiskBuyOrderResult::CreateDiskBuyOrderResult() : + ServiceResult() +{} + +CreateDiskBuyOrderResult::CreateDiskBuyOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDiskBuyOrderResult::~CreateDiskBuyOrderResult() +{} + +void CreateDiskBuyOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string CreateDiskBuyOrderResult::getOrderId()const +{ + return orderId_; +} + diff --git a/ens/src/model/CreateDiskRequest.cc b/ens/src/model/CreateDiskRequest.cc new file mode 100644 index 000000000..87699359d --- /dev/null +++ b/ens/src/model/CreateDiskRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateDiskRequest; + +CreateDiskRequest::CreateDiskRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateDisk") { + setMethod(HttpRequest::Method::Post); +} + +CreateDiskRequest::~CreateDiskRequest() {} + +std::string CreateDiskRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void CreateDiskRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string CreateDiskRequest::getInstanceChargeType() const { + return instanceChargeType_; +} + +void CreateDiskRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); +} + +std::string CreateDiskRequest::getSize() const { + return size_; +} + +void CreateDiskRequest::setSize(const std::string &size) { + size_ = size; + setParameter(std::string("Size"), size); +} + +std::string CreateDiskRequest::getCategory() const { + return category_; +} + +void CreateDiskRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); +} + diff --git a/ens/src/model/CreateDiskResult.cc b/ens/src/model/CreateDiskResult.cc new file mode 100644 index 000000000..1c8d6c8ad --- /dev/null +++ b/ens/src/model/CreateDiskResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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()); + auto allInstanceIds = value["InstanceIds"]["InstanceIds"]; + for (const auto &item : allInstanceIds) + instanceIds_.push_back(item.asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::vector CreateDiskResult::getInstanceIds()const +{ + return instanceIds_; +} + +std::string CreateDiskResult::getOrderId()const +{ + return orderId_; +} + diff --git a/ens/src/model/CreateEPInstanceRequest.cc b/ens/src/model/CreateEPInstanceRequest.cc new file mode 100644 index 000000000..401a3565f --- /dev/null +++ b/ens/src/model/CreateEPInstanceRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateEPInstanceRequest; + +CreateEPInstanceRequest::CreateEPInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateEPInstance") { + setMethod(HttpRequest::Method::Post); +} + +CreateEPInstanceRequest::~CreateEPInstanceRequest() {} + +std::string CreateEPInstanceRequest::getNetworkingModel() const { + return networkingModel_; +} + +void CreateEPInstanceRequest::setNetworkingModel(const std::string &networkingModel) { + networkingModel_ = networkingModel; + setParameter(std::string("NetworkingModel"), networkingModel); +} + +int CreateEPInstanceRequest::getInternetMaxBandwidthOut() const { + return internetMaxBandwidthOut_; +} + +void CreateEPInstanceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) { + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut)); +} + +std::string CreateEPInstanceRequest::getEPNInstanceType() const { + return ePNInstanceType_; +} + +void CreateEPInstanceRequest::setEPNInstanceType(const std::string &ePNInstanceType) { + ePNInstanceType_ = ePNInstanceType; + setParameter(std::string("EPNInstanceType"), ePNInstanceType); +} + +std::string CreateEPInstanceRequest::getInternetChargeType() const { + return internetChargeType_; +} + +void CreateEPInstanceRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); +} + +std::string CreateEPInstanceRequest::getEPNInstanceName() const { + return ePNInstanceName_; +} + +void CreateEPInstanceRequest::setEPNInstanceName(const std::string &ePNInstanceName) { + ePNInstanceName_ = ePNInstanceName; + setParameter(std::string("EPNInstanceName"), ePNInstanceName); +} + diff --git a/ens/src/model/CreateEPInstanceResult.cc b/ens/src/model/CreateEPInstanceResult.cc new file mode 100644 index 000000000..37887613f --- /dev/null +++ b/ens/src/model/CreateEPInstanceResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateEPInstanceResult::CreateEPInstanceResult() : + ServiceResult() +{} + +CreateEPInstanceResult::CreateEPInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateEPInstanceResult::~CreateEPInstanceResult() +{} + +void CreateEPInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["EPNInstanceId"].isNull()) + ePNInstanceId_ = value["EPNInstanceId"].asString(); + +} + +std::string CreateEPInstanceResult::getEPNInstanceId()const +{ + return ePNInstanceId_; +} + diff --git a/ens/src/model/CreateEipInstanceRequest.cc b/ens/src/model/CreateEipInstanceRequest.cc new file mode 100644 index 000000000..41419de7f --- /dev/null +++ b/ens/src/model/CreateEipInstanceRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateEipInstanceRequest; + +CreateEipInstanceRequest::CreateEipInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateEipInstance") { + setMethod(HttpRequest::Method::Post); +} + +CreateEipInstanceRequest::~CreateEipInstanceRequest() {} + +std::string CreateEipInstanceRequest::getIsp() const { + return isp_; +} + +void CreateEipInstanceRequest::setIsp(const std::string &isp) { + isp_ = isp; + setParameter(std::string("Isp"), isp); +} + +std::string CreateEipInstanceRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void CreateEipInstanceRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string CreateEipInstanceRequest::getInstanceChargeType() const { + return instanceChargeType_; +} + +void CreateEipInstanceRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); +} + +long CreateEipInstanceRequest::getBandwidth() const { + return bandwidth_; +} + +void CreateEipInstanceRequest::setBandwidth(long bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); +} + +std::string CreateEipInstanceRequest::getInternetChargeType() const { + return internetChargeType_; +} + +void CreateEipInstanceRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); +} + +std::string CreateEipInstanceRequest::getName() const { + return name_; +} + +void CreateEipInstanceRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/ens/src/model/CreateEipInstanceResult.cc b/ens/src/model/CreateEipInstanceResult.cc new file mode 100644 index 000000000..52f11fd6a --- /dev/null +++ b/ens/src/model/CreateEipInstanceResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateEipInstanceResult::CreateEipInstanceResult() : + ServiceResult() +{} + +CreateEipInstanceResult::CreateEipInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateEipInstanceResult::~CreateEipInstanceResult() +{} + +void CreateEipInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AllocationId"].isNull()) + allocationId_ = value["AllocationId"].asString(); + +} + +std::string CreateEipInstanceResult::getAllocationId()const +{ + return allocationId_; +} + diff --git a/ens/src/model/CreateElbBuyOrderRequest.cc b/ens/src/model/CreateElbBuyOrderRequest.cc new file mode 100644 index 000000000..7f295aa08 --- /dev/null +++ b/ens/src/model/CreateElbBuyOrderRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateElbBuyOrderRequest; + +CreateElbBuyOrderRequest::CreateElbBuyOrderRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateElbBuyOrder") { + setMethod(HttpRequest::Method::Post); +} + +CreateElbBuyOrderRequest::~CreateElbBuyOrderRequest() {} + +std::string CreateElbBuyOrderRequest::getOrderDetails() const { + return orderDetails_; +} + +void CreateElbBuyOrderRequest::setOrderDetails(const std::string &orderDetails) { + orderDetails_ = orderDetails; + setParameter(std::string("OrderDetails"), orderDetails); +} + diff --git a/ens/src/model/CreateElbBuyOrderResult.cc b/ens/src/model/CreateElbBuyOrderResult.cc new file mode 100644 index 000000000..dc42e90a1 --- /dev/null +++ b/ens/src/model/CreateElbBuyOrderResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateElbBuyOrderResult::CreateElbBuyOrderResult() : + ServiceResult() +{} + +CreateElbBuyOrderResult::CreateElbBuyOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateElbBuyOrderResult::~CreateElbBuyOrderResult() +{} + +void CreateElbBuyOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allLoadBalancerIds = value["LoadBalancerIds"]["LoadBalancerIds"]; + for (const auto &item : allLoadBalancerIds) + loadBalancerIds_.push_back(item.asString()); + +} + +std::vector CreateElbBuyOrderResult::getLoadBalancerIds()const +{ + return loadBalancerIds_; +} + diff --git a/ens/src/model/CreateEnsServiceRequest.cc b/ens/src/model/CreateEnsServiceRequest.cc new file mode 100644 index 000000000..d94360c24 --- /dev/null +++ b/ens/src/model/CreateEnsServiceRequest.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 + +using AlibabaCloud::Ens::Model::CreateEnsServiceRequest; + +CreateEnsServiceRequest::CreateEnsServiceRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateEnsService") { + setMethod(HttpRequest::Method::Post); +} + +CreateEnsServiceRequest::~CreateEnsServiceRequest() {} + +std::string CreateEnsServiceRequest::getEnsServiceId() const { + return ensServiceId_; +} + +void CreateEnsServiceRequest::setEnsServiceId(const std::string &ensServiceId) { + ensServiceId_ = ensServiceId; + setParameter(std::string("EnsServiceId"), ensServiceId); +} + +std::string CreateEnsServiceRequest::getOrderType() const { + return orderType_; +} + +void CreateEnsServiceRequest::setOrderType(const std::string &orderType) { + orderType_ = orderType; + setParameter(std::string("OrderType"), orderType); +} + diff --git a/ens/src/model/CreateEnsServiceResult.cc b/ens/src/model/CreateEnsServiceResult.cc new file mode 100644 index 000000000..e1ba3894c --- /dev/null +++ b/ens/src/model/CreateEnsServiceResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateEnsServiceResult::CreateEnsServiceResult() : + ServiceResult() +{} + +CreateEnsServiceResult::CreateEnsServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateEnsServiceResult::~CreateEnsServiceResult() +{} + +void CreateEnsServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +int CreateEnsServiceResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/CreateEpnInstanceRequest.cc b/ens/src/model/CreateEpnInstanceRequest.cc new file mode 100644 index 000000000..e2f201662 --- /dev/null +++ b/ens/src/model/CreateEpnInstanceRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateEpnInstanceRequest; + +CreateEpnInstanceRequest::CreateEpnInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateEpnInstance") { + setMethod(HttpRequest::Method::Post); +} + +CreateEpnInstanceRequest::~CreateEpnInstanceRequest() {} + +std::string CreateEpnInstanceRequest::getNetworkingModel() const { + return networkingModel_; +} + +void CreateEpnInstanceRequest::setNetworkingModel(const std::string &networkingModel) { + networkingModel_ = networkingModel; + setParameter(std::string("NetworkingModel"), networkingModel); +} + +int CreateEpnInstanceRequest::getInternetMaxBandwidthOut() const { + return internetMaxBandwidthOut_; +} + +void CreateEpnInstanceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) { + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut)); +} + +std::string CreateEpnInstanceRequest::getEPNInstanceType() const { + return ePNInstanceType_; +} + +void CreateEpnInstanceRequest::setEPNInstanceType(const std::string &ePNInstanceType) { + ePNInstanceType_ = ePNInstanceType; + setParameter(std::string("EPNInstanceType"), ePNInstanceType); +} + +std::string CreateEpnInstanceRequest::getInternetChargeType() const { + return internetChargeType_; +} + +void CreateEpnInstanceRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); +} + +std::string CreateEpnInstanceRequest::getEPNInstanceName() const { + return ePNInstanceName_; +} + +void CreateEpnInstanceRequest::setEPNInstanceName(const std::string &ePNInstanceName) { + ePNInstanceName_ = ePNInstanceName; + setParameter(std::string("EPNInstanceName"), ePNInstanceName); +} + diff --git a/ens/src/model/CreateEpnInstanceResult.cc b/ens/src/model/CreateEpnInstanceResult.cc new file mode 100644 index 000000000..8b0310823 --- /dev/null +++ b/ens/src/model/CreateEpnInstanceResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateEpnInstanceResult::CreateEpnInstanceResult() : + ServiceResult() +{} + +CreateEpnInstanceResult::CreateEpnInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateEpnInstanceResult::~CreateEpnInstanceResult() +{} + +void CreateEpnInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["EPNInstanceId"].isNull()) + ePNInstanceId_ = value["EPNInstanceId"].asString(); + +} + +std::string CreateEpnInstanceResult::getEPNInstanceId()const +{ + return ePNInstanceId_; +} + diff --git a/ens/src/model/CreateImageRequest.cc b/ens/src/model/CreateImageRequest.cc new file mode 100644 index 000000000..22ecfcc04 --- /dev/null +++ b/ens/src/model/CreateImageRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateImageRequest; + +CreateImageRequest::CreateImageRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateImage") { + setMethod(HttpRequest::Method::Post); +} + +CreateImageRequest::~CreateImageRequest() {} + +std::string CreateImageRequest::getDeleteAfterImageUpload() const { + return deleteAfterImageUpload_; +} + +void CreateImageRequest::setDeleteAfterImageUpload(const std::string &deleteAfterImageUpload) { + deleteAfterImageUpload_ = deleteAfterImageUpload; + setParameter(std::string("DeleteAfterImageUpload"), deleteAfterImageUpload); +} + +std::string CreateImageRequest::getImageName() const { + return imageName_; +} + +void CreateImageRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setParameter(std::string("ImageName"), imageName); +} + +std::string CreateImageRequest::getProduct() const { + return product_; +} + +void CreateImageRequest::setProduct(const std::string &product) { + product_ = product; + setParameter(std::string("product"), product); +} + +std::string CreateImageRequest::getInstanceId() const { + return instanceId_; +} + +void CreateImageRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/CreateImageResult.cc b/ens/src/model/CreateImageResult.cc new file mode 100644 index 000000000..8dc020ffc --- /dev/null +++ b/ens/src/model/CreateImageResult.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::Ens; +using namespace AlibabaCloud::Ens::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()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["ImageId"].isNull()) + imageId_ = value["ImageId"].asString(); + +} + +std::string CreateImageResult::getImageId()const +{ + return imageId_; +} + +int CreateImageResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/CreateInstanceRequest.cc b/ens/src/model/CreateInstanceRequest.cc new file mode 100644 index 000000000..0ac774261 --- /dev/null +++ b/ens/src/model/CreateInstanceRequest.cc @@ -0,0 +1,225 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateInstanceRequest; + +CreateInstanceRequest::CreateInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateInstance") { + setMethod(HttpRequest::Method::Post); +} + +CreateInstanceRequest::~CreateInstanceRequest() {} + +bool CreateInstanceRequest::getUniqueSuffix() const { + return uniqueSuffix_; +} + +void CreateInstanceRequest::setUniqueSuffix(bool uniqueSuffix) { + uniqueSuffix_ = uniqueSuffix; + setParameter(std::string("UniqueSuffix"), uniqueSuffix ? "true" : "false"); +} + +std::string CreateInstanceRequest::getKeyPairName() const { + return keyPairName_; +} + +void CreateInstanceRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); +} + +std::string CreateInstanceRequest::getPassword() const { + return password_; +} + +void CreateInstanceRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); +} + +std::string CreateInstanceRequest::getHostName() const { + return hostName_; +} + +void CreateInstanceRequest::setHostName(const std::string &hostName) { + hostName_ = hostName; + setParameter(std::string("HostName"), hostName); +} + +std::string CreateInstanceRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void CreateInstanceRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string CreateInstanceRequest::getAutoRenewPeriod() const { + return autoRenewPeriod_; +} + +void CreateInstanceRequest::setAutoRenewPeriod(const std::string &autoRenewPeriod) { + autoRenewPeriod_ = autoRenewPeriod; + setParameter(std::string("AutoRenewPeriod"), autoRenewPeriod); +} + +std::string CreateInstanceRequest::getPeriod() const { + return period_; +} + +void CreateInstanceRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); +} + +bool CreateInstanceRequest::getPublicIpIdentification() const { + return publicIpIdentification_; +} + +void CreateInstanceRequest::setPublicIpIdentification(bool publicIpIdentification) { + publicIpIdentification_ = publicIpIdentification; + setParameter(std::string("PublicIpIdentification"), publicIpIdentification ? "true" : "false"); +} + +long CreateInstanceRequest::getOwnerId() const { + return ownerId_; +} + +void CreateInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateInstanceRequest::getVSwitchId() const { + return vSwitchId_; +} + +void CreateInstanceRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string CreateInstanceRequest::getPrivateIpAddress() const { + return privateIpAddress_; +} + +void CreateInstanceRequest::setPrivateIpAddress(const std::string &privateIpAddress) { + privateIpAddress_ = privateIpAddress; + setParameter(std::string("PrivateIpAddress"), privateIpAddress); +} + +std::string CreateInstanceRequest::getInstanceName() const { + return instanceName_; +} + +void CreateInstanceRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); +} + +std::string CreateInstanceRequest::getAutoRenew() const { + return autoRenew_; +} + +void CreateInstanceRequest::setAutoRenew(const std::string &autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew); +} + +std::string CreateInstanceRequest::getInternetChargeType() const { + return internetChargeType_; +} + +void CreateInstanceRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); +} + +std::string CreateInstanceRequest::getImageId() const { + return imageId_; +} + +void CreateInstanceRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::string CreateInstanceRequest::getUserData() const { + return userData_; +} + +void CreateInstanceRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); +} + +std::string CreateInstanceRequest::getInstanceType() const { + return instanceType_; +} + +void CreateInstanceRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); +} + +std::string CreateInstanceRequest::getDataDisk1Size() const { + return dataDisk1Size_; +} + +void CreateInstanceRequest::setDataDisk1Size(const std::string &dataDisk1Size) { + dataDisk1Size_ = dataDisk1Size; + setParameter(std::string("DataDisk.1.Size"), dataDisk1Size); +} + +std::string CreateInstanceRequest::getQuantity() const { + return quantity_; +} + +void CreateInstanceRequest::setQuantity(const std::string &quantity) { + quantity_ = quantity; + setParameter(std::string("Quantity"), quantity); +} + +std::string CreateInstanceRequest::getIpType() const { + return ipType_; +} + +void CreateInstanceRequest::setIpType(const std::string &ipType) { + ipType_ = ipType; + setParameter(std::string("IpType"), ipType); +} + +std::string CreateInstanceRequest::getSystemDiskSize() const { + return systemDiskSize_; +} + +void CreateInstanceRequest::setSystemDiskSize(const std::string &systemDiskSize) { + systemDiskSize_ = systemDiskSize; + setParameter(std::string("SystemDisk.Size"), systemDiskSize); +} + +std::string CreateInstanceRequest::getPaymentType() const { + return paymentType_; +} + +void CreateInstanceRequest::setPaymentType(const std::string &paymentType) { + paymentType_ = paymentType; + setParameter(std::string("PaymentType"), paymentType); +} + diff --git a/ens/src/model/CreateInstanceResult.cc b/ens/src/model/CreateInstanceResult.cc new file mode 100644 index 000000000..4523322b6 --- /dev/null +++ b/ens/src/model/CreateInstanceResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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()); + auto allInstanceIds = value["InstanceIds"]["InstanceId"]; + for (const auto &item : allInstanceIds) + instanceIds_.push_back(item.asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +std::vector CreateInstanceResult::getInstanceIds()const +{ + return instanceIds_; +} + +int CreateInstanceResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/CreateKeyPairRequest.cc b/ens/src/model/CreateKeyPairRequest.cc new file mode 100644 index 000000000..289df9384 --- /dev/null +++ b/ens/src/model/CreateKeyPairRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateKeyPairRequest; + +CreateKeyPairRequest::CreateKeyPairRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateKeyPair") { + setMethod(HttpRequest::Method::Post); +} + +CreateKeyPairRequest::~CreateKeyPairRequest() {} + +std::string CreateKeyPairRequest::getKeyPairName() const { + return keyPairName_; +} + +void CreateKeyPairRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); +} + diff --git a/ens/src/model/CreateKeyPairResult.cc b/ens/src/model/CreateKeyPairResult.cc new file mode 100644 index 000000000..c4e0c8d0b --- /dev/null +++ b/ens/src/model/CreateKeyPairResult.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::Ens; +using namespace AlibabaCloud::Ens::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()); + if(!value["KeyPairFingerPrint"].isNull()) + keyPairFingerPrint_ = value["KeyPairFingerPrint"].asString(); + if(!value["KeyPairId"].isNull()) + keyPairId_ = value["KeyPairId"].asString(); + if(!value["KeyPairName"].isNull()) + keyPairName_ = value["KeyPairName"].asString(); + if(!value["PrivateKeyBody"].isNull()) + privateKeyBody_ = value["PrivateKeyBody"].asString(); + +} + +std::string CreateKeyPairResult::getKeyPairFingerPrint()const +{ + return keyPairFingerPrint_; +} + +std::string CreateKeyPairResult::getKeyPairName()const +{ + return keyPairName_; +} + +std::string CreateKeyPairResult::getKeyPairId()const +{ + return keyPairId_; +} + +std::string CreateKeyPairResult::getPrivateKeyBody()const +{ + return privateKeyBody_; +} + diff --git a/ens/src/model/CreateLoadBalancerHTTPListenerRequest.cc b/ens/src/model/CreateLoadBalancerHTTPListenerRequest.cc new file mode 100644 index 000000000..f24b210d2 --- /dev/null +++ b/ens/src/model/CreateLoadBalancerHTTPListenerRequest.cc @@ -0,0 +1,243 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateLoadBalancerHTTPListenerRequest; + +CreateLoadBalancerHTTPListenerRequest::CreateLoadBalancerHTTPListenerRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateLoadBalancerHTTPListener") { + setMethod(HttpRequest::Method::Post); +} + +CreateLoadBalancerHTTPListenerRequest::~CreateLoadBalancerHTTPListenerRequest() {} + +std::string CreateLoadBalancerHTTPListenerRequest::getListenerForward() const { + return listenerForward_; +} + +void CreateLoadBalancerHTTPListenerRequest::setListenerForward(const std::string &listenerForward) { + listenerForward_ = listenerForward; + setParameter(std::string("ListenerForward"), listenerForward); +} + +int CreateLoadBalancerHTTPListenerRequest::getHealthCheckTimeout() const { + return healthCheckTimeout_; +} + +void CreateLoadBalancerHTTPListenerRequest::setHealthCheckTimeout(int healthCheckTimeout) { + healthCheckTimeout_ = healthCheckTimeout; + setParameter(std::string("HealthCheckTimeout"), std::to_string(healthCheckTimeout)); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getXForwardedFor() const { + return xForwardedFor_; +} + +void CreateLoadBalancerHTTPListenerRequest::setXForwardedFor(const std::string &xForwardedFor) { + xForwardedFor_ = xForwardedFor; + setParameter(std::string("XForwardedFor"), xForwardedFor); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckURI() const { + return healthCheckURI_; +} + +void CreateLoadBalancerHTTPListenerRequest::setHealthCheckURI(const std::string &healthCheckURI) { + healthCheckURI_ = healthCheckURI; + setParameter(std::string("HealthCheckURI"), healthCheckURI); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheck() const { + return healthCheck_; +} + +void CreateLoadBalancerHTTPListenerRequest::setHealthCheck(const std::string &healthCheck) { + healthCheck_ = healthCheck; + setParameter(std::string("HealthCheck"), healthCheck); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getProtocol() const { + return protocol_; +} + +void CreateLoadBalancerHTTPListenerRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getCookie() const { + return cookie_; +} + +void CreateLoadBalancerHTTPListenerRequest::setCookie(const std::string &cookie) { + cookie_ = cookie; + setParameter(std::string("Cookie"), cookie); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckMethod() const { + return healthCheckMethod_; +} + +void CreateLoadBalancerHTTPListenerRequest::setHealthCheckMethod(const std::string &healthCheckMethod) { + healthCheckMethod_ = healthCheckMethod; + setParameter(std::string("HealthCheckMethod"), healthCheckMethod); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckDomain() const { + return healthCheckDomain_; +} + +void CreateLoadBalancerHTTPListenerRequest::setHealthCheckDomain(const std::string &healthCheckDomain) { + healthCheckDomain_ = healthCheckDomain; + setParameter(std::string("HealthCheckDomain"), healthCheckDomain); +} + +int CreateLoadBalancerHTTPListenerRequest::getRequestTimeout() const { + return requestTimeout_; +} + +void CreateLoadBalancerHTTPListenerRequest::setRequestTimeout(int requestTimeout) { + requestTimeout_ = requestTimeout; + setParameter(std::string("RequestTimeout"), std::to_string(requestTimeout)); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void CreateLoadBalancerHTTPListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +int CreateLoadBalancerHTTPListenerRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void CreateLoadBalancerHTTPListenerRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getDescription() const { + return description_; +} + +void CreateLoadBalancerHTTPListenerRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +int CreateLoadBalancerHTTPListenerRequest::getUnhealthyThreshold() const { + return unhealthyThreshold_; +} + +void CreateLoadBalancerHTTPListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) { + unhealthyThreshold_ = unhealthyThreshold; + setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold)); +} + +int CreateLoadBalancerHTTPListenerRequest::getHealthyThreshold() const { + return healthyThreshold_; +} + +void CreateLoadBalancerHTTPListenerRequest::setHealthyThreshold(int healthyThreshold) { + healthyThreshold_ = healthyThreshold; + setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getScheduler() const { + return scheduler_; +} + +void CreateLoadBalancerHTTPListenerRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setParameter(std::string("Scheduler"), scheduler); +} + +int CreateLoadBalancerHTTPListenerRequest::getForwardPort() const { + return forwardPort_; +} + +void CreateLoadBalancerHTTPListenerRequest::setForwardPort(int forwardPort) { + forwardPort_ = forwardPort; + setParameter(std::string("ForwardPort"), std::to_string(forwardPort)); +} + +int CreateLoadBalancerHTTPListenerRequest::getCookieTimeout() const { + return cookieTimeout_; +} + +void CreateLoadBalancerHTTPListenerRequest::setCookieTimeout(int cookieTimeout) { + cookieTimeout_ = cookieTimeout; + setParameter(std::string("CookieTimeout"), std::to_string(cookieTimeout)); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getStickySessionType() const { + return stickySessionType_; +} + +void CreateLoadBalancerHTTPListenerRequest::setStickySessionType(const std::string &stickySessionType) { + stickySessionType_ = stickySessionType; + setParameter(std::string("StickySessionType"), stickySessionType); +} + +int CreateLoadBalancerHTTPListenerRequest::getListenerPort() const { + return listenerPort_; +} + +void CreateLoadBalancerHTTPListenerRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getStickySession() const { + return stickySession_; +} + +void CreateLoadBalancerHTTPListenerRequest::setStickySession(const std::string &stickySession) { + stickySession_ = stickySession; + setParameter(std::string("StickySession"), stickySession); +} + +int CreateLoadBalancerHTTPListenerRequest::getIdleTimeout() const { + return idleTimeout_; +} + +void CreateLoadBalancerHTTPListenerRequest::setIdleTimeout(int idleTimeout) { + idleTimeout_ = idleTimeout; + setParameter(std::string("IdleTimeout"), std::to_string(idleTimeout)); +} + +int CreateLoadBalancerHTTPListenerRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; +} + +void CreateLoadBalancerHTTPListenerRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckHttpCode() const { + return healthCheckHttpCode_; +} + +void CreateLoadBalancerHTTPListenerRequest::setHealthCheckHttpCode(const std::string &healthCheckHttpCode) { + healthCheckHttpCode_ = healthCheckHttpCode; + setParameter(std::string("HealthCheckHttpCode"), healthCheckHttpCode); +} + diff --git a/ens/src/model/CreateLoadBalancerHTTPListenerResult.cc b/ens/src/model/CreateLoadBalancerHTTPListenerResult.cc new file mode 100644 index 000000000..2fd6c74f5 --- /dev/null +++ b/ens/src/model/CreateLoadBalancerHTTPListenerResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateLoadBalancerHTTPListenerResult::CreateLoadBalancerHTTPListenerResult() : + ServiceResult() +{} + +CreateLoadBalancerHTTPListenerResult::CreateLoadBalancerHTTPListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLoadBalancerHTTPListenerResult::~CreateLoadBalancerHTTPListenerResult() +{} + +void CreateLoadBalancerHTTPListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/CreateLoadBalancerHTTPSListenerRequest.cc b/ens/src/model/CreateLoadBalancerHTTPSListenerRequest.cc new file mode 100644 index 000000000..538e9a523 --- /dev/null +++ b/ens/src/model/CreateLoadBalancerHTTPSListenerRequest.cc @@ -0,0 +1,243 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateLoadBalancerHTTPSListenerRequest; + +CreateLoadBalancerHTTPSListenerRequest::CreateLoadBalancerHTTPSListenerRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateLoadBalancerHTTPSListener") { + setMethod(HttpRequest::Method::Post); +} + +CreateLoadBalancerHTTPSListenerRequest::~CreateLoadBalancerHTTPSListenerRequest() {} + +std::string CreateLoadBalancerHTTPSListenerRequest::getListenerForward() const { + return listenerForward_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setListenerForward(const std::string &listenerForward) { + listenerForward_ = listenerForward; + setParameter(std::string("ListenerForward"), listenerForward); +} + +int CreateLoadBalancerHTTPSListenerRequest::getHealthCheckTimeout() const { + return healthCheckTimeout_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckTimeout(int healthCheckTimeout) { + healthCheckTimeout_ = healthCheckTimeout; + setParameter(std::string("HealthCheckTimeout"), std::to_string(healthCheckTimeout)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckURI() const { + return healthCheckURI_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckURI(const std::string &healthCheckURI) { + healthCheckURI_ = healthCheckURI; + setParameter(std::string("HealthCheckURI"), healthCheckURI); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheck() const { + return healthCheck_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheck(const std::string &healthCheck) { + healthCheck_ = healthCheck; + setParameter(std::string("HealthCheck"), healthCheck); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getProtocol() const { + return protocol_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getCookie() const { + return cookie_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setCookie(const std::string &cookie) { + cookie_ = cookie; + setParameter(std::string("Cookie"), cookie); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckMethod() const { + return healthCheckMethod_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckMethod(const std::string &healthCheckMethod) { + healthCheckMethod_ = healthCheckMethod; + setParameter(std::string("HealthCheckMethod"), healthCheckMethod); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckDomain() const { + return healthCheckDomain_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckDomain(const std::string &healthCheckDomain) { + healthCheckDomain_ = healthCheckDomain; + setParameter(std::string("HealthCheckDomain"), healthCheckDomain); +} + +int CreateLoadBalancerHTTPSListenerRequest::getRequestTimeout() const { + return requestTimeout_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setRequestTimeout(int requestTimeout) { + requestTimeout_ = requestTimeout; + setParameter(std::string("RequestTimeout"), std::to_string(requestTimeout)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +int CreateLoadBalancerHTTPSListenerRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getDescription() const { + return description_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +int CreateLoadBalancerHTTPSListenerRequest::getUnhealthyThreshold() const { + return unhealthyThreshold_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) { + unhealthyThreshold_ = unhealthyThreshold; + setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold)); +} + +int CreateLoadBalancerHTTPSListenerRequest::getHealthyThreshold() const { + return healthyThreshold_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthyThreshold(int healthyThreshold) { + healthyThreshold_ = healthyThreshold; + setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getScheduler() const { + return scheduler_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setParameter(std::string("Scheduler"), scheduler); +} + +int CreateLoadBalancerHTTPSListenerRequest::getForwardPort() const { + return forwardPort_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setForwardPort(int forwardPort) { + forwardPort_ = forwardPort; + setParameter(std::string("ForwardPort"), std::to_string(forwardPort)); +} + +int CreateLoadBalancerHTTPSListenerRequest::getCookieTimeout() const { + return cookieTimeout_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setCookieTimeout(int cookieTimeout) { + cookieTimeout_ = cookieTimeout; + setParameter(std::string("CookieTimeout"), std::to_string(cookieTimeout)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getStickySessionType() const { + return stickySessionType_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setStickySessionType(const std::string &stickySessionType) { + stickySessionType_ = stickySessionType; + setParameter(std::string("StickySessionType"), stickySessionType); +} + +int CreateLoadBalancerHTTPSListenerRequest::getListenerPort() const { + return listenerPort_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getStickySession() const { + return stickySession_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setStickySession(const std::string &stickySession) { + stickySession_ = stickySession; + setParameter(std::string("StickySession"), stickySession); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getServerCertificateId() const { + return serverCertificateId_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setServerCertificateId(const std::string &serverCertificateId) { + serverCertificateId_ = serverCertificateId; + setParameter(std::string("ServerCertificateId"), serverCertificateId); +} + +int CreateLoadBalancerHTTPSListenerRequest::getIdleTimeout() const { + return idleTimeout_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setIdleTimeout(int idleTimeout) { + idleTimeout_ = idleTimeout; + setParameter(std::string("IdleTimeout"), std::to_string(idleTimeout)); +} + +int CreateLoadBalancerHTTPSListenerRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckHttpCode() const { + return healthCheckHttpCode_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckHttpCode(const std::string &healthCheckHttpCode) { + healthCheckHttpCode_ = healthCheckHttpCode; + setParameter(std::string("HealthCheckHttpCode"), healthCheckHttpCode); +} + diff --git a/ens/src/model/CreateLoadBalancerHTTPSListenerResult.cc b/ens/src/model/CreateLoadBalancerHTTPSListenerResult.cc new file mode 100644 index 000000000..642e25fb1 --- /dev/null +++ b/ens/src/model/CreateLoadBalancerHTTPSListenerResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateLoadBalancerHTTPSListenerResult::CreateLoadBalancerHTTPSListenerResult() : + ServiceResult() +{} + +CreateLoadBalancerHTTPSListenerResult::CreateLoadBalancerHTTPSListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLoadBalancerHTTPSListenerResult::~CreateLoadBalancerHTTPSListenerResult() +{} + +void CreateLoadBalancerHTTPSListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/CreateLoadBalancerRequest.cc b/ens/src/model/CreateLoadBalancerRequest.cc new file mode 100644 index 000000000..3f38466ca --- /dev/null +++ b/ens/src/model/CreateLoadBalancerRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateLoadBalancerRequest; + +CreateLoadBalancerRequest::CreateLoadBalancerRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateLoadBalancer") { + setMethod(HttpRequest::Method::Post); +} + +CreateLoadBalancerRequest::~CreateLoadBalancerRequest() {} + +std::string CreateLoadBalancerRequest::getLoadBalancerName() const { + return loadBalancerName_; +} + +void CreateLoadBalancerRequest::setLoadBalancerName(const std::string &loadBalancerName) { + loadBalancerName_ = loadBalancerName; + setParameter(std::string("LoadBalancerName"), loadBalancerName); +} + +std::string CreateLoadBalancerRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void CreateLoadBalancerRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string CreateLoadBalancerRequest::getLoadBalancerSpec() const { + return loadBalancerSpec_; +} + +void CreateLoadBalancerRequest::setLoadBalancerSpec(const std::string &loadBalancerSpec) { + loadBalancerSpec_ = loadBalancerSpec; + setParameter(std::string("LoadBalancerSpec"), loadBalancerSpec); +} + +std::string CreateLoadBalancerRequest::getVSwitchId() const { + return vSwitchId_; +} + +void CreateLoadBalancerRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string CreateLoadBalancerRequest::getNetworkId() const { + return networkId_; +} + +void CreateLoadBalancerRequest::setNetworkId(const std::string &networkId) { + networkId_ = networkId; + setParameter(std::string("NetworkId"), networkId); +} + +std::string CreateLoadBalancerRequest::getPayType() const { + return payType_; +} + +void CreateLoadBalancerRequest::setPayType(const std::string &payType) { + payType_ = payType; + setParameter(std::string("PayType"), payType); +} + diff --git a/ens/src/model/CreateLoadBalancerResult.cc b/ens/src/model/CreateLoadBalancerResult.cc new file mode 100644 index 000000000..29a8622a7 --- /dev/null +++ b/ens/src/model/CreateLoadBalancerResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateLoadBalancerResult::CreateLoadBalancerResult() : + ServiceResult() +{} + +CreateLoadBalancerResult::CreateLoadBalancerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLoadBalancerResult::~CreateLoadBalancerResult() +{} + +void CreateLoadBalancerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); + if(!value["VSwitchId"].isNull()) + vSwitchId_ = value["VSwitchId"].asString(); + if(!value["LoadBalancerName"].isNull()) + loadBalancerName_ = value["LoadBalancerName"].asString(); + if(!value["NetworkId"].isNull()) + networkId_ = value["NetworkId"].asString(); + +} + +std::string CreateLoadBalancerResult::getLoadBalancerName()const +{ + return loadBalancerName_; +} + +std::string CreateLoadBalancerResult::getVSwitchId()const +{ + return vSwitchId_; +} + +std::string CreateLoadBalancerResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +std::string CreateLoadBalancerResult::getNetworkId()const +{ + return networkId_; +} + diff --git a/ens/src/model/CreateLoadBalancerTCPListenerRequest.cc b/ens/src/model/CreateLoadBalancerTCPListenerRequest.cc new file mode 100644 index 000000000..79572ab5c --- /dev/null +++ b/ens/src/model/CreateLoadBalancerTCPListenerRequest.cc @@ -0,0 +1,189 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateLoadBalancerTCPListenerRequest; + +CreateLoadBalancerTCPListenerRequest::CreateLoadBalancerTCPListenerRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateLoadBalancerTCPListener") { + setMethod(HttpRequest::Method::Post); +} + +CreateLoadBalancerTCPListenerRequest::~CreateLoadBalancerTCPListenerRequest() {} + +std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckURI() const { + return healthCheckURI_; +} + +void CreateLoadBalancerTCPListenerRequest::setHealthCheckURI(const std::string &healthCheckURI) { + healthCheckURI_ = healthCheckURI; + setParameter(std::string("HealthCheckURI"), healthCheckURI); +} + +std::string CreateLoadBalancerTCPListenerRequest::getProtocol() const { + return protocol_; +} + +void CreateLoadBalancerTCPListenerRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +int CreateLoadBalancerTCPListenerRequest::getEstablishedTimeout() const { + return establishedTimeout_; +} + +void CreateLoadBalancerTCPListenerRequest::setEstablishedTimeout(int establishedTimeout) { + establishedTimeout_ = establishedTimeout; + setParameter(std::string("EstablishedTimeout"), std::to_string(establishedTimeout)); +} + +int CreateLoadBalancerTCPListenerRequest::getPersistenceTimeout() const { + return persistenceTimeout_; +} + +void CreateLoadBalancerTCPListenerRequest::setPersistenceTimeout(int persistenceTimeout) { + persistenceTimeout_ = persistenceTimeout; + setParameter(std::string("PersistenceTimeout"), std::to_string(persistenceTimeout)); +} + +std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckDomain() const { + return healthCheckDomain_; +} + +void CreateLoadBalancerTCPListenerRequest::setHealthCheckDomain(const std::string &healthCheckDomain) { + healthCheckDomain_ = healthCheckDomain; + setParameter(std::string("HealthCheckDomain"), healthCheckDomain); +} + +std::string CreateLoadBalancerTCPListenerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void CreateLoadBalancerTCPListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +int CreateLoadBalancerTCPListenerRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void CreateLoadBalancerTCPListenerRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); +} + +int CreateLoadBalancerTCPListenerRequest::getBackendServerPort() const { + return backendServerPort_; +} + +void CreateLoadBalancerTCPListenerRequest::setBackendServerPort(int backendServerPort) { + backendServerPort_ = backendServerPort; + setParameter(std::string("BackendServerPort"), std::to_string(backendServerPort)); +} + +int CreateLoadBalancerTCPListenerRequest::getHealthCheckConnectTimeout() const { + return healthCheckConnectTimeout_; +} + +void CreateLoadBalancerTCPListenerRequest::setHealthCheckConnectTimeout(int healthCheckConnectTimeout) { + healthCheckConnectTimeout_ = healthCheckConnectTimeout; + setParameter(std::string("HealthCheckConnectTimeout"), std::to_string(healthCheckConnectTimeout)); +} + +std::string CreateLoadBalancerTCPListenerRequest::getDescription() const { + return description_; +} + +void CreateLoadBalancerTCPListenerRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +int CreateLoadBalancerTCPListenerRequest::getUnhealthyThreshold() const { + return unhealthyThreshold_; +} + +void CreateLoadBalancerTCPListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) { + unhealthyThreshold_ = unhealthyThreshold; + setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold)); +} + +int CreateLoadBalancerTCPListenerRequest::getHealthyThreshold() const { + return healthyThreshold_; +} + +void CreateLoadBalancerTCPListenerRequest::setHealthyThreshold(int healthyThreshold) { + healthyThreshold_ = healthyThreshold; + setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); +} + +std::string CreateLoadBalancerTCPListenerRequest::getScheduler() const { + return scheduler_; +} + +void CreateLoadBalancerTCPListenerRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setParameter(std::string("Scheduler"), scheduler); +} + +std::string CreateLoadBalancerTCPListenerRequest::getEipTransmit() const { + return eipTransmit_; +} + +void CreateLoadBalancerTCPListenerRequest::setEipTransmit(const std::string &eipTransmit) { + eipTransmit_ = eipTransmit; + setParameter(std::string("EipTransmit"), eipTransmit); +} + +int CreateLoadBalancerTCPListenerRequest::getListenerPort() const { + return listenerPort_; +} + +void CreateLoadBalancerTCPListenerRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckType() const { + return healthCheckType_; +} + +void CreateLoadBalancerTCPListenerRequest::setHealthCheckType(const std::string &healthCheckType) { + healthCheckType_ = healthCheckType; + setParameter(std::string("HealthCheckType"), healthCheckType); +} + +std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckHttpCode() const { + return healthCheckHttpCode_; +} + +void CreateLoadBalancerTCPListenerRequest::setHealthCheckHttpCode(const std::string &healthCheckHttpCode) { + healthCheckHttpCode_ = healthCheckHttpCode; + setParameter(std::string("HealthCheckHttpCode"), healthCheckHttpCode); +} + +int CreateLoadBalancerTCPListenerRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; +} + +void CreateLoadBalancerTCPListenerRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); +} + diff --git a/ens/src/model/CreateLoadBalancerTCPListenerResult.cc b/ens/src/model/CreateLoadBalancerTCPListenerResult.cc new file mode 100644 index 000000000..1b139568c --- /dev/null +++ b/ens/src/model/CreateLoadBalancerTCPListenerResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateLoadBalancerTCPListenerResult::CreateLoadBalancerTCPListenerResult() : + ServiceResult() +{} + +CreateLoadBalancerTCPListenerResult::CreateLoadBalancerTCPListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLoadBalancerTCPListenerResult::~CreateLoadBalancerTCPListenerResult() +{} + +void CreateLoadBalancerTCPListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/CreateLoadBalancerUDPListenerRequest.cc b/ens/src/model/CreateLoadBalancerUDPListenerRequest.cc new file mode 100644 index 000000000..2ec75ef77 --- /dev/null +++ b/ens/src/model/CreateLoadBalancerUDPListenerRequest.cc @@ -0,0 +1,153 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateLoadBalancerUDPListenerRequest; + +CreateLoadBalancerUDPListenerRequest::CreateLoadBalancerUDPListenerRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateLoadBalancerUDPListener") { + setMethod(HttpRequest::Method::Post); +} + +CreateLoadBalancerUDPListenerRequest::~CreateLoadBalancerUDPListenerRequest() {} + +std::string CreateLoadBalancerUDPListenerRequest::getProtocol() const { + return protocol_; +} + +void CreateLoadBalancerUDPListenerRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +std::string CreateLoadBalancerUDPListenerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void CreateLoadBalancerUDPListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +std::string CreateLoadBalancerUDPListenerRequest::getHealthCheckReq() const { + return healthCheckReq_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthCheckReq(const std::string &healthCheckReq) { + healthCheckReq_ = healthCheckReq; + setParameter(std::string("HealthCheckReq"), healthCheckReq); +} + +int CreateLoadBalancerUDPListenerRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); +} + +int CreateLoadBalancerUDPListenerRequest::getBackendServerPort() const { + return backendServerPort_; +} + +void CreateLoadBalancerUDPListenerRequest::setBackendServerPort(int backendServerPort) { + backendServerPort_ = backendServerPort; + setParameter(std::string("BackendServerPort"), std::to_string(backendServerPort)); +} + +std::string CreateLoadBalancerUDPListenerRequest::getHealthCheckExp() const { + return healthCheckExp_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthCheckExp(const std::string &healthCheckExp) { + healthCheckExp_ = healthCheckExp; + setParameter(std::string("HealthCheckExp"), healthCheckExp); +} + +int CreateLoadBalancerUDPListenerRequest::getHealthCheckConnectTimeout() const { + return healthCheckConnectTimeout_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthCheckConnectTimeout(int healthCheckConnectTimeout) { + healthCheckConnectTimeout_ = healthCheckConnectTimeout; + setParameter(std::string("HealthCheckConnectTimeout"), std::to_string(healthCheckConnectTimeout)); +} + +std::string CreateLoadBalancerUDPListenerRequest::getDescription() const { + return description_; +} + +void CreateLoadBalancerUDPListenerRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +int CreateLoadBalancerUDPListenerRequest::getUnhealthyThreshold() const { + return unhealthyThreshold_; +} + +void CreateLoadBalancerUDPListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) { + unhealthyThreshold_ = unhealthyThreshold; + setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold)); +} + +int CreateLoadBalancerUDPListenerRequest::getHealthyThreshold() const { + return healthyThreshold_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthyThreshold(int healthyThreshold) { + healthyThreshold_ = healthyThreshold; + setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); +} + +std::string CreateLoadBalancerUDPListenerRequest::getScheduler() const { + return scheduler_; +} + +void CreateLoadBalancerUDPListenerRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setParameter(std::string("Scheduler"), scheduler); +} + +std::string CreateLoadBalancerUDPListenerRequest::getEipTransmit() const { + return eipTransmit_; +} + +void CreateLoadBalancerUDPListenerRequest::setEipTransmit(const std::string &eipTransmit) { + eipTransmit_ = eipTransmit; + setParameter(std::string("EipTransmit"), eipTransmit); +} + +int CreateLoadBalancerUDPListenerRequest::getListenerPort() const { + return listenerPort_; +} + +void CreateLoadBalancerUDPListenerRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +int CreateLoadBalancerUDPListenerRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); +} + diff --git a/ens/src/model/CreateLoadBalancerUDPListenerResult.cc b/ens/src/model/CreateLoadBalancerUDPListenerResult.cc new file mode 100644 index 000000000..04e6531c5 --- /dev/null +++ b/ens/src/model/CreateLoadBalancerUDPListenerResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateLoadBalancerUDPListenerResult::CreateLoadBalancerUDPListenerResult() : + ServiceResult() +{} + +CreateLoadBalancerUDPListenerResult::CreateLoadBalancerUDPListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLoadBalancerUDPListenerResult::~CreateLoadBalancerUDPListenerResult() +{} + +void CreateLoadBalancerUDPListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/CreateNetworkRequest.cc b/ens/src/model/CreateNetworkRequest.cc new file mode 100644 index 000000000..a7124a649 --- /dev/null +++ b/ens/src/model/CreateNetworkRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateNetworkRequest; + +CreateNetworkRequest::CreateNetworkRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateNetwork") { + setMethod(HttpRequest::Method::Post); +} + +CreateNetworkRequest::~CreateNetworkRequest() {} + +std::string CreateNetworkRequest::getDescription() const { + return description_; +} + +void CreateNetworkRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateNetworkRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void CreateNetworkRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string CreateNetworkRequest::getNetworkName() const { + return networkName_; +} + +void CreateNetworkRequest::setNetworkName(const std::string &networkName) { + networkName_ = networkName; + setParameter(std::string("NetworkName"), networkName); +} + +std::string CreateNetworkRequest::getCidrBlock() const { + return cidrBlock_; +} + +void CreateNetworkRequest::setCidrBlock(const std::string &cidrBlock) { + cidrBlock_ = cidrBlock; + setParameter(std::string("CidrBlock"), cidrBlock); +} + diff --git a/ens/src/model/CreateNetworkResult.cc b/ens/src/model/CreateNetworkResult.cc new file mode 100644 index 000000000..032cafebb --- /dev/null +++ b/ens/src/model/CreateNetworkResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateNetworkResult::CreateNetworkResult() : + ServiceResult() +{} + +CreateNetworkResult::CreateNetworkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNetworkResult::~CreateNetworkResult() +{} + +void CreateNetworkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["NetworkId"].isNull()) + networkId_ = value["NetworkId"].asString(); + +} + +std::string CreateNetworkResult::getNetworkId()const +{ + return networkId_; +} + diff --git a/ens/src/model/CreateSecurityGroupRequest.cc b/ens/src/model/CreateSecurityGroupRequest.cc new file mode 100644 index 000000000..171b7b02c --- /dev/null +++ b/ens/src/model/CreateSecurityGroupRequest.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 + +using AlibabaCloud::Ens::Model::CreateSecurityGroupRequest; + +CreateSecurityGroupRequest::CreateSecurityGroupRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateSecurityGroup") { + setMethod(HttpRequest::Method::Post); +} + +CreateSecurityGroupRequest::~CreateSecurityGroupRequest() {} + +std::string CreateSecurityGroupRequest::getDescription() const { + return description_; +} + +void CreateSecurityGroupRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateSecurityGroupRequest::getSecurityGroupName() const { + return securityGroupName_; +} + +void CreateSecurityGroupRequest::setSecurityGroupName(const std::string &securityGroupName) { + securityGroupName_ = securityGroupName; + setParameter(std::string("SecurityGroupName"), securityGroupName); +} + diff --git a/ens/src/model/CreateSecurityGroupResult.cc b/ens/src/model/CreateSecurityGroupResult.cc new file mode 100644 index 000000000..c15ec8e42 --- /dev/null +++ b/ens/src/model/CreateSecurityGroupResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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()); + if(!value["SecurityGroupId"].isNull()) + securityGroupId_ = value["SecurityGroupId"].asString(); + +} + +std::string CreateSecurityGroupResult::getSecurityGroupId()const +{ + return securityGroupId_; +} + diff --git a/ens/src/model/CreateVSwitchRequest.cc b/ens/src/model/CreateVSwitchRequest.cc new file mode 100644 index 000000000..bca75489f --- /dev/null +++ b/ens/src/model/CreateVSwitchRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateVSwitchRequest; + +CreateVSwitchRequest::CreateVSwitchRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateVSwitch") { + setMethod(HttpRequest::Method::Post); +} + +CreateVSwitchRequest::~CreateVSwitchRequest() {} + +std::string CreateVSwitchRequest::getDescription() const { + return description_; +} + +void CreateVSwitchRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateVSwitchRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void CreateVSwitchRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string CreateVSwitchRequest::getVSwitchName() const { + return vSwitchName_; +} + +void CreateVSwitchRequest::setVSwitchName(const std::string &vSwitchName) { + vSwitchName_ = vSwitchName; + setParameter(std::string("VSwitchName"), vSwitchName); +} + +std::string CreateVSwitchRequest::getCidrBlock() const { + return cidrBlock_; +} + +void CreateVSwitchRequest::setCidrBlock(const std::string &cidrBlock) { + cidrBlock_ = cidrBlock; + setParameter(std::string("CidrBlock"), cidrBlock); +} + +std::string CreateVSwitchRequest::getNetworkId() const { + return networkId_; +} + +void CreateVSwitchRequest::setNetworkId(const std::string &networkId) { + networkId_ = networkId; + setParameter(std::string("NetworkId"), networkId); +} + diff --git a/ens/src/model/CreateVSwitchResult.cc b/ens/src/model/CreateVSwitchResult.cc new file mode 100644 index 000000000..72d1a7c2b --- /dev/null +++ b/ens/src/model/CreateVSwitchResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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()); + if(!value["VSwitchId"].isNull()) + vSwitchId_ = value["VSwitchId"].asString(); + +} + +std::string CreateVSwitchResult::getVSwitchId()const +{ + return vSwitchId_; +} + diff --git a/ens/src/model/CreateVmAndSaveStockRequest.cc b/ens/src/model/CreateVmAndSaveStockRequest.cc new file mode 100644 index 000000000..2e7d103a8 --- /dev/null +++ b/ens/src/model/CreateVmAndSaveStockRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::CreateVmAndSaveStockRequest; + +CreateVmAndSaveStockRequest::CreateVmAndSaveStockRequest() + : RpcServiceRequest("ens", "2017-11-10", "CreateVmAndSaveStock") { + setMethod(HttpRequest::Method::Post); +} + +CreateVmAndSaveStockRequest::~CreateVmAndSaveStockRequest() {} + +std::string CreateVmAndSaveStockRequest::getGroupUuid() const { + return groupUuid_; +} + +void CreateVmAndSaveStockRequest::setGroupUuid(const std::string &groupUuid) { + groupUuid_ = groupUuid; + setParameter(std::string("GroupUuid"), groupUuid); +} + +std::string CreateVmAndSaveStockRequest::getResourceAttribute() const { + return resourceAttribute_; +} + +void CreateVmAndSaveStockRequest::setResourceAttribute(const std::string &resourceAttribute) { + resourceAttribute_ = resourceAttribute; + setBodyParameter(std::string("ResourceAttribute"), resourceAttribute); +} + +long CreateVmAndSaveStockRequest::getAliUid() const { + return aliUid_; +} + +void CreateVmAndSaveStockRequest::setAliUid(long aliUid) { + aliUid_ = aliUid; + setParameter(std::string("AliUid"), std::to_string(aliUid)); +} + +std::string CreateVmAndSaveStockRequest::getTenant() const { + return tenant_; +} + +void CreateVmAndSaveStockRequest::setTenant(const std::string &tenant) { + tenant_ = tenant; + setParameter(std::string("Tenant"), tenant); +} + +std::string CreateVmAndSaveStockRequest::getWorkloadUuid() const { + return workloadUuid_; +} + +void CreateVmAndSaveStockRequest::setWorkloadUuid(const std::string &workloadUuid) { + workloadUuid_ = workloadUuid; + setParameter(std::string("WorkloadUuid"), workloadUuid); +} + diff --git a/ens/src/model/CreateVmAndSaveStockResult.cc b/ens/src/model/CreateVmAndSaveStockResult.cc new file mode 100644 index 000000000..9c7e6ae3d --- /dev/null +++ b/ens/src/model/CreateVmAndSaveStockResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +CreateVmAndSaveStockResult::CreateVmAndSaveStockResult() : + ServiceResult() +{} + +CreateVmAndSaveStockResult::CreateVmAndSaveStockResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVmAndSaveStockResult::~CreateVmAndSaveStockResult() +{} + +void CreateVmAndSaveStockResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Desc"].isNull()) + desc_ = value["Desc"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string CreateVmAndSaveStockResult::getMsg()const +{ + return msg_; +} + +std::string CreateVmAndSaveStockResult::getDesc()const +{ + return desc_; +} + +std::string CreateVmAndSaveStockResult::getData()const +{ + return data_; +} + +int CreateVmAndSaveStockResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/DeleteApplicationRequest.cc b/ens/src/model/DeleteApplicationRequest.cc new file mode 100644 index 000000000..2773f2628 --- /dev/null +++ b/ens/src/model/DeleteApplicationRequest.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 + +using AlibabaCloud::Ens::Model::DeleteApplicationRequest; + +DeleteApplicationRequest::DeleteApplicationRequest() + : RpcServiceRequest("ens", "2017-11-10", "DeleteApplication") { + setMethod(HttpRequest::Method::Post); +} + +DeleteApplicationRequest::~DeleteApplicationRequest() {} + +int DeleteApplicationRequest::getTimeout() const { + return timeout_; +} + +void DeleteApplicationRequest::setTimeout(int timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); +} + +std::string DeleteApplicationRequest::getAppId() const { + return appId_; +} + +void DeleteApplicationRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ens/src/model/DeleteApplicationResult.cc b/ens/src/model/DeleteApplicationResult.cc new file mode 100644 index 000000000..28c57f93b --- /dev/null +++ b/ens/src/model/DeleteApplicationResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DeleteApplicationResult::DeleteApplicationResult() : + ServiceResult() +{} + +DeleteApplicationResult::DeleteApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteApplicationResult::~DeleteApplicationResult() +{} + +void DeleteApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/DeleteDeviceInternetPortRequest.cc b/ens/src/model/DeleteDeviceInternetPortRequest.cc new file mode 100644 index 000000000..d9909f2e3 --- /dev/null +++ b/ens/src/model/DeleteDeviceInternetPortRequest.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 + +using AlibabaCloud::Ens::Model::DeleteDeviceInternetPortRequest; + +DeleteDeviceInternetPortRequest::DeleteDeviceInternetPortRequest() + : RpcServiceRequest("ens", "2017-11-10", "DeleteDeviceInternetPort") { + setMethod(HttpRequest::Method::Get); +} + +DeleteDeviceInternetPortRequest::~DeleteDeviceInternetPortRequest() {} + +std::string DeleteDeviceInternetPortRequest::getNatType() const { + return natType_; +} + +void DeleteDeviceInternetPortRequest::setNatType(const std::string &natType) { + natType_ = natType; + setParameter(std::string("NatType"), natType); +} + +std::string DeleteDeviceInternetPortRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteDeviceInternetPortRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string DeleteDeviceInternetPortRequest::getRuleId() const { + return ruleId_; +} + +void DeleteDeviceInternetPortRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); +} + diff --git a/ens/src/model/DeleteDeviceInternetPortResult.cc b/ens/src/model/DeleteDeviceInternetPortResult.cc new file mode 100644 index 000000000..1e895f160 --- /dev/null +++ b/ens/src/model/DeleteDeviceInternetPortResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DeleteDeviceInternetPortResult::DeleteDeviceInternetPortResult() : + ServiceResult() +{} + +DeleteDeviceInternetPortResult::DeleteDeviceInternetPortResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDeviceInternetPortResult::~DeleteDeviceInternetPortResult() +{} + +void DeleteDeviceInternetPortResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRuleIds = value["RuleIds"]["RuleIds"]; + for (const auto &item : allRuleIds) + ruleIds_.push_back(item.asString()); + +} + +std::vector DeleteDeviceInternetPortResult::getRuleIds()const +{ + return ruleIds_; +} + diff --git a/ens/src/model/DeleteEpnInstanceRequest.cc b/ens/src/model/DeleteEpnInstanceRequest.cc new file mode 100644 index 000000000..5c726c57d --- /dev/null +++ b/ens/src/model/DeleteEpnInstanceRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DeleteEpnInstanceRequest; + +DeleteEpnInstanceRequest::DeleteEpnInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "DeleteEpnInstance") { + setMethod(HttpRequest::Method::Post); +} + +DeleteEpnInstanceRequest::~DeleteEpnInstanceRequest() {} + +std::string DeleteEpnInstanceRequest::getEPNInstanceId() const { + return ePNInstanceId_; +} + +void DeleteEpnInstanceRequest::setEPNInstanceId(const std::string &ePNInstanceId) { + ePNInstanceId_ = ePNInstanceId; + setParameter(std::string("EPNInstanceId"), ePNInstanceId); +} + diff --git a/ens/src/model/DeleteEpnInstanceResult.cc b/ens/src/model/DeleteEpnInstanceResult.cc new file mode 100644 index 000000000..c9324fae3 --- /dev/null +++ b/ens/src/model/DeleteEpnInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DeleteEpnInstanceResult::DeleteEpnInstanceResult() : + ServiceResult() +{} + +DeleteEpnInstanceResult::DeleteEpnInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteEpnInstanceResult::~DeleteEpnInstanceResult() +{} + +void DeleteEpnInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/DeleteKeyPairsRequest.cc b/ens/src/model/DeleteKeyPairsRequest.cc new file mode 100644 index 000000000..cfdae9f9a --- /dev/null +++ b/ens/src/model/DeleteKeyPairsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DeleteKeyPairsRequest; + +DeleteKeyPairsRequest::DeleteKeyPairsRequest() + : RpcServiceRequest("ens", "2017-11-10", "DeleteKeyPairs") { + setMethod(HttpRequest::Method::Post); +} + +DeleteKeyPairsRequest::~DeleteKeyPairsRequest() {} + +std::string DeleteKeyPairsRequest::getKeyPairName() const { + return keyPairName_; +} + +void DeleteKeyPairsRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); +} + diff --git a/ens/src/model/DeleteKeyPairsResult.cc b/ens/src/model/DeleteKeyPairsResult.cc new file mode 100644 index 000000000..5c13c2204 --- /dev/null +++ b/ens/src/model/DeleteKeyPairsResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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/ens/src/model/DeleteLoadBalancerListenerRequest.cc b/ens/src/model/DeleteLoadBalancerListenerRequest.cc new file mode 100644 index 000000000..62a40225f --- /dev/null +++ b/ens/src/model/DeleteLoadBalancerListenerRequest.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 + +using AlibabaCloud::Ens::Model::DeleteLoadBalancerListenerRequest; + +DeleteLoadBalancerListenerRequest::DeleteLoadBalancerListenerRequest() + : RpcServiceRequest("ens", "2017-11-10", "DeleteLoadBalancerListener") { + setMethod(HttpRequest::Method::Post); +} + +DeleteLoadBalancerListenerRequest::~DeleteLoadBalancerListenerRequest() {} + +int DeleteLoadBalancerListenerRequest::getListenerPort() const { + return listenerPort_; +} + +void DeleteLoadBalancerListenerRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string DeleteLoadBalancerListenerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DeleteLoadBalancerListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/ens/src/model/DeleteLoadBalancerListenerResult.cc b/ens/src/model/DeleteLoadBalancerListenerResult.cc new file mode 100644 index 000000000..56ef44fe6 --- /dev/null +++ b/ens/src/model/DeleteLoadBalancerListenerResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DeleteLoadBalancerListenerResult::DeleteLoadBalancerListenerResult() : + ServiceResult() +{} + +DeleteLoadBalancerListenerResult::DeleteLoadBalancerListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteLoadBalancerListenerResult::~DeleteLoadBalancerListenerResult() +{} + +void DeleteLoadBalancerListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/DeleteNetworkRequest.cc b/ens/src/model/DeleteNetworkRequest.cc new file mode 100644 index 000000000..d3134f8b3 --- /dev/null +++ b/ens/src/model/DeleteNetworkRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DeleteNetworkRequest; + +DeleteNetworkRequest::DeleteNetworkRequest() + : RpcServiceRequest("ens", "2017-11-10", "DeleteNetwork") { + setMethod(HttpRequest::Method::Post); +} + +DeleteNetworkRequest::~DeleteNetworkRequest() {} + +std::string DeleteNetworkRequest::getNetworkId() const { + return networkId_; +} + +void DeleteNetworkRequest::setNetworkId(const std::string &networkId) { + networkId_ = networkId; + setParameter(std::string("NetworkId"), networkId); +} + diff --git a/ens/src/model/DeleteNetworkResult.cc b/ens/src/model/DeleteNetworkResult.cc new file mode 100644 index 000000000..fe6f487e9 --- /dev/null +++ b/ens/src/model/DeleteNetworkResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DeleteNetworkResult::DeleteNetworkResult() : + ServiceResult() +{} + +DeleteNetworkResult::DeleteNetworkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNetworkResult::~DeleteNetworkResult() +{} + +void DeleteNetworkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/DeleteSecurityGroupRequest.cc b/ens/src/model/DeleteSecurityGroupRequest.cc new file mode 100644 index 000000000..9f2ff071d --- /dev/null +++ b/ens/src/model/DeleteSecurityGroupRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DeleteSecurityGroupRequest; + +DeleteSecurityGroupRequest::DeleteSecurityGroupRequest() + : RpcServiceRequest("ens", "2017-11-10", "DeleteSecurityGroup") { + setMethod(HttpRequest::Method::Post); +} + +DeleteSecurityGroupRequest::~DeleteSecurityGroupRequest() {} + +std::string DeleteSecurityGroupRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void DeleteSecurityGroupRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + diff --git a/ens/src/model/DeleteSecurityGroupResult.cc b/ens/src/model/DeleteSecurityGroupResult.cc new file mode 100644 index 000000000..0009d39bc --- /dev/null +++ b/ens/src/model/DeleteSecurityGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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/ens/src/model/DeleteVSwitchRequest.cc b/ens/src/model/DeleteVSwitchRequest.cc new file mode 100644 index 000000000..d9bcb8206 --- /dev/null +++ b/ens/src/model/DeleteVSwitchRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DeleteVSwitchRequest; + +DeleteVSwitchRequest::DeleteVSwitchRequest() + : RpcServiceRequest("ens", "2017-11-10", "DeleteVSwitch") { + setMethod(HttpRequest::Method::Post); +} + +DeleteVSwitchRequest::~DeleteVSwitchRequest() {} + +std::string DeleteVSwitchRequest::getVSwitchId() const { + return vSwitchId_; +} + +void DeleteVSwitchRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + diff --git a/ens/src/model/DeleteVSwitchResult.cc b/ens/src/model/DeleteVSwitchResult.cc new file mode 100644 index 000000000..cbc1d9e6a --- /dev/null +++ b/ens/src/model/DeleteVSwitchResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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/ens/src/model/DeleteVmRequest.cc b/ens/src/model/DeleteVmRequest.cc new file mode 100644 index 000000000..b7b6ec0b5 --- /dev/null +++ b/ens/src/model/DeleteVmRequest.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 + +using AlibabaCloud::Ens::Model::DeleteVmRequest; + +DeleteVmRequest::DeleteVmRequest() + : RpcServiceRequest("ens", "2017-11-10", "DeleteVm") { + setMethod(HttpRequest::Method::Post); +} + +DeleteVmRequest::~DeleteVmRequest() {} + +long DeleteVmRequest::getAliUid() const { + return aliUid_; +} + +void DeleteVmRequest::setAliUid(long aliUid) { + aliUid_ = aliUid; + setParameter(std::string("AliUid"), std::to_string(aliUid)); +} + +std::string DeleteVmRequest::getWorkloadUuid() const { + return workloadUuid_; +} + +void DeleteVmRequest::setWorkloadUuid(const std::string &workloadUuid) { + workloadUuid_ = workloadUuid; + setParameter(std::string("WorkloadUuid"), workloadUuid); +} + diff --git a/ens/src/model/DeleteVmResult.cc b/ens/src/model/DeleteVmResult.cc new file mode 100644 index 000000000..4c8b8c903 --- /dev/null +++ b/ens/src/model/DeleteVmResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DeleteVmResult::DeleteVmResult() : + ServiceResult() +{} + +DeleteVmResult::DeleteVmResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVmResult::~DeleteVmResult() +{} + +void DeleteVmResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Desc"].isNull()) + desc_ = value["Desc"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string DeleteVmResult::getMsg()const +{ + return msg_; +} + +std::string DeleteVmResult::getDesc()const +{ + return desc_; +} + +std::string DeleteVmResult::getData()const +{ + return data_; +} + +int DeleteVmResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/DescribeApplicationRequest.cc b/ens/src/model/DescribeApplicationRequest.cc new file mode 100644 index 000000000..95d094acf --- /dev/null +++ b/ens/src/model/DescribeApplicationRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeApplicationRequest; + +DescribeApplicationRequest::DescribeApplicationRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeApplication") { + setMethod(HttpRequest::Method::Post); +} + +DescribeApplicationRequest::~DescribeApplicationRequest() {} + +std::string DescribeApplicationRequest::getAppVersions() const { + return appVersions_; +} + +void DescribeApplicationRequest::setAppVersions(const std::string &appVersions) { + appVersions_ = appVersions; + setParameter(std::string("AppVersions"), appVersions); +} + +std::string DescribeApplicationRequest::getOutDetailStatParams() const { + return outDetailStatParams_; +} + +void DescribeApplicationRequest::setOutDetailStatParams(const std::string &outDetailStatParams) { + outDetailStatParams_ = outDetailStatParams; + setParameter(std::string("OutDetailStatParams"), outDetailStatParams); +} + +std::string DescribeApplicationRequest::getLevel() const { + return level_; +} + +void DescribeApplicationRequest::setLevel(const std::string &level) { + level_ = level; + setParameter(std::string("Level"), level); +} + +std::string DescribeApplicationRequest::getAppId() const { + return appId_; +} + +void DescribeApplicationRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ens/src/model/DescribeApplicationResourceSummaryRequest.cc b/ens/src/model/DescribeApplicationResourceSummaryRequest.cc new file mode 100644 index 000000000..04a43d599 --- /dev/null +++ b/ens/src/model/DescribeApplicationResourceSummaryRequest.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 + +using AlibabaCloud::Ens::Model::DescribeApplicationResourceSummaryRequest; + +DescribeApplicationResourceSummaryRequest::DescribeApplicationResourceSummaryRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeApplicationResourceSummary") { + setMethod(HttpRequest::Method::Post); +} + +DescribeApplicationResourceSummaryRequest::~DescribeApplicationResourceSummaryRequest() {} + +std::string DescribeApplicationResourceSummaryRequest::getLevel() const { + return level_; +} + +void DescribeApplicationResourceSummaryRequest::setLevel(const std::string &level) { + level_ = level; + setParameter(std::string("Level"), level); +} + +std::string DescribeApplicationResourceSummaryRequest::getResourceType() const { + return resourceType_; +} + +void DescribeApplicationResourceSummaryRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + diff --git a/ens/src/model/DescribeApplicationResourceSummaryResult.cc b/ens/src/model/DescribeApplicationResourceSummaryResult.cc new file mode 100644 index 000000000..2d988fb34 --- /dev/null +++ b/ens/src/model/DescribeApplicationResourceSummaryResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeApplicationResourceSummaryResult::DescribeApplicationResourceSummaryResult() : + ServiceResult() +{} + +DescribeApplicationResourceSummaryResult::DescribeApplicationResourceSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApplicationResourceSummaryResult::~DescribeApplicationResourceSummaryResult() +{} + +void DescribeApplicationResourceSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ApplicationResource"].isNull()) + applicationResource_ = value["ApplicationResource"].asString(); + +} + +std::string DescribeApplicationResourceSummaryResult::getApplicationResource()const +{ + return applicationResource_; +} + diff --git a/ens/src/model/DescribeApplicationResult.cc b/ens/src/model/DescribeApplicationResult.cc new file mode 100644 index 000000000..75bb7955f --- /dev/null +++ b/ens/src/model/DescribeApplicationResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeApplicationResult::DescribeApplicationResult() : + ServiceResult() +{} + +DescribeApplicationResult::DescribeApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApplicationResult::~DescribeApplicationResult() +{} + +void DescribeApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Application"].isNull()) + application_ = value["Application"].asString(); + +} + +std::string DescribeApplicationResult::getApplication()const +{ + return application_; +} + diff --git a/ens/src/model/DescribeAvailableResourceInfoRequest.cc b/ens/src/model/DescribeAvailableResourceInfoRequest.cc new file mode 100644 index 000000000..ea6018fd4 --- /dev/null +++ b/ens/src/model/DescribeAvailableResourceInfoRequest.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 AlibabaCloud::Ens::Model::DescribeAvailableResourceInfoRequest; + +DescribeAvailableResourceInfoRequest::DescribeAvailableResourceInfoRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeAvailableResourceInfo") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAvailableResourceInfoRequest::~DescribeAvailableResourceInfoRequest() {} + diff --git a/ens/src/model/DescribeAvailableResourceInfoResult.cc b/ens/src/model/DescribeAvailableResourceInfoResult.cc new file mode 100644 index 000000000..bd299185a --- /dev/null +++ b/ens/src/model/DescribeAvailableResourceInfoResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeAvailableResourceInfoResult::DescribeAvailableResourceInfoResult() : + ServiceResult() +{} + +DescribeAvailableResourceInfoResult::DescribeAvailableResourceInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAvailableResourceInfoResult::~DescribeAvailableResourceInfoResult() +{} + +void DescribeAvailableResourceInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImagesNode = value["Images"]["Image"]; + for (auto valueImagesImage : allImagesNode) + { + Image imagesObject; + if(!valueImagesImage["ImageSize"].isNull()) + imagesObject.imageSize = std::stoi(valueImagesImage["ImageSize"].asString()); + if(!valueImagesImage["ImageName"].isNull()) + imagesObject.imageName = valueImagesImage["ImageName"].asString(); + if(!valueImagesImage["ImageId"].isNull()) + imagesObject.imageId = valueImagesImage["ImageId"].asString(); + images_.push_back(imagesObject); + } + auto allSupportResourcesNode = value["SupportResources"]["SupportResource"]; + for (auto valueSupportResourcesSupportResource : allSupportResourcesNode) + { + SupportResource supportResourcesObject; + if(!valueSupportResourcesSupportResource["DataDiskMaxSize"].isNull()) + supportResourcesObject.dataDiskMaxSize = std::stoi(valueSupportResourcesSupportResource["DataDiskMaxSize"].asString()); + if(!valueSupportResourcesSupportResource["SystemDiskMinSize"].isNull()) + supportResourcesObject.systemDiskMinSize = std::stoi(valueSupportResourcesSupportResource["SystemDiskMinSize"].asString()); + if(!valueSupportResourcesSupportResource["SystemDiskMaxSize"].isNull()) + supportResourcesObject.systemDiskMaxSize = std::stoi(valueSupportResourcesSupportResource["SystemDiskMaxSize"].asString()); + if(!valueSupportResourcesSupportResource["DataDiskMinSize"].isNull()) + supportResourcesObject.dataDiskMinSize = std::stoi(valueSupportResourcesSupportResource["DataDiskMinSize"].asString()); + auto allEnsRegionIdsExtendsNode = valueSupportResourcesSupportResource["EnsRegionIdsExtends"]["EnsRegionId"]; + for (auto valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId : allEnsRegionIdsExtendsNode) + { + SupportResource::EnsRegionId ensRegionIdsExtendsObject; + if(!valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["EnsRegionId"].isNull()) + ensRegionIdsExtendsObject.ensRegionId = valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["EnsRegionId"].asString(); + if(!valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["EnName"].isNull()) + ensRegionIdsExtendsObject.enName = valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["EnName"].asString(); + if(!valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["Area"].isNull()) + ensRegionIdsExtendsObject.area = valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["Area"].asString(); + if(!valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["Name"].isNull()) + ensRegionIdsExtendsObject.name = valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["Name"].asString(); + if(!valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["Province"].isNull()) + ensRegionIdsExtendsObject.province = valueSupportResourcesSupportResourceEnsRegionIdsExtendsEnsRegionId["Province"].asString(); + supportResourcesObject.ensRegionIdsExtends.push_back(ensRegionIdsExtendsObject); + } + auto allBandwidthTypes = value["BandwidthTypes"]["BandwidthType"]; + for (auto value : allBandwidthTypes) + supportResourcesObject.bandwidthTypes.push_back(value.asString()); + auto allEnsRegionIds = value["EnsRegionIds"]["EnsRegionId"]; + for (auto value : allEnsRegionIds) + supportResourcesObject.ensRegionIds.push_back(value.asString()); + auto allInstanceSpeces = value["InstanceSpeces"]["InstanceSpec"]; + for (auto value : allInstanceSpeces) + supportResourcesObject.instanceSpeces.push_back(value.asString()); + supportResources_.push_back(supportResourcesObject); + } + +} + +std::vector DescribeAvailableResourceInfoResult::getImages()const +{ + return images_; +} + +std::vector DescribeAvailableResourceInfoResult::getSupportResources()const +{ + return supportResources_; +} + diff --git a/ens/src/model/DescribeAvailableResourceRequest.cc b/ens/src/model/DescribeAvailableResourceRequest.cc new file mode 100644 index 000000000..75458fc46 --- /dev/null +++ b/ens/src/model/DescribeAvailableResourceRequest.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 AlibabaCloud::Ens::Model::DescribeAvailableResourceRequest; + +DescribeAvailableResourceRequest::DescribeAvailableResourceRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeAvailableResource") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest() {} + diff --git a/ens/src/model/DescribeAvailableResourceResult.cc b/ens/src/model/DescribeAvailableResourceResult.cc new file mode 100644 index 000000000..6f572ebae --- /dev/null +++ b/ens/src/model/DescribeAvailableResourceResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeAvailableResourceResult::DescribeAvailableResourceResult() : + ServiceResult() +{} + +DescribeAvailableResourceResult::DescribeAvailableResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAvailableResourceResult::~DescribeAvailableResourceResult() +{} + +void DescribeAvailableResourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImagesNode = value["Images"]["Image"]; + for (auto valueImagesImage : allImagesNode) + { + Image imagesObject; + if(!valueImagesImage["ImageId"].isNull()) + imagesObject.imageId = valueImagesImage["ImageId"].asString(); + if(!valueImagesImage["ImageName"].isNull()) + imagesObject.imageName = valueImagesImage["ImageName"].asString(); + images_.push_back(imagesObject); + } + auto allSupportResourcesNode = value["SupportResources"]["SupportResource"]; + for (auto valueSupportResourcesSupportResource : allSupportResourcesNode) + { + SupportResource supportResourcesObject; + if(!valueSupportResourcesSupportResource["DataDiskSize"].isNull()) + supportResourcesObject.dataDiskSize = valueSupportResourcesSupportResource["DataDiskSize"].asString(); + if(!valueSupportResourcesSupportResource["EnsRegionId"].isNull()) + supportResourcesObject.ensRegionId = valueSupportResourcesSupportResource["EnsRegionId"].asString(); + if(!valueSupportResourcesSupportResource["InstanceSpec"].isNull()) + supportResourcesObject.instanceSpec = valueSupportResourcesSupportResource["InstanceSpec"].asString(); + if(!valueSupportResourcesSupportResource["SupportResourcesCount"].isNull()) + supportResourcesObject.supportResourcesCount = valueSupportResourcesSupportResource["SupportResourcesCount"].asString(); + if(!valueSupportResourcesSupportResource["SystemDiskSize"].isNull()) + supportResourcesObject.systemDiskSize = valueSupportResourcesSupportResource["SystemDiskSize"].asString(); + supportResources_.push_back(supportResourcesObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +std::vector DescribeAvailableResourceResult::getImages()const +{ + return images_; +} + +std::vector DescribeAvailableResourceResult::getSupportResources()const +{ + return supportResources_; +} + +int DescribeAvailableResourceResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/DescribeBandWithdChargeTypeRequest.cc b/ens/src/model/DescribeBandWithdChargeTypeRequest.cc new file mode 100644 index 000000000..a8c73a8a6 --- /dev/null +++ b/ens/src/model/DescribeBandWithdChargeTypeRequest.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 AlibabaCloud::Ens::Model::DescribeBandWithdChargeTypeRequest; + +DescribeBandWithdChargeTypeRequest::DescribeBandWithdChargeTypeRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeBandWithdChargeType") { + setMethod(HttpRequest::Method::Post); +} + +DescribeBandWithdChargeTypeRequest::~DescribeBandWithdChargeTypeRequest() {} + diff --git a/ens/src/model/DescribeBandWithdChargeTypeResult.cc b/ens/src/model/DescribeBandWithdChargeTypeResult.cc new file mode 100644 index 000000000..877ed5986 --- /dev/null +++ b/ens/src/model/DescribeBandWithdChargeTypeResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeBandWithdChargeTypeResult::DescribeBandWithdChargeTypeResult() : + ServiceResult() +{} + +DescribeBandWithdChargeTypeResult::DescribeBandWithdChargeTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBandWithdChargeTypeResult::~DescribeBandWithdChargeTypeResult() +{} + +void DescribeBandWithdChargeTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["BandWithTypeInfo"].isNull()) + bandWithTypeInfo_ = value["BandWithTypeInfo"].asString(); + if(!value["ChargeContractType"].isNull()) + chargeContractType_ = value["ChargeContractType"].asString(); + if(!value["ChargeCycleInfo"].isNull()) + chargeCycleInfo_ = value["ChargeCycleInfo"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +std::string DescribeBandWithdChargeTypeResult::getBandWithTypeInfo()const +{ + return bandWithTypeInfo_; +} + +std::string DescribeBandWithdChargeTypeResult::getChargeCycleInfo()const +{ + return chargeCycleInfo_; +} + +int DescribeBandWithdChargeTypeResult::getCode()const +{ + return code_; +} + +std::string DescribeBandWithdChargeTypeResult::getChargeContractType()const +{ + return chargeContractType_; +} + diff --git a/ens/src/model/DescribeBandwitdhByInternetChargeTypeRequest.cc b/ens/src/model/DescribeBandwitdhByInternetChargeTypeRequest.cc new file mode 100644 index 000000000..63b77d56c --- /dev/null +++ b/ens/src/model/DescribeBandwitdhByInternetChargeTypeRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeBandwitdhByInternetChargeTypeRequest; + +DescribeBandwitdhByInternetChargeTypeRequest::DescribeBandwitdhByInternetChargeTypeRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeBandwitdhByInternetChargeType") { + setMethod(HttpRequest::Method::Post); +} + +DescribeBandwitdhByInternetChargeTypeRequest::~DescribeBandwitdhByInternetChargeTypeRequest() {} + +std::string DescribeBandwitdhByInternetChargeTypeRequest::getIsp() const { + return isp_; +} + +void DescribeBandwitdhByInternetChargeTypeRequest::setIsp(const std::string &isp) { + isp_ = isp; + setParameter(std::string("Isp"), isp); +} + +std::string DescribeBandwitdhByInternetChargeTypeRequest::getStartTime() const { + return startTime_; +} + +void DescribeBandwitdhByInternetChargeTypeRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeBandwitdhByInternetChargeTypeRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeBandwitdhByInternetChargeTypeRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string DescribeBandwitdhByInternetChargeTypeRequest::getEndTime() const { + return endTime_; +} + +void DescribeBandwitdhByInternetChargeTypeRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + diff --git a/ens/src/model/DescribeBandwitdhByInternetChargeTypeResult.cc b/ens/src/model/DescribeBandwitdhByInternetChargeTypeResult.cc new file mode 100644 index 000000000..60d1d59b7 --- /dev/null +++ b/ens/src/model/DescribeBandwitdhByInternetChargeTypeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeBandwitdhByInternetChargeTypeResult::DescribeBandwitdhByInternetChargeTypeResult() : + ServiceResult() +{} + +DescribeBandwitdhByInternetChargeTypeResult::DescribeBandwitdhByInternetChargeTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBandwitdhByInternetChargeTypeResult::~DescribeBandwitdhByInternetChargeTypeResult() +{} + +void DescribeBandwitdhByInternetChargeTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["BandwidthValue"].isNull()) + bandwidthValue_ = std::stol(value["BandwidthValue"].asString()); + if(!value["InternetChargeType"].isNull()) + internetChargeType_ = value["InternetChargeType"].asString(); + if(!value["TimeStamp"].isNull()) + timeStamp_ = value["TimeStamp"].asString(); + +} + +long DescribeBandwitdhByInternetChargeTypeResult::getBandwidthValue()const +{ + return bandwidthValue_; +} + +std::string DescribeBandwitdhByInternetChargeTypeResult::getTimeStamp()const +{ + return timeStamp_; +} + +std::string DescribeBandwitdhByInternetChargeTypeResult::getInternetChargeType()const +{ + return internetChargeType_; +} + diff --git a/ens/src/model/DescribeCloudDiskAvailableResourceInfoRequest.cc b/ens/src/model/DescribeCloudDiskAvailableResourceInfoRequest.cc new file mode 100644 index 000000000..1c5c12c1f --- /dev/null +++ b/ens/src/model/DescribeCloudDiskAvailableResourceInfoRequest.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 AlibabaCloud::Ens::Model::DescribeCloudDiskAvailableResourceInfoRequest; + +DescribeCloudDiskAvailableResourceInfoRequest::DescribeCloudDiskAvailableResourceInfoRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeCloudDiskAvailableResourceInfo") { + setMethod(HttpRequest::Method::Get); +} + +DescribeCloudDiskAvailableResourceInfoRequest::~DescribeCloudDiskAvailableResourceInfoRequest() {} + diff --git a/ens/src/model/DescribeCloudDiskAvailableResourceInfoResult.cc b/ens/src/model/DescribeCloudDiskAvailableResourceInfoResult.cc new file mode 100644 index 000000000..1b2573b28 --- /dev/null +++ b/ens/src/model/DescribeCloudDiskAvailableResourceInfoResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeCloudDiskAvailableResourceInfoResult::DescribeCloudDiskAvailableResourceInfoResult() : + ServiceResult() +{} + +DescribeCloudDiskAvailableResourceInfoResult::DescribeCloudDiskAvailableResourceInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCloudDiskAvailableResourceInfoResult::~DescribeCloudDiskAvailableResourceInfoResult() +{} + +void DescribeCloudDiskAvailableResourceInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSupportResourcesNode = value["SupportResources"]["SupportResource"]; + for (auto valueSupportResourcesSupportResource : allSupportResourcesNode) + { + SupportResource supportResourcesObject; + if(!valueSupportResourcesSupportResource["EnsRegionId"].isNull()) + supportResourcesObject.ensRegionId = valueSupportResourcesSupportResource["EnsRegionId"].asString(); + if(!valueSupportResourcesSupportResource["EnsRegionName"].isNull()) + supportResourcesObject.ensRegionName = valueSupportResourcesSupportResource["EnsRegionName"].asString(); + if(!valueSupportResourcesSupportResource["DiskMinSize"].isNull()) + supportResourcesObject.diskMinSize = std::stol(valueSupportResourcesSupportResource["DiskMinSize"].asString()); + if(!valueSupportResourcesSupportResource["DiskMaxSize"].isNull()) + supportResourcesObject.diskMaxSize = std::stol(valueSupportResourcesSupportResource["DiskMaxSize"].asString()); + if(!valueSupportResourcesSupportResource["CanBuyCount"].isNull()) + supportResourcesObject.canBuyCount = std::stol(valueSupportResourcesSupportResource["CanBuyCount"].asString()); + if(!valueSupportResourcesSupportResource["Category"].isNull()) + supportResourcesObject.category = valueSupportResourcesSupportResource["Category"].asString(); + if(!valueSupportResourcesSupportResource["DefaultDiskSize"].isNull()) + supportResourcesObject.defaultDiskSize = std::stol(valueSupportResourcesSupportResource["DefaultDiskSize"].asString()); + supportResources_.push_back(supportResourcesObject); + } + +} + +std::vector DescribeCloudDiskAvailableResourceInfoResult::getSupportResources()const +{ + return supportResources_; +} + diff --git a/ens/src/model/DescribeCloudDiskTypesRequest.cc b/ens/src/model/DescribeCloudDiskTypesRequest.cc new file mode 100644 index 000000000..400a8cc78 --- /dev/null +++ b/ens/src/model/DescribeCloudDiskTypesRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeCloudDiskTypesRequest; + +DescribeCloudDiskTypesRequest::DescribeCloudDiskTypesRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeCloudDiskTypes") { + setMethod(HttpRequest::Method::Get); +} + +DescribeCloudDiskTypesRequest::~DescribeCloudDiskTypesRequest() {} + +std::string DescribeCloudDiskTypesRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeCloudDiskTypesRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + diff --git a/ens/src/model/DescribeCloudDiskTypesResult.cc b/ens/src/model/DescribeCloudDiskTypesResult.cc new file mode 100644 index 000000000..2f8b0f995 --- /dev/null +++ b/ens/src/model/DescribeCloudDiskTypesResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeCloudDiskTypesResult::DescribeCloudDiskTypesResult() : + ServiceResult() +{} + +DescribeCloudDiskTypesResult::DescribeCloudDiskTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCloudDiskTypesResult::~DescribeCloudDiskTypesResult() +{} + +void DescribeCloudDiskTypesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSupportResourcesNode = value["SupportResources"]["SupportResource"]; + for (auto valueSupportResourcesSupportResource : allSupportResourcesNode) + { + SupportResource supportResourcesObject; + if(!valueSupportResourcesSupportResource["Category"].isNull()) + supportResourcesObject.category = valueSupportResourcesSupportResource["Category"].asString(); + if(!valueSupportResourcesSupportResource["EnsRegionId"].isNull()) + supportResourcesObject.ensRegionId = valueSupportResourcesSupportResource["EnsRegionId"].asString(); + supportResources_.push_back(supportResourcesObject); + } + +} + +std::vector DescribeCloudDiskTypesResult::getSupportResources()const +{ + return supportResources_; +} + diff --git a/ens/src/model/DescribeCreatePrePaidInstanceResultRequest.cc b/ens/src/model/DescribeCreatePrePaidInstanceResultRequest.cc new file mode 100644 index 000000000..34c273c25 --- /dev/null +++ b/ens/src/model/DescribeCreatePrePaidInstanceResultRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeCreatePrePaidInstanceResultRequest; + +DescribeCreatePrePaidInstanceResultRequest::DescribeCreatePrePaidInstanceResultRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeCreatePrePaidInstanceResult") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCreatePrePaidInstanceResultRequest::~DescribeCreatePrePaidInstanceResultRequest() {} + +std::string DescribeCreatePrePaidInstanceResultRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeCreatePrePaidInstanceResultRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/DescribeCreatePrePaidInstanceResultResult.cc b/ens/src/model/DescribeCreatePrePaidInstanceResultResult.cc new file mode 100644 index 000000000..d8882fa00 --- /dev/null +++ b/ens/src/model/DescribeCreatePrePaidInstanceResultResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeCreatePrePaidInstanceResultResult::DescribeCreatePrePaidInstanceResultResult() : + ServiceResult() +{} + +DescribeCreatePrePaidInstanceResultResult::DescribeCreatePrePaidInstanceResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCreatePrePaidInstanceResultResult::~DescribeCreatePrePaidInstanceResultResult() +{} + +void DescribeCreatePrePaidInstanceResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto instanceCreateResultNode = value["InstanceCreateResult"]; + if(!instanceCreateResultNode["InstanceCreateStatus"].isNull()) + instanceCreateResult_.instanceCreateStatus = instanceCreateResultNode["InstanceCreateStatus"].asString(); + if(!instanceCreateResultNode["InstanceId"].isNull()) + instanceCreateResult_.instanceId = instanceCreateResultNode["InstanceId"].asString(); + +} + +DescribeCreatePrePaidInstanceResultResult::InstanceCreateResult DescribeCreatePrePaidInstanceResultResult::getInstanceCreateResult()const +{ + return instanceCreateResult_; +} + diff --git a/ens/src/model/DescribeDataDistResultRequest.cc b/ens/src/model/DescribeDataDistResultRequest.cc new file mode 100644 index 000000000..1505c2013 --- /dev/null +++ b/ens/src/model/DescribeDataDistResultRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeDataDistResultRequest; + +DescribeDataDistResultRequest::DescribeDataDistResultRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeDataDistResult") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDataDistResultRequest::~DescribeDataDistResultRequest() {} + +std::string DescribeDataDistResultRequest::getDataVersions() const { + return dataVersions_; +} + +void DescribeDataDistResultRequest::setDataVersions(const std::string &dataVersions) { + dataVersions_ = dataVersions; + setParameter(std::string("DataVersions"), dataVersions); +} + +std::string DescribeDataDistResultRequest::getInstanceIds() const { + return instanceIds_; +} + +void DescribeDataDistResultRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); +} + +std::string DescribeDataDistResultRequest::getMaxDate() const { + return maxDate_; +} + +void DescribeDataDistResultRequest::setMaxDate(const std::string &maxDate) { + maxDate_ = maxDate; + setParameter(std::string("MaxDate"), maxDate); +} + +int DescribeDataDistResultRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDataDistResultRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int DescribeDataDistResultRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDataDistResultRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeDataDistResultRequest::getMinDate() const { + return minDate_; +} + +void DescribeDataDistResultRequest::setMinDate(const std::string &minDate) { + minDate_ = minDate; + setParameter(std::string("MinDate"), minDate); +} + +std::string DescribeDataDistResultRequest::getAppId() const { + return appId_; +} + +void DescribeDataDistResultRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string DescribeDataDistResultRequest::getDataNames() const { + return dataNames_; +} + +void DescribeDataDistResultRequest::setDataNames(const std::string &dataNames) { + dataNames_ = dataNames; + setParameter(std::string("DataNames"), dataNames); +} + diff --git a/ens/src/model/DescribeDataDistResultResult.cc b/ens/src/model/DescribeDataDistResultResult.cc new file mode 100644 index 000000000..e11dc45bd --- /dev/null +++ b/ens/src/model/DescribeDataDistResultResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeDataDistResultResult::DescribeDataDistResultResult() : + ServiceResult() +{} + +DescribeDataDistResultResult::DescribeDataDistResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataDistResultResult::~DescribeDataDistResultResult() +{} + +void DescribeDataDistResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDistResultsNode = value["DistResults"]["DistResult"]; + for (auto valueDistResultsDistResult : allDistResultsNode) + { + DistResult distResultsObject; + if(!valueDistResultsDistResult["Name"].isNull()) + distResultsObject.name = valueDistResultsDistResult["Name"].asString(); + if(!valueDistResultsDistResult["Version"].isNull()) + distResultsObject.version = valueDistResultsDistResult["Version"].asString(); + auto allStatusStatsNode = valueDistResultsDistResult["StatusStats"]["StatusStat"]; + for (auto valueDistResultsDistResultStatusStatsStatusStat : allStatusStatsNode) + { + DistResult::StatusStat statusStatsObject; + if(!valueDistResultsDistResultStatusStatsStatusStat["InstanceCount"].isNull()) + statusStatsObject.instanceCount = valueDistResultsDistResultStatusStatsStatusStat["InstanceCount"].asString(); + if(!valueDistResultsDistResultStatusStatsStatusStat["Status"].isNull()) + statusStatsObject.status = valueDistResultsDistResultStatusStatsStatusStat["Status"].asString(); + auto allInstancesNode = valueDistResultsDistResultStatusStatsStatusStat["Instances"]["Instance"]; + for (auto valueDistResultsDistResultStatusStatsStatusStatInstancesInstance : allInstancesNode) + { + DistResult::StatusStat::Instance instancesObject; + if(!valueDistResultsDistResultStatusStatsStatusStatInstancesInstance["InstanceId"].isNull()) + instancesObject.instanceId = valueDistResultsDistResultStatusStatsStatusStatInstancesInstance["InstanceId"].asString(); + if(!valueDistResultsDistResultStatusStatsStatusStatInstancesInstance["StartTime"].isNull()) + instancesObject.startTime = valueDistResultsDistResultStatusStatsStatusStatInstancesInstance["StartTime"].asString(); + if(!valueDistResultsDistResultStatusStatsStatusStatInstancesInstance["StatusDescrip"].isNull()) + instancesObject.statusDescrip = valueDistResultsDistResultStatusStatsStatusStatInstancesInstance["StatusDescrip"].asString(); + if(!valueDistResultsDistResultStatusStatsStatusStatInstancesInstance["UpdateTime"].isNull()) + instancesObject.updateTime = valueDistResultsDistResultStatusStatsStatusStatInstancesInstance["UpdateTime"].asString(); + statusStatsObject.instances.push_back(instancesObject); + } + distResultsObject.statusStats.push_back(statusStatsObject); + } + distResults_.push_back(distResultsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeDataDistResultResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDataDistResultResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDataDistResultResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeDataDistResultResult::getDistResults()const +{ + return distResults_; +} + diff --git a/ens/src/model/DescribeDataDownloadURLRequest.cc b/ens/src/model/DescribeDataDownloadURLRequest.cc new file mode 100644 index 000000000..bad9beefd --- /dev/null +++ b/ens/src/model/DescribeDataDownloadURLRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeDataDownloadURLRequest; + +DescribeDataDownloadURLRequest::DescribeDataDownloadURLRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeDataDownloadURL") { + setMethod(HttpRequest::Method::Get); +} + +DescribeDataDownloadURLRequest::~DescribeDataDownloadURLRequest() {} + +long DescribeDataDownloadURLRequest::getExpireTimeout() const { + return expireTimeout_; +} + +void DescribeDataDownloadURLRequest::setExpireTimeout(long expireTimeout) { + expireTimeout_ = expireTimeout; + setParameter(std::string("ExpireTimeout"), std::to_string(expireTimeout)); +} + +std::string DescribeDataDownloadURLRequest::getServerFilterStrategy() const { + return serverFilterStrategy_; +} + +void DescribeDataDownloadURLRequest::setServerFilterStrategy(const std::string &serverFilterStrategy) { + serverFilterStrategy_ = serverFilterStrategy; + setParameter(std::string("ServerFilterStrategy"), serverFilterStrategy); +} + +std::string DescribeDataDownloadURLRequest::getDataName() const { + return dataName_; +} + +void DescribeDataDownloadURLRequest::setDataName(const std::string &dataName) { + dataName_ = dataName; + setParameter(std::string("DataName"), dataName); +} + +std::string DescribeDataDownloadURLRequest::getDataVersion() const { + return dataVersion_; +} + +void DescribeDataDownloadURLRequest::setDataVersion(const std::string &dataVersion) { + dataVersion_ = dataVersion; + setParameter(std::string("DataVersion"), dataVersion); +} + +std::string DescribeDataDownloadURLRequest::getAppId() const { + return appId_; +} + +void DescribeDataDownloadURLRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ens/src/model/DescribeDataDownloadURLResult.cc b/ens/src/model/DescribeDataDownloadURLResult.cc new file mode 100644 index 000000000..867a08f6d --- /dev/null +++ b/ens/src/model/DescribeDataDownloadURLResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeDataDownloadURLResult::DescribeDataDownloadURLResult() : + ServiceResult() +{} + +DescribeDataDownloadURLResult::DescribeDataDownloadURLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataDownloadURLResult::~DescribeDataDownloadURLResult() +{} + +void DescribeDataDownloadURLResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["Url"].isNull()) + data_.url = dataNode["Url"].asString(); + if(!dataNode["ExpireTime"].isNull()) + data_.expireTime = dataNode["ExpireTime"].asString(); + auto allServerListNode = dataNode["ServerList"]["ServerListItem"]; + for (auto dataNodeServerListServerListItem : allServerListNode) + { + Data::ServerListItem serverListItemObject; + if(!dataNodeServerListServerListItem["Host"].isNull()) + serverListItemObject.host = dataNodeServerListServerListItem["Host"].asString(); + if(!dataNodeServerListServerListItem["RegionId"].isNull()) + serverListItemObject.regionId = dataNodeServerListServerListItem["RegionId"].asString(); + data_.serverList.push_back(serverListItemObject); + } + if(!value["Code"].isNull()) + code_ = std::stol(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeDataDownloadURLResult::getMessage()const +{ + return message_; +} + +DescribeDataDownloadURLResult::Data DescribeDataDownloadURLResult::getData()const +{ + return data_; +} + +long DescribeDataDownloadURLResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/DescribeDataPushResultRequest.cc b/ens/src/model/DescribeDataPushResultRequest.cc new file mode 100644 index 000000000..20ffdc577 --- /dev/null +++ b/ens/src/model/DescribeDataPushResultRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeDataPushResultRequest; + +DescribeDataPushResultRequest::DescribeDataPushResultRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeDataPushResult") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDataPushResultRequest::~DescribeDataPushResultRequest() {} + +std::string DescribeDataPushResultRequest::getRegionIds() const { + return regionIds_; +} + +void DescribeDataPushResultRequest::setRegionIds(const std::string ®ionIds) { + regionIds_ = regionIds; + setParameter(std::string("RegionIds"), regionIds); +} + +std::string DescribeDataPushResultRequest::getDataVersions() const { + return dataVersions_; +} + +void DescribeDataPushResultRequest::setDataVersions(const std::string &dataVersions) { + dataVersions_ = dataVersions; + setParameter(std::string("DataVersions"), dataVersions); +} + +std::string DescribeDataPushResultRequest::getMaxDate() const { + return maxDate_; +} + +void DescribeDataPushResultRequest::setMaxDate(const std::string &maxDate) { + maxDate_ = maxDate; + setParameter(std::string("MaxDate"), maxDate); +} + +int DescribeDataPushResultRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDataPushResultRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int DescribeDataPushResultRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDataPushResultRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeDataPushResultRequest::getMinDate() const { + return minDate_; +} + +void DescribeDataPushResultRequest::setMinDate(const std::string &minDate) { + minDate_ = minDate; + setParameter(std::string("MinDate"), minDate); +} + +std::string DescribeDataPushResultRequest::getAppId() const { + return appId_; +} + +void DescribeDataPushResultRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string DescribeDataPushResultRequest::getDataNames() const { + return dataNames_; +} + +void DescribeDataPushResultRequest::setDataNames(const std::string &dataNames) { + dataNames_ = dataNames; + setParameter(std::string("DataNames"), dataNames); +} + diff --git a/ens/src/model/DescribeDataPushResultResult.cc b/ens/src/model/DescribeDataPushResultResult.cc new file mode 100644 index 000000000..2bf4be7f1 --- /dev/null +++ b/ens/src/model/DescribeDataPushResultResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeDataPushResultResult::DescribeDataPushResultResult() : + ServiceResult() +{} + +DescribeDataPushResultResult::DescribeDataPushResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDataPushResultResult::~DescribeDataPushResultResult() +{} + +void DescribeDataPushResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPushResultsNode = value["PushResults"]["PushResult"]; + for (auto valuePushResultsPushResult : allPushResultsNode) + { + PushResult pushResultsObject; + if(!valuePushResultsPushResult["Name"].isNull()) + pushResultsObject.name = valuePushResultsPushResult["Name"].asString(); + if(!valuePushResultsPushResult["Version"].isNull()) + pushResultsObject.version = valuePushResultsPushResult["Version"].asString(); + auto allStatusStatSNode = valuePushResultsPushResult["StatusStatS"]["StatusStat"]; + for (auto valuePushResultsPushResultStatusStatSStatusStat : allStatusStatSNode) + { + PushResult::StatusStat statusStatSObject; + if(!valuePushResultsPushResultStatusStatSStatusStat["RegionIdCount"].isNull()) + statusStatSObject.regionIdCount = std::stoi(valuePushResultsPushResultStatusStatSStatusStat["RegionIdCount"].asString()); + if(!valuePushResultsPushResultStatusStatSStatusStat["Status"].isNull()) + statusStatSObject.status = valuePushResultsPushResultStatusStatSStatusStat["Status"].asString(); + auto allRegionIdsNode = valuePushResultsPushResultStatusStatSStatusStat["RegionIds"]["RegionId"]; + for (auto valuePushResultsPushResultStatusStatSStatusStatRegionIdsRegionId : allRegionIdsNode) + { + PushResult::StatusStat::RegionId regionIdsObject; + if(!valuePushResultsPushResultStatusStatSStatusStatRegionIdsRegionId["RegionId"].isNull()) + regionIdsObject.regionId = valuePushResultsPushResultStatusStatSStatusStatRegionIdsRegionId["RegionId"].asString(); + if(!valuePushResultsPushResultStatusStatSStatusStatRegionIdsRegionId["StartTime"].isNull()) + regionIdsObject.startTime = valuePushResultsPushResultStatusStatSStatusStatRegionIdsRegionId["StartTime"].asString(); + if(!valuePushResultsPushResultStatusStatSStatusStatRegionIdsRegionId["StatusDescrip"].isNull()) + regionIdsObject.statusDescrip = valuePushResultsPushResultStatusStatSStatusStatRegionIdsRegionId["StatusDescrip"].asString(); + if(!valuePushResultsPushResultStatusStatSStatusStatRegionIdsRegionId["UpdateTime"].isNull()) + regionIdsObject.updateTime = valuePushResultsPushResultStatusStatSStatusStatRegionIdsRegionId["UpdateTime"].asString(); + statusStatSObject.regionIds.push_back(regionIdsObject); + } + pushResultsObject.statusStatS.push_back(statusStatSObject); + } + pushResults_.push_back(pushResultsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeDataPushResultResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDataPushResultResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDataPushResultResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeDataPushResultResult::getPushResults()const +{ + return pushResults_; +} + diff --git a/ens/src/model/DescribeDeviceServiceRequest.cc b/ens/src/model/DescribeDeviceServiceRequest.cc new file mode 100644 index 000000000..de4658ee6 --- /dev/null +++ b/ens/src/model/DescribeDeviceServiceRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeDeviceServiceRequest; + +DescribeDeviceServiceRequest::DescribeDeviceServiceRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeDeviceService") { + setMethod(HttpRequest::Method::Get); +} + +DescribeDeviceServiceRequest::~DescribeDeviceServiceRequest() {} + +std::string DescribeDeviceServiceRequest::getRegionId() const { + return regionId_; +} + +void DescribeDeviceServiceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDeviceServiceRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeDeviceServiceRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string DescribeDeviceServiceRequest::getOrderId() const { + return orderId_; +} + +void DescribeDeviceServiceRequest::setOrderId(const std::string &orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), orderId); +} + +std::string DescribeDeviceServiceRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeDeviceServiceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string DescribeDeviceServiceRequest::getAppId() const { + return appId_; +} + +void DescribeDeviceServiceRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string DescribeDeviceServiceRequest::getServiceId() const { + return serviceId_; +} + +void DescribeDeviceServiceRequest::setServiceId(const std::string &serviceId) { + serviceId_ = serviceId; + setParameter(std::string("ServiceId"), serviceId); +} + diff --git a/ens/src/model/DescribeDeviceServiceResult.cc b/ens/src/model/DescribeDeviceServiceResult.cc new file mode 100644 index 000000000..b99273ffb --- /dev/null +++ b/ens/src/model/DescribeDeviceServiceResult.cc @@ -0,0 +1,176 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeDeviceServiceResult::DescribeDeviceServiceResult() : + ServiceResult() +{} + +DescribeDeviceServiceResult::DescribeDeviceServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDeviceServiceResult::~DescribeDeviceServiceResult() +{} + +void DescribeDeviceServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResourceDetailInfosNode = value["ResourceDetailInfos"]["DeviceInfo"]; + for (auto valueResourceDetailInfosDeviceInfo : allResourceDetailInfosNode) + { + DeviceInfo resourceDetailInfosObject; + if(!valueResourceDetailInfosDeviceInfo["RegionID"].isNull()) + resourceDetailInfosObject.regionID = valueResourceDetailInfosDeviceInfo["RegionID"].asString(); + if(!valueResourceDetailInfosDeviceInfo["ID"].isNull()) + resourceDetailInfosObject.iD = valueResourceDetailInfosDeviceInfo["ID"].asString(); + if(!valueResourceDetailInfosDeviceInfo["IP"].isNull()) + resourceDetailInfosObject.iP = valueResourceDetailInfosDeviceInfo["IP"].asString(); + if(!valueResourceDetailInfosDeviceInfo["Server"].isNull()) + resourceDetailInfosObject.server = valueResourceDetailInfosDeviceInfo["Server"].asString(); + if(!valueResourceDetailInfosDeviceInfo["Status"].isNull()) + resourceDetailInfosObject.status = valueResourceDetailInfosDeviceInfo["Status"].asString(); + if(!valueResourceDetailInfosDeviceInfo["Type"].isNull()) + resourceDetailInfosObject.type = valueResourceDetailInfosDeviceInfo["Type"].asString(); + if(!valueResourceDetailInfosDeviceInfo["Mac"].isNull()) + resourceDetailInfosObject.mac = valueResourceDetailInfosDeviceInfo["Mac"].asString(); + if(!valueResourceDetailInfosDeviceInfo["ISP"].isNull()) + resourceDetailInfosObject.iSP = valueResourceDetailInfosDeviceInfo["ISP"].asString(); + if(!valueResourceDetailInfosDeviceInfo["DeviceName"].isNull()) + resourceDetailInfosObject.deviceName = valueResourceDetailInfosDeviceInfo["DeviceName"].asString(); + if(!valueResourceDetailInfosDeviceInfo["ImageID"].isNull()) + resourceDetailInfosObject.imageID = valueResourceDetailInfosDeviceInfo["ImageID"].asString(); + resourceDetailInfos_.push_back(resourceDetailInfosObject); + } + auto allResourceInfosNode = value["ResourceInfos"]["ResourceInfosItem"]; + for (auto valueResourceInfosResourceInfosItem : allResourceInfosNode) + { + ResourceInfosItem resourceInfosObject; + if(!valueResourceInfosResourceInfosItem["AppVersion"].isNull()) + resourceInfosObject.appVersion = valueResourceInfosResourceInfosItem["AppVersion"].asString(); + if(!valueResourceInfosResourceInfosItem["AreaCode"].isNull()) + resourceInfosObject.areaCode = valueResourceInfosResourceInfosItem["AreaCode"].asString(); + if(!valueResourceInfosResourceInfosItem["AreaName"].isNull()) + resourceInfosObject.areaName = valueResourceInfosResourceInfosItem["AreaName"].asString(); + if(!valueResourceInfosResourceInfosItem["CreateTime"].isNull()) + resourceInfosObject.createTime = valueResourceInfosResourceInfosItem["CreateTime"].asString(); + if(!valueResourceInfosResourceInfosItem["InstanceId"].isNull()) + resourceInfosObject.instanceId = valueResourceInfosResourceInfosItem["InstanceId"].asString(); + if(!valueResourceInfosResourceInfosItem["InstanceStatus"].isNull()) + resourceInfosObject.instanceStatus = valueResourceInfosResourceInfosItem["InstanceStatus"].asString(); + if(!valueResourceInfosResourceInfosItem["RegionCode"].isNull()) + resourceInfosObject.regionCode = valueResourceInfosResourceInfosItem["RegionCode"].asString(); + if(!valueResourceInfosResourceInfosItem["RegionId"].isNull()) + resourceInfosObject.regionId = valueResourceInfosResourceInfosItem["RegionId"].asString(); + if(!valueResourceInfosResourceInfosItem["RegionName"].isNull()) + resourceInfosObject.regionName = valueResourceInfosResourceInfosItem["RegionName"].asString(); + auto allDeviceInfosNode = valueResourceInfosResourceInfosItem["DeviceInfos"]["DeviceInfosItem"]; + for (auto valueResourceInfosResourceInfosItemDeviceInfosDeviceInfosItem : allDeviceInfosNode) + { + ResourceInfosItem::DeviceInfosItem deviceInfosObject; + if(!valueResourceInfosResourceInfosItemDeviceInfosDeviceInfosItem["Name"].isNull()) + deviceInfosObject.name = valueResourceInfosResourceInfosItemDeviceInfosDeviceInfosItem["Name"].asString(); + if(!valueResourceInfosResourceInfosItemDeviceInfosDeviceInfosItem["Status"].isNull()) + deviceInfosObject.status = valueResourceInfosResourceInfosItemDeviceInfosDeviceInfosItem["Status"].asString(); + auto allNetworkNode = valueResourceInfosResourceInfosItemDeviceInfosDeviceInfosItem["Network"]["Ports"]; + for (auto valueResourceInfosResourceInfosItemDeviceInfosDeviceInfosItemNetworkPorts : allNetworkNode) + { + ResourceInfosItem::DeviceInfosItem::Ports networkObject; + if(!valueResourceInfosResourceInfosItemDeviceInfosDeviceInfosItemNetworkPorts["ContainerPorts"].isNull()) + networkObject.containerPorts = valueResourceInfosResourceInfosItemDeviceInfosDeviceInfosItemNetworkPorts["ContainerPorts"].asString(); + if(!valueResourceInfosResourceInfosItemDeviceInfosDeviceInfosItemNetworkPorts["ExternalIp"].isNull()) + networkObject.externalIp = valueResourceInfosResourceInfosItemDeviceInfosDeviceInfosItemNetworkPorts["ExternalIp"].asString(); + if(!valueResourceInfosResourceInfosItemDeviceInfosDeviceInfosItemNetworkPorts["HostPorts"].isNull()) + networkObject.hostPorts = valueResourceInfosResourceInfosItemDeviceInfosDeviceInfosItemNetworkPorts["HostPorts"].asString(); + if(!valueResourceInfosResourceInfosItemDeviceInfosDeviceInfosItemNetworkPorts["Protocol"].isNull()) + networkObject.protocol = valueResourceInfosResourceInfosItemDeviceInfosDeviceInfosItemNetworkPorts["Protocol"].asString(); + deviceInfosObject.network.push_back(networkObject); + } + resourceInfosObject.deviceInfos.push_back(deviceInfosObject); + } + auto allInternalIpsNode = valueResourceInfosResourceInfosItem["InternalIps"]["InternalIpsItem"]; + for (auto valueResourceInfosResourceInfosItemInternalIpsInternalIpsItem : allInternalIpsNode) + { + ResourceInfosItem::InternalIpsItem internalIpsObject; + if(!valueResourceInfosResourceInfosItemInternalIpsInternalIpsItem["Ip"].isNull()) + internalIpsObject.ip = valueResourceInfosResourceInfosItemInternalIpsInternalIpsItem["Ip"].asString(); + resourceInfosObject.internalIps.push_back(internalIpsObject); + } + auto allPublicIpsNode = valueResourceInfosResourceInfosItem["PublicIps"]["PublicIpsItem"]; + for (auto valueResourceInfosResourceInfosItemPublicIpsPublicIpsItem : allPublicIpsNode) + { + ResourceInfosItem::PublicIpsItem publicIpsObject; + if(!valueResourceInfosResourceInfosItemPublicIpsPublicIpsItem["Ip"].isNull()) + publicIpsObject.ip = valueResourceInfosResourceInfosItemPublicIpsPublicIpsItem["Ip"].asString(); + resourceInfosObject.publicIps.push_back(publicIpsObject); + } + resourceInfos_.push_back(resourceInfosObject); + } + auto appStatusNode = value["AppStatus"]; + if(!appStatusNode["Phase"].isNull()) + appStatus_.phase = appStatusNode["Phase"].asString(); + if(!appStatusNode["StatusDescrip"].isNull()) + appStatus_.statusDescrip = appStatusNode["StatusDescrip"].asString(); + if(!appStatusNode["UpdateTime"].isNull()) + appStatus_.updateTime = appStatusNode["UpdateTime"].asString(); + auto appMetaDataNode = value["AppMetaData"]; + if(!appMetaDataNode["AppId"].isNull()) + appMetaData_.appId = appMetaDataNode["AppId"].asString(); + if(!appMetaDataNode["AppName"].isNull()) + appMetaData_.appName = appMetaDataNode["AppName"].asString(); + if(!appMetaDataNode["AppStableVersion"].isNull()) + appMetaData_.appStableVersion = appMetaDataNode["AppStableVersion"].asString(); + if(!appMetaDataNode["AppType"].isNull()) + appMetaData_.appType = appMetaDataNode["AppType"].asString(); + if(!appMetaDataNode["ClusterName"].isNull()) + appMetaData_.clusterName = appMetaDataNode["ClusterName"].asString(); + if(!appMetaDataNode["CreateTime"].isNull()) + appMetaData_.createTime = appMetaDataNode["CreateTime"].asString(); + if(!appMetaDataNode["Description"].isNull()) + appMetaData_.description = appMetaDataNode["Description"].asString(); + +} + +DescribeDeviceServiceResult::AppStatus DescribeDeviceServiceResult::getAppStatus()const +{ + return appStatus_; +} + +DescribeDeviceServiceResult::AppMetaData DescribeDeviceServiceResult::getAppMetaData()const +{ + return appMetaData_; +} + +std::vector DescribeDeviceServiceResult::getResourceDetailInfos()const +{ + return resourceDetailInfos_; +} + +std::vector DescribeDeviceServiceResult::getResourceInfos()const +{ + return resourceInfos_; +} + diff --git a/ens/src/model/DescribeDisksRequest.cc b/ens/src/model/DescribeDisksRequest.cc new file mode 100644 index 000000000..866b3f5ac --- /dev/null +++ b/ens/src/model/DescribeDisksRequest.cc @@ -0,0 +1,144 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeDisksRequest; + +DescribeDisksRequest::DescribeDisksRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeDisks") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDisksRequest::~DescribeDisksRequest() {} + +std::string DescribeDisksRequest::getType() const { + return type_; +} + +void DescribeDisksRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string DescribeDisksRequest::getOrderByParams() const { + return orderByParams_; +} + +void DescribeDisksRequest::setOrderByParams(const std::string &orderByParams) { + orderByParams_ = orderByParams; + setParameter(std::string("OrderByParams"), orderByParams); +} + +std::string DescribeDisksRequest::getDiskName() const { + return diskName_; +} + +void DescribeDisksRequest::setDiskName(const std::string &diskName) { + diskName_ = diskName; + setParameter(std::string("DiskName"), diskName); +} + +std::string DescribeDisksRequest::getDiskChargeType() const { + return diskChargeType_; +} + +void DescribeDisksRequest::setDiskChargeType(const std::string &diskChargeType) { + diskChargeType_ = diskChargeType; + setParameter(std::string("DiskChargeType"), diskChargeType); +} + +std::string DescribeDisksRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeDisksRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string DescribeDisksRequest::getStatus() const { + return status_; +} + +void DescribeDisksRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + +std::string DescribeDisksRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDisksRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); +} + +std::string DescribeDisksRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDisksRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string DescribeDisksRequest::getDiskIds() const { + return diskIds_; +} + +void DescribeDisksRequest::setDiskIds(const std::string &diskIds) { + diskIds_ = diskIds; + setParameter(std::string("DiskIds"), diskIds); +} + +std::string DescribeDisksRequest::getDiskId() const { + return diskId_; +} + +void DescribeDisksRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); +} + +std::string DescribeDisksRequest::getEnsRegionIds() const { + return ensRegionIds_; +} + +void DescribeDisksRequest::setEnsRegionIds(const std::string &ensRegionIds) { + ensRegionIds_ = ensRegionIds; + setParameter(std::string("EnsRegionIds"), ensRegionIds); +} + +std::string DescribeDisksRequest::getDiskType() const { + return diskType_; +} + +void DescribeDisksRequest::setDiskType(const std::string &diskType) { + diskType_ = diskType; + setParameter(std::string("DiskType"), diskType); +} + +std::string DescribeDisksRequest::getCategory() const { + return category_; +} + +void DescribeDisksRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); +} + diff --git a/ens/src/model/DescribeDisksResult.cc b/ens/src/model/DescribeDisksResult.cc new file mode 100644 index 000000000..17b37cf34 --- /dev/null +++ b/ens/src/model/DescribeDisksResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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 allDisksNode = value["Disks"]["DisksItem"]; + for (auto valueDisksDisksItem : allDisksNode) + { + DisksItem disksObject; + if(!valueDisksDisksItem["Category"].isNull()) + disksObject.category = valueDisksDisksItem["Category"].asString(); + if(!valueDisksDisksItem["CreationTime"].isNull()) + disksObject.creationTime = valueDisksDisksItem["CreationTime"].asString(); + if(!valueDisksDisksItem["DiskChargeType"].isNull()) + disksObject.diskChargeType = valueDisksDisksItem["DiskChargeType"].asString(); + if(!valueDisksDisksItem["DiskId"].isNull()) + disksObject.diskId = valueDisksDisksItem["DiskId"].asString(); + if(!valueDisksDisksItem["DiskName"].isNull()) + disksObject.diskName = valueDisksDisksItem["DiskName"].asString(); + if(!valueDisksDisksItem["EnsRegionId"].isNull()) + disksObject.ensRegionId = valueDisksDisksItem["EnsRegionId"].asString(); + if(!valueDisksDisksItem["InstanceId"].isNull()) + disksObject.instanceId = valueDisksDisksItem["InstanceId"].asString(); + if(!valueDisksDisksItem["InstanceName"].isNull()) + disksObject.instanceName = valueDisksDisksItem["InstanceName"].asString(); + if(!valueDisksDisksItem["Size"].isNull()) + disksObject.size = std::stoi(valueDisksDisksItem["Size"].asString()); + if(!valueDisksDisksItem["Status"].isNull()) + disksObject.status = valueDisksDisksItem["Status"].asString(); + if(!valueDisksDisksItem["Type"].isNull()) + disksObject.type = valueDisksDisksItem["Type"].asString(); + if(!valueDisksDisksItem["Portable"].isNull()) + disksObject.portable = valueDisksDisksItem["Portable"].asString() == "true"; + disks_.push_back(disksObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeDisksResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeDisksResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDisksResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeDisksResult::getDisks()const +{ + return disks_; +} + +int DescribeDisksResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/DescribeEipAddressesRequest.cc b/ens/src/model/DescribeEipAddressesRequest.cc new file mode 100644 index 000000000..209f091d6 --- /dev/null +++ b/ens/src/model/DescribeEipAddressesRequest.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 + +using AlibabaCloud::Ens::Model::DescribeEipAddressesRequest; + +DescribeEipAddressesRequest::DescribeEipAddressesRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeEipAddresses") { + setMethod(HttpRequest::Method::Post); +} + +DescribeEipAddressesRequest::~DescribeEipAddressesRequest() {} + +std::string DescribeEipAddressesRequest::getEips() const { + return eips_; +} + +void DescribeEipAddressesRequest::setEips(const std::string &eips) { + eips_ = eips; + setParameter(std::string("Eips"), eips); +} + +std::string DescribeEipAddressesRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeEipAddressesRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + diff --git a/ens/src/model/DescribeEipAddressesResult.cc b/ens/src/model/DescribeEipAddressesResult.cc new file mode 100644 index 000000000..00113ae8d --- /dev/null +++ b/ens/src/model/DescribeEipAddressesResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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 allEipAddressesNode = value["EipAddresses"]["EipAddress"]; + for (auto valueEipAddressesEipAddress : allEipAddressesNode) + { + EipAddress eipAddressesObject; + if(!valueEipAddressesEipAddress["Eip"].isNull()) + eipAddressesObject.eip = valueEipAddressesEipAddress["Eip"].asString(); + if(!valueEipAddressesEipAddress["InstanceIdInternetIp"].isNull()) + eipAddressesObject.instanceIdInternetIp = valueEipAddressesEipAddress["InstanceIdInternetIp"].asString(); + eipAddresses_.push_back(eipAddressesObject); + } + +} + +std::vector DescribeEipAddressesResult::getEipAddresses()const +{ + return eipAddresses_; +} + diff --git a/ens/src/model/DescribeElbAvailableResourceInfoRequest.cc b/ens/src/model/DescribeElbAvailableResourceInfoRequest.cc new file mode 100644 index 000000000..8bc3ad983 --- /dev/null +++ b/ens/src/model/DescribeElbAvailableResourceInfoRequest.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 AlibabaCloud::Ens::Model::DescribeElbAvailableResourceInfoRequest; + +DescribeElbAvailableResourceInfoRequest::DescribeElbAvailableResourceInfoRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeElbAvailableResourceInfo") { + setMethod(HttpRequest::Method::Get); +} + +DescribeElbAvailableResourceInfoRequest::~DescribeElbAvailableResourceInfoRequest() {} + diff --git a/ens/src/model/DescribeElbAvailableResourceInfoResult.cc b/ens/src/model/DescribeElbAvailableResourceInfoResult.cc new file mode 100644 index 000000000..73bbbb73d --- /dev/null +++ b/ens/src/model/DescribeElbAvailableResourceInfoResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeElbAvailableResourceInfoResult::DescribeElbAvailableResourceInfoResult() : + ServiceResult() +{} + +DescribeElbAvailableResourceInfoResult::DescribeElbAvailableResourceInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeElbAvailableResourceInfoResult::~DescribeElbAvailableResourceInfoResult() +{} + +void DescribeElbAvailableResourceInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allElbAvailableResourceInfoNode = value["ElbAvailableResourceInfo"]["ElbAvailableResourceInfoItem"]; + for (auto valueElbAvailableResourceInfoElbAvailableResourceInfoItem : allElbAvailableResourceInfoNode) + { + ElbAvailableResourceInfoItem elbAvailableResourceInfoObject; + if(!valueElbAvailableResourceInfoElbAvailableResourceInfoItem["EnsRegionId"].isNull()) + elbAvailableResourceInfoObject.ensRegionId = valueElbAvailableResourceInfoElbAvailableResourceInfoItem["EnsRegionId"].asString(); + if(!valueElbAvailableResourceInfoElbAvailableResourceInfoItem["EnName"].isNull()) + elbAvailableResourceInfoObject.enName = valueElbAvailableResourceInfoElbAvailableResourceInfoItem["EnName"].asString(); + if(!valueElbAvailableResourceInfoElbAvailableResourceInfoItem["Area"].isNull()) + elbAvailableResourceInfoObject.area = valueElbAvailableResourceInfoElbAvailableResourceInfoItem["Area"].asString(); + if(!valueElbAvailableResourceInfoElbAvailableResourceInfoItem["Province"].isNull()) + elbAvailableResourceInfoObject.province = valueElbAvailableResourceInfoElbAvailableResourceInfoItem["Province"].asString(); + if(!valueElbAvailableResourceInfoElbAvailableResourceInfoItem["Name"].isNull()) + elbAvailableResourceInfoObject.name = valueElbAvailableResourceInfoElbAvailableResourceInfoItem["Name"].asString(); + if(!valueElbAvailableResourceInfoElbAvailableResourceInfoItem["CanBuyCount"].isNull()) + elbAvailableResourceInfoObject.canBuyCount = valueElbAvailableResourceInfoElbAvailableResourceInfoItem["CanBuyCount"].asString(); + auto allLoadBalancerSpec = value["LoadBalancerSpec"]["LoadBalancerSpec"]; + for (auto value : allLoadBalancerSpec) + elbAvailableResourceInfoObject.loadBalancerSpec.push_back(value.asString()); + elbAvailableResourceInfo_.push_back(elbAvailableResourceInfoObject); + } + +} + +std::vector DescribeElbAvailableResourceInfoResult::getElbAvailableResourceInfo()const +{ + return elbAvailableResourceInfo_; +} + diff --git a/ens/src/model/DescribeEnsEipAddressesRequest.cc b/ens/src/model/DescribeEnsEipAddressesRequest.cc new file mode 100644 index 000000000..bace5de19 --- /dev/null +++ b/ens/src/model/DescribeEnsEipAddressesRequest.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 + +using AlibabaCloud::Ens::Model::DescribeEnsEipAddressesRequest; + +DescribeEnsEipAddressesRequest::DescribeEnsEipAddressesRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeEnsEipAddresses") { + setMethod(HttpRequest::Method::Post); +} + +DescribeEnsEipAddressesRequest::~DescribeEnsEipAddressesRequest() {} + +std::string DescribeEnsEipAddressesRequest::getEipAddress() const { + return eipAddress_; +} + +void DescribeEnsEipAddressesRequest::setEipAddress(const std::string &eipAddress) { + eipAddress_ = eipAddress; + setParameter(std::string("EipAddress"), eipAddress); +} + +std::string DescribeEnsEipAddressesRequest::getStatus() const { + return status_; +} + +void DescribeEnsEipAddressesRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + +std::string DescribeEnsEipAddressesRequest::getAllocationId() const { + return allocationId_; +} + +void DescribeEnsEipAddressesRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); +} + +int DescribeEnsEipAddressesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeEnsEipAddressesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeEnsEipAddressesRequest::getAssociatedInstanceType() const { + return associatedInstanceType_; +} + +void DescribeEnsEipAddressesRequest::setAssociatedInstanceType(const std::string &associatedInstanceType) { + associatedInstanceType_ = associatedInstanceType; + setParameter(std::string("AssociatedInstanceType"), associatedInstanceType); +} + +int DescribeEnsEipAddressesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeEnsEipAddressesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeEnsEipAddressesRequest::getAssociatedInstanceId() const { + return associatedInstanceId_; +} + +void DescribeEnsEipAddressesRequest::setAssociatedInstanceId(const std::string &associatedInstanceId) { + associatedInstanceId_ = associatedInstanceId; + setParameter(std::string("AssociatedInstanceId"), associatedInstanceId); +} + diff --git a/ens/src/model/DescribeEnsEipAddressesResult.cc b/ens/src/model/DescribeEnsEipAddressesResult.cc new file mode 100644 index 000000000..4b34b4661 --- /dev/null +++ b/ens/src/model/DescribeEnsEipAddressesResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeEnsEipAddressesResult::DescribeEnsEipAddressesResult() : + ServiceResult() +{} + +DescribeEnsEipAddressesResult::DescribeEnsEipAddressesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEnsEipAddressesResult::~DescribeEnsEipAddressesResult() +{} + +void DescribeEnsEipAddressesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEipAddressesNode = value["EipAddresses"]["EipAddress"]; + for (auto valueEipAddressesEipAddress : allEipAddressesNode) + { + EipAddress eipAddressesObject; + if(!valueEipAddressesEipAddress["AllocationId"].isNull()) + eipAddressesObject.allocationId = valueEipAddressesEipAddress["AllocationId"].asString(); + if(!valueEipAddressesEipAddress["AllocationTime"].isNull()) + eipAddressesObject.allocationTime = valueEipAddressesEipAddress["AllocationTime"].asString(); + if(!valueEipAddressesEipAddress["Bandwidth"].isNull()) + eipAddressesObject.bandwidth = std::stoi(valueEipAddressesEipAddress["Bandwidth"].asString()); + if(!valueEipAddressesEipAddress["ChargeType"].isNull()) + eipAddressesObject.chargeType = valueEipAddressesEipAddress["ChargeType"].asString(); + if(!valueEipAddressesEipAddress["Description"].isNull()) + eipAddressesObject.description = valueEipAddressesEipAddress["Description"].asString(); + if(!valueEipAddressesEipAddress["InstanceId"].isNull()) + eipAddressesObject.instanceId = valueEipAddressesEipAddress["InstanceId"].asString(); + if(!valueEipAddressesEipAddress["InstanceType"].isNull()) + eipAddressesObject.instanceType = valueEipAddressesEipAddress["InstanceType"].asString(); + if(!valueEipAddressesEipAddress["InternetChargeType"].isNull()) + eipAddressesObject.internetChargeType = valueEipAddressesEipAddress["InternetChargeType"].asString(); + if(!valueEipAddressesEipAddress["IpAddress"].isNull()) + eipAddressesObject.ipAddress = valueEipAddressesEipAddress["IpAddress"].asString(); + if(!valueEipAddressesEipAddress["Name"].isNull()) + eipAddressesObject.name = valueEipAddressesEipAddress["Name"].asString(); + if(!valueEipAddressesEipAddress["EnsRegionId"].isNull()) + eipAddressesObject.ensRegionId = valueEipAddressesEipAddress["EnsRegionId"].asString(); + if(!valueEipAddressesEipAddress["Status"].isNull()) + eipAddressesObject.status = valueEipAddressesEipAddress["Status"].asString(); + if(!valueEipAddressesEipAddress["Isp"].isNull()) + eipAddressesObject.isp = valueEipAddressesEipAddress["Isp"].asString(); + eipAddresses_.push_back(eipAddressesObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeEnsEipAddressesResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeEnsEipAddressesResult::getEipAddresses()const +{ + return eipAddresses_; +} + +int DescribeEnsEipAddressesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeEnsEipAddressesResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ens/src/model/DescribeEnsNetDistrictRequest.cc b/ens/src/model/DescribeEnsNetDistrictRequest.cc new file mode 100644 index 000000000..75929acd3 --- /dev/null +++ b/ens/src/model/DescribeEnsNetDistrictRequest.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 + +using AlibabaCloud::Ens::Model::DescribeEnsNetDistrictRequest; + +DescribeEnsNetDistrictRequest::DescribeEnsNetDistrictRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeEnsNetDistrict") { + setMethod(HttpRequest::Method::Post); +} + +DescribeEnsNetDistrictRequest::~DescribeEnsNetDistrictRequest() {} + +std::string DescribeEnsNetDistrictRequest::getNetLevelCode() const { + return netLevelCode_; +} + +void DescribeEnsNetDistrictRequest::setNetLevelCode(const std::string &netLevelCode) { + netLevelCode_ = netLevelCode; + setParameter(std::string("NetLevelCode"), netLevelCode); +} + +std::string DescribeEnsNetDistrictRequest::getNetDistrictCode() const { + return netDistrictCode_; +} + +void DescribeEnsNetDistrictRequest::setNetDistrictCode(const std::string &netDistrictCode) { + netDistrictCode_ = netDistrictCode; + setParameter(std::string("NetDistrictCode"), netDistrictCode); +} + diff --git a/ens/src/model/DescribeEnsNetDistrictResult.cc b/ens/src/model/DescribeEnsNetDistrictResult.cc new file mode 100644 index 000000000..b8f8d974b --- /dev/null +++ b/ens/src/model/DescribeEnsNetDistrictResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeEnsNetDistrictResult::DescribeEnsNetDistrictResult() : + ServiceResult() +{} + +DescribeEnsNetDistrictResult::DescribeEnsNetDistrictResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEnsNetDistrictResult::~DescribeEnsNetDistrictResult() +{} + +void DescribeEnsNetDistrictResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEnsNetDistrictsNode = value["EnsNetDistricts"]["EnsNetDistrict"]; + for (auto valueEnsNetDistrictsEnsNetDistrict : allEnsNetDistrictsNode) + { + EnsNetDistrict ensNetDistrictsObject; + if(!valueEnsNetDistrictsEnsNetDistrict["EnsRegionIdCount"].isNull()) + ensNetDistrictsObject.ensRegionIdCount = valueEnsNetDistrictsEnsNetDistrict["EnsRegionIdCount"].asString(); + if(!valueEnsNetDistrictsEnsNetDistrict["NetDistrictCode"].isNull()) + ensNetDistrictsObject.netDistrictCode = valueEnsNetDistrictsEnsNetDistrict["NetDistrictCode"].asString(); + if(!valueEnsNetDistrictsEnsNetDistrict["NetDistrictEnName"].isNull()) + ensNetDistrictsObject.netDistrictEnName = valueEnsNetDistrictsEnsNetDistrict["NetDistrictEnName"].asString(); + if(!valueEnsNetDistrictsEnsNetDistrict["NetDistrictFatherCode"].isNull()) + ensNetDistrictsObject.netDistrictFatherCode = valueEnsNetDistrictsEnsNetDistrict["NetDistrictFatherCode"].asString(); + if(!valueEnsNetDistrictsEnsNetDistrict["NetDistrictLevel"].isNull()) + ensNetDistrictsObject.netDistrictLevel = valueEnsNetDistrictsEnsNetDistrict["NetDistrictLevel"].asString(); + if(!valueEnsNetDistrictsEnsNetDistrict["NetDistrictName"].isNull()) + ensNetDistrictsObject.netDistrictName = valueEnsNetDistrictsEnsNetDistrict["NetDistrictName"].asString(); + ensNetDistricts_.push_back(ensNetDistrictsObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +int DescribeEnsNetDistrictResult::getCode()const +{ + return code_; +} + +std::vector DescribeEnsNetDistrictResult::getEnsNetDistricts()const +{ + return ensNetDistricts_; +} + diff --git a/ens/src/model/DescribeEnsNetLevelRequest.cc b/ens/src/model/DescribeEnsNetLevelRequest.cc new file mode 100644 index 000000000..de2ebff76 --- /dev/null +++ b/ens/src/model/DescribeEnsNetLevelRequest.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 AlibabaCloud::Ens::Model::DescribeEnsNetLevelRequest; + +DescribeEnsNetLevelRequest::DescribeEnsNetLevelRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeEnsNetLevel") { + setMethod(HttpRequest::Method::Post); +} + +DescribeEnsNetLevelRequest::~DescribeEnsNetLevelRequest() {} + diff --git a/ens/src/model/DescribeEnsNetLevelResult.cc b/ens/src/model/DescribeEnsNetLevelResult.cc new file mode 100644 index 000000000..35d17f4a1 --- /dev/null +++ b/ens/src/model/DescribeEnsNetLevelResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeEnsNetLevelResult::DescribeEnsNetLevelResult() : + ServiceResult() +{} + +DescribeEnsNetLevelResult::DescribeEnsNetLevelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEnsNetLevelResult::~DescribeEnsNetLevelResult() +{} + +void DescribeEnsNetLevelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEnsNetLevelsNode = value["EnsNetLevels"]["EnsNetLevel"]; + for (auto valueEnsNetLevelsEnsNetLevel : allEnsNetLevelsNode) + { + EnsNetLevel ensNetLevelsObject; + if(!valueEnsNetLevelsEnsNetLevel["EnsNetLevelCode"].isNull()) + ensNetLevelsObject.ensNetLevelCode = valueEnsNetLevelsEnsNetLevel["EnsNetLevelCode"].asString(); + ensNetLevels_.push_back(ensNetLevelsObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +std::vector DescribeEnsNetLevelResult::getEnsNetLevels()const +{ + return ensNetLevels_; +} + +int DescribeEnsNetLevelResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/DescribeEnsNetSaleDistrictRequest.cc b/ens/src/model/DescribeEnsNetSaleDistrictRequest.cc new file mode 100644 index 000000000..993076dfe --- /dev/null +++ b/ens/src/model/DescribeEnsNetSaleDistrictRequest.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 + +using AlibabaCloud::Ens::Model::DescribeEnsNetSaleDistrictRequest; + +DescribeEnsNetSaleDistrictRequest::DescribeEnsNetSaleDistrictRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeEnsNetSaleDistrict") { + setMethod(HttpRequest::Method::Post); +} + +DescribeEnsNetSaleDistrictRequest::~DescribeEnsNetSaleDistrictRequest() {} + +std::string DescribeEnsNetSaleDistrictRequest::getNetLevelCode() const { + return netLevelCode_; +} + +void DescribeEnsNetSaleDistrictRequest::setNetLevelCode(const std::string &netLevelCode) { + netLevelCode_ = netLevelCode; + setParameter(std::string("NetLevelCode"), netLevelCode); +} + +std::string DescribeEnsNetSaleDistrictRequest::getNetDistrictCode() const { + return netDistrictCode_; +} + +void DescribeEnsNetSaleDistrictRequest::setNetDistrictCode(const std::string &netDistrictCode) { + netDistrictCode_ = netDistrictCode; + setParameter(std::string("NetDistrictCode"), netDistrictCode); +} + diff --git a/ens/src/model/DescribeEnsNetSaleDistrictResult.cc b/ens/src/model/DescribeEnsNetSaleDistrictResult.cc new file mode 100644 index 000000000..be827bf7b --- /dev/null +++ b/ens/src/model/DescribeEnsNetSaleDistrictResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeEnsNetSaleDistrictResult::DescribeEnsNetSaleDistrictResult() : + ServiceResult() +{} + +DescribeEnsNetSaleDistrictResult::DescribeEnsNetSaleDistrictResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEnsNetSaleDistrictResult::~DescribeEnsNetSaleDistrictResult() +{} + +void DescribeEnsNetSaleDistrictResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEnsNetDistrictsNode = value["EnsNetDistricts"]["EnsNetDistrict"]; + for (auto valueEnsNetDistrictsEnsNetDistrict : allEnsNetDistrictsNode) + { + EnsNetDistrict ensNetDistrictsObject; + if(!valueEnsNetDistrictsEnsNetDistrict["EnsRegionIdCount"].isNull()) + ensNetDistrictsObject.ensRegionIdCount = valueEnsNetDistrictsEnsNetDistrict["EnsRegionIdCount"].asString(); + if(!valueEnsNetDistrictsEnsNetDistrict["InstanceCount"].isNull()) + ensNetDistrictsObject.instanceCount = valueEnsNetDistrictsEnsNetDistrict["InstanceCount"].asString(); + if(!valueEnsNetDistrictsEnsNetDistrict["NetDistrictCode"].isNull()) + ensNetDistrictsObject.netDistrictCode = valueEnsNetDistrictsEnsNetDistrict["NetDistrictCode"].asString(); + if(!valueEnsNetDistrictsEnsNetDistrict["NetDistrictEnName"].isNull()) + ensNetDistrictsObject.netDistrictEnName = valueEnsNetDistrictsEnsNetDistrict["NetDistrictEnName"].asString(); + if(!valueEnsNetDistrictsEnsNetDistrict["NetDistrictFatherCode"].isNull()) + ensNetDistrictsObject.netDistrictFatherCode = valueEnsNetDistrictsEnsNetDistrict["NetDistrictFatherCode"].asString(); + if(!valueEnsNetDistrictsEnsNetDistrict["NetDistrictLevel"].isNull()) + ensNetDistrictsObject.netDistrictLevel = valueEnsNetDistrictsEnsNetDistrict["NetDistrictLevel"].asString(); + if(!valueEnsNetDistrictsEnsNetDistrict["NetDistrictName"].isNull()) + ensNetDistrictsObject.netDistrictName = valueEnsNetDistrictsEnsNetDistrict["NetDistrictName"].asString(); + ensNetDistricts_.push_back(ensNetDistrictsObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +int DescribeEnsNetSaleDistrictResult::getCode()const +{ + return code_; +} + +std::vector DescribeEnsNetSaleDistrictResult::getEnsNetDistricts()const +{ + return ensNetDistricts_; +} + diff --git a/ens/src/model/DescribeEnsRegionIdIpv6InfoRequest.cc b/ens/src/model/DescribeEnsRegionIdIpv6InfoRequest.cc new file mode 100644 index 000000000..0af33ff9c --- /dev/null +++ b/ens/src/model/DescribeEnsRegionIdIpv6InfoRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeEnsRegionIdIpv6InfoRequest; + +DescribeEnsRegionIdIpv6InfoRequest::DescribeEnsRegionIdIpv6InfoRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeEnsRegionIdIpv6Info") { + setMethod(HttpRequest::Method::Post); +} + +DescribeEnsRegionIdIpv6InfoRequest::~DescribeEnsRegionIdIpv6InfoRequest() {} + +std::string DescribeEnsRegionIdIpv6InfoRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeEnsRegionIdIpv6InfoRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + diff --git a/ens/src/model/DescribeEnsRegionIdIpv6InfoResult.cc b/ens/src/model/DescribeEnsRegionIdIpv6InfoResult.cc new file mode 100644 index 000000000..bf0143751 --- /dev/null +++ b/ens/src/model/DescribeEnsRegionIdIpv6InfoResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeEnsRegionIdIpv6InfoResult::DescribeEnsRegionIdIpv6InfoResult() : + ServiceResult() +{} + +DescribeEnsRegionIdIpv6InfoResult::DescribeEnsRegionIdIpv6InfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEnsRegionIdIpv6InfoResult::~DescribeEnsRegionIdIpv6InfoResult() +{} + +void DescribeEnsRegionIdIpv6InfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto supportIpv6InfoNode = value["SupportIpv6Info"]; + if(!supportIpv6InfoNode["EnsRegionId"].isNull()) + supportIpv6Info_.ensRegionId = supportIpv6InfoNode["EnsRegionId"].asString(); + if(!supportIpv6InfoNode["SupportIpv6"].isNull()) + supportIpv6Info_.supportIpv6 = supportIpv6InfoNode["SupportIpv6"].asString() == "true"; + +} + +DescribeEnsRegionIdIpv6InfoResult::SupportIpv6Info DescribeEnsRegionIdIpv6InfoResult::getSupportIpv6Info()const +{ + return supportIpv6Info_; +} + diff --git a/ens/src/model/DescribeEnsRegionIdResourceRequest.cc b/ens/src/model/DescribeEnsRegionIdResourceRequest.cc new file mode 100644 index 000000000..06f6e7679 --- /dev/null +++ b/ens/src/model/DescribeEnsRegionIdResourceRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeEnsRegionIdResourceRequest; + +DescribeEnsRegionIdResourceRequest::DescribeEnsRegionIdResourceRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeEnsRegionIdResource") { + setMethod(HttpRequest::Method::Post); +} + +DescribeEnsRegionIdResourceRequest::~DescribeEnsRegionIdResourceRequest() {} + +std::string DescribeEnsRegionIdResourceRequest::getIsp() const { + return isp_; +} + +void DescribeEnsRegionIdResourceRequest::setIsp(const std::string &isp) { + isp_ = isp; + setParameter(std::string("Isp"), isp); +} + +std::string DescribeEnsRegionIdResourceRequest::getStartTime() const { + return startTime_; +} + +void DescribeEnsRegionIdResourceRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +int DescribeEnsRegionIdResourceRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeEnsRegionIdResourceRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeEnsRegionIdResourceRequest::getOrderByParams() const { + return orderByParams_; +} + +void DescribeEnsRegionIdResourceRequest::setOrderByParams(const std::string &orderByParams) { + orderByParams_ = orderByParams; + setParameter(std::string("OrderByParams"), orderByParams); +} + +std::string DescribeEnsRegionIdResourceRequest::getPageSize() const { + return pageSize_; +} + +void DescribeEnsRegionIdResourceRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string DescribeEnsRegionIdResourceRequest::getEndTime() const { + return endTime_; +} + +void DescribeEnsRegionIdResourceRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + diff --git a/ens/src/model/DescribeEnsRegionIdResourceResult.cc b/ens/src/model/DescribeEnsRegionIdResourceResult.cc new file mode 100644 index 000000000..ae840285a --- /dev/null +++ b/ens/src/model/DescribeEnsRegionIdResourceResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeEnsRegionIdResourceResult::DescribeEnsRegionIdResourceResult() : + ServiceResult() +{} + +DescribeEnsRegionIdResourceResult::DescribeEnsRegionIdResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEnsRegionIdResourceResult::~DescribeEnsRegionIdResourceResult() +{} + +void DescribeEnsRegionIdResourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEnsRegionIdResourcesNode = value["EnsRegionIdResources"]["EnsRegionIdResource"]; + for (auto valueEnsRegionIdResourcesEnsRegionIdResource : allEnsRegionIdResourcesNode) + { + EnsRegionIdResource ensRegionIdResourcesObject; + if(!valueEnsRegionIdResourcesEnsRegionIdResource["Area"].isNull()) + ensRegionIdResourcesObject.area = valueEnsRegionIdResourcesEnsRegionIdResource["Area"].asString(); + if(!valueEnsRegionIdResourcesEnsRegionIdResource["AreaCode"].isNull()) + ensRegionIdResourcesObject.areaCode = valueEnsRegionIdResourcesEnsRegionIdResource["AreaCode"].asString(); + if(!valueEnsRegionIdResourcesEnsRegionIdResource["BizDate"].isNull()) + ensRegionIdResourcesObject.bizDate = valueEnsRegionIdResourcesEnsRegionIdResource["BizDate"].asString(); + if(!valueEnsRegionIdResourcesEnsRegionIdResource["EnsRegionId"].isNull()) + ensRegionIdResourcesObject.ensRegionId = valueEnsRegionIdResourcesEnsRegionIdResource["EnsRegionId"].asString(); + if(!valueEnsRegionIdResourcesEnsRegionIdResource["EnsRegionIdName"].isNull()) + ensRegionIdResourcesObject.ensRegionIdName = valueEnsRegionIdResourcesEnsRegionIdResource["EnsRegionIdName"].asString(); + if(!valueEnsRegionIdResourcesEnsRegionIdResource["InstanceCount"].isNull()) + ensRegionIdResourcesObject.instanceCount = std::stoi(valueEnsRegionIdResourcesEnsRegionIdResource["InstanceCount"].asString()); + if(!valueEnsRegionIdResourcesEnsRegionIdResource["InternetBandwidth"].isNull()) + ensRegionIdResourcesObject.internetBandwidth = std::stol(valueEnsRegionIdResourcesEnsRegionIdResource["InternetBandwidth"].asString()); + if(!valueEnsRegionIdResourcesEnsRegionIdResource["Isp"].isNull()) + ensRegionIdResourcesObject.isp = valueEnsRegionIdResourcesEnsRegionIdResource["Isp"].asString(); + if(!valueEnsRegionIdResourcesEnsRegionIdResource["VCpu"].isNull()) + ensRegionIdResourcesObject.vCpu = std::stoi(valueEnsRegionIdResourcesEnsRegionIdResource["VCpu"].asString()); + ensRegionIdResources_.push_back(ensRegionIdResourcesObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::vector DescribeEnsRegionIdResourceResult::getEnsRegionIdResources()const +{ + return ensRegionIdResources_; +} + +int DescribeEnsRegionIdResourceResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeEnsRegionIdResourceResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeEnsRegionIdResourceResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ens/src/model/DescribeEnsRegionsRequest.cc b/ens/src/model/DescribeEnsRegionsRequest.cc new file mode 100644 index 000000000..b53ccf641 --- /dev/null +++ b/ens/src/model/DescribeEnsRegionsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeEnsRegionsRequest; + +DescribeEnsRegionsRequest::DescribeEnsRegionsRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeEnsRegions") { + setMethod(HttpRequest::Method::Post); +} + +DescribeEnsRegionsRequest::~DescribeEnsRegionsRequest() {} + +std::string DescribeEnsRegionsRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeEnsRegionsRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + diff --git a/ens/src/model/DescribeEnsRegionsResult.cc b/ens/src/model/DescribeEnsRegionsResult.cc new file mode 100644 index 000000000..62b3c35f0 --- /dev/null +++ b/ens/src/model/DescribeEnsRegionsResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeEnsRegionsResult::DescribeEnsRegionsResult() : + ServiceResult() +{} + +DescribeEnsRegionsResult::DescribeEnsRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEnsRegionsResult::~DescribeEnsRegionsResult() +{} + +void DescribeEnsRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEnsRegionsNode = value["EnsRegions"]["EnsRegionsItem"]; + for (auto valueEnsRegionsEnsRegionsItem : allEnsRegionsNode) + { + EnsRegionsItem ensRegionsObject; + if(!valueEnsRegionsEnsRegionsItem["Area"].isNull()) + ensRegionsObject.area = valueEnsRegionsEnsRegionsItem["Area"].asString(); + if(!valueEnsRegionsEnsRegionsItem["EnName"].isNull()) + ensRegionsObject.enName = valueEnsRegionsEnsRegionsItem["EnName"].asString(); + if(!valueEnsRegionsEnsRegionsItem["EnsRegionId"].isNull()) + ensRegionsObject.ensRegionId = valueEnsRegionsEnsRegionsItem["EnsRegionId"].asString(); + if(!valueEnsRegionsEnsRegionsItem["Name"].isNull()) + ensRegionsObject.name = valueEnsRegionsEnsRegionsItem["Name"].asString(); + if(!valueEnsRegionsEnsRegionsItem["Province"].isNull()) + ensRegionsObject.province = valueEnsRegionsEnsRegionsItem["Province"].asString(); + ensRegions_.push_back(ensRegionsObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +std::vector DescribeEnsRegionsResult::getEnsRegions()const +{ + return ensRegions_; +} + +int DescribeEnsRegionsResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/DescribeEnsResourceUsageRequest.cc b/ens/src/model/DescribeEnsResourceUsageRequest.cc new file mode 100644 index 000000000..268476399 --- /dev/null +++ b/ens/src/model/DescribeEnsResourceUsageRequest.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 + +using AlibabaCloud::Ens::Model::DescribeEnsResourceUsageRequest; + +DescribeEnsResourceUsageRequest::DescribeEnsResourceUsageRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeEnsResourceUsage") { + setMethod(HttpRequest::Method::Get); +} + +DescribeEnsResourceUsageRequest::~DescribeEnsResourceUsageRequest() {} + +std::string DescribeEnsResourceUsageRequest::getExpiredStartTime() const { + return expiredStartTime_; +} + +void DescribeEnsResourceUsageRequest::setExpiredStartTime(const std::string &expiredStartTime) { + expiredStartTime_ = expiredStartTime; + setParameter(std::string("ExpiredStartTime"), expiredStartTime); +} + +std::string DescribeEnsResourceUsageRequest::getExpiredEndTime() const { + return expiredEndTime_; +} + +void DescribeEnsResourceUsageRequest::setExpiredEndTime(const std::string &expiredEndTime) { + expiredEndTime_ = expiredEndTime; + setParameter(std::string("ExpiredEndTime"), expiredEndTime); +} + diff --git a/ens/src/model/DescribeEnsResourceUsageResult.cc b/ens/src/model/DescribeEnsResourceUsageResult.cc new file mode 100644 index 000000000..c8bd365a6 --- /dev/null +++ b/ens/src/model/DescribeEnsResourceUsageResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeEnsResourceUsageResult::DescribeEnsResourceUsageResult() : + ServiceResult() +{} + +DescribeEnsResourceUsageResult::DescribeEnsResourceUsageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEnsResourceUsageResult::~DescribeEnsResourceUsageResult() +{} + +void DescribeEnsResourceUsageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEnsResourceUsageNode = value["EnsResourceUsage"]["ensResourceUsageItem"]; + for (auto valueEnsResourceUsageensResourceUsageItem : allEnsResourceUsageNode) + { + EnsResourceUsageItem ensResourceUsageObject; + if(!valueEnsResourceUsageensResourceUsageItem["ServiceType"].isNull()) + ensResourceUsageObject.serviceType = valueEnsResourceUsageensResourceUsageItem["ServiceType"].asString(); + if(!valueEnsResourceUsageensResourceUsageItem["InstanceCount"].isNull()) + ensResourceUsageObject.instanceCount = std::stoi(valueEnsResourceUsageensResourceUsageItem["InstanceCount"].asString()); + if(!valueEnsResourceUsageensResourceUsageItem["CpuSum"].isNull()) + ensResourceUsageObject.cpuSum = std::stol(valueEnsResourceUsageensResourceUsageItem["CpuSum"].asString()); + if(!valueEnsResourceUsageensResourceUsageItem["GpuSum"].isNull()) + ensResourceUsageObject.gpuSum = std::stol(valueEnsResourceUsageensResourceUsageItem["GpuSum"].asString()); + if(!valueEnsResourceUsageensResourceUsageItem["DownCount"].isNull()) + ensResourceUsageObject.downCount = std::stoi(valueEnsResourceUsageensResourceUsageItem["DownCount"].asString()); + if(!valueEnsResourceUsageensResourceUsageItem["ExpiredCount"].isNull()) + ensResourceUsageObject.expiredCount = std::stoi(valueEnsResourceUsageensResourceUsageItem["ExpiredCount"].asString()); + if(!valueEnsResourceUsageensResourceUsageItem["ExpiringCount"].isNull()) + ensResourceUsageObject.expiringCount = std::stoi(valueEnsResourceUsageensResourceUsageItem["ExpiringCount"].asString()); + if(!valueEnsResourceUsageensResourceUsageItem["RunningCount"].isNull()) + ensResourceUsageObject.runningCount = std::stoi(valueEnsResourceUsageensResourceUsageItem["RunningCount"].asString()); + if(!valueEnsResourceUsageensResourceUsageItem["DiskCount"].isNull()) + ensResourceUsageObject.diskCount = std::stoi(valueEnsResourceUsageensResourceUsageItem["DiskCount"].asString()); + if(!valueEnsResourceUsageensResourceUsageItem["StorageSum"].isNull()) + ensResourceUsageObject.storageSum = std::stol(valueEnsResourceUsageensResourceUsageItem["StorageSum"].asString()); + if(!valueEnsResourceUsageensResourceUsageItem["ComputeResourceCount"].isNull()) + ensResourceUsageObject.computeResourceCount = std::stoi(valueEnsResourceUsageensResourceUsageItem["ComputeResourceCount"].asString()); + ensResourceUsage_.push_back(ensResourceUsageObject); + } + +} + +std::vector DescribeEnsResourceUsageResult::getEnsResourceUsage()const +{ + return ensResourceUsage_; +} + diff --git a/ens/src/model/DescribeEpnBandWidthDataRequest.cc b/ens/src/model/DescribeEpnBandWidthDataRequest.cc new file mode 100644 index 000000000..d9f6ff594 --- /dev/null +++ b/ens/src/model/DescribeEpnBandWidthDataRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeEpnBandWidthDataRequest; + +DescribeEpnBandWidthDataRequest::DescribeEpnBandWidthDataRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeEpnBandWidthData") { + setMethod(HttpRequest::Method::Post); +} + +DescribeEpnBandWidthDataRequest::~DescribeEpnBandWidthDataRequest() {} + +std::string DescribeEpnBandWidthDataRequest::getIsp() const { + return isp_; +} + +void DescribeEpnBandWidthDataRequest::setIsp(const std::string &isp) { + isp_ = isp; + setParameter(std::string("Isp"), isp); +} + +std::string DescribeEpnBandWidthDataRequest::getStartTime() const { + return startTime_; +} + +void DescribeEpnBandWidthDataRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeEpnBandWidthDataRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeEpnBandWidthDataRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string DescribeEpnBandWidthDataRequest::getEPNInstanceId() const { + return ePNInstanceId_; +} + +void DescribeEpnBandWidthDataRequest::setEPNInstanceId(const std::string &ePNInstanceId) { + ePNInstanceId_ = ePNInstanceId; + setParameter(std::string("EPNInstanceId"), ePNInstanceId); +} + +std::string DescribeEpnBandWidthDataRequest::getPeriod() const { + return period_; +} + +void DescribeEpnBandWidthDataRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); +} + +std::string DescribeEpnBandWidthDataRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeEpnBandWidthDataRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string DescribeEpnBandWidthDataRequest::getNetworkingModel() const { + return networkingModel_; +} + +void DescribeEpnBandWidthDataRequest::setNetworkingModel(const std::string &networkingModel) { + networkingModel_ = networkingModel; + setParameter(std::string("NetworkingModel"), networkingModel); +} + +std::string DescribeEpnBandWidthDataRequest::getEndTime() const { + return endTime_; +} + +void DescribeEpnBandWidthDataRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + diff --git a/ens/src/model/DescribeEpnBandWidthDataResult.cc b/ens/src/model/DescribeEpnBandWidthDataResult.cc new file mode 100644 index 000000000..ca29a5a99 --- /dev/null +++ b/ens/src/model/DescribeEpnBandWidthDataResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeEpnBandWidthDataResult::DescribeEpnBandWidthDataResult() : + ServiceResult() +{} + +DescribeEpnBandWidthDataResult::DescribeEpnBandWidthDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEpnBandWidthDataResult::~DescribeEpnBandWidthDataResult() +{} + +void DescribeEpnBandWidthDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto monitorDataNode = value["MonitorData"]; + if(!monitorDataNode["MaxDownBandWidth"].isNull()) + monitorData_.maxDownBandWidth = std::stol(monitorDataNode["MaxDownBandWidth"].asString()); + if(!monitorDataNode["MaxUpBandWidth"].isNull()) + monitorData_.maxUpBandWidth = std::stol(monitorDataNode["MaxUpBandWidth"].asString()); + auto allBandWidthMonitorDataNode = monitorDataNode["BandWidthMonitorData"]["BandWidthMonitorDataItem"]; + for (auto monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem : allBandWidthMonitorDataNode) + { + MonitorData::BandWidthMonitorDataItem bandWidthMonitorDataItemObject; + if(!monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["DownBandWidth"].isNull()) + bandWidthMonitorDataItemObject.downBandWidth = std::stol(monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["DownBandWidth"].asString()); + if(!monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["InternetRX"].isNull()) + bandWidthMonitorDataItemObject.internetRX = std::stol(monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["InternetRX"].asString()); + if(!monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["InternetTX"].isNull()) + bandWidthMonitorDataItemObject.internetTX = std::stol(monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["InternetTX"].asString()); + if(!monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["TimeStamp"].isNull()) + bandWidthMonitorDataItemObject.timeStamp = monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["TimeStamp"].asString(); + if(!monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["UpBandWidth"].isNull()) + bandWidthMonitorDataItemObject.upBandWidth = std::stol(monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["UpBandWidth"].asString()); + monitorData_.bandWidthMonitorData.push_back(bandWidthMonitorDataItemObject); + } + +} + +DescribeEpnBandWidthDataResult::MonitorData DescribeEpnBandWidthDataResult::getMonitorData()const +{ + return monitorData_; +} + diff --git a/ens/src/model/DescribeEpnBandwitdhByInternetChargeTypeRequest.cc b/ens/src/model/DescribeEpnBandwitdhByInternetChargeTypeRequest.cc new file mode 100644 index 000000000..6279f7c22 --- /dev/null +++ b/ens/src/model/DescribeEpnBandwitdhByInternetChargeTypeRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeEpnBandwitdhByInternetChargeTypeRequest; + +DescribeEpnBandwitdhByInternetChargeTypeRequest::DescribeEpnBandwitdhByInternetChargeTypeRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeEpnBandwitdhByInternetChargeType") { + setMethod(HttpRequest::Method::Post); +} + +DescribeEpnBandwitdhByInternetChargeTypeRequest::~DescribeEpnBandwitdhByInternetChargeTypeRequest() {} + +std::string DescribeEpnBandwitdhByInternetChargeTypeRequest::getNetworkingModel() const { + return networkingModel_; +} + +void DescribeEpnBandwitdhByInternetChargeTypeRequest::setNetworkingModel(const std::string &networkingModel) { + networkingModel_ = networkingModel; + setParameter(std::string("NetworkingModel"), networkingModel); +} + +std::string DescribeEpnBandwitdhByInternetChargeTypeRequest::getIsp() const { + return isp_; +} + +void DescribeEpnBandwitdhByInternetChargeTypeRequest::setIsp(const std::string &isp) { + isp_ = isp; + setParameter(std::string("Isp"), isp); +} + +std::string DescribeEpnBandwitdhByInternetChargeTypeRequest::getStartTime() const { + return startTime_; +} + +void DescribeEpnBandwitdhByInternetChargeTypeRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeEpnBandwitdhByInternetChargeTypeRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeEpnBandwitdhByInternetChargeTypeRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string DescribeEpnBandwitdhByInternetChargeTypeRequest::getEndTime() const { + return endTime_; +} + +void DescribeEpnBandwitdhByInternetChargeTypeRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + diff --git a/ens/src/model/DescribeEpnBandwitdhByInternetChargeTypeResult.cc b/ens/src/model/DescribeEpnBandwitdhByInternetChargeTypeResult.cc new file mode 100644 index 000000000..a37dfee74 --- /dev/null +++ b/ens/src/model/DescribeEpnBandwitdhByInternetChargeTypeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeEpnBandwitdhByInternetChargeTypeResult::DescribeEpnBandwitdhByInternetChargeTypeResult() : + ServiceResult() +{} + +DescribeEpnBandwitdhByInternetChargeTypeResult::DescribeEpnBandwitdhByInternetChargeTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEpnBandwitdhByInternetChargeTypeResult::~DescribeEpnBandwitdhByInternetChargeTypeResult() +{} + +void DescribeEpnBandwitdhByInternetChargeTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["BandwidthValue"].isNull()) + bandwidthValue_ = std::stol(value["BandwidthValue"].asString()); + if(!value["InternetChargeType"].isNull()) + internetChargeType_ = value["InternetChargeType"].asString(); + if(!value["TimeStamp"].isNull()) + timeStamp_ = value["TimeStamp"].asString(); + +} + +long DescribeEpnBandwitdhByInternetChargeTypeResult::getBandwidthValue()const +{ + return bandwidthValue_; +} + +std::string DescribeEpnBandwitdhByInternetChargeTypeResult::getTimeStamp()const +{ + return timeStamp_; +} + +std::string DescribeEpnBandwitdhByInternetChargeTypeResult::getInternetChargeType()const +{ + return internetChargeType_; +} + diff --git a/ens/src/model/DescribeEpnInstanceAttributeRequest.cc b/ens/src/model/DescribeEpnInstanceAttributeRequest.cc new file mode 100644 index 000000000..2bce2c33c --- /dev/null +++ b/ens/src/model/DescribeEpnInstanceAttributeRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeEpnInstanceAttributeRequest; + +DescribeEpnInstanceAttributeRequest::DescribeEpnInstanceAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeEpnInstanceAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeEpnInstanceAttributeRequest::~DescribeEpnInstanceAttributeRequest() {} + +std::string DescribeEpnInstanceAttributeRequest::getEPNInstanceId() const { + return ePNInstanceId_; +} + +void DescribeEpnInstanceAttributeRequest::setEPNInstanceId(const std::string &ePNInstanceId) { + ePNInstanceId_ = ePNInstanceId; + setParameter(std::string("EPNInstanceId"), ePNInstanceId); +} + diff --git a/ens/src/model/DescribeEpnInstanceAttributeResult.cc b/ens/src/model/DescribeEpnInstanceAttributeResult.cc new file mode 100644 index 000000000..5706c5d67 --- /dev/null +++ b/ens/src/model/DescribeEpnInstanceAttributeResult.cc @@ -0,0 +1,124 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeEpnInstanceAttributeResult::DescribeEpnInstanceAttributeResult() : + ServiceResult() +{} + +DescribeEpnInstanceAttributeResult::DescribeEpnInstanceAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEpnInstanceAttributeResult::~DescribeEpnInstanceAttributeResult() +{} + +void DescribeEpnInstanceAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allConfVersionsNode = value["ConfVersions"]["ConfVersionsItem"]; + for (auto valueConfVersionsConfVersionsItem : allConfVersionsNode) + { + ConfVersionsItem confVersionsObject; + if(!valueConfVersionsConfVersionsItem["ConfVersion"].isNull()) + confVersionsObject.confVersion = valueConfVersionsConfVersionsItem["ConfVersion"].asString(); + if(!valueConfVersionsConfVersionsItem["EnsRegionId"].isNull()) + confVersionsObject.ensRegionId = valueConfVersionsConfVersionsItem["EnsRegionId"].asString(); + confVersions_.push_back(confVersionsObject); + } + auto allInstancesNode = value["Instances"]["EPNInstance"]; + for (auto valueInstancesEPNInstance : allInstancesNode) + { + EPNInstance instancesObject; + if(!valueInstancesEPNInstance["EnsRegionId"].isNull()) + instancesObject.ensRegionId = valueInstancesEPNInstance["EnsRegionId"].asString(); + if(!valueInstancesEPNInstance["InstanceId"].isNull()) + instancesObject.instanceId = valueInstancesEPNInstance["InstanceId"].asString(); + if(!valueInstancesEPNInstance["InstanceName"].isNull()) + instancesObject.instanceName = valueInstancesEPNInstance["InstanceName"].asString(); + if(!valueInstancesEPNInstance["Isp"].isNull()) + instancesObject.isp = valueInstancesEPNInstance["Isp"].asString(); + if(!valueInstancesEPNInstance["PrivateIpAddress"].isNull()) + instancesObject.privateIpAddress = valueInstancesEPNInstance["PrivateIpAddress"].asString(); + if(!valueInstancesEPNInstance["PublicIpAddress"].isNull()) + instancesObject.publicIpAddress = valueInstancesEPNInstance["PublicIpAddress"].asString(); + if(!valueInstancesEPNInstance["Status"].isNull()) + instancesObject.status = valueInstancesEPNInstance["Status"].asString(); + instances_.push_back(instancesObject); + } + auto allVSwitchesNode = value["VSwitches"]["EPNInstance"]; + for (auto valueVSwitchesEPNInstance : allVSwitchesNode) + { + EPNInstance1 vSwitchesObject; + if(!valueVSwitchesEPNInstance["CidrBlock"].isNull()) + vSwitchesObject.cidrBlock = valueVSwitchesEPNInstance["CidrBlock"].asString(); + if(!valueVSwitchesEPNInstance["EnsRegionId"].isNull()) + vSwitchesObject.ensRegionId = valueVSwitchesEPNInstance["EnsRegionId"].asString(); + if(!valueVSwitchesEPNInstance["VSwitchId"].isNull()) + vSwitchesObject.vSwitchId = valueVSwitchesEPNInstance["VSwitchId"].asString(); + if(!valueVSwitchesEPNInstance["VSwitchName"].isNull()) + vSwitchesObject.vSwitchName = valueVSwitchesEPNInstance["VSwitchName"].asString(); + vSwitches_.push_back(vSwitchesObject); + } + if(!value["EPNInstanceId"].isNull()) + ePNInstanceId_ = value["EPNInstanceId"].asString(); + if(!value["EPNInstanceName"].isNull()) + ePNInstanceName_ = value["EPNInstanceName"].asString(); + if(!value["NetworkingModel"].isNull()) + networkingModel_ = value["NetworkingModel"].asString(); + +} + +std::vector DescribeEpnInstanceAttributeResult::getInstances()const +{ + return instances_; +} + +std::string DescribeEpnInstanceAttributeResult::getNetworkingModel()const +{ + return networkingModel_; +} + +std::vector DescribeEpnInstanceAttributeResult::getVSwitches()const +{ + return vSwitches_; +} + +std::string DescribeEpnInstanceAttributeResult::getEPNInstanceId()const +{ + return ePNInstanceId_; +} + +std::vector DescribeEpnInstanceAttributeResult::getConfVersions()const +{ + return confVersions_; +} + +std::string DescribeEpnInstanceAttributeResult::getEPNInstanceName()const +{ + return ePNInstanceName_; +} + diff --git a/ens/src/model/DescribeEpnInstancesRequest.cc b/ens/src/model/DescribeEpnInstancesRequest.cc new file mode 100644 index 000000000..ce13175f7 --- /dev/null +++ b/ens/src/model/DescribeEpnInstancesRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeEpnInstancesRequest; + +DescribeEpnInstancesRequest::DescribeEpnInstancesRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeEpnInstances") { + setMethod(HttpRequest::Method::Post); +} + +DescribeEpnInstancesRequest::~DescribeEpnInstancesRequest() {} + +int DescribeEpnInstancesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeEpnInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int DescribeEpnInstancesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeEpnInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeEpnInstancesRequest::getEPNInstanceId() const { + return ePNInstanceId_; +} + +void DescribeEpnInstancesRequest::setEPNInstanceId(const std::string &ePNInstanceId) { + ePNInstanceId_ = ePNInstanceId; + setParameter(std::string("EPNInstanceId"), ePNInstanceId); +} + +std::string DescribeEpnInstancesRequest::getEPNInstanceName() const { + return ePNInstanceName_; +} + +void DescribeEpnInstancesRequest::setEPNInstanceName(const std::string &ePNInstanceName) { + ePNInstanceName_ = ePNInstanceName; + setParameter(std::string("EPNInstanceName"), ePNInstanceName); +} + diff --git a/ens/src/model/DescribeEpnInstancesResult.cc b/ens/src/model/DescribeEpnInstancesResult.cc new file mode 100644 index 000000000..1d0be771e --- /dev/null +++ b/ens/src/model/DescribeEpnInstancesResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeEpnInstancesResult::DescribeEpnInstancesResult() : + ServiceResult() +{} + +DescribeEpnInstancesResult::DescribeEpnInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEpnInstancesResult::~DescribeEpnInstancesResult() +{} + +void DescribeEpnInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEPNInstancesNode = value["EPNInstances"]["EPNInstance"]; + for (auto valueEPNInstancesEPNInstance : allEPNInstancesNode) + { + EPNInstance ePNInstancesObject; + if(!valueEPNInstancesEPNInstance["CreationTime"].isNull()) + ePNInstancesObject.creationTime = valueEPNInstancesEPNInstance["CreationTime"].asString(); + if(!valueEPNInstancesEPNInstance["EPNInstanceId"].isNull()) + ePNInstancesObject.ePNInstanceId = valueEPNInstancesEPNInstance["EPNInstanceId"].asString(); + if(!valueEPNInstancesEPNInstance["EPNInstanceName"].isNull()) + ePNInstancesObject.ePNInstanceName = valueEPNInstancesEPNInstance["EPNInstanceName"].asString(); + if(!valueEPNInstancesEPNInstance["EPNInstanceType"].isNull()) + ePNInstancesObject.ePNInstanceType = valueEPNInstancesEPNInstance["EPNInstanceType"].asString(); + if(!valueEPNInstancesEPNInstance["EndTime"].isNull()) + ePNInstancesObject.endTime = valueEPNInstancesEPNInstance["EndTime"].asString(); + if(!valueEPNInstancesEPNInstance["InternetMaxBandwidthOut"].isNull()) + ePNInstancesObject.internetMaxBandwidthOut = std::stoi(valueEPNInstancesEPNInstance["InternetMaxBandwidthOut"].asString()); + if(!valueEPNInstancesEPNInstance["ModifyTime"].isNull()) + ePNInstancesObject.modifyTime = valueEPNInstancesEPNInstance["ModifyTime"].asString(); + if(!valueEPNInstancesEPNInstance["NetworkingModel"].isNull()) + ePNInstancesObject.networkingModel = valueEPNInstancesEPNInstance["NetworkingModel"].asString(); + if(!valueEPNInstancesEPNInstance["StartTime"].isNull()) + ePNInstancesObject.startTime = valueEPNInstancesEPNInstance["StartTime"].asString(); + if(!valueEPNInstancesEPNInstance["Status"].isNull()) + ePNInstancesObject.status = valueEPNInstancesEPNInstance["Status"].asString(); + ePNInstances_.push_back(ePNInstancesObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeEpnInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector DescribeEpnInstancesResult::getEPNInstances()const +{ + return ePNInstances_; +} + +int DescribeEpnInstancesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeEpnInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ens/src/model/DescribeEpnMeasurementDataRequest.cc b/ens/src/model/DescribeEpnMeasurementDataRequest.cc new file mode 100644 index 000000000..4632623bc --- /dev/null +++ b/ens/src/model/DescribeEpnMeasurementDataRequest.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 + +using AlibabaCloud::Ens::Model::DescribeEpnMeasurementDataRequest; + +DescribeEpnMeasurementDataRequest::DescribeEpnMeasurementDataRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeEpnMeasurementData") { + setMethod(HttpRequest::Method::Post); +} + +DescribeEpnMeasurementDataRequest::~DescribeEpnMeasurementDataRequest() {} + +std::string DescribeEpnMeasurementDataRequest::getStartDate() const { + return startDate_; +} + +void DescribeEpnMeasurementDataRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); +} + +std::string DescribeEpnMeasurementDataRequest::getEndDate() const { + return endDate_; +} + +void DescribeEpnMeasurementDataRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); +} + diff --git a/ens/src/model/DescribeEpnMeasurementDataResult.cc b/ens/src/model/DescribeEpnMeasurementDataResult.cc new file mode 100644 index 000000000..38322c799 --- /dev/null +++ b/ens/src/model/DescribeEpnMeasurementDataResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeEpnMeasurementDataResult::DescribeEpnMeasurementDataResult() : + ServiceResult() +{} + +DescribeEpnMeasurementDataResult::DescribeEpnMeasurementDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEpnMeasurementDataResult::~DescribeEpnMeasurementDataResult() +{} + +void DescribeEpnMeasurementDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allMeasurementDatasNode = value["MeasurementDatas"]["MeasurementData"]; + for (auto valueMeasurementDatasMeasurementData : allMeasurementDatasNode) + { + MeasurementData measurementDatasObject; + if(!valueMeasurementDatasMeasurementData["ChargeModel"].isNull()) + measurementDatasObject.chargeModel = valueMeasurementDatasMeasurementData["ChargeModel"].asString(); + if(!valueMeasurementDatasMeasurementData["CostCycle"].isNull()) + measurementDatasObject.costCycle = valueMeasurementDatasMeasurementData["CostCycle"].asString(); + if(!valueMeasurementDatasMeasurementData["CostEndTime"].isNull()) + measurementDatasObject.costEndTime = valueMeasurementDatasMeasurementData["CostEndTime"].asString(); + if(!valueMeasurementDatasMeasurementData["CostStartTime"].isNull()) + measurementDatasObject.costStartTime = valueMeasurementDatasMeasurementData["CostStartTime"].asString(); + auto allBandWidthFeeDatasNode = valueMeasurementDatasMeasurementData["BandWidthFeeDatas"]["BandWidthFeeData"]; + for (auto valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData : allBandWidthFeeDatasNode) + { + MeasurementData::BandWidthFeeData bandWidthFeeDatasObject; + if(!valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData["CostCode"].isNull()) + bandWidthFeeDatasObject.costCode = valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData["CostCode"].asString(); + if(!valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData["CostName"].isNull()) + bandWidthFeeDatasObject.costName = valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData["CostName"].asString(); + if(!valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData["CostType"].isNull()) + bandWidthFeeDatasObject.costType = valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData["CostType"].asString(); + if(!valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData["CostVal"].isNull()) + bandWidthFeeDatasObject.costVal = std::stoi(valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData["CostVal"].asString()); + if(!valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData["IspLine"].isNull()) + bandWidthFeeDatasObject.ispLine = valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData["IspLine"].asString(); + measurementDatasObject.bandWidthFeeDatas.push_back(bandWidthFeeDatasObject); + } + measurementDatas_.push_back(measurementDatasObject); + } + +} + +std::vector DescribeEpnMeasurementDataResult::getMeasurementDatas()const +{ + return measurementDatas_; +} + diff --git a/ens/src/model/DescribeExportImageInfoRequest.cc b/ens/src/model/DescribeExportImageInfoRequest.cc new file mode 100644 index 000000000..a3c4669f6 --- /dev/null +++ b/ens/src/model/DescribeExportImageInfoRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeExportImageInfoRequest; + +DescribeExportImageInfoRequest::DescribeExportImageInfoRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeExportImageInfo") { + setMethod(HttpRequest::Method::Post); +} + +DescribeExportImageInfoRequest::~DescribeExportImageInfoRequest() {} + +std::string DescribeExportImageInfoRequest::getImageId() const { + return imageId_; +} + +void DescribeExportImageInfoRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +int DescribeExportImageInfoRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeExportImageInfoRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeExportImageInfoRequest::getImageName() const { + return imageName_; +} + +void DescribeExportImageInfoRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setParameter(std::string("ImageName"), imageName); +} + +int DescribeExportImageInfoRequest::getPageSize() const { + return pageSize_; +} + +void DescribeExportImageInfoRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ens/src/model/DescribeExportImageInfoResult.cc b/ens/src/model/DescribeExportImageInfoResult.cc new file mode 100644 index 000000000..d27a11e40 --- /dev/null +++ b/ens/src/model/DescribeExportImageInfoResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeExportImageInfoResult::DescribeExportImageInfoResult() : + ServiceResult() +{} + +DescribeExportImageInfoResult::DescribeExportImageInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeExportImageInfoResult::~DescribeExportImageInfoResult() +{} + +void DescribeExportImageInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImagesNode = value["Images"]["Image"]; + for (auto valueImagesImage : allImagesNode) + { + Image imagesObject; + if(!valueImagesImage["Architecture"].isNull()) + imagesObject.architecture = valueImagesImage["Architecture"].asString(); + if(!valueImagesImage["CreationTime"].isNull()) + imagesObject.creationTime = valueImagesImage["CreationTime"].asString(); + if(!valueImagesImage["ExportedImageURL"].isNull()) + imagesObject.exportedImageURL = valueImagesImage["ExportedImageURL"].asString(); + if(!valueImagesImage["ImageExportStatus"].isNull()) + imagesObject.imageExportStatus = valueImagesImage["ImageExportStatus"].asString(); + if(!valueImagesImage["ImageId"].isNull()) + imagesObject.imageId = valueImagesImage["ImageId"].asString(); + if(!valueImagesImage["ImageName"].isNull()) + imagesObject.imageName = valueImagesImage["ImageName"].asString(); + if(!valueImagesImage["ImageOwnerAlias"].isNull()) + imagesObject.imageOwnerAlias = valueImagesImage["ImageOwnerAlias"].asString(); + if(!valueImagesImage["Platform"].isNull()) + imagesObject.platform = valueImagesImage["Platform"].asString(); + images_.push_back(imagesObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeExportImageInfoResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeExportImageInfoResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeExportImageInfoResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeExportImageInfoResult::getImages()const +{ + return images_; +} + diff --git a/ens/src/model/DescribeExportImageStatusRequest.cc b/ens/src/model/DescribeExportImageStatusRequest.cc new file mode 100644 index 000000000..eef724896 --- /dev/null +++ b/ens/src/model/DescribeExportImageStatusRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeExportImageStatusRequest; + +DescribeExportImageStatusRequest::DescribeExportImageStatusRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeExportImageStatus") { + setMethod(HttpRequest::Method::Post); +} + +DescribeExportImageStatusRequest::~DescribeExportImageStatusRequest() {} + +std::string DescribeExportImageStatusRequest::getImageId() const { + return imageId_; +} + +void DescribeExportImageStatusRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + diff --git a/ens/src/model/DescribeExportImageStatusResult.cc b/ens/src/model/DescribeExportImageStatusResult.cc new file mode 100644 index 000000000..a9afaaf3a --- /dev/null +++ b/ens/src/model/DescribeExportImageStatusResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeExportImageStatusResult::DescribeExportImageStatusResult() : + ServiceResult() +{} + +DescribeExportImageStatusResult::DescribeExportImageStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeExportImageStatusResult::~DescribeExportImageStatusResult() +{} + +void DescribeExportImageStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ImageExportStatus"].isNull()) + imageExportStatus_ = value["ImageExportStatus"].asString(); + +} + +std::string DescribeExportImageStatusResult::getImageExportStatus()const +{ + return imageExportStatus_; +} + diff --git a/ens/src/model/DescribeImageInfosRequest.cc b/ens/src/model/DescribeImageInfosRequest.cc new file mode 100644 index 000000000..7d9479698 --- /dev/null +++ b/ens/src/model/DescribeImageInfosRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeImageInfosRequest; + +DescribeImageInfosRequest::DescribeImageInfosRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeImageInfos") { + setMethod(HttpRequest::Method::Post); +} + +DescribeImageInfosRequest::~DescribeImageInfosRequest() {} + +std::string DescribeImageInfosRequest::getOsType() const { + return osType_; +} + +void DescribeImageInfosRequest::setOsType(const std::string &osType) { + osType_ = osType; + setParameter(std::string("OsType"), osType); +} + diff --git a/ens/src/model/DescribeImageInfosResult.cc b/ens/src/model/DescribeImageInfosResult.cc new file mode 100644 index 000000000..89166d922 --- /dev/null +++ b/ens/src/model/DescribeImageInfosResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeImageInfosResult::DescribeImageInfosResult() : + ServiceResult() +{} + +DescribeImageInfosResult::DescribeImageInfosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeImageInfosResult::~DescribeImageInfosResult() +{} + +void DescribeImageInfosResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImagesNode = value["Images"]["Image"]; + for (auto valueImagesImage : allImagesNode) + { + Image imagesObject; + if(!valueImagesImage["Description"].isNull()) + imagesObject.description = valueImagesImage["Description"].asString(); + if(!valueImagesImage["ImageId"].isNull()) + imagesObject.imageId = valueImagesImage["ImageId"].asString(); + if(!valueImagesImage["ImageSize"].isNull()) + imagesObject.imageSize = valueImagesImage["ImageSize"].asString(); + if(!valueImagesImage["ImageVersion"].isNull()) + imagesObject.imageVersion = valueImagesImage["ImageVersion"].asString(); + if(!valueImagesImage["OSName"].isNull()) + imagesObject.oSName = valueImagesImage["OSName"].asString(); + if(!valueImagesImage["OSType"].isNull()) + imagesObject.oSType = valueImagesImage["OSType"].asString(); + images_.push_back(imagesObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +std::vector DescribeImageInfosResult::getImages()const +{ + return images_; +} + +int DescribeImageInfosResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/DescribeImageSharePermissionRequest.cc b/ens/src/model/DescribeImageSharePermissionRequest.cc new file mode 100644 index 000000000..51b82dd9e --- /dev/null +++ b/ens/src/model/DescribeImageSharePermissionRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeImageSharePermissionRequest; + +DescribeImageSharePermissionRequest::DescribeImageSharePermissionRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeImageSharePermission") { + setMethod(HttpRequest::Method::Post); +} + +DescribeImageSharePermissionRequest::~DescribeImageSharePermissionRequest() {} + +std::string DescribeImageSharePermissionRequest::getImageId() const { + return imageId_; +} + +void DescribeImageSharePermissionRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::string DescribeImageSharePermissionRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeImageSharePermissionRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); +} + +std::string DescribeImageSharePermissionRequest::getPageSize() const { + return pageSize_; +} + +void DescribeImageSharePermissionRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +long DescribeImageSharePermissionRequest::getAliyunId() const { + return aliyunId_; +} + +void DescribeImageSharePermissionRequest::setAliyunId(long aliyunId) { + aliyunId_ = aliyunId; + setParameter(std::string("AliyunId"), std::to_string(aliyunId)); +} + diff --git a/ens/src/model/DescribeImageSharePermissionResult.cc b/ens/src/model/DescribeImageSharePermissionResult.cc new file mode 100644 index 000000000..ae814a6c0 --- /dev/null +++ b/ens/src/model/DescribeImageSharePermissionResult.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::Ens; +using namespace AlibabaCloud::Ens::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 allAccounts = value["Accounts"]["Account"]; + for (const auto &item : allAccounts) + accounts_.push_back(item.asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["ImageId"].isNull()) + imageId_ = value["ImageId"].asString(); + +} + +int DescribeImageSharePermissionResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeImageSharePermissionResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeImageSharePermissionResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeImageSharePermissionResult::getImageId()const +{ + return imageId_; +} + +std::vector DescribeImageSharePermissionResult::getAccounts()const +{ + return accounts_; +} + diff --git a/ens/src/model/DescribeImagesRequest.cc b/ens/src/model/DescribeImagesRequest.cc new file mode 100644 index 000000000..dd23bf4f4 --- /dev/null +++ b/ens/src/model/DescribeImagesRequest.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 + +using AlibabaCloud::Ens::Model::DescribeImagesRequest; + +DescribeImagesRequest::DescribeImagesRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeImages") { + setMethod(HttpRequest::Method::Post); +} + +DescribeImagesRequest::~DescribeImagesRequest() {} + +std::string DescribeImagesRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeImagesRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string DescribeImagesRequest::getStatus() const { + return status_; +} + +void DescribeImagesRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + +std::string DescribeImagesRequest::getImageId() const { + return imageId_; +} + +void DescribeImagesRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::string DescribeImagesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeImagesRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); +} + +std::string DescribeImagesRequest::getImageName() const { + return imageName_; +} + +void DescribeImagesRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setParameter(std::string("ImageName"), imageName); +} + +std::string DescribeImagesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeImagesRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string DescribeImagesRequest::getProduct() const { + return product_; +} + +void DescribeImagesRequest::setProduct(const std::string &product) { + product_ = product; + setParameter(std::string("product"), product); +} + diff --git a/ens/src/model/DescribeImagesResult.cc b/ens/src/model/DescribeImagesResult.cc new file mode 100644 index 000000000..96cea5b7c --- /dev/null +++ b/ens/src/model/DescribeImagesResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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 allImagesNode = value["Images"]["Image"]; + for (auto valueImagesImage : allImagesNode) + { + Image imagesObject; + if(!valueImagesImage["Architecture"].isNull()) + imagesObject.architecture = valueImagesImage["Architecture"].asString(); + if(!valueImagesImage["CreationTime"].isNull()) + imagesObject.creationTime = valueImagesImage["CreationTime"].asString(); + if(!valueImagesImage["ImageId"].isNull()) + imagesObject.imageId = valueImagesImage["ImageId"].asString(); + if(!valueImagesImage["ImageName"].isNull()) + imagesObject.imageName = valueImagesImage["ImageName"].asString(); + if(!valueImagesImage["ImageOwnerAlias"].isNull()) + imagesObject.imageOwnerAlias = valueImagesImage["ImageOwnerAlias"].asString(); + if(!valueImagesImage["ImageSize"].isNull()) + imagesObject.imageSize = valueImagesImage["ImageSize"].asString(); + if(!valueImagesImage["Platform"].isNull()) + imagesObject.platform = valueImagesImage["Platform"].asString(); + images_.push_back(imagesObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeImagesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeImagesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeImagesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeImagesResult::getImages()const +{ + return images_; +} + +int DescribeImagesResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/DescribeInstanceAutoRenewAttributeRequest.cc b/ens/src/model/DescribeInstanceAutoRenewAttributeRequest.cc new file mode 100644 index 000000000..0977a8811 --- /dev/null +++ b/ens/src/model/DescribeInstanceAutoRenewAttributeRequest.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 + +using AlibabaCloud::Ens::Model::DescribeInstanceAutoRenewAttributeRequest; + +DescribeInstanceAutoRenewAttributeRequest::DescribeInstanceAutoRenewAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeInstanceAutoRenewAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeInstanceAutoRenewAttributeRequest::~DescribeInstanceAutoRenewAttributeRequest() {} + +long DescribeInstanceAutoRenewAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeInstanceAutoRenewAttributeRequest::getInstanceIds() const { + return instanceIds_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); +} + diff --git a/ens/src/model/DescribeInstanceAutoRenewAttributeResult.cc b/ens/src/model/DescribeInstanceAutoRenewAttributeResult.cc new file mode 100644 index 000000000..7155f2c10 --- /dev/null +++ b/ens/src/model/DescribeInstanceAutoRenewAttributeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeInstanceAutoRenewAttributeResult::DescribeInstanceAutoRenewAttributeResult() : + ServiceResult() +{} + +DescribeInstanceAutoRenewAttributeResult::DescribeInstanceAutoRenewAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceAutoRenewAttributeResult::~DescribeInstanceAutoRenewAttributeResult() +{} + +void DescribeInstanceAutoRenewAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceRenewAttributesNode = value["InstanceRenewAttributes"]["InstanceRenewAttribute"]; + for (auto valueInstanceRenewAttributesInstanceRenewAttribute : allInstanceRenewAttributesNode) + { + InstanceRenewAttribute instanceRenewAttributesObject; + if(!valueInstanceRenewAttributesInstanceRenewAttribute["AutoRenewal"].isNull()) + instanceRenewAttributesObject.autoRenewal = valueInstanceRenewAttributesInstanceRenewAttribute["AutoRenewal"].asString() == "true"; + if(!valueInstanceRenewAttributesInstanceRenewAttribute["Duration"].isNull()) + instanceRenewAttributesObject.duration = valueInstanceRenewAttributesInstanceRenewAttribute["Duration"].asString(); + if(!valueInstanceRenewAttributesInstanceRenewAttribute["InstanceId"].isNull()) + instanceRenewAttributesObject.instanceId = valueInstanceRenewAttributesInstanceRenewAttribute["InstanceId"].asString(); + instanceRenewAttributes_.push_back(instanceRenewAttributesObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +std::vector DescribeInstanceAutoRenewAttributeResult::getInstanceRenewAttributes()const +{ + return instanceRenewAttributes_; +} + +int DescribeInstanceAutoRenewAttributeResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/DescribeInstanceMonitorDataRequest.cc b/ens/src/model/DescribeInstanceMonitorDataRequest.cc new file mode 100644 index 000000000..b614f3f5d --- /dev/null +++ b/ens/src/model/DescribeInstanceMonitorDataRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeInstanceMonitorDataRequest; + +DescribeInstanceMonitorDataRequest::DescribeInstanceMonitorDataRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeInstanceMonitorData") { + setMethod(HttpRequest::Method::Post); +} + +DescribeInstanceMonitorDataRequest::~DescribeInstanceMonitorDataRequest() {} + +std::string DescribeInstanceMonitorDataRequest::getStartTime() const { + return startTime_; +} + +void DescribeInstanceMonitorDataRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeInstanceMonitorDataRequest::getPeriod() const { + return period_; +} + +void DescribeInstanceMonitorDataRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); +} + +std::string DescribeInstanceMonitorDataRequest::getEndTime() const { + return endTime_; +} + +void DescribeInstanceMonitorDataRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DescribeInstanceMonitorDataRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeInstanceMonitorDataRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/DescribeInstanceMonitorDataResult.cc b/ens/src/model/DescribeInstanceMonitorDataResult.cc new file mode 100644 index 000000000..ae298f52f --- /dev/null +++ b/ens/src/model/DescribeInstanceMonitorDataResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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 allMonitorDataNode = value["MonitorData"]["InstanceMonitorData"]; + for (auto valueMonitorDataInstanceMonitorData : allMonitorDataNode) + { + InstanceMonitorData monitorDataObject; + if(!valueMonitorDataInstanceMonitorData["CPU"].isNull()) + monitorDataObject.cPU = valueMonitorDataInstanceMonitorData["CPU"].asString(); + if(!valueMonitorDataInstanceMonitorData["InstanceId"].isNull()) + monitorDataObject.instanceId = valueMonitorDataInstanceMonitorData["InstanceId"].asString(); + if(!valueMonitorDataInstanceMonitorData["Memory"].isNull()) + monitorDataObject.memory = valueMonitorDataInstanceMonitorData["Memory"].asString(); + monitorData_.push_back(monitorDataObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +std::vector DescribeInstanceMonitorDataResult::getMonitorData()const +{ + return monitorData_; +} + +int DescribeInstanceMonitorDataResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/DescribeInstanceSpecRequest.cc b/ens/src/model/DescribeInstanceSpecRequest.cc new file mode 100644 index 000000000..ec3d8c131 --- /dev/null +++ b/ens/src/model/DescribeInstanceSpecRequest.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 AlibabaCloud::Ens::Model::DescribeInstanceSpecRequest; + +DescribeInstanceSpecRequest::DescribeInstanceSpecRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeInstanceSpec") { + setMethod(HttpRequest::Method::Post); +} + +DescribeInstanceSpecRequest::~DescribeInstanceSpecRequest() {} + diff --git a/ens/src/model/DescribeInstanceSpecResult.cc b/ens/src/model/DescribeInstanceSpecResult.cc new file mode 100644 index 000000000..3a59ca0e3 --- /dev/null +++ b/ens/src/model/DescribeInstanceSpecResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeInstanceSpecResult::DescribeInstanceSpecResult() : + ServiceResult() +{} + +DescribeInstanceSpecResult::DescribeInstanceSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeInstanceSpecResult::~DescribeInstanceSpecResult() +{} + +void DescribeInstanceSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceSpecsNode = value["InstanceSpecs"]["InstanceSpec"]; + for (auto valueInstanceSpecsInstanceSpec : allInstanceSpecsNode) + { + InstanceSpec instanceSpecsObject; + if(!valueInstanceSpecsInstanceSpec["Core"].isNull()) + instanceSpecsObject.core = valueInstanceSpecsInstanceSpec["Core"].asString(); + if(!valueInstanceSpecsInstanceSpec["DisplayName"].isNull()) + instanceSpecsObject.displayName = valueInstanceSpecsInstanceSpec["DisplayName"].asString(); + if(!valueInstanceSpecsInstanceSpec["InstanceType"].isNull()) + instanceSpecsObject.instanceType = valueInstanceSpecsInstanceSpec["InstanceType"].asString(); + if(!valueInstanceSpecsInstanceSpec["Memory"].isNull()) + instanceSpecsObject.memory = valueInstanceSpecsInstanceSpec["Memory"].asString(); + instanceSpecs_.push_back(instanceSpecsObject); + } + if(!value["BandwidthLimit"].isNull()) + bandwidthLimit_ = std::stoi(value["BandwidthLimit"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["DataDiskMaxSize"].isNull()) + dataDiskMaxSize_ = std::stoi(value["DataDiskMaxSize"].asString()); + if(!value["DataDiskMinSize"].isNull()) + dataDiskMinSize_ = std::stoi(value["DataDiskMinSize"].asString()); + if(!value["SystemDiskMaxSize"].isNull()) + systemDiskMaxSize_ = std::stoi(value["SystemDiskMaxSize"].asString()); + +} + +int DescribeInstanceSpecResult::getDataDiskMinSize()const +{ + return dataDiskMinSize_; +} + +int DescribeInstanceSpecResult::getSystemDiskMaxSize()const +{ + return systemDiskMaxSize_; +} + +int DescribeInstanceSpecResult::getDataDiskMaxSize()const +{ + return dataDiskMaxSize_; +} + +int DescribeInstanceSpecResult::getCode()const +{ + return code_; +} + +std::vector DescribeInstanceSpecResult::getInstanceSpecs()const +{ + return instanceSpecs_; +} + +int DescribeInstanceSpecResult::getBandwidthLimit()const +{ + return bandwidthLimit_; +} + diff --git a/ens/src/model/DescribeInstanceTypesRequest.cc b/ens/src/model/DescribeInstanceTypesRequest.cc new file mode 100644 index 000000000..6662aff94 --- /dev/null +++ b/ens/src/model/DescribeInstanceTypesRequest.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 AlibabaCloud::Ens::Model::DescribeInstanceTypesRequest; + +DescribeInstanceTypesRequest::DescribeInstanceTypesRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeInstanceTypes") { + setMethod(HttpRequest::Method::Post); +} + +DescribeInstanceTypesRequest::~DescribeInstanceTypesRequest() {} + diff --git a/ens/src/model/DescribeInstanceTypesResult.cc b/ens/src/model/DescribeInstanceTypesResult.cc new file mode 100644 index 000000000..518585563 --- /dev/null +++ b/ens/src/model/DescribeInstanceTypesResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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 allInstanceTypesNode = value["InstanceTypes"]["InstanceType"]; + for (auto valueInstanceTypesInstanceType : allInstanceTypesNode) + { + InstanceType instanceTypesObject; + if(!valueInstanceTypesInstanceType["CpuCoreCount"].isNull()) + instanceTypesObject.cpuCoreCount = std::stoi(valueInstanceTypesInstanceType["CpuCoreCount"].asString()); + if(!valueInstanceTypesInstanceType["InstanceTypeId"].isNull()) + instanceTypesObject.instanceTypeId = valueInstanceTypesInstanceType["InstanceTypeId"].asString(); + if(!valueInstanceTypesInstanceType["InstanceTypeName"].isNull()) + instanceTypesObject.instanceTypeName = valueInstanceTypesInstanceType["InstanceTypeName"].asString(); + if(!valueInstanceTypesInstanceType["MemorySize"].isNull()) + instanceTypesObject.memorySize = std::stoi(valueInstanceTypesInstanceType["MemorySize"].asString()); + instanceTypes_.push_back(instanceTypesObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +std::vector DescribeInstanceTypesResult::getInstanceTypes()const +{ + return instanceTypes_; +} + +int DescribeInstanceTypesResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/DescribeInstanceVncUrlRequest.cc b/ens/src/model/DescribeInstanceVncUrlRequest.cc new file mode 100644 index 000000000..449096dfd --- /dev/null +++ b/ens/src/model/DescribeInstanceVncUrlRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeInstanceVncUrlRequest; + +DescribeInstanceVncUrlRequest::DescribeInstanceVncUrlRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeInstanceVncUrl") { + setMethod(HttpRequest::Method::Post); +} + +DescribeInstanceVncUrlRequest::~DescribeInstanceVncUrlRequest() {} + +std::string DescribeInstanceVncUrlRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeInstanceVncUrlRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/DescribeInstanceVncUrlResult.cc b/ens/src/model/DescribeInstanceVncUrlResult.cc new file mode 100644 index 000000000..7b3b3c12e --- /dev/null +++ b/ens/src/model/DescribeInstanceVncUrlResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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()); + if(!value["VncUrl"].isNull()) + vncUrl_ = value["VncUrl"].asString(); + +} + +std::string DescribeInstanceVncUrlResult::getVncUrl()const +{ + return vncUrl_; +} + diff --git a/ens/src/model/DescribeInstancesRequest.cc b/ens/src/model/DescribeInstancesRequest.cc new file mode 100644 index 000000000..15f88b698 --- /dev/null +++ b/ens/src/model/DescribeInstancesRequest.cc @@ -0,0 +1,171 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeInstancesRequest; + +DescribeInstancesRequest::DescribeInstancesRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeInstances") { + setMethod(HttpRequest::Method::Post); +} + +DescribeInstancesRequest::~DescribeInstancesRequest() {} + +std::string DescribeInstancesRequest::getOrderByParams() const { + return orderByParams_; +} + +void DescribeInstancesRequest::setOrderByParams(const std::string &orderByParams) { + orderByParams_ = orderByParams; + setParameter(std::string("OrderByParams"), orderByParams); +} + +std::string DescribeInstancesRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeInstancesRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string DescribeInstancesRequest::getInstanceResourceType() const { + return instanceResourceType_; +} + +void DescribeInstancesRequest::setInstanceResourceType(const std::string &instanceResourceType) { + instanceResourceType_ = instanceResourceType; + setParameter(std::string("InstanceResourceType"), instanceResourceType); +} + +std::string DescribeInstancesRequest::getEnsServiceId() const { + return ensServiceId_; +} + +void DescribeInstancesRequest::setEnsServiceId(const std::string &ensServiceId) { + ensServiceId_ = ensServiceId; + setParameter(std::string("EnsServiceId"), ensServiceId); +} + +std::string DescribeInstancesRequest::getVSwitchId() const { + return vSwitchId_; +} + +void DescribeInstancesRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string DescribeInstancesRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeInstancesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string DescribeInstancesRequest::getInstanceName() const { + return instanceName_; +} + +void DescribeInstancesRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); +} + +std::string DescribeInstancesRequest::getInstanceIds() const { + return instanceIds_; +} + +void DescribeInstancesRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); +} + +std::string DescribeInstancesRequest::getNetworkId() const { + return networkId_; +} + +void DescribeInstancesRequest::setNetworkId(const std::string &networkId) { + networkId_ = networkId; + setParameter(std::string("NetworkId"), networkId); +} + +std::string DescribeInstancesRequest::getStatus() const { + return status_; +} + +void DescribeInstancesRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + +std::string DescribeInstancesRequest::getImageId() const { + return imageId_; +} + +void DescribeInstancesRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::string DescribeInstancesRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void DescribeInstancesRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + +std::string DescribeInstancesRequest::getSearchKey() const { + return searchKey_; +} + +void DescribeInstancesRequest::setSearchKey(const std::string &searchKey) { + searchKey_ = searchKey; + setParameter(std::string("SearchKey"), searchKey); +} + +int DescribeInstancesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeInstancesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeInstancesRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string DescribeInstancesRequest::getEnsRegionIds() const { + return ensRegionIds_; +} + +void DescribeInstancesRequest::setEnsRegionIds(const std::string &ensRegionIds) { + ensRegionIds_ = ensRegionIds; + setParameter(std::string("EnsRegionIds"), ensRegionIds); +} + diff --git a/ens/src/model/DescribeInstancesResult.cc b/ens/src/model/DescribeInstancesResult.cc new file mode 100644 index 000000000..8e9f14c03 --- /dev/null +++ b/ens/src/model/DescribeInstancesResult.cc @@ -0,0 +1,199 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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 allInstancesNode = value["Instances"]["Instance"]; + for (auto valueInstancesInstance : allInstancesNode) + { + Instance instancesObject; + if(!valueInstancesInstance["CreationTime"].isNull()) + instancesObject.creationTime = valueInstancesInstance["CreationTime"].asString(); + if(!valueInstancesInstance["Status"].isNull()) + instancesObject.status = valueInstancesInstance["Status"].asString(); + if(!valueInstancesInstance["SpecName"].isNull()) + instancesObject.specName = valueInstancesInstance["SpecName"].asString(); + if(!valueInstancesInstance["InstanceResourceType"].isNull()) + instancesObject.instanceResourceType = valueInstancesInstance["InstanceResourceType"].asString(); + if(!valueInstancesInstance["HostName"].isNull()) + instancesObject.hostName = valueInstancesInstance["HostName"].asString(); + if(!valueInstancesInstance["InstanceId"].isNull()) + instancesObject.instanceId = valueInstancesInstance["InstanceId"].asString(); + if(!valueInstancesInstance["InternetMaxBandwidthIn"].isNull()) + instancesObject.internetMaxBandwidthIn = std::stoi(valueInstancesInstance["InternetMaxBandwidthIn"].asString()); + if(!valueInstancesInstance["InternetMaxBandwidthOut"].isNull()) + instancesObject.internetMaxBandwidthOut = std::stoi(valueInstancesInstance["InternetMaxBandwidthOut"].asString()); + if(!valueInstancesInstance["EnsRegionId"].isNull()) + instancesObject.ensRegionId = valueInstancesInstance["EnsRegionId"].asString(); + if(!valueInstancesInstance["Cpu"].isNull()) + instancesObject.cpu = valueInstancesInstance["Cpu"].asString(); + if(!valueInstancesInstance["ExpiredTime"].isNull()) + instancesObject.expiredTime = valueInstancesInstance["ExpiredTime"].asString(); + if(!valueInstancesInstance["InstanceName"].isNull()) + instancesObject.instanceName = valueInstancesInstance["InstanceName"].asString(); + if(!valueInstancesInstance["Disk"].isNull()) + instancesObject.disk = std::stoi(valueInstancesInstance["Disk"].asString()); + if(!valueInstancesInstance["Memory"].isNull()) + instancesObject.memory = std::stoi(valueInstancesInstance["Memory"].asString()); + if(!valueInstancesInstance["OSName"].isNull()) + instancesObject.oSName = valueInstancesInstance["OSName"].asString(); + if(!valueInstancesInstance["ImageId"].isNull()) + instancesObject.imageId = valueInstancesInstance["ImageId"].asString(); + auto allDataDiskNode = valueInstancesInstance["DataDisk"]["DataDiskItem"]; + for (auto valueInstancesInstanceDataDiskDataDiskItem : allDataDiskNode) + { + Instance::DataDiskItem dataDiskObject; + if(!valueInstancesInstanceDataDiskDataDiskItem["device_type"].isNull()) + dataDiskObject.device_type = valueInstancesInstanceDataDiskDataDiskItem["device_type"].asString(); + if(!valueInstancesInstanceDataDiskDataDiskItem["disk_type"].isNull()) + dataDiskObject.disk_type = valueInstancesInstanceDataDiskDataDiskItem["disk_type"].asString(); + if(!valueInstancesInstanceDataDiskDataDiskItem["Size"].isNull()) + dataDiskObject.size = std::stoi(valueInstancesInstanceDataDiskDataDiskItem["Size"].asString()); + if(!valueInstancesInstanceDataDiskDataDiskItem["DiskName"].isNull()) + dataDiskObject.diskName = valueInstancesInstanceDataDiskDataDiskItem["DiskName"].asString(); + if(!valueInstancesInstanceDataDiskDataDiskItem["uuid"].isNull()) + dataDiskObject.uuid = valueInstancesInstanceDataDiskDataDiskItem["uuid"].asString(); + if(!valueInstancesInstanceDataDiskDataDiskItem["storage"].isNull()) + dataDiskObject.storage = std::stoi(valueInstancesInstanceDataDiskDataDiskItem["storage"].asString()); + if(!valueInstancesInstanceDataDiskDataDiskItem["DiskId"].isNull()) + dataDiskObject.diskId = valueInstancesInstanceDataDiskDataDiskItem["DiskId"].asString(); + if(!valueInstancesInstanceDataDiskDataDiskItem["Category"].isNull()) + dataDiskObject.category = valueInstancesInstanceDataDiskDataDiskItem["Category"].asString(); + if(!valueInstancesInstanceDataDiskDataDiskItem["name"].isNull()) + dataDiskObject.name = valueInstancesInstanceDataDiskDataDiskItem["name"].asString(); + instancesObject.dataDisk.push_back(dataDiskObject); + } + auto allPublicIpAddressesNode = valueInstancesInstance["PublicIpAddresses"]["PublicIpAddress"]; + for (auto valueInstancesInstancePublicIpAddressesPublicIpAddress : allPublicIpAddressesNode) + { + Instance::PublicIpAddress publicIpAddressesObject; + if(!valueInstancesInstancePublicIpAddressesPublicIpAddress["Ip"].isNull()) + publicIpAddressesObject.ip = valueInstancesInstancePublicIpAddressesPublicIpAddress["Ip"].asString(); + if(!valueInstancesInstancePublicIpAddressesPublicIpAddress["GateWay"].isNull()) + publicIpAddressesObject.gateWay = valueInstancesInstancePublicIpAddressesPublicIpAddress["GateWay"].asString(); + if(!valueInstancesInstancePublicIpAddressesPublicIpAddress["Isp"].isNull()) + publicIpAddressesObject.isp = valueInstancesInstancePublicIpAddressesPublicIpAddress["Isp"].asString(); + instancesObject.publicIpAddresses.push_back(publicIpAddressesObject); + } + auto allPrivateIpAddressesNode = valueInstancesInstance["PrivateIpAddresses"]["PrivateIpAddress"]; + for (auto valueInstancesInstancePrivateIpAddressesPrivateIpAddress : allPrivateIpAddressesNode) + { + Instance::PrivateIpAddress privateIpAddressesObject; + if(!valueInstancesInstancePrivateIpAddressesPrivateIpAddress["Ip"].isNull()) + privateIpAddressesObject.ip = valueInstancesInstancePrivateIpAddressesPrivateIpAddress["Ip"].asString(); + if(!valueInstancesInstancePrivateIpAddressesPrivateIpAddress["GateWay"].isNull()) + privateIpAddressesObject.gateWay = valueInstancesInstancePrivateIpAddressesPrivateIpAddress["GateWay"].asString(); + if(!valueInstancesInstancePrivateIpAddressesPrivateIpAddress["Isp"].isNull()) + privateIpAddressesObject.isp = valueInstancesInstancePrivateIpAddressesPrivateIpAddress["Isp"].asString(); + instancesObject.privateIpAddresses.push_back(privateIpAddressesObject); + } + auto systemDiskNode = value["SystemDisk"]; + if(!systemDiskNode["device_type"].isNull()) + instancesObject.systemDisk.device_type = systemDiskNode["device_type"].asString(); + if(!systemDiskNode["disk_type"].isNull()) + instancesObject.systemDisk.disk_type = systemDiskNode["disk_type"].asString(); + if(!systemDiskNode["Size"].isNull()) + instancesObject.systemDisk.size = std::stoi(systemDiskNode["Size"].asString()); + if(!systemDiskNode["DiskName"].isNull()) + instancesObject.systemDisk.diskName = systemDiskNode["DiskName"].asString(); + if(!systemDiskNode["uuid"].isNull()) + instancesObject.systemDisk.uuid = systemDiskNode["uuid"].asString(); + if(!systemDiskNode["storage"].isNull()) + instancesObject.systemDisk.storage = std::stoi(systemDiskNode["storage"].asString()); + if(!systemDiskNode["DiskId"].isNull()) + instancesObject.systemDisk.diskId = systemDiskNode["DiskId"].asString(); + if(!systemDiskNode["Category"].isNull()) + instancesObject.systemDisk.category = systemDiskNode["Category"].asString(); + if(!systemDiskNode["name"].isNull()) + instancesObject.systemDisk.name = systemDiskNode["name"].asString(); + auto networkAttributesNode = value["NetworkAttributes"]; + if(!networkAttributesNode["NetworkId"].isNull()) + instancesObject.networkAttributes.networkId = networkAttributesNode["NetworkId"].asString(); + if(!networkAttributesNode["VSwitchId"].isNull()) + instancesObject.networkAttributes.vSwitchId = networkAttributesNode["VSwitchId"].asString(); + auto allPrivateIpAddress = networkAttributesNode["PrivateIpAddress"]["IpAddress"]; + for (auto value : allPrivateIpAddress) + instancesObject.networkAttributes.privateIpAddress.push_back(value.asString()); + auto allSecurityGroupIds = value["SecurityGroupIds"]["SecurityGroupId"]; + for (auto value : allSecurityGroupIds) + instancesObject.securityGroupIds.push_back(value.asString()); + auto allInnerIpAddress = value["InnerIpAddress"]["IpAddress"]; + for (auto value : allInnerIpAddress) + instancesObject.innerIpAddress.push_back(value.asString()); + auto allPublicIpAddress = value["PublicIpAddress"]["IpAddress"]; + for (auto value : allPublicIpAddress) + instancesObject.publicIpAddress.push_back(value.asString()); + instances_.push_back(instancesObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::vector DescribeInstancesResult::getInstances()const +{ + return instances_; +} + +int DescribeInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeInstancesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + +int DescribeInstancesResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/DescribeKeyPairsRequest.cc b/ens/src/model/DescribeKeyPairsRequest.cc new file mode 100644 index 000000000..77a46eaed --- /dev/null +++ b/ens/src/model/DescribeKeyPairsRequest.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 + +using AlibabaCloud::Ens::Model::DescribeKeyPairsRequest; + +DescribeKeyPairsRequest::DescribeKeyPairsRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeKeyPairs") { + setMethod(HttpRequest::Method::Post); +} + +DescribeKeyPairsRequest::~DescribeKeyPairsRequest() {} + +std::string DescribeKeyPairsRequest::getKeyPairName() const { + return keyPairName_; +} + +void DescribeKeyPairsRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); +} + +std::string DescribeKeyPairsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeKeyPairsRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); +} + +std::string DescribeKeyPairsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeKeyPairsRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + diff --git a/ens/src/model/DescribeKeyPairsResult.cc b/ens/src/model/DescribeKeyPairsResult.cc new file mode 100644 index 000000000..bc24f5312 --- /dev/null +++ b/ens/src/model/DescribeKeyPairsResult.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::Ens; +using namespace AlibabaCloud::Ens::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 allKeyPairsNode = value["KeyPairs"]["KeyPair"]; + for (auto valueKeyPairsKeyPair : allKeyPairsNode) + { + KeyPair keyPairsObject; + if(!valueKeyPairsKeyPair["CreationTime"].isNull()) + keyPairsObject.creationTime = valueKeyPairsKeyPair["CreationTime"].asString(); + if(!valueKeyPairsKeyPair["KeyPairFingerPrint"].isNull()) + keyPairsObject.keyPairFingerPrint = valueKeyPairsKeyPair["KeyPairFingerPrint"].asString(); + if(!valueKeyPairsKeyPair["KeyPairName"].isNull()) + keyPairsObject.keyPairName = valueKeyPairsKeyPair["KeyPairName"].asString(); + keyPairs_.push_back(keyPairsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeKeyPairsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeKeyPairsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeKeyPairsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeKeyPairsResult::getKeyPairs()const +{ + return keyPairs_; +} + diff --git a/ens/src/model/DescribeLoadBalancerAttributeRequest.cc b/ens/src/model/DescribeLoadBalancerAttributeRequest.cc new file mode 100644 index 000000000..f09c66b20 --- /dev/null +++ b/ens/src/model/DescribeLoadBalancerAttributeRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeLoadBalancerAttributeRequest; + +DescribeLoadBalancerAttributeRequest::DescribeLoadBalancerAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeLoadBalancerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeLoadBalancerAttributeRequest::~DescribeLoadBalancerAttributeRequest() {} + +std::string DescribeLoadBalancerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DescribeLoadBalancerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/ens/src/model/DescribeLoadBalancerAttributeResult.cc b/ens/src/model/DescribeLoadBalancerAttributeResult.cc new file mode 100644 index 000000000..bd72d3ace --- /dev/null +++ b/ens/src/model/DescribeLoadBalancerAttributeResult.cc @@ -0,0 +1,185 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeLoadBalancerAttributeResult::DescribeLoadBalancerAttributeResult() : + ServiceResult() +{} + +DescribeLoadBalancerAttributeResult::DescribeLoadBalancerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLoadBalancerAttributeResult::~DescribeLoadBalancerAttributeResult() +{} + +void DescribeLoadBalancerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBackendServersNode = value["BackendServers"]["rs"]; + for (auto valueBackendServersrs : allBackendServersNode) + { + Rs backendServersObject; + if(!valueBackendServersrs["ServerId"].isNull()) + backendServersObject.serverId = valueBackendServersrs["ServerId"].asString(); + if(!valueBackendServersrs["Ip"].isNull()) + backendServersObject.ip = valueBackendServersrs["Ip"].asString(); + if(!valueBackendServersrs["Port"].isNull()) + backendServersObject.port = valueBackendServersrs["Port"].asString(); + if(!valueBackendServersrs["Type"].isNull()) + backendServersObject.type = valueBackendServersrs["Type"].asString(); + if(!valueBackendServersrs["Weight"].isNull()) + backendServersObject.weight = std::stoi(valueBackendServersrs["Weight"].asString()); + backendServers_.push_back(backendServersObject); + } + auto allListenerPortsAndProtocolsNode = value["ListenerPortsAndProtocols"]["listener"]; + for (auto valueListenerPortsAndProtocolslistener : allListenerPortsAndProtocolsNode) + { + Listener listenerPortsAndProtocolsObject; + if(!valueListenerPortsAndProtocolslistener["ListenerPort"].isNull()) + listenerPortsAndProtocolsObject.listenerPort = std::stoi(valueListenerPortsAndProtocolslistener["ListenerPort"].asString()); + if(!valueListenerPortsAndProtocolslistener["ListenerProtocol"].isNull()) + listenerPortsAndProtocolsObject.listenerProtocol = valueListenerPortsAndProtocolslistener["ListenerProtocol"].asString(); + if(!valueListenerPortsAndProtocolslistener["Description"].isNull()) + listenerPortsAndProtocolsObject.description = valueListenerPortsAndProtocolslistener["Description"].asString(); + if(!valueListenerPortsAndProtocolslistener["ListenerForward"].isNull()) + listenerPortsAndProtocolsObject.listenerForward = valueListenerPortsAndProtocolslistener["ListenerForward"].asString(); + if(!valueListenerPortsAndProtocolslistener["ForwardPort"].isNull()) + listenerPortsAndProtocolsObject.forwardPort = std::stoi(valueListenerPortsAndProtocolslistener["ForwardPort"].asString()); + listenerPortsAndProtocols_.push_back(listenerPortsAndProtocolsObject); + } + auto allListenerPorts = value["ListenerPorts"]["listenerPort"]; + for (const auto &item : allListenerPorts) + listenerPorts_.push_back(item.asString()); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); + if(!value["LoadBalancerName"].isNull()) + loadBalancerName_ = value["LoadBalancerName"].asString(); + if(!value["LoadBalancerStatus"].isNull()) + loadBalancerStatus_ = value["LoadBalancerStatus"].asString(); + if(!value["EnsRegionId"].isNull()) + ensRegionId_ = value["EnsRegionId"].asString(); + if(!value["Address"].isNull()) + address_ = value["Address"].asString(); + if(!value["NetworkId"].isNull()) + networkId_ = value["NetworkId"].asString(); + if(!value["VSwitchId"].isNull()) + vSwitchId_ = value["VSwitchId"].asString(); + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["LoadBalancerSpec"].isNull()) + loadBalancerSpec_ = value["LoadBalancerSpec"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["AddressIPVersion"].isNull()) + addressIPVersion_ = value["AddressIPVersion"].asString(); + if(!value["PayType"].isNull()) + payType_ = value["PayType"].asString(); + +} + +std::string DescribeLoadBalancerAttributeResult::getAddress()const +{ + return address_; +} + +std::string DescribeLoadBalancerAttributeResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeLoadBalancerAttributeResult::getVSwitchId()const +{ + return vSwitchId_; +} + +std::string DescribeLoadBalancerAttributeResult::getCreateTime()const +{ + return createTime_; +} + +std::string DescribeLoadBalancerAttributeResult::getAddressIPVersion()const +{ + return addressIPVersion_; +} + +std::string DescribeLoadBalancerAttributeResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +std::string DescribeLoadBalancerAttributeResult::getPayType()const +{ + return payType_; +} + +std::vector DescribeLoadBalancerAttributeResult::getBackendServers()const +{ + return backendServers_; +} + +std::string DescribeLoadBalancerAttributeResult::getNetworkId()const +{ + return networkId_; +} + +std::string DescribeLoadBalancerAttributeResult::getLoadBalancerSpec()const +{ + return loadBalancerSpec_; +} + +std::string DescribeLoadBalancerAttributeResult::getLoadBalancerName()const +{ + return loadBalancerName_; +} + +int DescribeLoadBalancerAttributeResult::getBandwidth()const +{ + return bandwidth_; +} + +std::vector DescribeLoadBalancerAttributeResult::getListenerPortsAndProtocols()const +{ + return listenerPortsAndProtocols_; +} + +std::string DescribeLoadBalancerAttributeResult::getEnsRegionId()const +{ + return ensRegionId_; +} + +std::string DescribeLoadBalancerAttributeResult::getLoadBalancerStatus()const +{ + return loadBalancerStatus_; +} + +std::vector DescribeLoadBalancerAttributeResult::getListenerPorts()const +{ + return listenerPorts_; +} + diff --git a/ens/src/model/DescribeLoadBalancerHTTPListenerAttributeRequest.cc b/ens/src/model/DescribeLoadBalancerHTTPListenerAttributeRequest.cc new file mode 100644 index 000000000..e1b4e68fc --- /dev/null +++ b/ens/src/model/DescribeLoadBalancerHTTPListenerAttributeRequest.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 + +using AlibabaCloud::Ens::Model::DescribeLoadBalancerHTTPListenerAttributeRequest; + +DescribeLoadBalancerHTTPListenerAttributeRequest::DescribeLoadBalancerHTTPListenerAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeLoadBalancerHTTPListenerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeLoadBalancerHTTPListenerAttributeRequest::~DescribeLoadBalancerHTTPListenerAttributeRequest() {} + +std::string DescribeLoadBalancerHTTPListenerAttributeRequest::getProtocol() const { + return protocol_; +} + +void DescribeLoadBalancerHTTPListenerAttributeRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +int DescribeLoadBalancerHTTPListenerAttributeRequest::getListenerPort() const { + return listenerPort_; +} + +void DescribeLoadBalancerHTTPListenerAttributeRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string DescribeLoadBalancerHTTPListenerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DescribeLoadBalancerHTTPListenerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/ens/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc b/ens/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc new file mode 100644 index 000000000..8eb40a323 --- /dev/null +++ b/ens/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc @@ -0,0 +1,212 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeLoadBalancerHTTPListenerAttributeResult::DescribeLoadBalancerHTTPListenerAttributeResult() : + ServiceResult() +{} + +DescribeLoadBalancerHTTPListenerAttributeResult::DescribeLoadBalancerHTTPListenerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLoadBalancerHTTPListenerAttributeResult::~DescribeLoadBalancerHTTPListenerAttributeResult() +{} + +void DescribeLoadBalancerHTTPListenerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ListenerPort"].isNull()) + listenerPort_ = std::stoi(value["ListenerPort"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["Scheduler"].isNull()) + scheduler_ = value["Scheduler"].asString(); + if(!value["StickySession"].isNull()) + stickySession_ = value["StickySession"].asString(); + if(!value["StickySessionType"].isNull()) + stickySessionType_ = value["StickySessionType"].asString(); + if(!value["CookieTimeout"].isNull()) + cookieTimeout_ = std::stoi(value["CookieTimeout"].asString()); + if(!value["Cookie"].isNull()) + cookie_ = value["Cookie"].asString(); + if(!value["HealthCheck"].isNull()) + healthCheck_ = value["HealthCheck"].asString(); + if(!value["HealthyThreshold"].isNull()) + healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); + if(!value["UnhealthyThreshold"].isNull()) + unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); + if(!value["HealthCheckTimeout"].isNull()) + healthCheckTimeout_ = std::stoi(value["HealthCheckTimeout"].asString()); + if(!value["HealthCheckConnectPort"].isNull()) + healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); + if(!value["HealthCheckInterval"].isNull()) + healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["ListenerForward"].isNull()) + listenerForward_ = value["ListenerForward"].asString(); + if(!value["ForwardPort"].isNull()) + forwardPort_ = std::stoi(value["ForwardPort"].asString()); + if(!value["RequestTimeout"].isNull()) + requestTimeout_ = std::stoi(value["RequestTimeout"].asString()); + if(!value["IdleTimeout"].isNull()) + idleTimeout_ = std::stoi(value["IdleTimeout"].asString()); + if(!value["HealthCheckHttpCode"].isNull()) + healthCheckHttpCode_ = value["HealthCheckHttpCode"].asString(); + if(!value["HealthCheckDomain"].isNull()) + healthCheckDomain_ = value["HealthCheckDomain"].asString(); + if(!value["HealthCheckURI"].isNull()) + healthCheckURI_ = value["HealthCheckURI"].asString(); + if(!value["ServerCertificateId"].isNull()) + serverCertificateId_ = value["ServerCertificateId"].asString(); + if(!value["HealthCheckMethod"].isNull()) + healthCheckMethod_ = value["HealthCheckMethod"].asString(); + +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getStatus()const +{ + return status_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getCookieTimeout()const +{ + return cookieTimeout_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getCookie()const +{ + return cookie_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getListenerPort()const +{ + return listenerPort_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getRequestTimeout()const +{ + return requestTimeout_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckInterval()const +{ + return healthCheckInterval_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getDescription()const +{ + return description_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getUnhealthyThreshold()const +{ + return unhealthyThreshold_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getScheduler()const +{ + return scheduler_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckURI()const +{ + return healthCheckURI_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheck()const +{ + return healthCheck_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getIdleTimeout()const +{ + return idleTimeout_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckTimeout()const +{ + return healthCheckTimeout_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getListenerForward()const +{ + return listenerForward_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getStickySession()const +{ + return stickySession_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckConnectPort()const +{ + return healthCheckConnectPort_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getForwardPort()const +{ + return forwardPort_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckMethod()const +{ + return healthCheckMethod_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getBandwidth()const +{ + return bandwidth_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthyThreshold()const +{ + return healthyThreshold_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckDomain()const +{ + return healthCheckDomain_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getServerCertificateId()const +{ + return serverCertificateId_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getStickySessionType()const +{ + return stickySessionType_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckHttpCode()const +{ + return healthCheckHttpCode_; +} + diff --git a/ens/src/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.cc b/ens/src/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.cc new file mode 100644 index 000000000..a835e81bc --- /dev/null +++ b/ens/src/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.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 + +using AlibabaCloud::Ens::Model::DescribeLoadBalancerHTTPSListenerAttributeRequest; + +DescribeLoadBalancerHTTPSListenerAttributeRequest::DescribeLoadBalancerHTTPSListenerAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeLoadBalancerHTTPSListenerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeLoadBalancerHTTPSListenerAttributeRequest::~DescribeLoadBalancerHTTPSListenerAttributeRequest() {} + +std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getProtocol() const { + return protocol_; +} + +void DescribeLoadBalancerHTTPSListenerAttributeRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +int DescribeLoadBalancerHTTPSListenerAttributeRequest::getListenerPort() const { + return listenerPort_; +} + +void DescribeLoadBalancerHTTPSListenerAttributeRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DescribeLoadBalancerHTTPSListenerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/ens/src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc b/ens/src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc new file mode 100644 index 000000000..4ff3975da --- /dev/null +++ b/ens/src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc @@ -0,0 +1,212 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeLoadBalancerHTTPSListenerAttributeResult::DescribeLoadBalancerHTTPSListenerAttributeResult() : + ServiceResult() +{} + +DescribeLoadBalancerHTTPSListenerAttributeResult::DescribeLoadBalancerHTTPSListenerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLoadBalancerHTTPSListenerAttributeResult::~DescribeLoadBalancerHTTPSListenerAttributeResult() +{} + +void DescribeLoadBalancerHTTPSListenerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ListenerPort"].isNull()) + listenerPort_ = std::stoi(value["ListenerPort"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["Scheduler"].isNull()) + scheduler_ = value["Scheduler"].asString(); + if(!value["StickySession"].isNull()) + stickySession_ = value["StickySession"].asString(); + if(!value["StickySessionType"].isNull()) + stickySessionType_ = value["StickySessionType"].asString(); + if(!value["CookieTimeout"].isNull()) + cookieTimeout_ = std::stoi(value["CookieTimeout"].asString()); + if(!value["Cookie"].isNull()) + cookie_ = value["Cookie"].asString(); + if(!value["HealthCheck"].isNull()) + healthCheck_ = value["HealthCheck"].asString(); + if(!value["HealthyThreshold"].isNull()) + healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); + if(!value["UnhealthyThreshold"].isNull()) + unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); + if(!value["HealthCheckTimeout"].isNull()) + healthCheckTimeout_ = std::stoi(value["HealthCheckTimeout"].asString()); + if(!value["HealthCheckConnectPort"].isNull()) + healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); + if(!value["HealthCheckInterval"].isNull()) + healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["ListenerForward"].isNull()) + listenerForward_ = value["ListenerForward"].asString(); + if(!value["ForwardPort"].isNull()) + forwardPort_ = std::stoi(value["ForwardPort"].asString()); + if(!value["RequestTimeout"].isNull()) + requestTimeout_ = std::stoi(value["RequestTimeout"].asString()); + if(!value["IdleTimeout"].isNull()) + idleTimeout_ = std::stoi(value["IdleTimeout"].asString()); + if(!value["HealthCheckHttpCode"].isNull()) + healthCheckHttpCode_ = value["HealthCheckHttpCode"].asString(); + if(!value["HealthCheckDomain"].isNull()) + healthCheckDomain_ = value["HealthCheckDomain"].asString(); + if(!value["HealthCheckURI"].isNull()) + healthCheckURI_ = value["HealthCheckURI"].asString(); + if(!value["ServerCertificateId"].isNull()) + serverCertificateId_ = value["ServerCertificateId"].asString(); + if(!value["HealthCheckMethod"].isNull()) + healthCheckMethod_ = value["HealthCheckMethod"].asString(); + +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getStatus()const +{ + return status_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getCookieTimeout()const +{ + return cookieTimeout_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getCookie()const +{ + return cookie_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getListenerPort()const +{ + return listenerPort_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getRequestTimeout()const +{ + return requestTimeout_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckInterval()const +{ + return healthCheckInterval_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getDescription()const +{ + return description_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getUnhealthyThreshold()const +{ + return unhealthyThreshold_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getScheduler()const +{ + return scheduler_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckURI()const +{ + return healthCheckURI_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheck()const +{ + return healthCheck_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getIdleTimeout()const +{ + return idleTimeout_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckTimeout()const +{ + return healthCheckTimeout_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getListenerForward()const +{ + return listenerForward_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getStickySession()const +{ + return stickySession_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckConnectPort()const +{ + return healthCheckConnectPort_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getForwardPort()const +{ + return forwardPort_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckMethod()const +{ + return healthCheckMethod_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getBandwidth()const +{ + return bandwidth_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthyThreshold()const +{ + return healthyThreshold_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckDomain()const +{ + return healthCheckDomain_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getServerCertificateId()const +{ + return serverCertificateId_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getStickySessionType()const +{ + return stickySessionType_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckHttpCode()const +{ + return healthCheckHttpCode_; +} + diff --git a/ens/src/model/DescribeLoadBalancerSpecRequest.cc b/ens/src/model/DescribeLoadBalancerSpecRequest.cc new file mode 100644 index 000000000..14010a779 --- /dev/null +++ b/ens/src/model/DescribeLoadBalancerSpecRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeLoadBalancerSpecRequest; + +DescribeLoadBalancerSpecRequest::DescribeLoadBalancerSpecRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeLoadBalancerSpec") { + setMethod(HttpRequest::Method::Get); +} + +DescribeLoadBalancerSpecRequest::~DescribeLoadBalancerSpecRequest() {} + +std::string DescribeLoadBalancerSpecRequest::getLoadBalancerSpec() const { + return loadBalancerSpec_; +} + +void DescribeLoadBalancerSpecRequest::setLoadBalancerSpec(const std::string &loadBalancerSpec) { + loadBalancerSpec_ = loadBalancerSpec; + setParameter(std::string("LoadBalancerSpec"), loadBalancerSpec); +} + diff --git a/ens/src/model/DescribeLoadBalancerSpecResult.cc b/ens/src/model/DescribeLoadBalancerSpecResult.cc new file mode 100644 index 000000000..b9c98c08e --- /dev/null +++ b/ens/src/model/DescribeLoadBalancerSpecResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeLoadBalancerSpecResult::DescribeLoadBalancerSpecResult() : + ServiceResult() +{} + +DescribeLoadBalancerSpecResult::DescribeLoadBalancerSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLoadBalancerSpecResult::~DescribeLoadBalancerSpecResult() +{} + +void DescribeLoadBalancerSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allLoadBalancerSpecsNode = value["LoadBalancerSpecs"]["LoadBalancerSpecsItem"]; + for (auto valueLoadBalancerSpecsLoadBalancerSpecsItem : allLoadBalancerSpecsNode) + { + LoadBalancerSpecsItem loadBalancerSpecsObject; + if(!valueLoadBalancerSpecsLoadBalancerSpecsItem["DisplayName"].isNull()) + loadBalancerSpecsObject.displayName = valueLoadBalancerSpecsLoadBalancerSpecsItem["DisplayName"].asString(); + if(!valueLoadBalancerSpecsLoadBalancerSpecsItem["LoadBalancerSpec"].isNull()) + loadBalancerSpecsObject.loadBalancerSpec = valueLoadBalancerSpecsLoadBalancerSpecsItem["LoadBalancerSpec"].asString(); + loadBalancerSpecs_.push_back(loadBalancerSpecsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeLoadBalancerSpecResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeLoadBalancerSpecResult::getPageSize()const +{ + return pageSize_; +} + +std::vector DescribeLoadBalancerSpecResult::getLoadBalancerSpecs()const +{ + return loadBalancerSpecs_; +} + +int DescribeLoadBalancerSpecResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ens/src/model/DescribeLoadBalancerTCPListenerAttributeRequest.cc b/ens/src/model/DescribeLoadBalancerTCPListenerAttributeRequest.cc new file mode 100644 index 000000000..00a70c22a --- /dev/null +++ b/ens/src/model/DescribeLoadBalancerTCPListenerAttributeRequest.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 + +using AlibabaCloud::Ens::Model::DescribeLoadBalancerTCPListenerAttributeRequest; + +DescribeLoadBalancerTCPListenerAttributeRequest::DescribeLoadBalancerTCPListenerAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeLoadBalancerTCPListenerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeLoadBalancerTCPListenerAttributeRequest::~DescribeLoadBalancerTCPListenerAttributeRequest() {} + +std::string DescribeLoadBalancerTCPListenerAttributeRequest::getProtocol() const { + return protocol_; +} + +void DescribeLoadBalancerTCPListenerAttributeRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +int DescribeLoadBalancerTCPListenerAttributeRequest::getListenerPort() const { + return listenerPort_; +} + +void DescribeLoadBalancerTCPListenerAttributeRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string DescribeLoadBalancerTCPListenerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DescribeLoadBalancerTCPListenerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/ens/src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc b/ens/src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc new file mode 100644 index 000000000..323e2e0b1 --- /dev/null +++ b/ens/src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc @@ -0,0 +1,177 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeLoadBalancerTCPListenerAttributeResult::DescribeLoadBalancerTCPListenerAttributeResult() : + ServiceResult() +{} + +DescribeLoadBalancerTCPListenerAttributeResult::DescribeLoadBalancerTCPListenerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLoadBalancerTCPListenerAttributeResult::~DescribeLoadBalancerTCPListenerAttributeResult() +{} + +void DescribeLoadBalancerTCPListenerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ListenerPort"].isNull()) + listenerPort_ = std::stoi(value["ListenerPort"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["Scheduler"].isNull()) + scheduler_ = value["Scheduler"].asString(); + if(!value["PersistenceTimeout"].isNull()) + persistenceTimeout_ = std::stoi(value["PersistenceTimeout"].asString()); + if(!value["EstablishedTimeout"].isNull()) + establishedTimeout_ = std::stoi(value["EstablishedTimeout"].asString()); + if(!value["HealthCheck"].isNull()) + healthCheck_ = value["HealthCheck"].asString(); + if(!value["HealthyThreshold"].isNull()) + healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); + if(!value["UnhealthyThreshold"].isNull()) + unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); + if(!value["HealthCheckConnectTimeout"].isNull()) + healthCheckConnectTimeout_ = std::stoi(value["HealthCheckConnectTimeout"].asString()); + if(!value["HealthCheckInterval"].isNull()) + healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["HealthCheckHttpCode"].isNull()) + healthCheckHttpCode_ = value["HealthCheckHttpCode"].asString(); + if(!value["HealthCheckDomain"].isNull()) + healthCheckDomain_ = value["HealthCheckDomain"].asString(); + if(!value["HealthCheckURI"].isNull()) + healthCheckURI_ = value["HealthCheckURI"].asString(); + if(!value["HealthCheckType"].isNull()) + healthCheckType_ = value["HealthCheckType"].asString(); + if(!value["BackendServerPort"].isNull()) + backendServerPort_ = std::stoi(value["BackendServerPort"].asString()); + if(!value["HealthCheckConnectPort"].isNull()) + healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); + if(!value["EipTransmit"].isNull()) + eipTransmit_ = value["EipTransmit"].asString(); + +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getStatus()const +{ + return status_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getListenerPort()const +{ + return listenerPort_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckInterval()const +{ + return healthCheckInterval_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getDescription()const +{ + return description_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getUnhealthyThreshold()const +{ + return unhealthyThreshold_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getScheduler()const +{ + return scheduler_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckURI()const +{ + return healthCheckURI_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheck()const +{ + return healthCheck_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckConnectTimeout()const +{ + return healthCheckConnectTimeout_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getBackendServerPort()const +{ + return backendServerPort_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getPersistenceTimeout()const +{ + return persistenceTimeout_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckConnectPort()const +{ + return healthCheckConnectPort_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getBandwidth()const +{ + return bandwidth_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getHealthyThreshold()const +{ + return healthyThreshold_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckDomain()const +{ + return healthCheckDomain_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getEipTransmit()const +{ + return eipTransmit_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckHttpCode()const +{ + return healthCheckHttpCode_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckType()const +{ + return healthCheckType_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getEstablishedTimeout()const +{ + return establishedTimeout_; +} + diff --git a/ens/src/model/DescribeLoadBalancerUDPListenerAttributeRequest.cc b/ens/src/model/DescribeLoadBalancerUDPListenerAttributeRequest.cc new file mode 100644 index 000000000..1c5f34390 --- /dev/null +++ b/ens/src/model/DescribeLoadBalancerUDPListenerAttributeRequest.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 + +using AlibabaCloud::Ens::Model::DescribeLoadBalancerUDPListenerAttributeRequest; + +DescribeLoadBalancerUDPListenerAttributeRequest::DescribeLoadBalancerUDPListenerAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeLoadBalancerUDPListenerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeLoadBalancerUDPListenerAttributeRequest::~DescribeLoadBalancerUDPListenerAttributeRequest() {} + +std::string DescribeLoadBalancerUDPListenerAttributeRequest::getProtocol() const { + return protocol_; +} + +void DescribeLoadBalancerUDPListenerAttributeRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +int DescribeLoadBalancerUDPListenerAttributeRequest::getListenerPort() const { + return listenerPort_; +} + +void DescribeLoadBalancerUDPListenerAttributeRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string DescribeLoadBalancerUDPListenerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DescribeLoadBalancerUDPListenerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/ens/src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc b/ens/src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc new file mode 100644 index 000000000..f9723c448 --- /dev/null +++ b/ens/src/model/DescribeLoadBalancerUDPListenerAttributeResult.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 +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeLoadBalancerUDPListenerAttributeResult::DescribeLoadBalancerUDPListenerAttributeResult() : + ServiceResult() +{} + +DescribeLoadBalancerUDPListenerAttributeResult::DescribeLoadBalancerUDPListenerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLoadBalancerUDPListenerAttributeResult::~DescribeLoadBalancerUDPListenerAttributeResult() +{} + +void DescribeLoadBalancerUDPListenerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ListenerPort"].isNull()) + listenerPort_ = std::stoi(value["ListenerPort"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["Scheduler"].isNull()) + scheduler_ = value["Scheduler"].asString(); + if(!value["HealthCheck"].isNull()) + healthCheck_ = value["HealthCheck"].asString(); + if(!value["HealthyThreshold"].isNull()) + healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); + if(!value["UnhealthyThreshold"].isNull()) + unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); + if(!value["HealthCheckConnectTimeout"].isNull()) + healthCheckConnectTimeout_ = std::stoi(value["HealthCheckConnectTimeout"].asString()); + if(!value["HealthCheckInterval"].isNull()) + healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["BackendServerPort"].isNull()) + backendServerPort_ = std::stoi(value["BackendServerPort"].asString()); + if(!value["HealthCheckConnectPort"].isNull()) + healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); + if(!value["HealthCheckReq"].isNull()) + healthCheckReq_ = value["HealthCheckReq"].asString(); + if(!value["HealthCheckExp"].isNull()) + healthCheckExp_ = value["HealthCheckExp"].asString(); + if(!value["EipTransmit"].isNull()) + eipTransmit_ = value["EipTransmit"].asString(); + +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getStatus()const +{ + return status_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getListenerPort()const +{ + return listenerPort_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckInterval()const +{ + return healthCheckInterval_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getDescription()const +{ + return description_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getUnhealthyThreshold()const +{ + return unhealthyThreshold_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getScheduler()const +{ + return scheduler_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheck()const +{ + return healthCheck_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckConnectTimeout()const +{ + return healthCheckConnectTimeout_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getBackendServerPort()const +{ + return backendServerPort_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckConnectPort()const +{ + return healthCheckConnectPort_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckReq()const +{ + return healthCheckReq_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getBandwidth()const +{ + return bandwidth_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getHealthyThreshold()const +{ + return healthyThreshold_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckExp()const +{ + return healthCheckExp_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getEipTransmit()const +{ + return eipTransmit_; +} + diff --git a/ens/src/model/DescribeLoadBalancersRequest.cc b/ens/src/model/DescribeLoadBalancersRequest.cc new file mode 100644 index 000000000..8c6814e09 --- /dev/null +++ b/ens/src/model/DescribeLoadBalancersRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeLoadBalancersRequest; + +DescribeLoadBalancersRequest::DescribeLoadBalancersRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeLoadBalancers") { + setMethod(HttpRequest::Method::Get); +} + +DescribeLoadBalancersRequest::~DescribeLoadBalancersRequest() {} + +std::string DescribeLoadBalancersRequest::getLoadBalancerName() const { + return loadBalancerName_; +} + +void DescribeLoadBalancersRequest::setLoadBalancerName(const std::string &loadBalancerName) { + loadBalancerName_ = loadBalancerName; + setParameter(std::string("LoadBalancerName"), loadBalancerName); +} + +std::string DescribeLoadBalancersRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeLoadBalancersRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string DescribeLoadBalancersRequest::getServerId() const { + return serverId_; +} + +void DescribeLoadBalancersRequest::setServerId(const std::string &serverId) { + serverId_ = serverId; + setParameter(std::string("ServerId"), serverId); +} + +std::string DescribeLoadBalancersRequest::getVSwitchId() const { + return vSwitchId_; +} + +void DescribeLoadBalancersRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string DescribeLoadBalancersRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DescribeLoadBalancersRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +std::string DescribeLoadBalancersRequest::getNetworkId() const { + return networkId_; +} + +void DescribeLoadBalancersRequest::setNetworkId(const std::string &networkId) { + networkId_ = networkId; + setParameter(std::string("NetworkId"), networkId); +} + +int DescribeLoadBalancersRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeLoadBalancersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int DescribeLoadBalancersRequest::getPageSize() const { + return pageSize_; +} + +void DescribeLoadBalancersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeLoadBalancersRequest::getAddress() const { + return address_; +} + +void DescribeLoadBalancersRequest::setAddress(const std::string &address) { + address_ = address; + setParameter(std::string("Address"), address); +} + +std::string DescribeLoadBalancersRequest::getLoadBalancerStatus() const { + return loadBalancerStatus_; +} + +void DescribeLoadBalancersRequest::setLoadBalancerStatus(const std::string &loadBalancerStatus) { + loadBalancerStatus_ = loadBalancerStatus; + setParameter(std::string("LoadBalancerStatus"), loadBalancerStatus); +} + diff --git a/ens/src/model/DescribeLoadBalancersResult.cc b/ens/src/model/DescribeLoadBalancersResult.cc new file mode 100644 index 000000000..40dfbcd30 --- /dev/null +++ b/ens/src/model/DescribeLoadBalancersResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeLoadBalancersResult::DescribeLoadBalancersResult() : + ServiceResult() +{} + +DescribeLoadBalancersResult::DescribeLoadBalancersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLoadBalancersResult::~DescribeLoadBalancersResult() +{} + +void DescribeLoadBalancersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allLoadBalancersNode = value["LoadBalancers"]["LoadBalancer"]; + for (auto valueLoadBalancersLoadBalancer : allLoadBalancersNode) + { + LoadBalancer loadBalancersObject; + if(!valueLoadBalancersLoadBalancer["LoadBalancerId"].isNull()) + loadBalancersObject.loadBalancerId = valueLoadBalancersLoadBalancer["LoadBalancerId"].asString(); + if(!valueLoadBalancersLoadBalancer["LoadBalancerName"].isNull()) + loadBalancersObject.loadBalancerName = valueLoadBalancersLoadBalancer["LoadBalancerName"].asString(); + if(!valueLoadBalancersLoadBalancer["LoadBalancerStatus"].isNull()) + loadBalancersObject.loadBalancerStatus = valueLoadBalancersLoadBalancer["LoadBalancerStatus"].asString(); + if(!valueLoadBalancersLoadBalancer["Address"].isNull()) + loadBalancersObject.address = valueLoadBalancersLoadBalancer["Address"].asString(); + if(!valueLoadBalancersLoadBalancer["EnsRegionId"].isNull()) + loadBalancersObject.ensRegionId = valueLoadBalancersLoadBalancer["EnsRegionId"].asString(); + if(!valueLoadBalancersLoadBalancer["NetworkId"].isNull()) + loadBalancersObject.networkId = valueLoadBalancersLoadBalancer["NetworkId"].asString(); + if(!valueLoadBalancersLoadBalancer["VSwitchId"].isNull()) + loadBalancersObject.vSwitchId = valueLoadBalancersLoadBalancer["VSwitchId"].asString(); + if(!valueLoadBalancersLoadBalancer["CreateTime"].isNull()) + loadBalancersObject.createTime = valueLoadBalancersLoadBalancer["CreateTime"].asString(); + if(!valueLoadBalancersLoadBalancer["AddressIPVersion"].isNull()) + loadBalancersObject.addressIPVersion = valueLoadBalancersLoadBalancer["AddressIPVersion"].asString(); + if(!valueLoadBalancersLoadBalancer["PayType"].isNull()) + loadBalancersObject.payType = valueLoadBalancersLoadBalancer["PayType"].asString(); + loadBalancers_.push_back(loadBalancersObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeLoadBalancersResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeLoadBalancersResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeLoadBalancersResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeLoadBalancersResult::getLoadBalancers()const +{ + return loadBalancers_; +} + diff --git a/ens/src/model/DescribeMeasurementDataRequest.cc b/ens/src/model/DescribeMeasurementDataRequest.cc new file mode 100644 index 000000000..a0da73796 --- /dev/null +++ b/ens/src/model/DescribeMeasurementDataRequest.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 + +using AlibabaCloud::Ens::Model::DescribeMeasurementDataRequest; + +DescribeMeasurementDataRequest::DescribeMeasurementDataRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeMeasurementData") { + setMethod(HttpRequest::Method::Post); +} + +DescribeMeasurementDataRequest::~DescribeMeasurementDataRequest() {} + +std::string DescribeMeasurementDataRequest::getStartDate() const { + return startDate_; +} + +void DescribeMeasurementDataRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); +} + +std::string DescribeMeasurementDataRequest::getEndDate() const { + return endDate_; +} + +void DescribeMeasurementDataRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); +} + diff --git a/ens/src/model/DescribeMeasurementDataResult.cc b/ens/src/model/DescribeMeasurementDataResult.cc new file mode 100644 index 000000000..69ff8305c --- /dev/null +++ b/ens/src/model/DescribeMeasurementDataResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeMeasurementDataResult::DescribeMeasurementDataResult() : + ServiceResult() +{} + +DescribeMeasurementDataResult::DescribeMeasurementDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMeasurementDataResult::~DescribeMeasurementDataResult() +{} + +void DescribeMeasurementDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allMeasurementDatasNode = value["MeasurementDatas"]["MeasurementData"]; + for (auto valueMeasurementDatasMeasurementData : allMeasurementDatasNode) + { + MeasurementData measurementDatasObject; + if(!valueMeasurementDatasMeasurementData["ChargeModel"].isNull()) + measurementDatasObject.chargeModel = valueMeasurementDatasMeasurementData["ChargeModel"].asString(); + if(!valueMeasurementDatasMeasurementData["CostCycle"].isNull()) + measurementDatasObject.costCycle = valueMeasurementDatasMeasurementData["CostCycle"].asString(); + if(!valueMeasurementDatasMeasurementData["CostEndTime"].isNull()) + measurementDatasObject.costEndTime = valueMeasurementDatasMeasurementData["CostEndTime"].asString(); + if(!valueMeasurementDatasMeasurementData["CostStartTime"].isNull()) + measurementDatasObject.costStartTime = valueMeasurementDatasMeasurementData["CostStartTime"].asString(); + auto allBandWidthFeeDatasNode = valueMeasurementDatasMeasurementData["BandWidthFeeDatas"]["BandWidthFeeData"]; + for (auto valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData : allBandWidthFeeDatasNode) + { + MeasurementData::BandWidthFeeData bandWidthFeeDatasObject; + if(!valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData["CostCode"].isNull()) + bandWidthFeeDatasObject.costCode = valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData["CostCode"].asString(); + if(!valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData["CostName"].isNull()) + bandWidthFeeDatasObject.costName = valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData["CostName"].asString(); + if(!valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData["CostVal"].isNull()) + bandWidthFeeDatasObject.costVal = std::stoi(valueMeasurementDatasMeasurementDataBandWidthFeeDatasBandWidthFeeData["CostVal"].asString()); + measurementDatasObject.bandWidthFeeDatas.push_back(bandWidthFeeDatasObject); + } + auto allResourceFeeDataDetailsNode = valueMeasurementDatasMeasurementData["ResourceFeeDataDetails"]["ResourceFeeDataDetail"]; + for (auto valueMeasurementDatasMeasurementDataResourceFeeDataDetailsResourceFeeDataDetail : allResourceFeeDataDetailsNode) + { + MeasurementData::ResourceFeeDataDetail resourceFeeDataDetailsObject; + if(!valueMeasurementDatasMeasurementDataResourceFeeDataDetailsResourceFeeDataDetail["CostCode"].isNull()) + resourceFeeDataDetailsObject.costCode = valueMeasurementDatasMeasurementDataResourceFeeDataDetailsResourceFeeDataDetail["CostCode"].asString(); + if(!valueMeasurementDatasMeasurementDataResourceFeeDataDetailsResourceFeeDataDetail["CostName"].isNull()) + resourceFeeDataDetailsObject.costName = valueMeasurementDatasMeasurementDataResourceFeeDataDetailsResourceFeeDataDetail["CostName"].asString(); + if(!valueMeasurementDatasMeasurementDataResourceFeeDataDetailsResourceFeeDataDetail["CostVal"].isNull()) + resourceFeeDataDetailsObject.costVal = std::stoi(valueMeasurementDatasMeasurementDataResourceFeeDataDetailsResourceFeeDataDetail["CostVal"].asString()); + if(!valueMeasurementDatasMeasurementDataResourceFeeDataDetailsResourceFeeDataDetail["ResourceType"].isNull()) + resourceFeeDataDetailsObject.resourceType = valueMeasurementDatasMeasurementDataResourceFeeDataDetailsResourceFeeDataDetail["ResourceType"].asString(); + measurementDatasObject.resourceFeeDataDetails.push_back(resourceFeeDataDetailsObject); + } + auto resourceFeeDataNode = value["ResourceFeeData"]; + if(!resourceFeeDataNode["Memory"].isNull()) + measurementDatasObject.resourceFeeData.memory = std::stoi(resourceFeeDataNode["Memory"].asString()); + if(!resourceFeeDataNode["Storage"].isNull()) + measurementDatasObject.resourceFeeData.storage = std::stoi(resourceFeeDataNode["Storage"].asString()); + if(!resourceFeeDataNode["Vcpu"].isNull()) + measurementDatasObject.resourceFeeData.vcpu = std::stoi(resourceFeeDataNode["Vcpu"].asString()); + measurementDatas_.push_back(measurementDatasObject); + } + +} + +std::vector DescribeMeasurementDataResult::getMeasurementDatas()const +{ + return measurementDatas_; +} + diff --git a/ens/src/model/DescribeNetworkAttributeRequest.cc b/ens/src/model/DescribeNetworkAttributeRequest.cc new file mode 100644 index 000000000..01387b3f8 --- /dev/null +++ b/ens/src/model/DescribeNetworkAttributeRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeNetworkAttributeRequest; + +DescribeNetworkAttributeRequest::DescribeNetworkAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeNetworkAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeNetworkAttributeRequest::~DescribeNetworkAttributeRequest() {} + +std::string DescribeNetworkAttributeRequest::getNetworkId() const { + return networkId_; +} + +void DescribeNetworkAttributeRequest::setNetworkId(const std::string &networkId) { + networkId_ = networkId; + setParameter(std::string("NetworkId"), networkId); +} + diff --git a/ens/src/model/DescribeNetworkAttributeResult.cc b/ens/src/model/DescribeNetworkAttributeResult.cc new file mode 100644 index 000000000..056c529ac --- /dev/null +++ b/ens/src/model/DescribeNetworkAttributeResult.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeNetworkAttributeResult::DescribeNetworkAttributeResult() : + ServiceResult() +{} + +DescribeNetworkAttributeResult::DescribeNetworkAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNetworkAttributeResult::~DescribeNetworkAttributeResult() +{} + +void DescribeNetworkAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCloudResourcesNode = value["CloudResources"]["CloudResourceSetType"]; + for (auto valueCloudResourcesCloudResourceSetType : allCloudResourcesNode) + { + CloudResourceSetType cloudResourcesObject; + if(!valueCloudResourcesCloudResourceSetType["ResourceCount"].isNull()) + cloudResourcesObject.resourceCount = std::stoi(valueCloudResourcesCloudResourceSetType["ResourceCount"].asString()); + if(!valueCloudResourcesCloudResourceSetType["ResourceType"].isNull()) + cloudResourcesObject.resourceType = valueCloudResourcesCloudResourceSetType["ResourceType"].asString(); + cloudResources_.push_back(cloudResourcesObject); + } + auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"]; + for (const auto &item : allVSwitchIds) + vSwitchIds_.push_back(item.asString()); + if(!value["EnsRegionId"].isNull()) + ensRegionId_ = value["EnsRegionId"].asString(); + if(!value["NetworkId"].isNull()) + networkId_ = value["NetworkId"].asString(); + if(!value["NetworkName"].isNull()) + networkName_ = value["NetworkName"].asString(); + if(!value["CidrBlock"].isNull()) + cidrBlock_ = value["CidrBlock"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["CreatedTime"].isNull()) + createdTime_ = value["CreatedTime"].asString(); + +} + +std::string DescribeNetworkAttributeResult::getStatus()const +{ + return status_; +} + +std::string DescribeNetworkAttributeResult::getNetworkName()const +{ + return networkName_; +} + +std::string DescribeNetworkAttributeResult::getDescription()const +{ + return description_; +} + +std::string DescribeNetworkAttributeResult::getCreatedTime()const +{ + return createdTime_; +} + +std::vector DescribeNetworkAttributeResult::getVSwitchIds()const +{ + return vSwitchIds_; +} + +std::string DescribeNetworkAttributeResult::getCidrBlock()const +{ + return cidrBlock_; +} + +std::string DescribeNetworkAttributeResult::getEnsRegionId()const +{ + return ensRegionId_; +} + +std::string DescribeNetworkAttributeResult::getNetworkId()const +{ + return networkId_; +} + +std::vector DescribeNetworkAttributeResult::getCloudResources()const +{ + return cloudResources_; +} + diff --git a/ens/src/model/DescribeNetworkInterfacesRequest.cc b/ens/src/model/DescribeNetworkInterfacesRequest.cc new file mode 100644 index 000000000..de6701e2a --- /dev/null +++ b/ens/src/model/DescribeNetworkInterfacesRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeNetworkInterfacesRequest; + +DescribeNetworkInterfacesRequest::DescribeNetworkInterfacesRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeNetworkInterfaces") { + setMethod(HttpRequest::Method::Post); +} + +DescribeNetworkInterfacesRequest::~DescribeNetworkInterfacesRequest() {} + +std::string DescribeNetworkInterfacesRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeNetworkInterfacesRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string DescribeNetworkInterfacesRequest::getVSwitchId() const { + return vSwitchId_; +} + +void DescribeNetworkInterfacesRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string DescribeNetworkInterfacesRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeNetworkInterfacesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string DescribeNetworkInterfacesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeNetworkInterfacesRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); +} + +std::string DescribeNetworkInterfacesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeNetworkInterfacesRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string DescribeNetworkInterfacesRequest::getPrimaryIpAddress() const { + return primaryIpAddress_; +} + +void DescribeNetworkInterfacesRequest::setPrimaryIpAddress(const std::string &primaryIpAddress) { + primaryIpAddress_ = primaryIpAddress; + setParameter(std::string("PrimaryIpAddress"), primaryIpAddress); +} + diff --git a/ens/src/model/DescribeNetworkInterfacesResult.cc b/ens/src/model/DescribeNetworkInterfacesResult.cc new file mode 100644 index 000000000..5cb38eeb6 --- /dev/null +++ b/ens/src/model/DescribeNetworkInterfacesResult.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::Ens; +using namespace AlibabaCloud::Ens::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 allNetworkInterfaceSetsNode = value["NetworkInterfaceSets"]["NetworkInterfaceSet"]; + for (auto valueNetworkInterfaceSetsNetworkInterfaceSet : allNetworkInterfaceSetsNode) + { + NetworkInterfaceSet networkInterfaceSetsObject; + if(!valueNetworkInterfaceSetsNetworkInterfaceSet["CreationTime"].isNull()) + networkInterfaceSetsObject.creationTime = valueNetworkInterfaceSetsNetworkInterfaceSet["CreationTime"].asString(); + if(!valueNetworkInterfaceSetsNetworkInterfaceSet["EnsRegionId"].isNull()) + networkInterfaceSetsObject.ensRegionId = valueNetworkInterfaceSetsNetworkInterfaceSet["EnsRegionId"].asString(); + if(!valueNetworkInterfaceSetsNetworkInterfaceSet["InstanceId"].isNull()) + networkInterfaceSetsObject.instanceId = valueNetworkInterfaceSetsNetworkInterfaceSet["InstanceId"].asString(); + if(!valueNetworkInterfaceSetsNetworkInterfaceSet["MacAddress"].isNull()) + networkInterfaceSetsObject.macAddress = valueNetworkInterfaceSetsNetworkInterfaceSet["MacAddress"].asString(); + if(!valueNetworkInterfaceSetsNetworkInterfaceSet["NetworkInterfaceId"].isNull()) + networkInterfaceSetsObject.networkInterfaceId = valueNetworkInterfaceSetsNetworkInterfaceSet["NetworkInterfaceId"].asString(); + if(!valueNetworkInterfaceSetsNetworkInterfaceSet["PrimaryIp"].isNull()) + networkInterfaceSetsObject.primaryIp = valueNetworkInterfaceSetsNetworkInterfaceSet["PrimaryIp"].asString(); + if(!valueNetworkInterfaceSetsNetworkInterfaceSet["PrimaryIpType"].isNull()) + networkInterfaceSetsObject.primaryIpType = valueNetworkInterfaceSetsNetworkInterfaceSet["PrimaryIpType"].asString(); + if(!valueNetworkInterfaceSetsNetworkInterfaceSet["Status"].isNull()) + networkInterfaceSetsObject.status = valueNetworkInterfaceSetsNetworkInterfaceSet["Status"].asString(); + if(!valueNetworkInterfaceSetsNetworkInterfaceSet["VSwitchId"].isNull()) + networkInterfaceSetsObject.vSwitchId = valueNetworkInterfaceSetsNetworkInterfaceSet["VSwitchId"].asString(); + networkInterfaceSets_.push_back(networkInterfaceSetsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeNetworkInterfacesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeNetworkInterfacesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeNetworkInterfacesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeNetworkInterfacesResult::getNetworkInterfaceSets()const +{ + return networkInterfaceSets_; +} + diff --git a/ens/src/model/DescribeNetworksRequest.cc b/ens/src/model/DescribeNetworksRequest.cc new file mode 100644 index 000000000..0078562f7 --- /dev/null +++ b/ens/src/model/DescribeNetworksRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeNetworksRequest; + +DescribeNetworksRequest::DescribeNetworksRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeNetworks") { + setMethod(HttpRequest::Method::Post); +} + +DescribeNetworksRequest::~DescribeNetworksRequest() {} + +int DescribeNetworksRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeNetworksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeNetworksRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeNetworksRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +int DescribeNetworksRequest::getPageSize() const { + return pageSize_; +} + +void DescribeNetworksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeNetworksRequest::getNetworkName() const { + return networkName_; +} + +void DescribeNetworksRequest::setNetworkName(const std::string &networkName) { + networkName_ = networkName; + setParameter(std::string("NetworkName"), networkName); +} + +std::string DescribeNetworksRequest::getNetworkId() const { + return networkId_; +} + +void DescribeNetworksRequest::setNetworkId(const std::string &networkId) { + networkId_ = networkId; + setParameter(std::string("NetworkId"), networkId); +} + diff --git a/ens/src/model/DescribeNetworksResult.cc b/ens/src/model/DescribeNetworksResult.cc new file mode 100644 index 000000000..ddf76cbf1 --- /dev/null +++ b/ens/src/model/DescribeNetworksResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeNetworksResult::DescribeNetworksResult() : + ServiceResult() +{} + +DescribeNetworksResult::DescribeNetworksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNetworksResult::~DescribeNetworksResult() +{} + +void DescribeNetworksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allNetworksNode = value["Networks"]["Network"]; + for (auto valueNetworksNetwork : allNetworksNode) + { + Network networksObject; + if(!valueNetworksNetwork["EnsRegionId"].isNull()) + networksObject.ensRegionId = valueNetworksNetwork["EnsRegionId"].asString(); + if(!valueNetworksNetwork["NetworkId"].isNull()) + networksObject.networkId = valueNetworksNetwork["NetworkId"].asString(); + if(!valueNetworksNetwork["NetworkName"].isNull()) + networksObject.networkName = valueNetworksNetwork["NetworkName"].asString(); + if(!valueNetworksNetwork["CidrBlock"].isNull()) + networksObject.cidrBlock = valueNetworksNetwork["CidrBlock"].asString(); + if(!valueNetworksNetwork["Status"].isNull()) + networksObject.status = valueNetworksNetwork["Status"].asString(); + if(!valueNetworksNetwork["Description"].isNull()) + networksObject.description = valueNetworksNetwork["Description"].asString(); + if(!valueNetworksNetwork["CreatedTime"].isNull()) + networksObject.createdTime = valueNetworksNetwork["CreatedTime"].asString(); + auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"]; + for (auto value : allVSwitchIds) + networksObject.vSwitchIds.push_back(value.asString()); + networks_.push_back(networksObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +std::vector DescribeNetworksResult::getNetworks()const +{ + return networks_; +} + +int DescribeNetworksResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeNetworksResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeNetworksResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ens/src/model/DescribePrePaidInstanceStockRequest.cc b/ens/src/model/DescribePrePaidInstanceStockRequest.cc new file mode 100644 index 000000000..0a7d1d556 --- /dev/null +++ b/ens/src/model/DescribePrePaidInstanceStockRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribePrePaidInstanceStockRequest; + +DescribePrePaidInstanceStockRequest::DescribePrePaidInstanceStockRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribePrePaidInstanceStock") { + setMethod(HttpRequest::Method::Post); +} + +DescribePrePaidInstanceStockRequest::~DescribePrePaidInstanceStockRequest() {} + +std::string DescribePrePaidInstanceStockRequest::getInstanceSpec() const { + return instanceSpec_; +} + +void DescribePrePaidInstanceStockRequest::setInstanceSpec(const std::string &instanceSpec) { + instanceSpec_ = instanceSpec; + setParameter(std::string("InstanceSpec"), instanceSpec); +} + +std::string DescribePrePaidInstanceStockRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribePrePaidInstanceStockRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +int DescribePrePaidInstanceStockRequest::getSystemDiskSize() const { + return systemDiskSize_; +} + +void DescribePrePaidInstanceStockRequest::setSystemDiskSize(int systemDiskSize) { + systemDiskSize_ = systemDiskSize; + setParameter(std::string("SystemDiskSize"), std::to_string(systemDiskSize)); +} + +int DescribePrePaidInstanceStockRequest::getDataDiskSize() const { + return dataDiskSize_; +} + +void DescribePrePaidInstanceStockRequest::setDataDiskSize(int dataDiskSize) { + dataDiskSize_ = dataDiskSize; + setParameter(std::string("DataDiskSize"), std::to_string(dataDiskSize)); +} + diff --git a/ens/src/model/DescribePrePaidInstanceStockResult.cc b/ens/src/model/DescribePrePaidInstanceStockResult.cc new file mode 100644 index 000000000..424fd7850 --- /dev/null +++ b/ens/src/model/DescribePrePaidInstanceStockResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribePrePaidInstanceStockResult::DescribePrePaidInstanceStockResult() : + ServiceResult() +{} + +DescribePrePaidInstanceStockResult::DescribePrePaidInstanceStockResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePrePaidInstanceStockResult::~DescribePrePaidInstanceStockResult() +{} + +void DescribePrePaidInstanceStockResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AvaliableCount"].isNull()) + avaliableCount_ = std::stoi(value["AvaliableCount"].asString()); + if(!value["Cores"].isNull()) + cores_ = std::stoi(value["Cores"].asString()); + if(!value["DataDiskSize"].isNull()) + dataDiskSize_ = std::stoi(value["DataDiskSize"].asString()); + if(!value["EnsRegionId"].isNull()) + ensRegionId_ = value["EnsRegionId"].asString(); + if(!value["InstanceSpec"].isNull()) + instanceSpec_ = value["InstanceSpec"].asString(); + if(!value["Memory"].isNull()) + memory_ = std::stoi(value["Memory"].asString()); + if(!value["SystemDiskSize"].isNull()) + systemDiskSize_ = std::stoi(value["SystemDiskSize"].asString()); + +} + +int DescribePrePaidInstanceStockResult::getCores()const +{ + return cores_; +} + +int DescribePrePaidInstanceStockResult::getAvaliableCount()const +{ + return avaliableCount_; +} + +std::string DescribePrePaidInstanceStockResult::getInstanceSpec()const +{ + return instanceSpec_; +} + +int DescribePrePaidInstanceStockResult::getSystemDiskSize()const +{ + return systemDiskSize_; +} + +int DescribePrePaidInstanceStockResult::getMemory()const +{ + return memory_; +} + +int DescribePrePaidInstanceStockResult::getDataDiskSize()const +{ + return dataDiskSize_; +} + +std::string DescribePrePaidInstanceStockResult::getEnsRegionId()const +{ + return ensRegionId_; +} + diff --git a/ens/src/model/DescribePriceRequest.cc b/ens/src/model/DescribePriceRequest.cc new file mode 100644 index 000000000..f3f147960 --- /dev/null +++ b/ens/src/model/DescribePriceRequest.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 + +using AlibabaCloud::Ens::Model::DescribePriceRequest; + +DescribePriceRequest::DescribePriceRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribePrice") { + setMethod(HttpRequest::Method::Post); +} + +DescribePriceRequest::~DescribePriceRequest() {} + +std::string DescribePriceRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribePriceRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +int DescribePriceRequest::getPeriod() const { + return period_; +} + +void DescribePriceRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); +} + +std::string DescribePriceRequest::getInternetChargeType() const { + return internetChargeType_; +} + +void DescribePriceRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); +} + +std::string DescribePriceRequest::getInstanceType() const { + return instanceType_; +} + +void DescribePriceRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); +} + +int DescribePriceRequest::getDataDisk1Size() const { + return dataDisk1Size_; +} + +void DescribePriceRequest::setDataDisk1Size(int dataDisk1Size) { + dataDisk1Size_ = dataDisk1Size; + setParameter(std::string("DataDisk.1.Size"), std::to_string(dataDisk1Size)); +} + +int DescribePriceRequest::getQuantity() const { + return quantity_; +} + +void DescribePriceRequest::setQuantity(int quantity) { + quantity_ = quantity; + setParameter(std::string("Quantity"), std::to_string(quantity)); +} + +int DescribePriceRequest::getSystemDiskSize() const { + return systemDiskSize_; +} + +void DescribePriceRequest::setSystemDiskSize(int systemDiskSize) { + systemDiskSize_ = systemDiskSize; + setParameter(std::string("SystemDisk.Size"), std::to_string(systemDiskSize)); +} + diff --git a/ens/src/model/DescribePriceResult.cc b/ens/src/model/DescribePriceResult.cc new file mode 100644 index 000000000..3465cdb51 --- /dev/null +++ b/ens/src/model/DescribePriceResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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 priceInfoNode = value["PriceInfo"]; + auto priceNode = priceInfoNode["Price"]; + if(!priceNode["Currency"].isNull()) + priceInfo_.price.currency = priceNode["Currency"].asString(); + if(!priceNode["DiscountPrice"].isNull()) + priceInfo_.price.discountPrice = std::stof(priceNode["DiscountPrice"].asString()); + if(!priceNode["OriginalPrice"].isNull()) + priceInfo_.price.originalPrice = std::stof(priceNode["OriginalPrice"].asString()); + if(!priceNode["TradePrice"].isNull()) + priceInfo_.price.tradePrice = std::stof(priceNode["TradePrice"].asString()); + +} + +DescribePriceResult::PriceInfo DescribePriceResult::getPriceInfo()const +{ + return priceInfo_; +} + diff --git a/ens/src/model/DescribeRegionIspsRequest.cc b/ens/src/model/DescribeRegionIspsRequest.cc new file mode 100644 index 000000000..2299748cd --- /dev/null +++ b/ens/src/model/DescribeRegionIspsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeRegionIspsRequest; + +DescribeRegionIspsRequest::DescribeRegionIspsRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeRegionIsps") { + setMethod(HttpRequest::Method::Get); +} + +DescribeRegionIspsRequest::~DescribeRegionIspsRequest() {} + +std::string DescribeRegionIspsRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeRegionIspsRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + diff --git a/ens/src/model/DescribeRegionIspsResult.cc b/ens/src/model/DescribeRegionIspsResult.cc new file mode 100644 index 000000000..e4ba9dbe7 --- /dev/null +++ b/ens/src/model/DescribeRegionIspsResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeRegionIspsResult::DescribeRegionIspsResult() : + ServiceResult() +{} + +DescribeRegionIspsResult::DescribeRegionIspsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionIspsResult::~DescribeRegionIspsResult() +{} + +void DescribeRegionIspsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allIspsNode = value["Isps"]["Isp"]; + for (auto valueIspsIsp : allIspsNode) + { + Isp ispsObject; + if(!valueIspsIsp["Code"].isNull()) + ispsObject.code = valueIspsIsp["Code"].asString(); + if(!valueIspsIsp["Name"].isNull()) + ispsObject.name = valueIspsIsp["Name"].asString(); + isps_.push_back(ispsObject); + } + +} + +std::vector DescribeRegionIspsResult::getIsps()const +{ + return isps_; +} + diff --git a/ens/src/model/DescribeReservedResourceRequest.cc b/ens/src/model/DescribeReservedResourceRequest.cc new file mode 100644 index 000000000..4623bab81 --- /dev/null +++ b/ens/src/model/DescribeReservedResourceRequest.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 AlibabaCloud::Ens::Model::DescribeReservedResourceRequest; + +DescribeReservedResourceRequest::DescribeReservedResourceRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeReservedResource") { + setMethod(HttpRequest::Method::Post); +} + +DescribeReservedResourceRequest::~DescribeReservedResourceRequest() {} + diff --git a/ens/src/model/DescribeReservedResourceResult.cc b/ens/src/model/DescribeReservedResourceResult.cc new file mode 100644 index 000000000..c1ebeff61 --- /dev/null +++ b/ens/src/model/DescribeReservedResourceResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeReservedResourceResult::DescribeReservedResourceResult() : + ServiceResult() +{} + +DescribeReservedResourceResult::DescribeReservedResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeReservedResourceResult::~DescribeReservedResourceResult() +{} + +void DescribeReservedResourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImagesNode = value["Images"]["Image"]; + for (auto valueImagesImage : allImagesNode) + { + Image imagesObject; + if(!valueImagesImage["ImageName"].isNull()) + imagesObject.imageName = valueImagesImage["ImageName"].asString(); + if(!valueImagesImage["ImageId"].isNull()) + imagesObject.imageId = valueImagesImage["ImageId"].asString(); + images_.push_back(imagesObject); + } + auto allSupportResourcesNode = value["SupportResources"]["SupportResource"]; + for (auto valueSupportResourcesSupportResource : allSupportResourcesNode) + { + SupportResource supportResourcesObject; + if(!valueSupportResourcesSupportResource["EnsRegionId"].isNull()) + supportResourcesObject.ensRegionId = valueSupportResourcesSupportResource["EnsRegionId"].asString(); + if(!valueSupportResourcesSupportResource["SupportResourcesCount"].isNull()) + supportResourcesObject.supportResourcesCount = valueSupportResourcesSupportResource["SupportResourcesCount"].asString(); + if(!valueSupportResourcesSupportResource["InstanceSpec"].isNull()) + supportResourcesObject.instanceSpec = valueSupportResourcesSupportResource["InstanceSpec"].asString(); + auto allDataDiskSizes = value["DataDiskSizes"]["DataDiskSize"]; + for (auto value : allDataDiskSizes) + supportResourcesObject.dataDiskSizes.push_back(value.asString()); + auto allSystemDiskSizes = value["SystemDiskSizes"]["SystemDiskSize"]; + for (auto value : allSystemDiskSizes) + supportResourcesObject.systemDiskSizes.push_back(value.asString()); + supportResources_.push_back(supportResourcesObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +std::vector DescribeReservedResourceResult::getImages()const +{ + return images_; +} + +std::vector DescribeReservedResourceResult::getSupportResources()const +{ + return supportResources_; +} + +int DescribeReservedResourceResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/DescribeSecurityGroupAttributeRequest.cc b/ens/src/model/DescribeSecurityGroupAttributeRequest.cc new file mode 100644 index 000000000..fc7bbd5cd --- /dev/null +++ b/ens/src/model/DescribeSecurityGroupAttributeRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeSecurityGroupAttributeRequest; + +DescribeSecurityGroupAttributeRequest::DescribeSecurityGroupAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeSecurityGroupAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSecurityGroupAttributeRequest::~DescribeSecurityGroupAttributeRequest() {} + +std::string DescribeSecurityGroupAttributeRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void DescribeSecurityGroupAttributeRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + diff --git a/ens/src/model/DescribeSecurityGroupAttributeResult.cc b/ens/src/model/DescribeSecurityGroupAttributeResult.cc new file mode 100644 index 000000000..378199c49 --- /dev/null +++ b/ens/src/model/DescribeSecurityGroupAttributeResult.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::Ens; +using namespace AlibabaCloud::Ens::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 allPermissionsNode = value["Permissions"]["Permission"]; + for (auto valuePermissionsPermission : allPermissionsNode) + { + Permission permissionsObject; + if(!valuePermissionsPermission["CreationTime"].isNull()) + permissionsObject.creationTime = valuePermissionsPermission["CreationTime"].asString(); + if(!valuePermissionsPermission["Direction"].isNull()) + permissionsObject.direction = valuePermissionsPermission["Direction"].asString(); + if(!valuePermissionsPermission["Policy"].isNull()) + permissionsObject.policy = valuePermissionsPermission["Policy"].asString(); + if(!valuePermissionsPermission["PortRange"].isNull()) + permissionsObject.portRange = valuePermissionsPermission["PortRange"].asString(); + if(!valuePermissionsPermission["SourceCidrIp"].isNull()) + permissionsObject.sourceCidrIp = valuePermissionsPermission["SourceCidrIp"].asString(); + if(!valuePermissionsPermission["IpProtocol"].isNull()) + permissionsObject.ipProtocol = valuePermissionsPermission["IpProtocol"].asString(); + if(!valuePermissionsPermission["DestCidrIp"].isNull()) + permissionsObject.destCidrIp = valuePermissionsPermission["DestCidrIp"].asString(); + if(!valuePermissionsPermission["Priority"].isNull()) + permissionsObject.priority = std::stoi(valuePermissionsPermission["Priority"].asString()); + if(!valuePermissionsPermission["SourcePortRange"].isNull()) + permissionsObject.sourcePortRange = valuePermissionsPermission["SourcePortRange"].asString(); + if(!valuePermissionsPermission["Description"].isNull()) + permissionsObject.description = valuePermissionsPermission["Description"].asString(); + permissions_.push_back(permissionsObject); + } + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["SecurityGroupId"].isNull()) + securityGroupId_ = value["SecurityGroupId"].asString(); + if(!value["SecurityGroupName"].isNull()) + securityGroupName_ = value["SecurityGroupName"].asString(); + +} + +std::string DescribeSecurityGroupAttributeResult::getDescription()const +{ + return description_; +} + +std::string DescribeSecurityGroupAttributeResult::getSecurityGroupName()const +{ + return securityGroupName_; +} + +std::string DescribeSecurityGroupAttributeResult::getSecurityGroupId()const +{ + return securityGroupId_; +} + +std::vector DescribeSecurityGroupAttributeResult::getPermissions()const +{ + return permissions_; +} + diff --git a/ens/src/model/DescribeSecurityGroupsRequest.cc b/ens/src/model/DescribeSecurityGroupsRequest.cc new file mode 100644 index 000000000..7929906ad --- /dev/null +++ b/ens/src/model/DescribeSecurityGroupsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeSecurityGroupsRequest; + +DescribeSecurityGroupsRequest::DescribeSecurityGroupsRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeSecurityGroups") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSecurityGroupsRequest::~DescribeSecurityGroupsRequest() {} + +std::string DescribeSecurityGroupsRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void DescribeSecurityGroupsRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + +std::string DescribeSecurityGroupsRequest::getSecurityGroupName() const { + return securityGroupName_; +} + +void DescribeSecurityGroupsRequest::setSecurityGroupName(const std::string &securityGroupName) { + securityGroupName_ = securityGroupName; + setParameter(std::string("SecurityGroupName"), securityGroupName); +} + +int DescribeSecurityGroupsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeSecurityGroupsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int DescribeSecurityGroupsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeSecurityGroupsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ens/src/model/DescribeSecurityGroupsResult.cc b/ens/src/model/DescribeSecurityGroupsResult.cc new file mode 100644 index 000000000..61e0f5596 --- /dev/null +++ b/ens/src/model/DescribeSecurityGroupsResult.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::Ens; +using namespace AlibabaCloud::Ens::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 allSecurityGroupsNode = value["SecurityGroups"]["SecurityGroup"]; + for (auto valueSecurityGroupsSecurityGroup : allSecurityGroupsNode) + { + SecurityGroup securityGroupsObject; + if(!valueSecurityGroupsSecurityGroup["CreationTime"].isNull()) + securityGroupsObject.creationTime = valueSecurityGroupsSecurityGroup["CreationTime"].asString(); + if(!valueSecurityGroupsSecurityGroup["InstanceCount"].isNull()) + securityGroupsObject.instanceCount = std::stoi(valueSecurityGroupsSecurityGroup["InstanceCount"].asString()); + if(!valueSecurityGroupsSecurityGroup["Description"].isNull()) + securityGroupsObject.description = valueSecurityGroupsSecurityGroup["Description"].asString(); + if(!valueSecurityGroupsSecurityGroup["SecurityGroupId"].isNull()) + securityGroupsObject.securityGroupId = valueSecurityGroupsSecurityGroup["SecurityGroupId"].asString(); + if(!valueSecurityGroupsSecurityGroup["SecurityGroupName"].isNull()) + securityGroupsObject.securityGroupName = valueSecurityGroupsSecurityGroup["SecurityGroupName"].asString(); + securityGroups_.push_back(securityGroupsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::vector DescribeSecurityGroupsResult::getSecurityGroups()const +{ + return securityGroups_; +} + +int DescribeSecurityGroupsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeSecurityGroupsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeSecurityGroupsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ens/src/model/DescribeServcieScheduleRequest.cc b/ens/src/model/DescribeServcieScheduleRequest.cc new file mode 100644 index 000000000..47dc6754b --- /dev/null +++ b/ens/src/model/DescribeServcieScheduleRequest.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 + +using AlibabaCloud::Ens::Model::DescribeServcieScheduleRequest; + +DescribeServcieScheduleRequest::DescribeServcieScheduleRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeServcieSchedule") { + setMethod(HttpRequest::Method::Post); +} + +DescribeServcieScheduleRequest::~DescribeServcieScheduleRequest() {} + +std::string DescribeServcieScheduleRequest::getUuid() const { + return uuid_; +} + +void DescribeServcieScheduleRequest::setUuid(const std::string &uuid) { + uuid_ = uuid; + setParameter(std::string("Uuid"), uuid); +} + +std::string DescribeServcieScheduleRequest::getPodConfigName() const { + return podConfigName_; +} + +void DescribeServcieScheduleRequest::setPodConfigName(const std::string &podConfigName) { + podConfigName_ = podConfigName; + setParameter(std::string("PodConfigName"), podConfigName); +} + +std::string DescribeServcieScheduleRequest::getAppId() const { + return appId_; +} + +void DescribeServcieScheduleRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ens/src/model/DescribeServcieScheduleResult.cc b/ens/src/model/DescribeServcieScheduleResult.cc new file mode 100644 index 000000000..1436fc3be --- /dev/null +++ b/ens/src/model/DescribeServcieScheduleResult.cc @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeServcieScheduleResult::DescribeServcieScheduleResult() : + ServiceResult() +{} + +DescribeServcieScheduleResult::DescribeServcieScheduleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeServcieScheduleResult::~DescribeServcieScheduleResult() +{} + +void DescribeServcieScheduleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto podAbstractInfoNode = value["PodAbstractInfo"]; + if(!podAbstractInfoNode["ContainerService"].isNull()) + podAbstractInfo_.containerService = podAbstractInfoNode["ContainerService"].asString() == "true"; + if(!podAbstractInfoNode["Name"].isNull()) + podAbstractInfo_.name = podAbstractInfoNode["Name"].asString() == "true"; + if(!podAbstractInfoNode["Namespace"].isNull()) + podAbstractInfo_._namespace = podAbstractInfoNode["Namespace"].asString() == "true"; + if(!podAbstractInfoNode["ResourceScope"].isNull()) + podAbstractInfo_.resourceScope = podAbstractInfoNode["ResourceScope"].asString() == "true"; + if(!podAbstractInfoNode["Status"].isNull()) + podAbstractInfo_.status = podAbstractInfoNode["Status"].asString() == "true"; + auto allContainerStatusesNode = podAbstractInfoNode["ContainerStatuses"]["ContainerStatus"]; + for (auto podAbstractInfoNodeContainerStatusesContainerStatus : allContainerStatusesNode) + { + PodAbstractInfo::ContainerStatus containerStatusObject; + if(!podAbstractInfoNodeContainerStatusesContainerStatus["ContainerId"].isNull()) + containerStatusObject.containerId = podAbstractInfoNodeContainerStatusesContainerStatus["ContainerId"].asString(); + if(!podAbstractInfoNodeContainerStatusesContainerStatus["Name"].isNull()) + containerStatusObject.name = podAbstractInfoNodeContainerStatusesContainerStatus["Name"].asString(); + podAbstractInfo_.containerStatuses.push_back(containerStatusObject); + } + if(!value["Index"].isNull()) + index_ = std::stoi(value["Index"].asString()); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["InstanceIp"].isNull()) + instanceIp_ = value["InstanceIp"].asString(); + if(!value["InstancePort"].isNull()) + instancePort_ = std::stoi(value["InstancePort"].asString()); + if(!value["RequestRepeated"].isNull()) + requestRepeated_ = value["RequestRepeated"].asString() == "true"; + if(!value["TcpPorts"].isNull()) + tcpPorts_ = value["TcpPorts"].asString(); + +} + +bool DescribeServcieScheduleResult::getRequestRepeated()const +{ + return requestRepeated_; +} + +std::string DescribeServcieScheduleResult::getTcpPorts()const +{ + return tcpPorts_; +} + +std::string DescribeServcieScheduleResult::getInstanceId()const +{ + return instanceId_; +} + +int DescribeServcieScheduleResult::getInstancePort()const +{ + return instancePort_; +} + +std::string DescribeServcieScheduleResult::getInstanceIp()const +{ + return instanceIp_; +} + +int DescribeServcieScheduleResult::getIndex()const +{ + return index_; +} + +DescribeServcieScheduleResult::PodAbstractInfo DescribeServcieScheduleResult::getPodAbstractInfo()const +{ + return podAbstractInfo_; +} + diff --git a/ens/src/model/DescribeUserBandWidthDataRequest.cc b/ens/src/model/DescribeUserBandWidthDataRequest.cc new file mode 100644 index 000000000..f0e079b3a --- /dev/null +++ b/ens/src/model/DescribeUserBandWidthDataRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::DescribeUserBandWidthDataRequest; + +DescribeUserBandWidthDataRequest::DescribeUserBandWidthDataRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeUserBandWidthData") { + setMethod(HttpRequest::Method::Post); +} + +DescribeUserBandWidthDataRequest::~DescribeUserBandWidthDataRequest() {} + +std::string DescribeUserBandWidthDataRequest::getIsp() const { + return isp_; +} + +void DescribeUserBandWidthDataRequest::setIsp(const std::string &isp) { + isp_ = isp; + setParameter(std::string("Isp"), isp); +} + +std::string DescribeUserBandWidthDataRequest::getStartTime() const { + return startTime_; +} + +void DescribeUserBandWidthDataRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeUserBandWidthDataRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeUserBandWidthDataRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string DescribeUserBandWidthDataRequest::getPeriod() const { + return period_; +} + +void DescribeUserBandWidthDataRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); +} + +std::string DescribeUserBandWidthDataRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeUserBandWidthDataRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string DescribeUserBandWidthDataRequest::getEndTime() const { + return endTime_; +} + +void DescribeUserBandWidthDataRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + diff --git a/ens/src/model/DescribeUserBandWidthDataResult.cc b/ens/src/model/DescribeUserBandWidthDataResult.cc new file mode 100644 index 000000000..a277a4c6d --- /dev/null +++ b/ens/src/model/DescribeUserBandWidthDataResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DescribeUserBandWidthDataResult::DescribeUserBandWidthDataResult() : + ServiceResult() +{} + +DescribeUserBandWidthDataResult::DescribeUserBandWidthDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUserBandWidthDataResult::~DescribeUserBandWidthDataResult() +{} + +void DescribeUserBandWidthDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto monitorDataNode = value["MonitorData"]; + if(!monitorDataNode["MaxDownBandWidth"].isNull()) + monitorData_.maxDownBandWidth = monitorDataNode["MaxDownBandWidth"].asString(); + if(!monitorDataNode["MaxUpBandWidth"].isNull()) + monitorData_.maxUpBandWidth = monitorDataNode["MaxUpBandWidth"].asString(); + auto allBandWidthMonitorDataNode = monitorDataNode["BandWidthMonitorData"]["BandWidthMonitorDataItem"]; + for (auto monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem : allBandWidthMonitorDataNode) + { + MonitorData::BandWidthMonitorDataItem bandWidthMonitorDataItemObject; + if(!monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["DownBandWidth"].isNull()) + bandWidthMonitorDataItemObject.downBandWidth = std::stoi(monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["DownBandWidth"].asString()); + if(!monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["InternetRX"].isNull()) + bandWidthMonitorDataItemObject.internetRX = std::stoi(monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["InternetRX"].asString()); + if(!monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["InternetTX"].isNull()) + bandWidthMonitorDataItemObject.internetTX = std::stoi(monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["InternetTX"].asString()); + if(!monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["TimeStamp"].isNull()) + bandWidthMonitorDataItemObject.timeStamp = monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["TimeStamp"].asString(); + if(!monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["UpBandWidth"].isNull()) + bandWidthMonitorDataItemObject.upBandWidth = std::stoi(monitorDataNodeBandWidthMonitorDataBandWidthMonitorDataItem["UpBandWidth"].asString()); + monitorData_.bandWidthMonitorData.push_back(bandWidthMonitorDataItemObject); + } + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +DescribeUserBandWidthDataResult::MonitorData DescribeUserBandWidthDataResult::getMonitorData()const +{ + return monitorData_; +} + +int DescribeUserBandWidthDataResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/DescribeVSwitchesRequest.cc b/ens/src/model/DescribeVSwitchesRequest.cc new file mode 100644 index 000000000..3a2082c34 --- /dev/null +++ b/ens/src/model/DescribeVSwitchesRequest.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 + +using AlibabaCloud::Ens::Model::DescribeVSwitchesRequest; + +DescribeVSwitchesRequest::DescribeVSwitchesRequest() + : RpcServiceRequest("ens", "2017-11-10", "DescribeVSwitches") { + setMethod(HttpRequest::Method::Post); +} + +DescribeVSwitchesRequest::~DescribeVSwitchesRequest() {} + +std::string DescribeVSwitchesRequest::getOrderByParams() const { + return orderByParams_; +} + +void DescribeVSwitchesRequest::setOrderByParams(const std::string &orderByParams) { + orderByParams_ = orderByParams; + setParameter(std::string("OrderByParams"), orderByParams); +} + +std::string DescribeVSwitchesRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void DescribeVSwitchesRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string DescribeVSwitchesRequest::getVSwitchId() const { + return vSwitchId_; +} + +void DescribeVSwitchesRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string DescribeVSwitchesRequest::getNetworkId() const { + return networkId_; +} + +void DescribeVSwitchesRequest::setNetworkId(const std::string &networkId) { + networkId_ = networkId; + setParameter(std::string("NetworkId"), networkId); +} + +int DescribeVSwitchesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeVSwitchesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int DescribeVSwitchesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeVSwitchesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeVSwitchesRequest::getVSwitchName() const { + return vSwitchName_; +} + +void DescribeVSwitchesRequest::setVSwitchName(const std::string &vSwitchName) { + vSwitchName_ = vSwitchName; + setParameter(std::string("VSwitchName"), vSwitchName); +} + diff --git a/ens/src/model/DescribeVSwitchesResult.cc b/ens/src/model/DescribeVSwitchesResult.cc new file mode 100644 index 000000000..29dd82f58 --- /dev/null +++ b/ens/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::Ens; +using namespace AlibabaCloud::Ens::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 allVSwitchesNode = value["VSwitches"]["VSwitch"]; + for (auto valueVSwitchesVSwitch : allVSwitchesNode) + { + VSwitch vSwitchesObject; + if(!valueVSwitchesVSwitch["EnsRegionId"].isNull()) + vSwitchesObject.ensRegionId = valueVSwitchesVSwitch["EnsRegionId"].asString(); + if(!valueVSwitchesVSwitch["Status"].isNull()) + vSwitchesObject.status = valueVSwitchesVSwitch["Status"].asString(); + if(!valueVSwitchesVSwitch["FreeIpCount"].isNull()) + vSwitchesObject.freeIpCount = std::stol(valueVSwitchesVSwitch["FreeIpCount"].asString()); + if(!valueVSwitchesVSwitch["VSwitchId"].isNull()) + vSwitchesObject.vSwitchId = valueVSwitchesVSwitch["VSwitchId"].asString(); + if(!valueVSwitchesVSwitch["CidrBlock"].isNull()) + vSwitchesObject.cidrBlock = valueVSwitchesVSwitch["CidrBlock"].asString(); + if(!valueVSwitchesVSwitch["Description"].isNull()) + vSwitchesObject.description = valueVSwitchesVSwitch["Description"].asString(); + if(!valueVSwitchesVSwitch["NetworkId"].isNull()) + vSwitchesObject.networkId = valueVSwitchesVSwitch["NetworkId"].asString(); + if(!valueVSwitchesVSwitch["CreatedTime"].isNull()) + vSwitchesObject.createdTime = valueVSwitchesVSwitch["CreatedTime"].asString(); + if(!valueVSwitchesVSwitch["VSwitchName"].isNull()) + vSwitchesObject.vSwitchName = valueVSwitchesVSwitch["VSwitchName"].asString(); + vSwitches_.push_back(vSwitchesObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeVSwitchesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeVSwitchesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeVSwitchesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeVSwitchesResult::getVSwitches()const +{ + return vSwitches_; +} + diff --git a/ens/src/model/DetachDiskRequest.cc b/ens/src/model/DetachDiskRequest.cc new file mode 100644 index 000000000..97f06fe29 --- /dev/null +++ b/ens/src/model/DetachDiskRequest.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 + +using AlibabaCloud::Ens::Model::DetachDiskRequest; + +DetachDiskRequest::DetachDiskRequest() + : RpcServiceRequest("ens", "2017-11-10", "DetachDisk") { + setMethod(HttpRequest::Method::Post); +} + +DetachDiskRequest::~DetachDiskRequest() {} + +std::string DetachDiskRequest::getDiskId() const { + return diskId_; +} + +void DetachDiskRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); +} + +std::string DetachDiskRequest::getInstanceId() const { + return instanceId_; +} + +void DetachDiskRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/DetachDiskResult.cc b/ens/src/model/DetachDiskResult.cc new file mode 100644 index 000000000..114164a3f --- /dev/null +++ b/ens/src/model/DetachDiskResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +int DetachDiskResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/DistApplicationDataRequest.cc b/ens/src/model/DistApplicationDataRequest.cc new file mode 100644 index 000000000..d0c60e814 --- /dev/null +++ b/ens/src/model/DistApplicationDataRequest.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 + +using AlibabaCloud::Ens::Model::DistApplicationDataRequest; + +DistApplicationDataRequest::DistApplicationDataRequest() + : RpcServiceRequest("ens", "2017-11-10", "DistApplicationData") { + setMethod(HttpRequest::Method::Post); +} + +DistApplicationDataRequest::~DistApplicationDataRequest() {} + +std::string DistApplicationDataRequest::getData() const { + return data_; +} + +void DistApplicationDataRequest::setData(const std::string &data) { + data_ = data; + setParameter(std::string("Data"), data); +} + +std::string DistApplicationDataRequest::getDistStrategy() const { + return distStrategy_; +} + +void DistApplicationDataRequest::setDistStrategy(const std::string &distStrategy) { + distStrategy_ = distStrategy; + setParameter(std::string("DistStrategy"), distStrategy); +} + +std::string DistApplicationDataRequest::getAppId() const { + return appId_; +} + +void DistApplicationDataRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ens/src/model/DistApplicationDataResult.cc b/ens/src/model/DistApplicationDataResult.cc new file mode 100644 index 000000000..0206b1e64 --- /dev/null +++ b/ens/src/model/DistApplicationDataResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +DistApplicationDataResult::DistApplicationDataResult() : + ServiceResult() +{} + +DistApplicationDataResult::DistApplicationDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DistApplicationDataResult::~DistApplicationDataResult() +{} + +void DistApplicationDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDistResultsNode = value["DistResults"]["DistResult"]; + for (auto valueDistResultsDistResult : allDistResultsNode) + { + DistResult distResultsObject; + if(!valueDistResultsDistResult["ResultDescrip"].isNull()) + distResultsObject.resultDescrip = valueDistResultsDistResult["ResultDescrip"].asString(); + if(!valueDistResultsDistResult["Version"].isNull()) + distResultsObject.version = valueDistResultsDistResult["Version"].asString(); + if(!valueDistResultsDistResult["ResultCode"].isNull()) + distResultsObject.resultCode = std::stoi(valueDistResultsDistResult["ResultCode"].asString()); + if(!valueDistResultsDistResult["Name"].isNull()) + distResultsObject.name = valueDistResultsDistResult["Name"].asString(); + distResults_.push_back(distResultsObject); + } + auto allDistInstanceIds = value["DistInstanceIds"]["DistInstanceId"]; + for (const auto &item : allDistInstanceIds) + distInstanceIds_.push_back(item.asString()); + if(!value["DistInstanceTotalCount"].isNull()) + distInstanceTotalCount_ = std::stoi(value["DistInstanceTotalCount"].asString()); + +} + +std::vector DistApplicationDataResult::getDistInstanceIds()const +{ + return distInstanceIds_; +} + +int DistApplicationDataResult::getDistInstanceTotalCount()const +{ + return distInstanceTotalCount_; +} + +std::vector DistApplicationDataResult::getDistResults()const +{ + return distResults_; +} + diff --git a/ens/src/model/ExportBillDetailDataRequest.cc b/ens/src/model/ExportBillDetailDataRequest.cc new file mode 100644 index 000000000..7fdd98068 --- /dev/null +++ b/ens/src/model/ExportBillDetailDataRequest.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 + +using AlibabaCloud::Ens::Model::ExportBillDetailDataRequest; + +ExportBillDetailDataRequest::ExportBillDetailDataRequest() + : RpcServiceRequest("ens", "2017-11-10", "ExportBillDetailData") { + setMethod(HttpRequest::Method::Post); +} + +ExportBillDetailDataRequest::~ExportBillDetailDataRequest() {} + +std::string ExportBillDetailDataRequest::getStartDate() const { + return startDate_; +} + +void ExportBillDetailDataRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); +} + +std::string ExportBillDetailDataRequest::getEndDate() const { + return endDate_; +} + +void ExportBillDetailDataRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); +} + diff --git a/ens/src/model/ExportBillDetailDataResult.cc b/ens/src/model/ExportBillDetailDataResult.cc new file mode 100644 index 000000000..4b25a2038 --- /dev/null +++ b/ens/src/model/ExportBillDetailDataResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +ExportBillDetailDataResult::ExportBillDetailDataResult() : + ServiceResult() +{} + +ExportBillDetailDataResult::ExportBillDetailDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExportBillDetailDataResult::~ExportBillDetailDataResult() +{} + +void ExportBillDetailDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["FilePath"].isNull()) + filePath_ = value["FilePath"].asString(); + +} + +std::string ExportBillDetailDataResult::getFilePath()const +{ + return filePath_; +} + diff --git a/ens/src/model/ExportImageRequest.cc b/ens/src/model/ExportImageRequest.cc new file mode 100644 index 000000000..458794e6a --- /dev/null +++ b/ens/src/model/ExportImageRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::ExportImageRequest; + +ExportImageRequest::ExportImageRequest() + : RpcServiceRequest("ens", "2017-11-10", "ExportImage") { + setMethod(HttpRequest::Method::Post); +} + +ExportImageRequest::~ExportImageRequest() {} + +std::string ExportImageRequest::getImageId() const { + return imageId_; +} + +void ExportImageRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::string ExportImageRequest::getOSSRegionId() const { + return oSSRegionId_; +} + +void ExportImageRequest::setOSSRegionId(const std::string &oSSRegionId) { + oSSRegionId_ = oSSRegionId; + setParameter(std::string("OSSRegionId"), oSSRegionId); +} + +std::string ExportImageRequest::getOSSBucket() const { + return oSSBucket_; +} + +void ExportImageRequest::setOSSBucket(const std::string &oSSBucket) { + oSSBucket_ = oSSBucket; + setParameter(std::string("OSSBucket"), oSSBucket); +} + +std::string ExportImageRequest::getRoleName() const { + return roleName_; +} + +void ExportImageRequest::setRoleName(const std::string &roleName) { + roleName_ = roleName; + setParameter(std::string("RoleName"), roleName); +} + +std::string ExportImageRequest::getOSSPrefix() const { + return oSSPrefix_; +} + +void ExportImageRequest::setOSSPrefix(const std::string &oSSPrefix) { + oSSPrefix_ = oSSPrefix; + setParameter(std::string("OSSPrefix"), oSSPrefix); +} + diff --git a/ens/src/model/ExportImageResult.cc b/ens/src/model/ExportImageResult.cc new file mode 100644 index 000000000..0604b6e55 --- /dev/null +++ b/ens/src/model/ExportImageResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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()); + if(!value["ExportedImageURL"].isNull()) + exportedImageURL_ = value["ExportedImageURL"].asString(); + +} + +std::string ExportImageResult::getExportedImageURL()const +{ + return exportedImageURL_; +} + diff --git a/ens/src/model/ExportMeasurementDataRequest.cc b/ens/src/model/ExportMeasurementDataRequest.cc new file mode 100644 index 000000000..c1842e9f8 --- /dev/null +++ b/ens/src/model/ExportMeasurementDataRequest.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 + +using AlibabaCloud::Ens::Model::ExportMeasurementDataRequest; + +ExportMeasurementDataRequest::ExportMeasurementDataRequest() + : RpcServiceRequest("ens", "2017-11-10", "ExportMeasurementData") { + setMethod(HttpRequest::Method::Post); +} + +ExportMeasurementDataRequest::~ExportMeasurementDataRequest() {} + +std::string ExportMeasurementDataRequest::getStartDate() const { + return startDate_; +} + +void ExportMeasurementDataRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); +} + +std::string ExportMeasurementDataRequest::getEndDate() const { + return endDate_; +} + +void ExportMeasurementDataRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); +} + diff --git a/ens/src/model/ExportMeasurementDataResult.cc b/ens/src/model/ExportMeasurementDataResult.cc new file mode 100644 index 000000000..7beb28b9d --- /dev/null +++ b/ens/src/model/ExportMeasurementDataResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +ExportMeasurementDataResult::ExportMeasurementDataResult() : + ServiceResult() +{} + +ExportMeasurementDataResult::ExportMeasurementDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExportMeasurementDataResult::~ExportMeasurementDataResult() +{} + +void ExportMeasurementDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["FilePath"].isNull()) + filePath_ = value["FilePath"].asString(); + +} + +std::string ExportMeasurementDataResult::getFilePath()const +{ + return filePath_; +} + diff --git a/ens/src/model/GetDeviceInternetPortRequest.cc b/ens/src/model/GetDeviceInternetPortRequest.cc new file mode 100644 index 000000000..86281436d --- /dev/null +++ b/ens/src/model/GetDeviceInternetPortRequest.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 + +using AlibabaCloud::Ens::Model::GetDeviceInternetPortRequest; + +GetDeviceInternetPortRequest::GetDeviceInternetPortRequest() + : RpcServiceRequest("ens", "2017-11-10", "GetDeviceInternetPort") { + setMethod(HttpRequest::Method::Get); +} + +GetDeviceInternetPortRequest::~GetDeviceInternetPortRequest() {} + +std::string GetDeviceInternetPortRequest::getNatType() const { + return natType_; +} + +void GetDeviceInternetPortRequest::setNatType(const std::string &natType) { + natType_ = natType; + setParameter(std::string("NatType"), natType); +} + +std::string GetDeviceInternetPortRequest::getInstanceId() const { + return instanceId_; +} + +void GetDeviceInternetPortRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string GetDeviceInternetPortRequest::getRuleId() const { + return ruleId_; +} + +void GetDeviceInternetPortRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); +} + diff --git a/ens/src/model/GetDeviceInternetPortResult.cc b/ens/src/model/GetDeviceInternetPortResult.cc new file mode 100644 index 000000000..e457de5ba --- /dev/null +++ b/ens/src/model/GetDeviceInternetPortResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +GetDeviceInternetPortResult::GetDeviceInternetPortResult() : + ServiceResult() +{} + +GetDeviceInternetPortResult::GetDeviceInternetPortResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDeviceInternetPortResult::~GetDeviceInternetPortResult() +{} + +void GetDeviceInternetPortResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allNetworkInfoNode = value["NetworkInfo"]["NetworkInfoItem"]; + for (auto valueNetworkInfoNetworkInfoItem : allNetworkInfoNode) + { + NetworkInfoItem networkInfoObject; + if(!valueNetworkInfoNetworkInfoItem["InternalIp"].isNull()) + networkInfoObject.internalIp = valueNetworkInfoNetworkInfoItem["InternalIp"].asString(); + if(!valueNetworkInfoNetworkInfoItem["InternalPort"].isNull()) + networkInfoObject.internalPort = valueNetworkInfoNetworkInfoItem["InternalPort"].asString(); + if(!valueNetworkInfoNetworkInfoItem["ExternalIp"].isNull()) + networkInfoObject.externalIp = valueNetworkInfoNetworkInfoItem["ExternalIp"].asString(); + if(!valueNetworkInfoNetworkInfoItem["ExternalPort"].isNull()) + networkInfoObject.externalPort = valueNetworkInfoNetworkInfoItem["ExternalPort"].asString(); + if(!valueNetworkInfoNetworkInfoItem["ISP"].isNull()) + networkInfoObject.iSP = valueNetworkInfoNetworkInfoItem["ISP"].asString(); + if(!valueNetworkInfoNetworkInfoItem["Status"].isNull()) + networkInfoObject.status = valueNetworkInfoNetworkInfoItem["Status"].asString(); + networkInfo_.push_back(networkInfoObject); + } + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + +} + +std::vector GetDeviceInternetPortResult::getNetworkInfo()const +{ + return networkInfo_; +} + +std::string GetDeviceInternetPortResult::getInstanceId()const +{ + return instanceId_; +} + diff --git a/ens/src/model/GetVmListRequest.cc b/ens/src/model/GetVmListRequest.cc new file mode 100644 index 000000000..0c02b9d72 --- /dev/null +++ b/ens/src/model/GetVmListRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::GetVmListRequest; + +GetVmListRequest::GetVmListRequest() + : RpcServiceRequest("ens", "2017-11-10", "GetVmList") { + setMethod(HttpRequest::Method::Get); +} + +GetVmListRequest::~GetVmListRequest() {} + +std::string GetVmListRequest::getInstanceUuid() const { + return instanceUuid_; +} + +void GetVmListRequest::setInstanceUuid(const std::string &instanceUuid) { + instanceUuid_ = instanceUuid; + setParameter(std::string("InstanceUuid"), instanceUuid); +} + +int GetVmListRequest::getPageNumber() const { + return pageNumber_; +} + +void GetVmListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string GetVmListRequest::getGroupUuid() const { + return groupUuid_; +} + +void GetVmListRequest::setGroupUuid(const std::string &groupUuid) { + groupUuid_ = groupUuid; + setParameter(std::string("GroupUuid"), groupUuid); +} + +int GetVmListRequest::getPageSize() const { + return pageSize_; +} + +void GetVmListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +long GetVmListRequest::getAliUid() const { + return aliUid_; +} + +void GetVmListRequest::setAliUid(long aliUid) { + aliUid_ = aliUid; + setParameter(std::string("AliUid"), std::to_string(aliUid)); +} + +std::string GetVmListRequest::getWorkloadUuid() const { + return workloadUuid_; +} + +void GetVmListRequest::setWorkloadUuid(const std::string &workloadUuid) { + workloadUuid_ = workloadUuid; + setParameter(std::string("WorkloadUuid"), workloadUuid); +} + diff --git a/ens/src/model/GetVmListResult.cc b/ens/src/model/GetVmListResult.cc new file mode 100644 index 000000000..6ce7de115 --- /dev/null +++ b/ens/src/model/GetVmListResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +GetVmListResult::GetVmListResult() : + ServiceResult() +{} + +GetVmListResult::GetVmListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVmListResult::~GetVmListResult() +{} + +void GetVmListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Desc"].isNull()) + desc_ = value["Desc"].asString(); + +} + +std::string GetVmListResult::getMsg()const +{ + return msg_; +} + +std::string GetVmListResult::getDesc()const +{ + return desc_; +} + +std::string GetVmListResult::getData()const +{ + return data_; +} + +int GetVmListResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/ImportKeyPairRequest.cc b/ens/src/model/ImportKeyPairRequest.cc new file mode 100644 index 000000000..8b3f2459d --- /dev/null +++ b/ens/src/model/ImportKeyPairRequest.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 + +using AlibabaCloud::Ens::Model::ImportKeyPairRequest; + +ImportKeyPairRequest::ImportKeyPairRequest() + : RpcServiceRequest("ens", "2017-11-10", "ImportKeyPair") { + setMethod(HttpRequest::Method::Post); +} + +ImportKeyPairRequest::~ImportKeyPairRequest() {} + +std::string ImportKeyPairRequest::getKeyPairName() const { + return keyPairName_; +} + +void ImportKeyPairRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); +} + +std::string ImportKeyPairRequest::getPublicKeyBody() const { + return publicKeyBody_; +} + +void ImportKeyPairRequest::setPublicKeyBody(const std::string &publicKeyBody) { + publicKeyBody_ = publicKeyBody; + setParameter(std::string("PublicKeyBody"), publicKeyBody); +} + diff --git a/ens/src/model/ImportKeyPairResult.cc b/ens/src/model/ImportKeyPairResult.cc new file mode 100644 index 000000000..053fffeec --- /dev/null +++ b/ens/src/model/ImportKeyPairResult.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::Ens; +using namespace AlibabaCloud::Ens::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()); + if(!value["KeyPairFingerPrint"].isNull()) + keyPairFingerPrint_ = value["KeyPairFingerPrint"].asString(); + if(!value["KeyPairName"].isNull()) + keyPairName_ = value["KeyPairName"].asString(); + +} + +std::string ImportKeyPairResult::getKeyPairFingerPrint()const +{ + return keyPairFingerPrint_; +} + +std::string ImportKeyPairResult::getKeyPairName()const +{ + return keyPairName_; +} + diff --git a/ens/src/model/JoinPublicIpsToEpnInstanceRequest.cc b/ens/src/model/JoinPublicIpsToEpnInstanceRequest.cc new file mode 100644 index 000000000..44ad476ca --- /dev/null +++ b/ens/src/model/JoinPublicIpsToEpnInstanceRequest.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 + +using AlibabaCloud::Ens::Model::JoinPublicIpsToEpnInstanceRequest; + +JoinPublicIpsToEpnInstanceRequest::JoinPublicIpsToEpnInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "JoinPublicIpsToEpnInstance") { + setMethod(HttpRequest::Method::Post); +} + +JoinPublicIpsToEpnInstanceRequest::~JoinPublicIpsToEpnInstanceRequest() {} + +std::string JoinPublicIpsToEpnInstanceRequest::getEPNInstanceId() const { + return ePNInstanceId_; +} + +void JoinPublicIpsToEpnInstanceRequest::setEPNInstanceId(const std::string &ePNInstanceId) { + ePNInstanceId_ = ePNInstanceId; + setParameter(std::string("EPNInstanceId"), ePNInstanceId); +} + +std::string JoinPublicIpsToEpnInstanceRequest::getInstanceInfos() const { + return instanceInfos_; +} + +void JoinPublicIpsToEpnInstanceRequest::setInstanceInfos(const std::string &instanceInfos) { + instanceInfos_ = instanceInfos; + setParameter(std::string("InstanceInfos"), instanceInfos); +} + diff --git a/ens/src/model/JoinPublicIpsToEpnInstanceResult.cc b/ens/src/model/JoinPublicIpsToEpnInstanceResult.cc new file mode 100644 index 000000000..72171ea55 --- /dev/null +++ b/ens/src/model/JoinPublicIpsToEpnInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +JoinPublicIpsToEpnInstanceResult::JoinPublicIpsToEpnInstanceResult() : + ServiceResult() +{} + +JoinPublicIpsToEpnInstanceResult::JoinPublicIpsToEpnInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +JoinPublicIpsToEpnInstanceResult::~JoinPublicIpsToEpnInstanceResult() +{} + +void JoinPublicIpsToEpnInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/JoinSecurityGroupRequest.cc b/ens/src/model/JoinSecurityGroupRequest.cc new file mode 100644 index 000000000..35ad4f5d9 --- /dev/null +++ b/ens/src/model/JoinSecurityGroupRequest.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 + +using AlibabaCloud::Ens::Model::JoinSecurityGroupRequest; + +JoinSecurityGroupRequest::JoinSecurityGroupRequest() + : RpcServiceRequest("ens", "2017-11-10", "JoinSecurityGroup") { + setMethod(HttpRequest::Method::Post); +} + +JoinSecurityGroupRequest::~JoinSecurityGroupRequest() {} + +std::string JoinSecurityGroupRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void JoinSecurityGroupRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + +std::string JoinSecurityGroupRequest::getInstanceId() const { + return instanceId_; +} + +void JoinSecurityGroupRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/JoinSecurityGroupResult.cc b/ens/src/model/JoinSecurityGroupResult.cc new file mode 100644 index 000000000..e47ef7195 --- /dev/null +++ b/ens/src/model/JoinSecurityGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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/ens/src/model/JoinVSwitchesToEpnInstanceRequest.cc b/ens/src/model/JoinVSwitchesToEpnInstanceRequest.cc new file mode 100644 index 000000000..8e85a7e89 --- /dev/null +++ b/ens/src/model/JoinVSwitchesToEpnInstanceRequest.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 + +using AlibabaCloud::Ens::Model::JoinVSwitchesToEpnInstanceRequest; + +JoinVSwitchesToEpnInstanceRequest::JoinVSwitchesToEpnInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "JoinVSwitchesToEpnInstance") { + setMethod(HttpRequest::Method::Post); +} + +JoinVSwitchesToEpnInstanceRequest::~JoinVSwitchesToEpnInstanceRequest() {} + +std::string JoinVSwitchesToEpnInstanceRequest::getVSwitchesInfo() const { + return vSwitchesInfo_; +} + +void JoinVSwitchesToEpnInstanceRequest::setVSwitchesInfo(const std::string &vSwitchesInfo) { + vSwitchesInfo_ = vSwitchesInfo; + setParameter(std::string("VSwitchesInfo"), vSwitchesInfo); +} + +std::string JoinVSwitchesToEpnInstanceRequest::getEPNInstanceId() const { + return ePNInstanceId_; +} + +void JoinVSwitchesToEpnInstanceRequest::setEPNInstanceId(const std::string &ePNInstanceId) { + ePNInstanceId_ = ePNInstanceId; + setParameter(std::string("EPNInstanceId"), ePNInstanceId); +} + diff --git a/ens/src/model/JoinVSwitchesToEpnInstanceResult.cc b/ens/src/model/JoinVSwitchesToEpnInstanceResult.cc new file mode 100644 index 000000000..045d378d4 --- /dev/null +++ b/ens/src/model/JoinVSwitchesToEpnInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +JoinVSwitchesToEpnInstanceResult::JoinVSwitchesToEpnInstanceResult() : + ServiceResult() +{} + +JoinVSwitchesToEpnInstanceResult::JoinVSwitchesToEpnInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +JoinVSwitchesToEpnInstanceResult::~JoinVSwitchesToEpnInstanceResult() +{} + +void JoinVSwitchesToEpnInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/LeaveSecurityGroupRequest.cc b/ens/src/model/LeaveSecurityGroupRequest.cc new file mode 100644 index 000000000..b8428b962 --- /dev/null +++ b/ens/src/model/LeaveSecurityGroupRequest.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 + +using AlibabaCloud::Ens::Model::LeaveSecurityGroupRequest; + +LeaveSecurityGroupRequest::LeaveSecurityGroupRequest() + : RpcServiceRequest("ens", "2017-11-10", "LeaveSecurityGroup") { + setMethod(HttpRequest::Method::Post); +} + +LeaveSecurityGroupRequest::~LeaveSecurityGroupRequest() {} + +std::string LeaveSecurityGroupRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void LeaveSecurityGroupRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + +std::string LeaveSecurityGroupRequest::getInstanceId() const { + return instanceId_; +} + +void LeaveSecurityGroupRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/LeaveSecurityGroupResult.cc b/ens/src/model/LeaveSecurityGroupResult.cc new file mode 100644 index 000000000..10f085380 --- /dev/null +++ b/ens/src/model/LeaveSecurityGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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/ens/src/model/ListApplicationsRequest.cc b/ens/src/model/ListApplicationsRequest.cc new file mode 100644 index 000000000..19b09c085 --- /dev/null +++ b/ens/src/model/ListApplicationsRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::ListApplicationsRequest; + +ListApplicationsRequest::ListApplicationsRequest() + : RpcServiceRequest("ens", "2017-11-10", "ListApplications") { + setMethod(HttpRequest::Method::Post); +} + +ListApplicationsRequest::~ListApplicationsRequest() {} + +std::string ListApplicationsRequest::getClusterNames() const { + return clusterNames_; +} + +void ListApplicationsRequest::setClusterNames(const std::string &clusterNames) { + clusterNames_ = clusterNames; + setParameter(std::string("ClusterNames"), clusterNames); +} + +std::string ListApplicationsRequest::getLevel() const { + return level_; +} + +void ListApplicationsRequest::setLevel(const std::string &level) { + level_ = level; + setParameter(std::string("Level"), level); +} + +std::string ListApplicationsRequest::getOutAppInfoParams() const { + return outAppInfoParams_; +} + +void ListApplicationsRequest::setOutAppInfoParams(const std::string &outAppInfoParams) { + outAppInfoParams_ = outAppInfoParams; + setParameter(std::string("OutAppInfoParams"), outAppInfoParams); +} + +std::string ListApplicationsRequest::getMaxDate() const { + return maxDate_; +} + +void ListApplicationsRequest::setMaxDate(const std::string &maxDate) { + maxDate_ = maxDate; + setParameter(std::string("MaxDate"), maxDate); +} + +int ListApplicationsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListApplicationsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListApplicationsRequest::getAppVersions() const { + return appVersions_; +} + +void ListApplicationsRequest::setAppVersions(const std::string &appVersions) { + appVersions_ = appVersions; + setParameter(std::string("AppVersions"), appVersions); +} + +int ListApplicationsRequest::getPageSize() const { + return pageSize_; +} + +void ListApplicationsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListApplicationsRequest::getMinDate() const { + return minDate_; +} + +void ListApplicationsRequest::setMinDate(const std::string &minDate) { + minDate_ = minDate; + setParameter(std::string("MinDate"), minDate); +} + diff --git a/ens/src/model/ListApplicationsResult.cc b/ens/src/model/ListApplicationsResult.cc new file mode 100644 index 000000000..c2aee5477 --- /dev/null +++ b/ens/src/model/ListApplicationsResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +ListApplicationsResult::ListApplicationsResult() : + ServiceResult() +{} + +ListApplicationsResult::ListApplicationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListApplicationsResult::~ListApplicationsResult() +{} + +void ListApplicationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allApplicationsNode = value["Applications"]["Application"]; + for (auto valueApplicationsApplication : allApplicationsNode) + { + Application applicationsObject; + if(!valueApplicationsApplication["ClusterName"].isNull()) + applicationsObject.clusterName = valueApplicationsApplication["ClusterName"].asString(); + auto allAppListNode = valueApplicationsApplication["AppList"]["App"]; + for (auto valueApplicationsApplicationAppListApp : allAppListNode) + { + Application::App appListObject; + if(!valueApplicationsApplicationAppListApp["AppId"].isNull()) + appListObject.appId = valueApplicationsApplicationAppListApp["AppId"].asString(); + if(!valueApplicationsApplicationAppListApp["AppInfo"].isNull()) + appListObject.appInfo = valueApplicationsApplicationAppListApp["AppInfo"].asString(); + applicationsObject.appList.push_back(appListObject); + } + applications_.push_back(applicationsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListApplicationsResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListApplicationsResult::getApplications()const +{ + return applications_; +} + +int ListApplicationsResult::getPageSize()const +{ + return pageSize_; +} + +int ListApplicationsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ens/src/model/MigrateVmRequest.cc b/ens/src/model/MigrateVmRequest.cc new file mode 100644 index 000000000..7e7a6614b --- /dev/null +++ b/ens/src/model/MigrateVmRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::MigrateVmRequest; + +MigrateVmRequest::MigrateVmRequest() + : RpcServiceRequest("ens", "2017-11-10", "MigrateVm") { + setMethod(HttpRequest::Method::Post); +} + +MigrateVmRequest::~MigrateVmRequest() {} + +std::string MigrateVmRequest::getInstances() const { + return instances_; +} + +void MigrateVmRequest::setInstances(const std::string &instances) { + instances_ = instances; + setBodyParameter(std::string("Instances"), instances); +} + +std::string MigrateVmRequest::getGroupUuid() const { + return groupUuid_; +} + +void MigrateVmRequest::setGroupUuid(const std::string &groupUuid) { + groupUuid_ = groupUuid; + setParameter(std::string("GroupUuid"), groupUuid); +} + +std::string MigrateVmRequest::getTenant() const { + return tenant_; +} + +void MigrateVmRequest::setTenant(const std::string &tenant) { + tenant_ = tenant; + setParameter(std::string("Tenant"), tenant); +} + +std::string MigrateVmRequest::getInstanceIds() const { + return instanceIds_; +} + +void MigrateVmRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); +} + diff --git a/ens/src/model/MigrateVmResult.cc b/ens/src/model/MigrateVmResult.cc new file mode 100644 index 000000000..6885120cb --- /dev/null +++ b/ens/src/model/MigrateVmResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +MigrateVmResult::MigrateVmResult() : + ServiceResult() +{} + +MigrateVmResult::MigrateVmResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MigrateVmResult::~MigrateVmResult() +{} + +void MigrateVmResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Desc"].isNull()) + desc_ = value["Desc"].asString(); + +} + +std::string MigrateVmResult::getMsg()const +{ + return msg_; +} + +std::string MigrateVmResult::getDesc()const +{ + return desc_; +} + +std::string MigrateVmResult::getData()const +{ + return data_; +} + +int MigrateVmResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/ModifyEnsEipAddressAttributeRequest.cc b/ens/src/model/ModifyEnsEipAddressAttributeRequest.cc new file mode 100644 index 000000000..ca60df2e6 --- /dev/null +++ b/ens/src/model/ModifyEnsEipAddressAttributeRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::ModifyEnsEipAddressAttributeRequest; + +ModifyEnsEipAddressAttributeRequest::ModifyEnsEipAddressAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "ModifyEnsEipAddressAttribute") { + setMethod(HttpRequest::Method::Post); +} + +ModifyEnsEipAddressAttributeRequest::~ModifyEnsEipAddressAttributeRequest() {} + +std::string ModifyEnsEipAddressAttributeRequest::getDescription() const { + return description_; +} + +void ModifyEnsEipAddressAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string ModifyEnsEipAddressAttributeRequest::getAllocationId() const { + return allocationId_; +} + +void ModifyEnsEipAddressAttributeRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); +} + +int ModifyEnsEipAddressAttributeRequest::getBandwidth() const { + return bandwidth_; +} + +void ModifyEnsEipAddressAttributeRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); +} + +std::string ModifyEnsEipAddressAttributeRequest::getName() const { + return name_; +} + +void ModifyEnsEipAddressAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/ens/src/model/ModifyEnsEipAddressAttributeResult.cc b/ens/src/model/ModifyEnsEipAddressAttributeResult.cc new file mode 100644 index 000000000..ba24ee382 --- /dev/null +++ b/ens/src/model/ModifyEnsEipAddressAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +ModifyEnsEipAddressAttributeResult::ModifyEnsEipAddressAttributeResult() : + ServiceResult() +{} + +ModifyEnsEipAddressAttributeResult::ModifyEnsEipAddressAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyEnsEipAddressAttributeResult::~ModifyEnsEipAddressAttributeResult() +{} + +void ModifyEnsEipAddressAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/ModifyEpnInstanceRequest.cc b/ens/src/model/ModifyEpnInstanceRequest.cc new file mode 100644 index 000000000..cdba0d77e --- /dev/null +++ b/ens/src/model/ModifyEpnInstanceRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::ModifyEpnInstanceRequest; + +ModifyEpnInstanceRequest::ModifyEpnInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "ModifyEpnInstance") { + setMethod(HttpRequest::Method::Post); +} + +ModifyEpnInstanceRequest::~ModifyEpnInstanceRequest() {} + +std::string ModifyEpnInstanceRequest::getNetworkingModel() const { + return networkingModel_; +} + +void ModifyEpnInstanceRequest::setNetworkingModel(const std::string &networkingModel) { + networkingModel_ = networkingModel; + setParameter(std::string("NetworkingModel"), networkingModel); +} + +int ModifyEpnInstanceRequest::getInternetMaxBandwidthOut() const { + return internetMaxBandwidthOut_; +} + +void ModifyEpnInstanceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) { + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut)); +} + +std::string ModifyEpnInstanceRequest::getEPNInstanceId() const { + return ePNInstanceId_; +} + +void ModifyEpnInstanceRequest::setEPNInstanceId(const std::string &ePNInstanceId) { + ePNInstanceId_ = ePNInstanceId; + setParameter(std::string("EPNInstanceId"), ePNInstanceId); +} + +std::string ModifyEpnInstanceRequest::getEPNInstanceName() const { + return ePNInstanceName_; +} + +void ModifyEpnInstanceRequest::setEPNInstanceName(const std::string &ePNInstanceName) { + ePNInstanceName_ = ePNInstanceName; + setParameter(std::string("EPNInstanceName"), ePNInstanceName); +} + diff --git a/ens/src/model/ModifyEpnInstanceResult.cc b/ens/src/model/ModifyEpnInstanceResult.cc new file mode 100644 index 000000000..f707e1283 --- /dev/null +++ b/ens/src/model/ModifyEpnInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +ModifyEpnInstanceResult::ModifyEpnInstanceResult() : + ServiceResult() +{} + +ModifyEpnInstanceResult::ModifyEpnInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyEpnInstanceResult::~ModifyEpnInstanceResult() +{} + +void ModifyEpnInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/ModifyImageAttributeRequest.cc b/ens/src/model/ModifyImageAttributeRequest.cc new file mode 100644 index 000000000..95abf58c7 --- /dev/null +++ b/ens/src/model/ModifyImageAttributeRequest.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 + +using AlibabaCloud::Ens::Model::ModifyImageAttributeRequest; + +ModifyImageAttributeRequest::ModifyImageAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "ModifyImageAttribute") { + setMethod(HttpRequest::Method::Post); +} + +ModifyImageAttributeRequest::~ModifyImageAttributeRequest() {} + +std::string ModifyImageAttributeRequest::getImageId() const { + return imageId_; +} + +void ModifyImageAttributeRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::string ModifyImageAttributeRequest::getImageName() const { + return imageName_; +} + +void ModifyImageAttributeRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setParameter(std::string("ImageName"), imageName); +} + +std::string ModifyImageAttributeRequest::getProduct() const { + return product_; +} + +void ModifyImageAttributeRequest::setProduct(const std::string &product) { + product_ = product; + setParameter(std::string("product"), product); +} + diff --git a/ens/src/model/ModifyImageAttributeResult.cc b/ens/src/model/ModifyImageAttributeResult.cc new file mode 100644 index 000000000..e68e0c6bb --- /dev/null +++ b/ens/src/model/ModifyImageAttributeResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +int ModifyImageAttributeResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/ModifyImageSharePermissionRequest.cc b/ens/src/model/ModifyImageSharePermissionRequest.cc new file mode 100644 index 000000000..42e3ea1d5 --- /dev/null +++ b/ens/src/model/ModifyImageSharePermissionRequest.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 + +using AlibabaCloud::Ens::Model::ModifyImageSharePermissionRequest; + +ModifyImageSharePermissionRequest::ModifyImageSharePermissionRequest() + : RpcServiceRequest("ens", "2017-11-10", "ModifyImageSharePermission") { + setMethod(HttpRequest::Method::Post); +} + +ModifyImageSharePermissionRequest::~ModifyImageSharePermissionRequest() {} + +std::string ModifyImageSharePermissionRequest::getImageId() const { + return imageId_; +} + +void ModifyImageSharePermissionRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::string ModifyImageSharePermissionRequest::getRemoveAccounts() const { + return removeAccounts_; +} + +void ModifyImageSharePermissionRequest::setRemoveAccounts(const std::string &removeAccounts) { + removeAccounts_ = removeAccounts; + setParameter(std::string("RemoveAccounts"), removeAccounts); +} + +std::string ModifyImageSharePermissionRequest::getAddAccounts() const { + return addAccounts_; +} + +void ModifyImageSharePermissionRequest::setAddAccounts(const std::string &addAccounts) { + addAccounts_ = addAccounts; + setParameter(std::string("AddAccounts"), addAccounts); +} + diff --git a/ens/src/model/ModifyImageSharePermissionResult.cc b/ens/src/model/ModifyImageSharePermissionResult.cc new file mode 100644 index 000000000..eb9ca9c8a --- /dev/null +++ b/ens/src/model/ModifyImageSharePermissionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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/ens/src/model/ModifyInstanceAttributeRequest.cc b/ens/src/model/ModifyInstanceAttributeRequest.cc new file mode 100644 index 000000000..ae5379468 --- /dev/null +++ b/ens/src/model/ModifyInstanceAttributeRequest.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 + +using AlibabaCloud::Ens::Model::ModifyInstanceAttributeRequest; + +ModifyInstanceAttributeRequest::ModifyInstanceAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "ModifyInstanceAttribute") { + setMethod(HttpRequest::Method::Post); +} + +ModifyInstanceAttributeRequest::~ModifyInstanceAttributeRequest() {} + +std::string ModifyInstanceAttributeRequest::getPassword() const { + return password_; +} + +void ModifyInstanceAttributeRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); +} + +std::string ModifyInstanceAttributeRequest::getInstanceId() const { + return instanceId_; +} + +void ModifyInstanceAttributeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ModifyInstanceAttributeRequest::getInstanceName() const { + return instanceName_; +} + +void ModifyInstanceAttributeRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); +} + diff --git a/ens/src/model/ModifyInstanceAttributeResult.cc b/ens/src/model/ModifyInstanceAttributeResult.cc new file mode 100644 index 000000000..507b1a6e2 --- /dev/null +++ b/ens/src/model/ModifyInstanceAttributeResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +int ModifyInstanceAttributeResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/ModifyInstanceAutoRenewAttributeRequest.cc b/ens/src/model/ModifyInstanceAutoRenewAttributeRequest.cc new file mode 100644 index 000000000..55dba69a2 --- /dev/null +++ b/ens/src/model/ModifyInstanceAutoRenewAttributeRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::ModifyInstanceAutoRenewAttributeRequest; + +ModifyInstanceAutoRenewAttributeRequest::ModifyInstanceAutoRenewAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "ModifyInstanceAutoRenewAttribute") { + setMethod(HttpRequest::Method::Post); +} + +ModifyInstanceAutoRenewAttributeRequest::~ModifyInstanceAutoRenewAttributeRequest() {} + +std::string ModifyInstanceAutoRenewAttributeRequest::getDuration() const { + return duration_; +} + +void ModifyInstanceAutoRenewAttributeRequest::setDuration(const std::string &duration) { + duration_ = duration; + setParameter(std::string("Duration"), duration); +} + +std::string ModifyInstanceAutoRenewAttributeRequest::getRenewalStatus() const { + return renewalStatus_; +} + +void ModifyInstanceAutoRenewAttributeRequest::setRenewalStatus(const std::string &renewalStatus) { + renewalStatus_ = renewalStatus; + setParameter(std::string("RenewalStatus"), renewalStatus); +} + +std::string ModifyInstanceAutoRenewAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyInstanceAutoRenewAttributeRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); +} + +std::string ModifyInstanceAutoRenewAttributeRequest::getAutoRenew() const { + return autoRenew_; +} + +void ModifyInstanceAutoRenewAttributeRequest::setAutoRenew(const std::string &autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew); +} + +std::string ModifyInstanceAutoRenewAttributeRequest::getInstanceIds() const { + return instanceIds_; +} + +void ModifyInstanceAutoRenewAttributeRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); +} + diff --git a/ens/src/model/ModifyInstanceAutoRenewAttributeResult.cc b/ens/src/model/ModifyInstanceAutoRenewAttributeResult.cc new file mode 100644 index 000000000..2855e48ff --- /dev/null +++ b/ens/src/model/ModifyInstanceAutoRenewAttributeResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +int ModifyInstanceAutoRenewAttributeResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/ModifyLoadBalancerAttributeRequest.cc b/ens/src/model/ModifyLoadBalancerAttributeRequest.cc new file mode 100644 index 000000000..0a69f8058 --- /dev/null +++ b/ens/src/model/ModifyLoadBalancerAttributeRequest.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 + +using AlibabaCloud::Ens::Model::ModifyLoadBalancerAttributeRequest; + +ModifyLoadBalancerAttributeRequest::ModifyLoadBalancerAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "ModifyLoadBalancerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +ModifyLoadBalancerAttributeRequest::~ModifyLoadBalancerAttributeRequest() {} + +std::string ModifyLoadBalancerAttributeRequest::getLoadBalancerName() const { + return loadBalancerName_; +} + +void ModifyLoadBalancerAttributeRequest::setLoadBalancerName(const std::string &loadBalancerName) { + loadBalancerName_ = loadBalancerName; + setParameter(std::string("LoadBalancerName"), loadBalancerName); +} + +std::string ModifyLoadBalancerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void ModifyLoadBalancerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/ens/src/model/ModifyLoadBalancerAttributeResult.cc b/ens/src/model/ModifyLoadBalancerAttributeResult.cc new file mode 100644 index 000000000..e1764783c --- /dev/null +++ b/ens/src/model/ModifyLoadBalancerAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +ModifyLoadBalancerAttributeResult::ModifyLoadBalancerAttributeResult() : + ServiceResult() +{} + +ModifyLoadBalancerAttributeResult::ModifyLoadBalancerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyLoadBalancerAttributeResult::~ModifyLoadBalancerAttributeResult() +{} + +void ModifyLoadBalancerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/ModifyNetworkAttributeRequest.cc b/ens/src/model/ModifyNetworkAttributeRequest.cc new file mode 100644 index 000000000..e4fc2f0c5 --- /dev/null +++ b/ens/src/model/ModifyNetworkAttributeRequest.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 + +using AlibabaCloud::Ens::Model::ModifyNetworkAttributeRequest; + +ModifyNetworkAttributeRequest::ModifyNetworkAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "ModifyNetworkAttribute") { + setMethod(HttpRequest::Method::Post); +} + +ModifyNetworkAttributeRequest::~ModifyNetworkAttributeRequest() {} + +std::string ModifyNetworkAttributeRequest::getDescription() const { + return description_; +} + +void ModifyNetworkAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string ModifyNetworkAttributeRequest::getNetworkName() const { + return networkName_; +} + +void ModifyNetworkAttributeRequest::setNetworkName(const std::string &networkName) { + networkName_ = networkName; + setParameter(std::string("NetworkName"), networkName); +} + +std::string ModifyNetworkAttributeRequest::getNetworkId() const { + return networkId_; +} + +void ModifyNetworkAttributeRequest::setNetworkId(const std::string &networkId) { + networkId_ = networkId; + setParameter(std::string("NetworkId"), networkId); +} + diff --git a/ens/src/model/ModifyNetworkAttributeResult.cc b/ens/src/model/ModifyNetworkAttributeResult.cc new file mode 100644 index 000000000..faa25418a --- /dev/null +++ b/ens/src/model/ModifyNetworkAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +ModifyNetworkAttributeResult::ModifyNetworkAttributeResult() : + ServiceResult() +{} + +ModifyNetworkAttributeResult::ModifyNetworkAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyNetworkAttributeResult::~ModifyNetworkAttributeResult() +{} + +void ModifyNetworkAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/ModifySecurityGroupAttributeRequest.cc b/ens/src/model/ModifySecurityGroupAttributeRequest.cc new file mode 100644 index 000000000..49cf38e84 --- /dev/null +++ b/ens/src/model/ModifySecurityGroupAttributeRequest.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 + +using AlibabaCloud::Ens::Model::ModifySecurityGroupAttributeRequest; + +ModifySecurityGroupAttributeRequest::ModifySecurityGroupAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "ModifySecurityGroupAttribute") { + setMethod(HttpRequest::Method::Post); +} + +ModifySecurityGroupAttributeRequest::~ModifySecurityGroupAttributeRequest() {} + +std::string ModifySecurityGroupAttributeRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void ModifySecurityGroupAttributeRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + +std::string ModifySecurityGroupAttributeRequest::getDescription() const { + return description_; +} + +void ModifySecurityGroupAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string ModifySecurityGroupAttributeRequest::getSecurityGroupName() const { + return securityGroupName_; +} + +void ModifySecurityGroupAttributeRequest::setSecurityGroupName(const std::string &securityGroupName) { + securityGroupName_ = securityGroupName; + setParameter(std::string("SecurityGroupName"), securityGroupName); +} + diff --git a/ens/src/model/ModifySecurityGroupAttributeResult.cc b/ens/src/model/ModifySecurityGroupAttributeResult.cc new file mode 100644 index 000000000..3fab44b43 --- /dev/null +++ b/ens/src/model/ModifySecurityGroupAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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/ens/src/model/ModifyVSwitchAttributeRequest.cc b/ens/src/model/ModifyVSwitchAttributeRequest.cc new file mode 100644 index 000000000..448d2a61f --- /dev/null +++ b/ens/src/model/ModifyVSwitchAttributeRequest.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 + +using AlibabaCloud::Ens::Model::ModifyVSwitchAttributeRequest; + +ModifyVSwitchAttributeRequest::ModifyVSwitchAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "ModifyVSwitchAttribute") { + setMethod(HttpRequest::Method::Post); +} + +ModifyVSwitchAttributeRequest::~ModifyVSwitchAttributeRequest() {} + +std::string ModifyVSwitchAttributeRequest::getDescription() const { + return description_; +} + +void ModifyVSwitchAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string ModifyVSwitchAttributeRequest::getVSwitchId() const { + return vSwitchId_; +} + +void ModifyVSwitchAttributeRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string ModifyVSwitchAttributeRequest::getVSwitchName() const { + return vSwitchName_; +} + +void ModifyVSwitchAttributeRequest::setVSwitchName(const std::string &vSwitchName) { + vSwitchName_ = vSwitchName; + setParameter(std::string("VSwitchName"), vSwitchName); +} + diff --git a/ens/src/model/ModifyVSwitchAttributeResult.cc b/ens/src/model/ModifyVSwitchAttributeResult.cc new file mode 100644 index 000000000..edba7c7aa --- /dev/null +++ b/ens/src/model/ModifyVSwitchAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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/ens/src/model/PreCreateEnsServiceRequest.cc b/ens/src/model/PreCreateEnsServiceRequest.cc new file mode 100644 index 000000000..05b4f0036 --- /dev/null +++ b/ens/src/model/PreCreateEnsServiceRequest.cc @@ -0,0 +1,153 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::PreCreateEnsServiceRequest; + +PreCreateEnsServiceRequest::PreCreateEnsServiceRequest() + : RpcServiceRequest("ens", "2017-11-10", "PreCreateEnsService") { + setMethod(HttpRequest::Method::Post); +} + +PreCreateEnsServiceRequest::~PreCreateEnsServiceRequest() {} + +std::string PreCreateEnsServiceRequest::getBandwidthType() const { + return bandwidthType_; +} + +void PreCreateEnsServiceRequest::setBandwidthType(const std::string &bandwidthType) { + bandwidthType_ = bandwidthType; + setParameter(std::string("BandwidthType"), bandwidthType); +} + +std::string PreCreateEnsServiceRequest::getKeyPairName() const { + return keyPairName_; +} + +void PreCreateEnsServiceRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); +} + +std::string PreCreateEnsServiceRequest::getPassword() const { + return password_; +} + +void PreCreateEnsServiceRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); +} + +std::string PreCreateEnsServiceRequest::getBuyResourcesDetail() const { + return buyResourcesDetail_; +} + +void PreCreateEnsServiceRequest::setBuyResourcesDetail(const std::string &buyResourcesDetail) { + buyResourcesDetail_ = buyResourcesDetail; + setParameter(std::string("BuyResourcesDetail"), buyResourcesDetail); +} + +std::string PreCreateEnsServiceRequest::getSystemDiskSize() const { + return systemDiskSize_; +} + +void PreCreateEnsServiceRequest::setSystemDiskSize(const std::string &systemDiskSize) { + systemDiskSize_ = systemDiskSize; + setParameter(std::string("SystemDiskSize"), systemDiskSize); +} + +std::string PreCreateEnsServiceRequest::getInstanceBandwithdLimit() const { + return instanceBandwithdLimit_; +} + +void PreCreateEnsServiceRequest::setInstanceBandwithdLimit(const std::string &instanceBandwithdLimit) { + instanceBandwithdLimit_ = instanceBandwithdLimit; + setParameter(std::string("InstanceBandwithdLimit"), instanceBandwithdLimit); +} + +std::string PreCreateEnsServiceRequest::getEnsServiceName() const { + return ensServiceName_; +} + +void PreCreateEnsServiceRequest::setEnsServiceName(const std::string &ensServiceName) { + ensServiceName_ = ensServiceName; + setParameter(std::string("EnsServiceName"), ensServiceName); +} + +std::string PreCreateEnsServiceRequest::getNetLevel() const { + return netLevel_; +} + +void PreCreateEnsServiceRequest::setNetLevel(const std::string &netLevel) { + netLevel_ = netLevel; + setParameter(std::string("NetLevel"), netLevel); +} + +std::string PreCreateEnsServiceRequest::getDataDiskSize() const { + return dataDiskSize_; +} + +void PreCreateEnsServiceRequest::setDataDiskSize(const std::string &dataDiskSize) { + dataDiskSize_ = dataDiskSize; + setParameter(std::string("DataDiskSize"), dataDiskSize); +} + +std::string PreCreateEnsServiceRequest::getSchedulingPriceStrategy() const { + return schedulingPriceStrategy_; +} + +void PreCreateEnsServiceRequest::setSchedulingPriceStrategy(const std::string &schedulingPriceStrategy) { + schedulingPriceStrategy_ = schedulingPriceStrategy; + setParameter(std::string("SchedulingPriceStrategy"), schedulingPriceStrategy); +} + +std::string PreCreateEnsServiceRequest::getImageId() const { + return imageId_; +} + +void PreCreateEnsServiceRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::string PreCreateEnsServiceRequest::getInstanceSpec() const { + return instanceSpec_; +} + +void PreCreateEnsServiceRequest::setInstanceSpec(const std::string &instanceSpec) { + instanceSpec_ = instanceSpec; + setParameter(std::string("InstanceSpec"), instanceSpec); +} + +std::string PreCreateEnsServiceRequest::getUserData() const { + return userData_; +} + +void PreCreateEnsServiceRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); +} + +std::string PreCreateEnsServiceRequest::getSchedulingStrategy() const { + return schedulingStrategy_; +} + +void PreCreateEnsServiceRequest::setSchedulingStrategy(const std::string &schedulingStrategy) { + schedulingStrategy_ = schedulingStrategy; + setParameter(std::string("SchedulingStrategy"), schedulingStrategy); +} + diff --git a/ens/src/model/PreCreateEnsServiceResult.cc b/ens/src/model/PreCreateEnsServiceResult.cc new file mode 100644 index 000000000..983ddef49 --- /dev/null +++ b/ens/src/model/PreCreateEnsServiceResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +PreCreateEnsServiceResult::PreCreateEnsServiceResult() : + ServiceResult() +{} + +PreCreateEnsServiceResult::PreCreateEnsServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PreCreateEnsServiceResult::~PreCreateEnsServiceResult() +{} + +void PreCreateEnsServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["BuyResourcesDetail"].isNull()) + buyResourcesDetail_ = value["BuyResourcesDetail"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["EnsServiceId"].isNull()) + ensServiceId_ = value["EnsServiceId"].asString(); + if(!value["NetLevel"].isNull()) + netLevel_ = value["NetLevel"].asString(); + +} + +std::string PreCreateEnsServiceResult::getEnsServiceId()const +{ + return ensServiceId_; +} + +std::string PreCreateEnsServiceResult::getNetLevel()const +{ + return netLevel_; +} + +int PreCreateEnsServiceResult::getCode()const +{ + return code_; +} + +std::string PreCreateEnsServiceResult::getBuyResourcesDetail()const +{ + return buyResourcesDetail_; +} + diff --git a/ens/src/model/PushApplicationDataRequest.cc b/ens/src/model/PushApplicationDataRequest.cc new file mode 100644 index 000000000..d77e133c2 --- /dev/null +++ b/ens/src/model/PushApplicationDataRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::PushApplicationDataRequest; + +PushApplicationDataRequest::PushApplicationDataRequest() + : RpcServiceRequest("ens", "2017-11-10", "PushApplicationData") { + setMethod(HttpRequest::Method::Post); +} + +PushApplicationDataRequest::~PushApplicationDataRequest() {} + +std::string PushApplicationDataRequest::getData() const { + return data_; +} + +void PushApplicationDataRequest::setData(const std::string &data) { + data_ = data; + setParameter(std::string("Data"), data); +} + +int PushApplicationDataRequest::getTimeout() const { + return timeout_; +} + +void PushApplicationDataRequest::setTimeout(int timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); +} + +std::string PushApplicationDataRequest::getPushStrategy() const { + return pushStrategy_; +} + +void PushApplicationDataRequest::setPushStrategy(const std::string &pushStrategy) { + pushStrategy_ = pushStrategy; + setParameter(std::string("PushStrategy"), pushStrategy); +} + +std::string PushApplicationDataRequest::getAppId() const { + return appId_; +} + +void PushApplicationDataRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ens/src/model/PushApplicationDataResult.cc b/ens/src/model/PushApplicationDataResult.cc new file mode 100644 index 000000000..07450f919 --- /dev/null +++ b/ens/src/model/PushApplicationDataResult.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +PushApplicationDataResult::PushApplicationDataResult() : + ServiceResult() +{} + +PushApplicationDataResult::PushApplicationDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PushApplicationDataResult::~PushApplicationDataResult() +{} + +void PushApplicationDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPushResultsNode = value["PushResults"]["PushResult"]; + for (auto valuePushResultsPushResult : allPushResultsNode) + { + PushResult pushResultsObject; + if(!valuePushResultsPushResult["Name"].isNull()) + pushResultsObject.name = valuePushResultsPushResult["Name"].asString(); + if(!valuePushResultsPushResult["ResultCode"].isNull()) + pushResultsObject.resultCode = std::stoi(valuePushResultsPushResult["ResultCode"].asString()); + if(!valuePushResultsPushResult["ResultDescrip"].isNull()) + pushResultsObject.resultDescrip = valuePushResultsPushResult["ResultDescrip"].asString(); + if(!valuePushResultsPushResult["Version"].isNull()) + pushResultsObject.version = valuePushResultsPushResult["Version"].asString(); + pushResults_.push_back(pushResultsObject); + } + +} + +std::vector PushApplicationDataResult::getPushResults()const +{ + return pushResults_; +} + diff --git a/ens/src/model/ReInitDiskRequest.cc b/ens/src/model/ReInitDiskRequest.cc new file mode 100644 index 000000000..3efcce7dd --- /dev/null +++ b/ens/src/model/ReInitDiskRequest.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 + +using AlibabaCloud::Ens::Model::ReInitDiskRequest; + +ReInitDiskRequest::ReInitDiskRequest() + : RpcServiceRequest("ens", "2017-11-10", "ReInitDisk") { + setMethod(HttpRequest::Method::Post); +} + +ReInitDiskRequest::~ReInitDiskRequest() {} + +std::string ReInitDiskRequest::getImageId() const { + return imageId_; +} + +void ReInitDiskRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::string ReInitDiskRequest::getDiskId() const { + return diskId_; +} + +void ReInitDiskRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); +} + diff --git a/ens/src/model/ReInitDiskResult.cc b/ens/src/model/ReInitDiskResult.cc new file mode 100644 index 000000000..fe7900bc2 --- /dev/null +++ b/ens/src/model/ReInitDiskResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +int ReInitDiskResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/RebootInstanceRequest.cc b/ens/src/model/RebootInstanceRequest.cc new file mode 100644 index 000000000..a44e6d795 --- /dev/null +++ b/ens/src/model/RebootInstanceRequest.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 + +using AlibabaCloud::Ens::Model::RebootInstanceRequest; + +RebootInstanceRequest::RebootInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "RebootInstance") { + setMethod(HttpRequest::Method::Post); +} + +RebootInstanceRequest::~RebootInstanceRequest() {} + +std::string RebootInstanceRequest::getForceStop() const { + return forceStop_; +} + +void RebootInstanceRequest::setForceStop(const std::string &forceStop) { + forceStop_ = forceStop; + setParameter(std::string("ForceStop"), forceStop); +} + +std::string RebootInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void RebootInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/RebootInstanceResult.cc b/ens/src/model/RebootInstanceResult.cc new file mode 100644 index 000000000..3d366921a --- /dev/null +++ b/ens/src/model/RebootInstanceResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +int RebootInstanceResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/ReleaseEipAddressRequest.cc b/ens/src/model/ReleaseEipAddressRequest.cc new file mode 100644 index 000000000..3f7470c6e --- /dev/null +++ b/ens/src/model/ReleaseEipAddressRequest.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 + +using AlibabaCloud::Ens::Model::ReleaseEipAddressRequest; + +ReleaseEipAddressRequest::ReleaseEipAddressRequest() + : RpcServiceRequest("ens", "2017-11-10", "ReleaseEipAddress") { + setMethod(HttpRequest::Method::Post); +} + +ReleaseEipAddressRequest::~ReleaseEipAddressRequest() {} + +std::string ReleaseEipAddressRequest::getEips() const { + return eips_; +} + +void ReleaseEipAddressRequest::setEips(const std::string &eips) { + eips_ = eips; + setParameter(std::string("Eips"), eips); +} + +std::string ReleaseEipAddressRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void ReleaseEipAddressRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + diff --git a/ens/src/model/ReleaseEipAddressResult.cc b/ens/src/model/ReleaseEipAddressResult.cc new file mode 100644 index 000000000..3f0f06516 --- /dev/null +++ b/ens/src/model/ReleaseEipAddressResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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/ens/src/model/ReleaseInstanceRequest.cc b/ens/src/model/ReleaseInstanceRequest.cc new file mode 100644 index 000000000..e0d5ff4e9 --- /dev/null +++ b/ens/src/model/ReleaseInstanceRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::ReleaseInstanceRequest; + +ReleaseInstanceRequest::ReleaseInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "ReleaseInstance") { + setMethod(HttpRequest::Method::Post); +} + +ReleaseInstanceRequest::~ReleaseInstanceRequest() {} + +std::string ReleaseInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void ReleaseInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/ReleaseInstanceResult.cc b/ens/src/model/ReleaseInstanceResult.cc new file mode 100644 index 000000000..be221c38d --- /dev/null +++ b/ens/src/model/ReleaseInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +ReleaseInstanceResult::ReleaseInstanceResult() : + ServiceResult() +{} + +ReleaseInstanceResult::ReleaseInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseInstanceResult::~ReleaseInstanceResult() +{} + +void ReleaseInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/ReleasePostPaidInstanceRequest.cc b/ens/src/model/ReleasePostPaidInstanceRequest.cc new file mode 100644 index 000000000..c0105b9b1 --- /dev/null +++ b/ens/src/model/ReleasePostPaidInstanceRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::ReleasePostPaidInstanceRequest; + +ReleasePostPaidInstanceRequest::ReleasePostPaidInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "ReleasePostPaidInstance") { + setMethod(HttpRequest::Method::Post); +} + +ReleasePostPaidInstanceRequest::~ReleasePostPaidInstanceRequest() {} + +std::string ReleasePostPaidInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void ReleasePostPaidInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/ReleasePostPaidInstanceResult.cc b/ens/src/model/ReleasePostPaidInstanceResult.cc new file mode 100644 index 000000000..7bc4fb3a5 --- /dev/null +++ b/ens/src/model/ReleasePostPaidInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +ReleasePostPaidInstanceResult::ReleasePostPaidInstanceResult() : + ServiceResult() +{} + +ReleasePostPaidInstanceResult::ReleasePostPaidInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleasePostPaidInstanceResult::~ReleasePostPaidInstanceResult() +{} + +void ReleasePostPaidInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/ReleasePrePaidInstanceRequest.cc b/ens/src/model/ReleasePrePaidInstanceRequest.cc new file mode 100644 index 000000000..6362f957f --- /dev/null +++ b/ens/src/model/ReleasePrePaidInstanceRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::ReleasePrePaidInstanceRequest; + +ReleasePrePaidInstanceRequest::ReleasePrePaidInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "ReleasePrePaidInstance") { + setMethod(HttpRequest::Method::Post); +} + +ReleasePrePaidInstanceRequest::~ReleasePrePaidInstanceRequest() {} + +std::string ReleasePrePaidInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void ReleasePrePaidInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/ReleasePrePaidInstanceResult.cc b/ens/src/model/ReleasePrePaidInstanceResult.cc new file mode 100644 index 000000000..ae55e34de --- /dev/null +++ b/ens/src/model/ReleasePrePaidInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +ReleasePrePaidInstanceResult::ReleasePrePaidInstanceResult() : + ServiceResult() +{} + +ReleasePrePaidInstanceResult::ReleasePrePaidInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleasePrePaidInstanceResult::~ReleasePrePaidInstanceResult() +{} + +void ReleasePrePaidInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/RemoveBackendServersRequest.cc b/ens/src/model/RemoveBackendServersRequest.cc new file mode 100644 index 000000000..81d63f3d3 --- /dev/null +++ b/ens/src/model/RemoveBackendServersRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::RemoveBackendServersRequest; + +RemoveBackendServersRequest::RemoveBackendServersRequest() + : RpcServiceRequest("ens", "2017-11-10", "RemoveBackendServers") { + setMethod(HttpRequest::Method::Post); +} + +RemoveBackendServersRequest::~RemoveBackendServersRequest() {} + +std::vector RemoveBackendServersRequest::getBackendServers() const { + return backendServers_; +} + +void RemoveBackendServersRequest::setBackendServers(const std::vector &backendServers) { + backendServers_ = backendServers; + for(int dep1 = 0; dep1 != backendServers.size(); dep1++) { + setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".Port", std::to_string(backendServers[dep1].port)); + setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".Ip", backendServers[dep1].ip); + setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".Weight", std::to_string(backendServers[dep1].weight)); + setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".Type", backendServers[dep1].type); + setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".ServerId", backendServers[dep1].serverId); + } +} + +std::string RemoveBackendServersRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void RemoveBackendServersRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/ens/src/model/RemoveBackendServersResult.cc b/ens/src/model/RemoveBackendServersResult.cc new file mode 100644 index 000000000..018ed0d28 --- /dev/null +++ b/ens/src/model/RemoveBackendServersResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +RemoveBackendServersResult::RemoveBackendServersResult() : + ServiceResult() +{} + +RemoveBackendServersResult::RemoveBackendServersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveBackendServersResult::~RemoveBackendServersResult() +{} + +void RemoveBackendServersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBackendServersNode = value["BackendServers"]["BackendServer"]; + for (auto valueBackendServersBackendServer : allBackendServersNode) + { + BackendServer backendServersObject; + if(!valueBackendServersBackendServer["ServerId"].isNull()) + backendServersObject.serverId = valueBackendServersBackendServer["ServerId"].asString(); + if(!valueBackendServersBackendServer["Weight"].isNull()) + backendServersObject.weight = std::stoi(valueBackendServersBackendServer["Weight"].asString()); + if(!valueBackendServersBackendServer["Type"].isNull()) + backendServersObject.type = valueBackendServersBackendServer["Type"].asString(); + if(!valueBackendServersBackendServer["Ip"].isNull()) + backendServersObject.ip = valueBackendServersBackendServer["Ip"].asString(); + if(!valueBackendServersBackendServer["Port"].isNull()) + backendServersObject.port = std::stoi(valueBackendServersBackendServer["Port"].asString()); + backendServers_.push_back(backendServersObject); + } + +} + +std::vector RemoveBackendServersResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/ens/src/model/RemovePublicIpsFromEpnInstanceRequest.cc b/ens/src/model/RemovePublicIpsFromEpnInstanceRequest.cc new file mode 100644 index 000000000..2f01c21cc --- /dev/null +++ b/ens/src/model/RemovePublicIpsFromEpnInstanceRequest.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 + +using AlibabaCloud::Ens::Model::RemovePublicIpsFromEpnInstanceRequest; + +RemovePublicIpsFromEpnInstanceRequest::RemovePublicIpsFromEpnInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "RemovePublicIpsFromEpnInstance") { + setMethod(HttpRequest::Method::Post); +} + +RemovePublicIpsFromEpnInstanceRequest::~RemovePublicIpsFromEpnInstanceRequest() {} + +std::string RemovePublicIpsFromEpnInstanceRequest::getEPNInstanceId() const { + return ePNInstanceId_; +} + +void RemovePublicIpsFromEpnInstanceRequest::setEPNInstanceId(const std::string &ePNInstanceId) { + ePNInstanceId_ = ePNInstanceId; + setParameter(std::string("EPNInstanceId"), ePNInstanceId); +} + +std::string RemovePublicIpsFromEpnInstanceRequest::getInstanceInfos() const { + return instanceInfos_; +} + +void RemovePublicIpsFromEpnInstanceRequest::setInstanceInfos(const std::string &instanceInfos) { + instanceInfos_ = instanceInfos; + setParameter(std::string("InstanceInfos"), instanceInfos); +} + diff --git a/ens/src/model/RemovePublicIpsFromEpnInstanceResult.cc b/ens/src/model/RemovePublicIpsFromEpnInstanceResult.cc new file mode 100644 index 000000000..d7c93ecb8 --- /dev/null +++ b/ens/src/model/RemovePublicIpsFromEpnInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +RemovePublicIpsFromEpnInstanceResult::RemovePublicIpsFromEpnInstanceResult() : + ServiceResult() +{} + +RemovePublicIpsFromEpnInstanceResult::RemovePublicIpsFromEpnInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemovePublicIpsFromEpnInstanceResult::~RemovePublicIpsFromEpnInstanceResult() +{} + +void RemovePublicIpsFromEpnInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/RemoveVSwitchesFromEpnInstanceRequest.cc b/ens/src/model/RemoveVSwitchesFromEpnInstanceRequest.cc new file mode 100644 index 000000000..2fd033e8b --- /dev/null +++ b/ens/src/model/RemoveVSwitchesFromEpnInstanceRequest.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 + +using AlibabaCloud::Ens::Model::RemoveVSwitchesFromEpnInstanceRequest; + +RemoveVSwitchesFromEpnInstanceRequest::RemoveVSwitchesFromEpnInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "RemoveVSwitchesFromEpnInstance") { + setMethod(HttpRequest::Method::Post); +} + +RemoveVSwitchesFromEpnInstanceRequest::~RemoveVSwitchesFromEpnInstanceRequest() {} + +std::string RemoveVSwitchesFromEpnInstanceRequest::getVSwitchesInfo() const { + return vSwitchesInfo_; +} + +void RemoveVSwitchesFromEpnInstanceRequest::setVSwitchesInfo(const std::string &vSwitchesInfo) { + vSwitchesInfo_ = vSwitchesInfo; + setParameter(std::string("VSwitchesInfo"), vSwitchesInfo); +} + +std::string RemoveVSwitchesFromEpnInstanceRequest::getEPNInstanceId() const { + return ePNInstanceId_; +} + +void RemoveVSwitchesFromEpnInstanceRequest::setEPNInstanceId(const std::string &ePNInstanceId) { + ePNInstanceId_ = ePNInstanceId; + setParameter(std::string("EPNInstanceId"), ePNInstanceId); +} + diff --git a/ens/src/model/RemoveVSwitchesFromEpnInstanceResult.cc b/ens/src/model/RemoveVSwitchesFromEpnInstanceResult.cc new file mode 100644 index 000000000..92a9d6f79 --- /dev/null +++ b/ens/src/model/RemoveVSwitchesFromEpnInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +RemoveVSwitchesFromEpnInstanceResult::RemoveVSwitchesFromEpnInstanceResult() : + ServiceResult() +{} + +RemoveVSwitchesFromEpnInstanceResult::RemoveVSwitchesFromEpnInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveVSwitchesFromEpnInstanceResult::~RemoveVSwitchesFromEpnInstanceResult() +{} + +void RemoveVSwitchesFromEpnInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/RenewInstanceRequest.cc b/ens/src/model/RenewInstanceRequest.cc new file mode 100644 index 000000000..cb347115c --- /dev/null +++ b/ens/src/model/RenewInstanceRequest.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 + +using AlibabaCloud::Ens::Model::RenewInstanceRequest; + +RenewInstanceRequest::RenewInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "RenewInstance") { + setMethod(HttpRequest::Method::Get); +} + +RenewInstanceRequest::~RenewInstanceRequest() {} + +long RenewInstanceRequest::getPeriod() const { + return period_; +} + +void RenewInstanceRequest::setPeriod(long period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); +} + +std::string RenewInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void RenewInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/RenewInstanceResult.cc b/ens/src/model/RenewInstanceResult.cc new file mode 100644 index 000000000..336cbf222 --- /dev/null +++ b/ens/src/model/RenewInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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/ens/src/model/RescaleApplicationRequest.cc b/ens/src/model/RescaleApplicationRequest.cc new file mode 100644 index 000000000..11168530a --- /dev/null +++ b/ens/src/model/RescaleApplicationRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::RescaleApplicationRequest; + +RescaleApplicationRequest::RescaleApplicationRequest() + : RpcServiceRequest("ens", "2017-11-10", "RescaleApplication") { + setMethod(HttpRequest::Method::Post); +} + +RescaleApplicationRequest::~RescaleApplicationRequest() {} + +std::string RescaleApplicationRequest::getResourceSelector() const { + return resourceSelector_; +} + +void RescaleApplicationRequest::setResourceSelector(const std::string &resourceSelector) { + resourceSelector_ = resourceSelector; + setParameter(std::string("ResourceSelector"), resourceSelector); +} + +std::string RescaleApplicationRequest::getToAppVersion() const { + return toAppVersion_; +} + +void RescaleApplicationRequest::setToAppVersion(const std::string &toAppVersion) { + toAppVersion_ = toAppVersion; + setParameter(std::string("ToAppVersion"), toAppVersion); +} + +std::string RescaleApplicationRequest::getRescaleType() const { + return rescaleType_; +} + +void RescaleApplicationRequest::setRescaleType(const std::string &rescaleType) { + rescaleType_ = rescaleType; + setParameter(std::string("RescaleType"), rescaleType); +} + +int RescaleApplicationRequest::getTimeout() const { + return timeout_; +} + +void RescaleApplicationRequest::setTimeout(int timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); +} + +std::string RescaleApplicationRequest::getRescaleLevel() const { + return rescaleLevel_; +} + +void RescaleApplicationRequest::setRescaleLevel(const std::string &rescaleLevel) { + rescaleLevel_ = rescaleLevel; + setParameter(std::string("RescaleLevel"), rescaleLevel); +} + +std::string RescaleApplicationRequest::getAppId() const { + return appId_; +} + +void RescaleApplicationRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ens/src/model/RescaleApplicationResult.cc b/ens/src/model/RescaleApplicationResult.cc new file mode 100644 index 000000000..279cdbb14 --- /dev/null +++ b/ens/src/model/RescaleApplicationResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +RescaleApplicationResult::RescaleApplicationResult() : + ServiceResult() +{} + +RescaleApplicationResult::RescaleApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RescaleApplicationResult::~RescaleApplicationResult() +{} + +void RescaleApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/RescaleDeviceServiceRequest.cc b/ens/src/model/RescaleDeviceServiceRequest.cc new file mode 100644 index 000000000..1ccbd8ee1 --- /dev/null +++ b/ens/src/model/RescaleDeviceServiceRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::RescaleDeviceServiceRequest; + +RescaleDeviceServiceRequest::RescaleDeviceServiceRequest() + : RpcServiceRequest("ens", "2017-11-10", "RescaleDeviceService") { + setMethod(HttpRequest::Method::Post); +} + +RescaleDeviceServiceRequest::~RescaleDeviceServiceRequest() {} + +std::string RescaleDeviceServiceRequest::getResourceSelector() const { + return resourceSelector_; +} + +void RescaleDeviceServiceRequest::setResourceSelector(const std::string &resourceSelector) { + resourceSelector_ = resourceSelector; + setBodyParameter(std::string("ResourceSelector"), resourceSelector); +} + +std::string RescaleDeviceServiceRequest::getResourceInfo() const { + return resourceInfo_; +} + +void RescaleDeviceServiceRequest::setResourceInfo(const std::string &resourceInfo) { + resourceInfo_ = resourceInfo; + setBodyParameter(std::string("ResourceInfo"), resourceInfo); +} + +std::string RescaleDeviceServiceRequest::getRescaleType() const { + return rescaleType_; +} + +void RescaleDeviceServiceRequest::setRescaleType(const std::string &rescaleType) { + rescaleType_ = rescaleType; + setParameter(std::string("RescaleType"), rescaleType); +} + +std::string RescaleDeviceServiceRequest::getImageId() const { + return imageId_; +} + +void RescaleDeviceServiceRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +long RescaleDeviceServiceRequest::getTimeout() const { + return timeout_; +} + +void RescaleDeviceServiceRequest::setTimeout(long timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); +} + +std::string RescaleDeviceServiceRequest::getRescaleLevel() const { + return rescaleLevel_; +} + +void RescaleDeviceServiceRequest::setRescaleLevel(const std::string &rescaleLevel) { + rescaleLevel_ = rescaleLevel; + setParameter(std::string("RescaleLevel"), rescaleLevel); +} + +std::string RescaleDeviceServiceRequest::getResourceSpec() const { + return resourceSpec_; +} + +void RescaleDeviceServiceRequest::setResourceSpec(const std::string &resourceSpec) { + resourceSpec_ = resourceSpec; + setParameter(std::string("ResourceSpec"), resourceSpec); +} + +int RescaleDeviceServiceRequest::getIpType() const { + return ipType_; +} + +void RescaleDeviceServiceRequest::setIpType(int ipType) { + ipType_ = ipType; + setParameter(std::string("IpType"), std::to_string(ipType)); +} + +std::string RescaleDeviceServiceRequest::getAppId() const { + return appId_; +} + +void RescaleDeviceServiceRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string RescaleDeviceServiceRequest::getServiceId() const { + return serviceId_; +} + +void RescaleDeviceServiceRequest::setServiceId(const std::string &serviceId) { + serviceId_ = serviceId; + setParameter(std::string("ServiceId"), serviceId); +} + diff --git a/ens/src/model/RescaleDeviceServiceResult.cc b/ens/src/model/RescaleDeviceServiceResult.cc new file mode 100644 index 000000000..43eee25ed --- /dev/null +++ b/ens/src/model/RescaleDeviceServiceResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +RescaleDeviceServiceResult::RescaleDeviceServiceResult() : + ServiceResult() +{} + +RescaleDeviceServiceResult::RescaleDeviceServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RescaleDeviceServiceResult::~RescaleDeviceServiceResult() +{} + +void RescaleDeviceServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResourceDetailInfosNode = value["ResourceDetailInfos"]["ResourceDetailInfo"]; + for (auto valueResourceDetailInfosResourceDetailInfo : allResourceDetailInfosNode) + { + ResourceDetailInfo resourceDetailInfosObject; + if(!valueResourceDetailInfosResourceDetailInfo["RegionID"].isNull()) + resourceDetailInfosObject.regionID = valueResourceDetailInfosResourceDetailInfo["RegionID"].asString(); + if(!valueResourceDetailInfosResourceDetailInfo["ID"].isNull()) + resourceDetailInfosObject.iD = valueResourceDetailInfosResourceDetailInfo["ID"].asString(); + if(!valueResourceDetailInfosResourceDetailInfo["IP"].isNull()) + resourceDetailInfosObject.iP = valueResourceDetailInfosResourceDetailInfo["IP"].asString(); + if(!valueResourceDetailInfosResourceDetailInfo["Server"].isNull()) + resourceDetailInfosObject.server = valueResourceDetailInfosResourceDetailInfo["Server"].asString(); + if(!valueResourceDetailInfosResourceDetailInfo["Type"].isNull()) + resourceDetailInfosObject.type = valueResourceDetailInfosResourceDetailInfo["Type"].asString(); + if(!valueResourceDetailInfosResourceDetailInfo["Status"].isNull()) + resourceDetailInfosObject.status = valueResourceDetailInfosResourceDetailInfo["Status"].asString(); + if(!valueResourceDetailInfosResourceDetailInfo["Mac"].isNull()) + resourceDetailInfosObject.mac = valueResourceDetailInfosResourceDetailInfo["Mac"].asString(); + if(!valueResourceDetailInfosResourceDetailInfo["ISP"].isNull()) + resourceDetailInfosObject.iSP = valueResourceDetailInfosResourceDetailInfo["ISP"].asString(); + resourceDetailInfos_.push_back(resourceDetailInfosObject); + } + auto allDeviceIds = value["DeviceIds"]["DeviceId"]; + for (const auto &item : allDeviceIds) + deviceIds_.push_back(item.asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::vector RescaleDeviceServiceResult::getDeviceIds()const +{ + return deviceIds_; +} + +std::string RescaleDeviceServiceResult::getOrderId()const +{ + return orderId_; +} + +std::vector RescaleDeviceServiceResult::getResourceDetailInfos()const +{ + return resourceDetailInfos_; +} + diff --git a/ens/src/model/ResetDeviceInstanceRequest.cc b/ens/src/model/ResetDeviceInstanceRequest.cc new file mode 100644 index 000000000..85cde0a60 --- /dev/null +++ b/ens/src/model/ResetDeviceInstanceRequest.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 + +using AlibabaCloud::Ens::Model::ResetDeviceInstanceRequest; + +ResetDeviceInstanceRequest::ResetDeviceInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "ResetDeviceInstance") { + setMethod(HttpRequest::Method::Get); +} + +ResetDeviceInstanceRequest::~ResetDeviceInstanceRequest() {} + +std::string ResetDeviceInstanceRequest::getImageId() const { + return imageId_; +} + +void ResetDeviceInstanceRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::string ResetDeviceInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void ResetDeviceInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string ResetDeviceInstanceRequest::getAppId() const { + return appId_; +} + +void ResetDeviceInstanceRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ens/src/model/ResetDeviceInstanceResult.cc b/ens/src/model/ResetDeviceInstanceResult.cc new file mode 100644 index 000000000..abe468d02 --- /dev/null +++ b/ens/src/model/ResetDeviceInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +ResetDeviceInstanceResult::ResetDeviceInstanceResult() : + ServiceResult() +{} + +ResetDeviceInstanceResult::ResetDeviceInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetDeviceInstanceResult::~ResetDeviceInstanceResult() +{} + +void ResetDeviceInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/RestartDeviceInstanceRequest.cc b/ens/src/model/RestartDeviceInstanceRequest.cc new file mode 100644 index 000000000..499ca6371 --- /dev/null +++ b/ens/src/model/RestartDeviceInstanceRequest.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 + +using AlibabaCloud::Ens::Model::RestartDeviceInstanceRequest; + +RestartDeviceInstanceRequest::RestartDeviceInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "RestartDeviceInstance") { + setMethod(HttpRequest::Method::Get); +} + +RestartDeviceInstanceRequest::~RestartDeviceInstanceRequest() {} + +std::string RestartDeviceInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void RestartDeviceInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string RestartDeviceInstanceRequest::getAppId() const { + return appId_; +} + +void RestartDeviceInstanceRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ens/src/model/RestartDeviceInstanceResult.cc b/ens/src/model/RestartDeviceInstanceResult.cc new file mode 100644 index 000000000..b056f0673 --- /dev/null +++ b/ens/src/model/RestartDeviceInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +RestartDeviceInstanceResult::RestartDeviceInstanceResult() : + ServiceResult() +{} + +RestartDeviceInstanceResult::RestartDeviceInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestartDeviceInstanceResult::~RestartDeviceInstanceResult() +{} + +void RestartDeviceInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/RevokeSecurityGroupEgressRequest.cc b/ens/src/model/RevokeSecurityGroupEgressRequest.cc new file mode 100644 index 000000000..672116f43 --- /dev/null +++ b/ens/src/model/RevokeSecurityGroupEgressRequest.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 + +using AlibabaCloud::Ens::Model::RevokeSecurityGroupEgressRequest; + +RevokeSecurityGroupEgressRequest::RevokeSecurityGroupEgressRequest() + : RpcServiceRequest("ens", "2017-11-10", "RevokeSecurityGroupEgress") { + setMethod(HttpRequest::Method::Post); +} + +RevokeSecurityGroupEgressRequest::~RevokeSecurityGroupEgressRequest() {} + +std::string RevokeSecurityGroupEgressRequest::getSourcePortRange() const { + return sourcePortRange_; +} + +void RevokeSecurityGroupEgressRequest::setSourcePortRange(const std::string &sourcePortRange) { + sourcePortRange_ = sourcePortRange; + setParameter(std::string("SourcePortRange"), sourcePortRange); +} + +std::string RevokeSecurityGroupEgressRequest::getPortRange() const { + return portRange_; +} + +void RevokeSecurityGroupEgressRequest::setPortRange(const std::string &portRange) { + portRange_ = portRange; + setParameter(std::string("PortRange"), portRange); +} + +std::string RevokeSecurityGroupEgressRequest::getIpProtocol() const { + return ipProtocol_; +} + +void RevokeSecurityGroupEgressRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); +} + +int RevokeSecurityGroupEgressRequest::getPriority() const { + return priority_; +} + +void RevokeSecurityGroupEgressRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); +} + +std::string RevokeSecurityGroupEgressRequest::getDestCidrIp() const { + return destCidrIp_; +} + +void RevokeSecurityGroupEgressRequest::setDestCidrIp(const std::string &destCidrIp) { + destCidrIp_ = destCidrIp; + setParameter(std::string("DestCidrIp"), destCidrIp); +} + +std::string RevokeSecurityGroupEgressRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void RevokeSecurityGroupEgressRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + +std::string RevokeSecurityGroupEgressRequest::getPolicy() const { + return policy_; +} + +void RevokeSecurityGroupEgressRequest::setPolicy(const std::string &policy) { + policy_ = policy; + setParameter(std::string("Policy"), policy); +} + diff --git a/ens/src/model/RevokeSecurityGroupEgressResult.cc b/ens/src/model/RevokeSecurityGroupEgressResult.cc new file mode 100644 index 000000000..6339f9167 --- /dev/null +++ b/ens/src/model/RevokeSecurityGroupEgressResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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/ens/src/model/RevokeSecurityGroupRequest.cc b/ens/src/model/RevokeSecurityGroupRequest.cc new file mode 100644 index 000000000..d27f072ba --- /dev/null +++ b/ens/src/model/RevokeSecurityGroupRequest.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 + +using AlibabaCloud::Ens::Model::RevokeSecurityGroupRequest; + +RevokeSecurityGroupRequest::RevokeSecurityGroupRequest() + : RpcServiceRequest("ens", "2017-11-10", "RevokeSecurityGroup") { + setMethod(HttpRequest::Method::Post); +} + +RevokeSecurityGroupRequest::~RevokeSecurityGroupRequest() {} + +std::string RevokeSecurityGroupRequest::getSourcePortRange() const { + return sourcePortRange_; +} + +void RevokeSecurityGroupRequest::setSourcePortRange(const std::string &sourcePortRange) { + sourcePortRange_ = sourcePortRange; + setParameter(std::string("SourcePortRange"), sourcePortRange); +} + +std::string RevokeSecurityGroupRequest::getPortRange() const { + return portRange_; +} + +void RevokeSecurityGroupRequest::setPortRange(const std::string &portRange) { + portRange_ = portRange; + setParameter(std::string("PortRange"), portRange); +} + +std::string RevokeSecurityGroupRequest::getIpProtocol() const { + return ipProtocol_; +} + +void RevokeSecurityGroupRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); +} + +std::string RevokeSecurityGroupRequest::getSourceCidrIp() const { + return sourceCidrIp_; +} + +void RevokeSecurityGroupRequest::setSourceCidrIp(const std::string &sourceCidrIp) { + sourceCidrIp_ = sourceCidrIp; + setParameter(std::string("SourceCidrIp"), sourceCidrIp); +} + +int RevokeSecurityGroupRequest::getPriority() const { + return priority_; +} + +void RevokeSecurityGroupRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); +} + +std::string RevokeSecurityGroupRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void RevokeSecurityGroupRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + +std::string RevokeSecurityGroupRequest::getPolicy() const { + return policy_; +} + +void RevokeSecurityGroupRequest::setPolicy(const std::string &policy) { + policy_ = policy; + setParameter(std::string("Policy"), policy); +} + diff --git a/ens/src/model/RevokeSecurityGroupResult.cc b/ens/src/model/RevokeSecurityGroupResult.cc new file mode 100644 index 000000000..17f029cb7 --- /dev/null +++ b/ens/src/model/RevokeSecurityGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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/ens/src/model/RollbackApplicationRequest.cc b/ens/src/model/RollbackApplicationRequest.cc new file mode 100644 index 000000000..bc9dfe7df --- /dev/null +++ b/ens/src/model/RollbackApplicationRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::RollbackApplicationRequest; + +RollbackApplicationRequest::RollbackApplicationRequest() + : RpcServiceRequest("ens", "2017-11-10", "RollbackApplication") { + setMethod(HttpRequest::Method::Post); +} + +RollbackApplicationRequest::~RollbackApplicationRequest() {} + +int RollbackApplicationRequest::getTimeout() const { + return timeout_; +} + +void RollbackApplicationRequest::setTimeout(int timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); +} + +std::string RollbackApplicationRequest::getFromAppVersion() const { + return fromAppVersion_; +} + +void RollbackApplicationRequest::setFromAppVersion(const std::string &fromAppVersion) { + fromAppVersion_ = fromAppVersion; + setParameter(std::string("FromAppVersion"), fromAppVersion); +} + +std::string RollbackApplicationRequest::getAppId() const { + return appId_; +} + +void RollbackApplicationRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + +std::string RollbackApplicationRequest::getToAppVersion() const { + return toAppVersion_; +} + +void RollbackApplicationRequest::setToAppVersion(const std::string &toAppVersion) { + toAppVersion_ = toAppVersion; + setParameter(std::string("ToAppVersion"), toAppVersion); +} + diff --git a/ens/src/model/RollbackApplicationResult.cc b/ens/src/model/RollbackApplicationResult.cc new file mode 100644 index 000000000..4d9c0013f --- /dev/null +++ b/ens/src/model/RollbackApplicationResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +RollbackApplicationResult::RollbackApplicationResult() : + ServiceResult() +{} + +RollbackApplicationResult::RollbackApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RollbackApplicationResult::~RollbackApplicationResult() +{} + +void RollbackApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/RunInstancesRequest.cc b/ens/src/model/RunInstancesRequest.cc new file mode 100644 index 000000000..b201ffe9e --- /dev/null +++ b/ens/src/model/RunInstancesRequest.cc @@ -0,0 +1,264 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::RunInstancesRequest; + +RunInstancesRequest::RunInstancesRequest() + : RpcServiceRequest("ens", "2017-11-10", "RunInstances") { + setMethod(HttpRequest::Method::Post); +} + +RunInstancesRequest::~RunInstancesRequest() {} + +std::string RunInstancesRequest::getScheduleAreaLevel() const { + return scheduleAreaLevel_; +} + +void RunInstancesRequest::setScheduleAreaLevel(const std::string &scheduleAreaLevel) { + scheduleAreaLevel_ = scheduleAreaLevel; + setParameter(std::string("ScheduleAreaLevel"), scheduleAreaLevel); +} + +bool RunInstancesRequest::getUniqueSuffix() const { + return uniqueSuffix_; +} + +void RunInstancesRequest::setUniqueSuffix(bool uniqueSuffix) { + uniqueSuffix_ = uniqueSuffix; + setParameter(std::string("UniqueSuffix"), uniqueSuffix ? "true" : "false"); +} + +std::string RunInstancesRequest::getSecurityId() const { + return securityId_; +} + +void RunInstancesRequest::setSecurityId(const std::string &securityId) { + securityId_ = securityId; + setParameter(std::string("SecurityId"), securityId); +} + +std::string RunInstancesRequest::getKeyPairName() const { + return keyPairName_; +} + +void RunInstancesRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); +} + +std::string RunInstancesRequest::getPassword() const { + return password_; +} + +void RunInstancesRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); +} + +std::string RunInstancesRequest::getHostName() const { + return hostName_; +} + +void RunInstancesRequest::setHostName(const std::string &hostName) { + hostName_ = hostName; + setParameter(std::string("HostName"), hostName); +} + +RunInstancesRequest::SystemDisk RunInstancesRequest::getSystemDisk() const { + return systemDisk_; +} + +void RunInstancesRequest::setSystemDisk(const RunInstancesRequest::SystemDisk &systemDisk) { + systemDisk_ = systemDisk; + setParameter(std::string("SystemDisk") + ".Size", std::to_string(systemDisk.size)); +} + +std::string RunInstancesRequest::getNetDistrictCode() const { + return netDistrictCode_; +} + +void RunInstancesRequest::setNetDistrictCode(const std::string &netDistrictCode) { + netDistrictCode_ = netDistrictCode; + setParameter(std::string("NetDistrictCode"), netDistrictCode); +} + +std::string RunInstancesRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void RunInstancesRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +long RunInstancesRequest::getPeriod() const { + return period_; +} + +void RunInstancesRequest::setPeriod(long period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); +} + +std::string RunInstancesRequest::getVSwitchId() const { + return vSwitchId_; +} + +void RunInstancesRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string RunInstancesRequest::getPrivateIpAddress() const { + return privateIpAddress_; +} + +void RunInstancesRequest::setPrivateIpAddress(const std::string &privateIpAddress) { + privateIpAddress_ = privateIpAddress; + setParameter(std::string("PrivateIpAddress"), privateIpAddress); +} + +std::string RunInstancesRequest::getInstanceName() const { + return instanceName_; +} + +void RunInstancesRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); +} + +bool RunInstancesRequest::getAutoRenew() const { + return autoRenew_; +} + +void RunInstancesRequest::setAutoRenew(bool autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false"); +} + +std::string RunInstancesRequest::getInternetChargeType() const { + return internetChargeType_; +} + +void RunInstancesRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); +} + +std::string RunInstancesRequest::getNetWorkId() const { + return netWorkId_; +} + +void RunInstancesRequest::setNetWorkId(const std::string &netWorkId) { + netWorkId_ = netWorkId; + setParameter(std::string("NetWorkId"), netWorkId); +} + +std::string RunInstancesRequest::getSchedulingPriceStrategy() const { + return schedulingPriceStrategy_; +} + +void RunInstancesRequest::setSchedulingPriceStrategy(const std::string &schedulingPriceStrategy) { + schedulingPriceStrategy_ = schedulingPriceStrategy; + setParameter(std::string("SchedulingPriceStrategy"), schedulingPriceStrategy); +} + +std::string RunInstancesRequest::getImageId() const { + return imageId_; +} + +void RunInstancesRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +long RunInstancesRequest::getInternetMaxBandwidthOut() const { + return internetMaxBandwidthOut_; +} + +void RunInstancesRequest::setInternetMaxBandwidthOut(long internetMaxBandwidthOut) { + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut)); +} + +std::string RunInstancesRequest::getUserData() const { + return userData_; +} + +void RunInstancesRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); +} + +std::string RunInstancesRequest::getInstanceType() const { + return instanceType_; +} + +void RunInstancesRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); +} + +std::string RunInstancesRequest::getInstanceChargeType() const { + return instanceChargeType_; +} + +void RunInstancesRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); +} + +long RunInstancesRequest::getAmount() const { + return amount_; +} + +void RunInstancesRequest::setAmount(long amount) { + amount_ = amount; + setParameter(std::string("Amount"), std::to_string(amount)); +} + +std::vector RunInstancesRequest::getDataDisk() const { + return dataDisk_; +} + +void RunInstancesRequest::setDataDisk(const std::vector &dataDisk) { + dataDisk_ = dataDisk; + for(int dep1 = 0; dep1 != dataDisk.size(); dep1++) { + setParameter(std::string("DataDisk") + "." + std::to_string(dep1 + 1) + ".Size", std::to_string(dataDisk[dep1].size)); + setParameter(std::string("DataDisk") + "." + std::to_string(dep1 + 1) + ".Category", dataDisk[dep1].category); + } +} + +std::string RunInstancesRequest::getSchedulingStrategy() const { + return schedulingStrategy_; +} + +void RunInstancesRequest::setSchedulingStrategy(const std::string &schedulingStrategy) { + schedulingStrategy_ = schedulingStrategy; + setParameter(std::string("SchedulingStrategy"), schedulingStrategy); +} + +std::string RunInstancesRequest::getCarrier() const { + return carrier_; +} + +void RunInstancesRequest::setCarrier(const std::string &carrier) { + carrier_ = carrier; + setParameter(std::string("Carrier"), carrier); +} + diff --git a/ens/src/model/RunInstancesResult.cc b/ens/src/model/RunInstancesResult.cc new file mode 100644 index 000000000..cda83453b --- /dev/null +++ b/ens/src/model/RunInstancesResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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 allInstanceIds = value["InstanceIds"]["InstanceIds"]; + for (const auto &item : allInstanceIds) + instanceIds_.push_back(item.asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::vector RunInstancesResult::getInstanceIds()const +{ + return instanceIds_; +} + +std::string RunInstancesResult::getOrderId()const +{ + return orderId_; +} + diff --git a/ens/src/model/RunServiceScheduleRequest.cc b/ens/src/model/RunServiceScheduleRequest.cc new file mode 100644 index 000000000..bc4d476cb --- /dev/null +++ b/ens/src/model/RunServiceScheduleRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::RunServiceScheduleRequest; + +RunServiceScheduleRequest::RunServiceScheduleRequest() + : RpcServiceRequest("ens", "2017-11-10", "RunServiceSchedule") { + setMethod(HttpRequest::Method::Post); +} + +RunServiceScheduleRequest::~RunServiceScheduleRequest() {} + +std::string RunServiceScheduleRequest::getUuid() const { + return uuid_; +} + +void RunServiceScheduleRequest::setUuid(const std::string &uuid) { + uuid_ = uuid; + setParameter(std::string("Uuid"), uuid); +} + +std::string RunServiceScheduleRequest::getClientIp() const { + return clientIp_; +} + +void RunServiceScheduleRequest::setClientIp(const std::string &clientIp) { + clientIp_ = clientIp; + setParameter(std::string("ClientIp"), clientIp); +} + +std::string RunServiceScheduleRequest::getPodConfigName() const { + return podConfigName_; +} + +void RunServiceScheduleRequest::setPodConfigName(const std::string &podConfigName) { + podConfigName_ = podConfigName; + setParameter(std::string("PodConfigName"), podConfigName); +} + +std::string RunServiceScheduleRequest::getServiceCommands() const { + return serviceCommands_; +} + +void RunServiceScheduleRequest::setServiceCommands(const std::string &serviceCommands) { + serviceCommands_ = serviceCommands; + setParameter(std::string("ServiceCommands"), serviceCommands); +} + +std::string RunServiceScheduleRequest::getScheduleStrategy() const { + return scheduleStrategy_; +} + +void RunServiceScheduleRequest::setScheduleStrategy(const std::string &scheduleStrategy) { + scheduleStrategy_ = scheduleStrategy; + setParameter(std::string("ScheduleStrategy"), scheduleStrategy); +} + +std::string RunServiceScheduleRequest::getDirectorys() const { + return directorys_; +} + +void RunServiceScheduleRequest::setDirectorys(const std::string &directorys) { + directorys_ = directorys; + setParameter(std::string("Directorys"), directorys); +} + +int RunServiceScheduleRequest::getPreLockedTimeout() const { + return preLockedTimeout_; +} + +void RunServiceScheduleRequest::setPreLockedTimeout(int preLockedTimeout) { + preLockedTimeout_ = preLockedTimeout; + setParameter(std::string("PreLockedTimeout"), std::to_string(preLockedTimeout)); +} + +std::string RunServiceScheduleRequest::getServiceAction() const { + return serviceAction_; +} + +void RunServiceScheduleRequest::setServiceAction(const std::string &serviceAction) { + serviceAction_ = serviceAction; + setParameter(std::string("ServiceAction"), serviceAction); +} + +std::string RunServiceScheduleRequest::getAppId() const { + return appId_; +} + +void RunServiceScheduleRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ens/src/model/RunServiceScheduleResult.cc b/ens/src/model/RunServiceScheduleResult.cc new file mode 100644 index 000000000..6890ccc7f --- /dev/null +++ b/ens/src/model/RunServiceScheduleResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +RunServiceScheduleResult::RunServiceScheduleResult() : + ServiceResult() +{} + +RunServiceScheduleResult::RunServiceScheduleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RunServiceScheduleResult::~RunServiceScheduleResult() +{} + +void RunServiceScheduleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCommandResultsNode = value["CommandResults"]["CommandResult"]; + for (auto valueCommandResultsCommandResult : allCommandResultsNode) + { + CommandResult commandResultsObject; + if(!valueCommandResultsCommandResult["Command"].isNull()) + commandResultsObject.command = valueCommandResultsCommandResult["Command"].asString(); + if(!valueCommandResultsCommandResult["ContainerName"].isNull()) + commandResultsObject.containerName = valueCommandResultsCommandResult["ContainerName"].asString(); + if(!valueCommandResultsCommandResult["ResultMsg"].isNull()) + commandResultsObject.resultMsg = valueCommandResultsCommandResult["ResultMsg"].asString(); + commandResults_.push_back(commandResultsObject); + } + if(!value["Index"].isNull()) + index_ = std::stoi(value["Index"].asString()); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["InstanceIp"].isNull()) + instanceIp_ = value["InstanceIp"].asString(); + if(!value["InstancePort"].isNull()) + instancePort_ = std::stoi(value["InstancePort"].asString()); + if(!value["RequestRepeated"].isNull()) + requestRepeated_ = value["RequestRepeated"].asString(); + if(!value["TcpPorts"].isNull()) + tcpPorts_ = value["TcpPorts"].asString() == "true"; + +} + +std::string RunServiceScheduleResult::getRequestRepeated()const +{ + return requestRepeated_; +} + +bool RunServiceScheduleResult::getTcpPorts()const +{ + return tcpPorts_; +} + +std::string RunServiceScheduleResult::getInstanceId()const +{ + return instanceId_; +} + +int RunServiceScheduleResult::getInstancePort()const +{ + return instancePort_; +} + +std::string RunServiceScheduleResult::getInstanceIp()const +{ + return instanceIp_; +} + +int RunServiceScheduleResult::getIndex()const +{ + return index_; +} + +std::vector RunServiceScheduleResult::getCommandResults()const +{ + return commandResults_; +} + diff --git a/ens/src/model/SchedulePodRequest.cc b/ens/src/model/SchedulePodRequest.cc new file mode 100644 index 000000000..0a2cc4e73 --- /dev/null +++ b/ens/src/model/SchedulePodRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::SchedulePodRequest; + +SchedulePodRequest::SchedulePodRequest() + : RpcServiceRequest("ens", "2017-11-10", "SchedulePod") { + setMethod(HttpRequest::Method::Post); +} + +SchedulePodRequest::~SchedulePodRequest() {} + +std::string SchedulePodRequest::getAreaCodes() const { + return areaCodes_; +} + +void SchedulePodRequest::setAreaCodes(const std::string &areaCodes) { + areaCodes_ = areaCodes; + setParameter(std::string("AreaCodes"), areaCodes); +} + +std::string SchedulePodRequest::getGroupUuid() const { + return groupUuid_; +} + +void SchedulePodRequest::setGroupUuid(const std::string &groupUuid) { + groupUuid_ = groupUuid; + setParameter(std::string("GroupUuid"), groupUuid); +} + +std::string SchedulePodRequest::getIsps() const { + return isps_; +} + +void SchedulePodRequest::setIsps(const std::string &isps) { + isps_ = isps; + setParameter(std::string("Isps"), isps); +} + +std::string SchedulePodRequest::getTenant() const { + return tenant_; +} + +void SchedulePodRequest::setTenant(const std::string &tenant) { + tenant_ = tenant; + setParameter(std::string("Tenant"), tenant); +} + +std::string SchedulePodRequest::getWorkloadUuid() const { + return workloadUuid_; +} + +void SchedulePodRequest::setWorkloadUuid(const std::string &workloadUuid) { + workloadUuid_ = workloadUuid; + setParameter(std::string("WorkloadUuid"), workloadUuid); +} + +std::string SchedulePodRequest::getLabels() const { + return labels_; +} + +void SchedulePodRequest::setLabels(const std::string &labels) { + labels_ = labels; + setParameter(std::string("Labels"), labels); +} + +std::string SchedulePodRequest::getRegions() const { + return regions_; +} + +void SchedulePodRequest::setRegions(const std::string ®ions) { + regions_ = regions; + setParameter(std::string("Regions"), regions); +} + +std::string SchedulePodRequest::getResourceAttribute() const { + return resourceAttribute_; +} + +void SchedulePodRequest::setResourceAttribute(const std::string &resourceAttribute) { + resourceAttribute_ = resourceAttribute; + setBodyParameter(std::string("ResourceAttribute"), resourceAttribute); +} + +long SchedulePodRequest::getAliUid() const { + return aliUid_; +} + +void SchedulePodRequest::setAliUid(long aliUid) { + aliUid_ = aliUid; + setParameter(std::string("AliUid"), std::to_string(aliUid)); +} + +std::string SchedulePodRequest::getRequirements() const { + return requirements_; +} + +void SchedulePodRequest::setRequirements(const std::string &requirements) { + requirements_ = requirements; + setBodyParameter(std::string("Requirements"), requirements); +} + diff --git a/ens/src/model/SchedulePodResult.cc b/ens/src/model/SchedulePodResult.cc new file mode 100644 index 000000000..8ac29036e --- /dev/null +++ b/ens/src/model/SchedulePodResult.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::Ens; +using namespace AlibabaCloud::Ens::Model; + +SchedulePodResult::SchedulePodResult() : + ServiceResult() +{} + +SchedulePodResult::SchedulePodResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SchedulePodResult::~SchedulePodResult() +{} + +void SchedulePodResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stol(value["Code"].asString()); + if(!value["Msg"].isNull()) + msg_ = value["Msg"].asString(); + if(!value["Desc"].isNull()) + desc_ = value["Desc"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + +} + +std::string SchedulePodResult::getMsg()const +{ + return msg_; +} + +std::string SchedulePodResult::getDesc()const +{ + return desc_; +} + +std::string SchedulePodResult::getData()const +{ + return data_; +} + +long SchedulePodResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/SetBackendServersRequest.cc b/ens/src/model/SetBackendServersRequest.cc new file mode 100644 index 000000000..33b6ab960 --- /dev/null +++ b/ens/src/model/SetBackendServersRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Ens::Model::SetBackendServersRequest; + +SetBackendServersRequest::SetBackendServersRequest() + : RpcServiceRequest("ens", "2017-11-10", "SetBackendServers") { + setMethod(HttpRequest::Method::Post); +} + +SetBackendServersRequest::~SetBackendServersRequest() {} + +std::vector SetBackendServersRequest::getBackendServers() const { + return backendServers_; +} + +void SetBackendServersRequest::setBackendServers(const std::vector &backendServers) { + backendServers_ = backendServers; + for(int dep1 = 0; dep1 != backendServers.size(); dep1++) { + setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".Weight", std::to_string(backendServers[dep1].weight)); + setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".Type", backendServers[dep1].type); + setParameter(std::string("BackendServers") + "." + std::to_string(dep1 + 1) + ".ServerId", backendServers[dep1].serverId); + } +} + +std::string SetBackendServersRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void SetBackendServersRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/ens/src/model/SetBackendServersResult.cc b/ens/src/model/SetBackendServersResult.cc new file mode 100644 index 000000000..c9f493d3c --- /dev/null +++ b/ens/src/model/SetBackendServersResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +SetBackendServersResult::SetBackendServersResult() : + ServiceResult() +{} + +SetBackendServersResult::SetBackendServersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetBackendServersResult::~SetBackendServersResult() +{} + +void SetBackendServersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBackendServersNode = value["BackendServers"]["BackendServer"]; + for (auto valueBackendServersBackendServer : allBackendServersNode) + { + BackendServer backendServersObject; + if(!valueBackendServersBackendServer["ServerId"].isNull()) + backendServersObject.serverId = valueBackendServersBackendServer["ServerId"].asString(); + if(!valueBackendServersBackendServer["Weight"].isNull()) + backendServersObject.weight = std::stoi(valueBackendServersBackendServer["Weight"].asString()); + if(!valueBackendServersBackendServer["Type"].isNull()) + backendServersObject.type = valueBackendServersBackendServer["Type"].asString(); + if(!valueBackendServersBackendServer["Ip"].isNull()) + backendServersObject.ip = valueBackendServersBackendServer["Ip"].asString(); + if(!valueBackendServersBackendServer["Port"].isNull()) + backendServersObject.port = std::stoi(valueBackendServersBackendServer["Port"].asString()); + backendServers_.push_back(backendServersObject); + } + +} + +std::vector SetBackendServersResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/ens/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc b/ens/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc new file mode 100644 index 000000000..2a2583849 --- /dev/null +++ b/ens/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc @@ -0,0 +1,216 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::SetLoadBalancerHTTPListenerAttributeRequest; + +SetLoadBalancerHTTPListenerAttributeRequest::SetLoadBalancerHTTPListenerAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "SetLoadBalancerHTTPListenerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +SetLoadBalancerHTTPListenerAttributeRequest::~SetLoadBalancerHTTPListenerAttributeRequest() {} + +int SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckTimeout() const { + return healthCheckTimeout_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckTimeout(int healthCheckTimeout) { + healthCheckTimeout_ = healthCheckTimeout; + setParameter(std::string("HealthCheckTimeout"), std::to_string(healthCheckTimeout)); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckURI() const { + return healthCheckURI_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckURI(const std::string &healthCheckURI) { + healthCheckURI_ = healthCheckURI; + setParameter(std::string("HealthCheckURI"), healthCheckURI); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheck() const { + return healthCheck_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheck(const std::string &healthCheck) { + healthCheck_ = healthCheck; + setParameter(std::string("HealthCheck"), healthCheck); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getProtocol() const { + return protocol_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getCookie() const { + return cookie_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setCookie(const std::string &cookie) { + cookie_ = cookie; + setParameter(std::string("Cookie"), cookie); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckMethod() const { + return healthCheckMethod_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckMethod(const std::string &healthCheckMethod) { + healthCheckMethod_ = healthCheckMethod; + setParameter(std::string("HealthCheckMethod"), healthCheckMethod); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckDomain() const { + return healthCheckDomain_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckDomain(const std::string &healthCheckDomain) { + healthCheckDomain_ = healthCheckDomain; + setParameter(std::string("HealthCheckDomain"), healthCheckDomain); +} + +int SetLoadBalancerHTTPListenerAttributeRequest::getRequestTimeout() const { + return requestTimeout_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setRequestTimeout(int requestTimeout) { + requestTimeout_ = requestTimeout; + setParameter(std::string("RequestTimeout"), std::to_string(requestTimeout)); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +int SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getDescription() const { + return description_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +int SetLoadBalancerHTTPListenerAttributeRequest::getUnhealthyThreshold() const { + return unhealthyThreshold_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setUnhealthyThreshold(int unhealthyThreshold) { + unhealthyThreshold_ = unhealthyThreshold; + setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold)); +} + +int SetLoadBalancerHTTPListenerAttributeRequest::getHealthyThreshold() const { + return healthyThreshold_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthyThreshold(int healthyThreshold) { + healthyThreshold_ = healthyThreshold; + setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getScheduler() const { + return scheduler_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setParameter(std::string("Scheduler"), scheduler); +} + +int SetLoadBalancerHTTPListenerAttributeRequest::getCookieTimeout() const { + return cookieTimeout_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setCookieTimeout(int cookieTimeout) { + cookieTimeout_ = cookieTimeout; + setParameter(std::string("CookieTimeout"), std::to_string(cookieTimeout)); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getStickySessionType() const { + return stickySessionType_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setStickySessionType(const std::string &stickySessionType) { + stickySessionType_ = stickySessionType; + setParameter(std::string("StickySessionType"), stickySessionType); +} + +int SetLoadBalancerHTTPListenerAttributeRequest::getListenerPort() const { + return listenerPort_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getStickySession() const { + return stickySession_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setStickySession(const std::string &stickySession) { + stickySession_ = stickySession; + setParameter(std::string("StickySession"), stickySession); +} + +int SetLoadBalancerHTTPListenerAttributeRequest::getIdleTimeout() const { + return idleTimeout_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setIdleTimeout(int idleTimeout) { + idleTimeout_ = idleTimeout; + setParameter(std::string("IdleTimeout"), std::to_string(idleTimeout)); +} + +int SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckHttpCode() const { + return healthCheckHttpCode_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckHttpCode(const std::string &healthCheckHttpCode) { + healthCheckHttpCode_ = healthCheckHttpCode; + setParameter(std::string("HealthCheckHttpCode"), healthCheckHttpCode); +} + diff --git a/ens/src/model/SetLoadBalancerHTTPListenerAttributeResult.cc b/ens/src/model/SetLoadBalancerHTTPListenerAttributeResult.cc new file mode 100644 index 000000000..8d88bc93f --- /dev/null +++ b/ens/src/model/SetLoadBalancerHTTPListenerAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +SetLoadBalancerHTTPListenerAttributeResult::SetLoadBalancerHTTPListenerAttributeResult() : + ServiceResult() +{} + +SetLoadBalancerHTTPListenerAttributeResult::SetLoadBalancerHTTPListenerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetLoadBalancerHTTPListenerAttributeResult::~SetLoadBalancerHTTPListenerAttributeResult() +{} + +void SetLoadBalancerHTTPListenerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc b/ens/src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc new file mode 100644 index 000000000..687dee49f --- /dev/null +++ b/ens/src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc @@ -0,0 +1,225 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::SetLoadBalancerHTTPSListenerAttributeRequest; + +SetLoadBalancerHTTPSListenerAttributeRequest::SetLoadBalancerHTTPSListenerAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "SetLoadBalancerHTTPSListenerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +SetLoadBalancerHTTPSListenerAttributeRequest::~SetLoadBalancerHTTPSListenerAttributeRequest() {} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckTimeout() const { + return healthCheckTimeout_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckTimeout(int healthCheckTimeout) { + healthCheckTimeout_ = healthCheckTimeout; + setParameter(std::string("HealthCheckTimeout"), std::to_string(healthCheckTimeout)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckURI() const { + return healthCheckURI_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckURI(const std::string &healthCheckURI) { + healthCheckURI_ = healthCheckURI; + setParameter(std::string("HealthCheckURI"), healthCheckURI); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheck() const { + return healthCheck_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheck(const std::string &healthCheck) { + healthCheck_ = healthCheck; + setParameter(std::string("HealthCheck"), healthCheck); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getProtocol() const { + return protocol_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getCookie() const { + return cookie_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setCookie(const std::string &cookie) { + cookie_ = cookie; + setParameter(std::string("Cookie"), cookie); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckMethod() const { + return healthCheckMethod_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckMethod(const std::string &healthCheckMethod) { + healthCheckMethod_ = healthCheckMethod; + setParameter(std::string("HealthCheckMethod"), healthCheckMethod); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckDomain() const { + return healthCheckDomain_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckDomain(const std::string &healthCheckDomain) { + healthCheckDomain_ = healthCheckDomain; + setParameter(std::string("HealthCheckDomain"), healthCheckDomain); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getRequestTimeout() const { + return requestTimeout_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setRequestTimeout(int requestTimeout) { + requestTimeout_ = requestTimeout; + setParameter(std::string("RequestTimeout"), std::to_string(requestTimeout)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getDescription() const { + return description_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getUnhealthyThreshold() const { + return unhealthyThreshold_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setUnhealthyThreshold(int unhealthyThreshold) { + unhealthyThreshold_ = unhealthyThreshold; + setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold)); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getHealthyThreshold() const { + return healthyThreshold_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthyThreshold(int healthyThreshold) { + healthyThreshold_ = healthyThreshold; + setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getScheduler() const { + return scheduler_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setParameter(std::string("Scheduler"), scheduler); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getCookieTimeout() const { + return cookieTimeout_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setCookieTimeout(int cookieTimeout) { + cookieTimeout_ = cookieTimeout; + setParameter(std::string("CookieTimeout"), std::to_string(cookieTimeout)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getStickySessionType() const { + return stickySessionType_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setStickySessionType(const std::string &stickySessionType) { + stickySessionType_ = stickySessionType; + setParameter(std::string("StickySessionType"), stickySessionType); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getListenerPort() const { + return listenerPort_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getStickySession() const { + return stickySession_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setStickySession(const std::string &stickySession) { + stickySession_ = stickySession; + setParameter(std::string("StickySession"), stickySession); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getServerCertificateId() const { + return serverCertificateId_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setServerCertificateId(const std::string &serverCertificateId) { + serverCertificateId_ = serverCertificateId; + setParameter(std::string("ServerCertificateId"), serverCertificateId); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getIdleTimeout() const { + return idleTimeout_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setIdleTimeout(int idleTimeout) { + idleTimeout_ = idleTimeout; + setParameter(std::string("IdleTimeout"), std::to_string(idleTimeout)); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckHttpCode() const { + return healthCheckHttpCode_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckHttpCode(const std::string &healthCheckHttpCode) { + healthCheckHttpCode_ = healthCheckHttpCode; + setParameter(std::string("HealthCheckHttpCode"), healthCheckHttpCode); +} + diff --git a/ens/src/model/SetLoadBalancerHTTPSListenerAttributeResult.cc b/ens/src/model/SetLoadBalancerHTTPSListenerAttributeResult.cc new file mode 100644 index 000000000..1f4d906a6 --- /dev/null +++ b/ens/src/model/SetLoadBalancerHTTPSListenerAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +SetLoadBalancerHTTPSListenerAttributeResult::SetLoadBalancerHTTPSListenerAttributeResult() : + ServiceResult() +{} + +SetLoadBalancerHTTPSListenerAttributeResult::SetLoadBalancerHTTPSListenerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetLoadBalancerHTTPSListenerAttributeResult::~SetLoadBalancerHTTPSListenerAttributeResult() +{} + +void SetLoadBalancerHTTPSListenerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/SetLoadBalancerStatusRequest.cc b/ens/src/model/SetLoadBalancerStatusRequest.cc new file mode 100644 index 000000000..19364e0dc --- /dev/null +++ b/ens/src/model/SetLoadBalancerStatusRequest.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 + +using AlibabaCloud::Ens::Model::SetLoadBalancerStatusRequest; + +SetLoadBalancerStatusRequest::SetLoadBalancerStatusRequest() + : RpcServiceRequest("ens", "2017-11-10", "SetLoadBalancerStatus") { + setMethod(HttpRequest::Method::Post); +} + +SetLoadBalancerStatusRequest::~SetLoadBalancerStatusRequest() {} + +std::string SetLoadBalancerStatusRequest::getLoadBalancerStatus() const { + return loadBalancerStatus_; +} + +void SetLoadBalancerStatusRequest::setLoadBalancerStatus(const std::string &loadBalancerStatus) { + loadBalancerStatus_ = loadBalancerStatus; + setParameter(std::string("LoadBalancerStatus"), loadBalancerStatus); +} + +std::string SetLoadBalancerStatusRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void SetLoadBalancerStatusRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/ens/src/model/SetLoadBalancerStatusResult.cc b/ens/src/model/SetLoadBalancerStatusResult.cc new file mode 100644 index 000000000..d7c17c7bd --- /dev/null +++ b/ens/src/model/SetLoadBalancerStatusResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +SetLoadBalancerStatusResult::SetLoadBalancerStatusResult() : + ServiceResult() +{} + +SetLoadBalancerStatusResult::SetLoadBalancerStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetLoadBalancerStatusResult::~SetLoadBalancerStatusResult() +{} + +void SetLoadBalancerStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/SetLoadBalancerTCPListenerAttributeRequest.cc b/ens/src/model/SetLoadBalancerTCPListenerAttributeRequest.cc new file mode 100644 index 000000000..fcd8c5dc1 --- /dev/null +++ b/ens/src/model/SetLoadBalancerTCPListenerAttributeRequest.cc @@ -0,0 +1,180 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::SetLoadBalancerTCPListenerAttributeRequest; + +SetLoadBalancerTCPListenerAttributeRequest::SetLoadBalancerTCPListenerAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "SetLoadBalancerTCPListenerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +SetLoadBalancerTCPListenerAttributeRequest::~SetLoadBalancerTCPListenerAttributeRequest() {} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckURI() const { + return healthCheckURI_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckURI(const std::string &healthCheckURI) { + healthCheckURI_ = healthCheckURI; + setParameter(std::string("HealthCheckURI"), healthCheckURI); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getProtocol() const { + return protocol_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +int SetLoadBalancerTCPListenerAttributeRequest::getEstablishedTimeout() const { + return establishedTimeout_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setEstablishedTimeout(int establishedTimeout) { + establishedTimeout_ = establishedTimeout; + setParameter(std::string("EstablishedTimeout"), std::to_string(establishedTimeout)); +} + +int SetLoadBalancerTCPListenerAttributeRequest::getPersistenceTimeout() const { + return persistenceTimeout_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setPersistenceTimeout(int persistenceTimeout) { + persistenceTimeout_ = persistenceTimeout; + setParameter(std::string("PersistenceTimeout"), std::to_string(persistenceTimeout)); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckDomain() const { + return healthCheckDomain_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckDomain(const std::string &healthCheckDomain) { + healthCheckDomain_ = healthCheckDomain; + setParameter(std::string("HealthCheckDomain"), healthCheckDomain); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +int SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); +} + +int SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckConnectTimeout() const { + return healthCheckConnectTimeout_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckConnectTimeout(int healthCheckConnectTimeout) { + healthCheckConnectTimeout_ = healthCheckConnectTimeout; + setParameter(std::string("HealthCheckConnectTimeout"), std::to_string(healthCheckConnectTimeout)); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getDescription() const { + return description_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +int SetLoadBalancerTCPListenerAttributeRequest::getUnhealthyThreshold() const { + return unhealthyThreshold_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setUnhealthyThreshold(int unhealthyThreshold) { + unhealthyThreshold_ = unhealthyThreshold; + setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold)); +} + +int SetLoadBalancerTCPListenerAttributeRequest::getHealthyThreshold() const { + return healthyThreshold_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setHealthyThreshold(int healthyThreshold) { + healthyThreshold_ = healthyThreshold; + setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getScheduler() const { + return scheduler_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setParameter(std::string("Scheduler"), scheduler); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getEipTransmit() const { + return eipTransmit_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setEipTransmit(const std::string &eipTransmit) { + eipTransmit_ = eipTransmit; + setParameter(std::string("EipTransmit"), eipTransmit); +} + +int SetLoadBalancerTCPListenerAttributeRequest::getListenerPort() const { + return listenerPort_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckType() const { + return healthCheckType_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckType(const std::string &healthCheckType) { + healthCheckType_ = healthCheckType; + setParameter(std::string("HealthCheckType"), healthCheckType); +} + +int SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckHttpCode() const { + return healthCheckHttpCode_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckHttpCode(const std::string &healthCheckHttpCode) { + healthCheckHttpCode_ = healthCheckHttpCode; + setParameter(std::string("HealthCheckHttpCode"), healthCheckHttpCode); +} + diff --git a/ens/src/model/SetLoadBalancerTCPListenerAttributeResult.cc b/ens/src/model/SetLoadBalancerTCPListenerAttributeResult.cc new file mode 100644 index 000000000..d854f33c1 --- /dev/null +++ b/ens/src/model/SetLoadBalancerTCPListenerAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +SetLoadBalancerTCPListenerAttributeResult::SetLoadBalancerTCPListenerAttributeResult() : + ServiceResult() +{} + +SetLoadBalancerTCPListenerAttributeResult::SetLoadBalancerTCPListenerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetLoadBalancerTCPListenerAttributeResult::~SetLoadBalancerTCPListenerAttributeResult() +{} + +void SetLoadBalancerTCPListenerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/SetLoadBalancerUDPListenerAttributeRequest.cc b/ens/src/model/SetLoadBalancerUDPListenerAttributeRequest.cc new file mode 100644 index 000000000..049385045 --- /dev/null +++ b/ens/src/model/SetLoadBalancerUDPListenerAttributeRequest.cc @@ -0,0 +1,144 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::SetLoadBalancerUDPListenerAttributeRequest; + +SetLoadBalancerUDPListenerAttributeRequest::SetLoadBalancerUDPListenerAttributeRequest() + : RpcServiceRequest("ens", "2017-11-10", "SetLoadBalancerUDPListenerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +SetLoadBalancerUDPListenerAttributeRequest::~SetLoadBalancerUDPListenerAttributeRequest() {} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getProtocol() const { + return protocol_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setParameter(std::string("Protocol"), protocol); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckReq() const { + return healthCheckReq_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckReq(const std::string &healthCheckReq) { + healthCheckReq_ = healthCheckReq; + setParameter(std::string("HealthCheckReq"), healthCheckReq); +} + +int SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckExp() const { + return healthCheckExp_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckExp(const std::string &healthCheckExp) { + healthCheckExp_ = healthCheckExp; + setParameter(std::string("HealthCheckExp"), healthCheckExp); +} + +int SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckConnectTimeout() const { + return healthCheckConnectTimeout_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckConnectTimeout(int healthCheckConnectTimeout) { + healthCheckConnectTimeout_ = healthCheckConnectTimeout; + setParameter(std::string("HealthCheckConnectTimeout"), std::to_string(healthCheckConnectTimeout)); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getDescription() const { + return description_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +int SetLoadBalancerUDPListenerAttributeRequest::getUnhealthyThreshold() const { + return unhealthyThreshold_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setUnhealthyThreshold(int unhealthyThreshold) { + unhealthyThreshold_ = unhealthyThreshold; + setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold)); +} + +int SetLoadBalancerUDPListenerAttributeRequest::getHealthyThreshold() const { + return healthyThreshold_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthyThreshold(int healthyThreshold) { + healthyThreshold_ = healthyThreshold; + setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getScheduler() const { + return scheduler_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setParameter(std::string("Scheduler"), scheduler); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getEipTransmit() const { + return eipTransmit_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setEipTransmit(const std::string &eipTransmit) { + eipTransmit_ = eipTransmit; + setParameter(std::string("EipTransmit"), eipTransmit); +} + +int SetLoadBalancerUDPListenerAttributeRequest::getListenerPort() const { + return listenerPort_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +int SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); +} + diff --git a/ens/src/model/SetLoadBalancerUDPListenerAttributeResult.cc b/ens/src/model/SetLoadBalancerUDPListenerAttributeResult.cc new file mode 100644 index 000000000..0a811623e --- /dev/null +++ b/ens/src/model/SetLoadBalancerUDPListenerAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +SetLoadBalancerUDPListenerAttributeResult::SetLoadBalancerUDPListenerAttributeResult() : + ServiceResult() +{} + +SetLoadBalancerUDPListenerAttributeResult::SetLoadBalancerUDPListenerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetLoadBalancerUDPListenerAttributeResult::~SetLoadBalancerUDPListenerAttributeResult() +{} + +void SetLoadBalancerUDPListenerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/StartEpnInstanceRequest.cc b/ens/src/model/StartEpnInstanceRequest.cc new file mode 100644 index 000000000..846f97a04 --- /dev/null +++ b/ens/src/model/StartEpnInstanceRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::StartEpnInstanceRequest; + +StartEpnInstanceRequest::StartEpnInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "StartEpnInstance") { + setMethod(HttpRequest::Method::Post); +} + +StartEpnInstanceRequest::~StartEpnInstanceRequest() {} + +std::string StartEpnInstanceRequest::getEPNInstanceId() const { + return ePNInstanceId_; +} + +void StartEpnInstanceRequest::setEPNInstanceId(const std::string &ePNInstanceId) { + ePNInstanceId_ = ePNInstanceId; + setParameter(std::string("EPNInstanceId"), ePNInstanceId); +} + diff --git a/ens/src/model/StartEpnInstanceResult.cc b/ens/src/model/StartEpnInstanceResult.cc new file mode 100644 index 000000000..86af5fd7b --- /dev/null +++ b/ens/src/model/StartEpnInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +StartEpnInstanceResult::StartEpnInstanceResult() : + ServiceResult() +{} + +StartEpnInstanceResult::StartEpnInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartEpnInstanceResult::~StartEpnInstanceResult() +{} + +void StartEpnInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/StartInstanceRequest.cc b/ens/src/model/StartInstanceRequest.cc new file mode 100644 index 000000000..f3bc9cb38 --- /dev/null +++ b/ens/src/model/StartInstanceRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::StartInstanceRequest; + +StartInstanceRequest::StartInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "StartInstance") { + setMethod(HttpRequest::Method::Post); +} + +StartInstanceRequest::~StartInstanceRequest() {} + +std::string StartInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void StartInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/StartInstanceResult.cc b/ens/src/model/StartInstanceResult.cc new file mode 100644 index 000000000..fd2a60593 --- /dev/null +++ b/ens/src/model/StartInstanceResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +int StartInstanceResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/StartLoadBalancerListenerRequest.cc b/ens/src/model/StartLoadBalancerListenerRequest.cc new file mode 100644 index 000000000..c0f138329 --- /dev/null +++ b/ens/src/model/StartLoadBalancerListenerRequest.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 + +using AlibabaCloud::Ens::Model::StartLoadBalancerListenerRequest; + +StartLoadBalancerListenerRequest::StartLoadBalancerListenerRequest() + : RpcServiceRequest("ens", "2017-11-10", "StartLoadBalancerListener") { + setMethod(HttpRequest::Method::Post); +} + +StartLoadBalancerListenerRequest::~StartLoadBalancerListenerRequest() {} + +int StartLoadBalancerListenerRequest::getListenerPort() const { + return listenerPort_; +} + +void StartLoadBalancerListenerRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string StartLoadBalancerListenerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void StartLoadBalancerListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/ens/src/model/StartLoadBalancerListenerResult.cc b/ens/src/model/StartLoadBalancerListenerResult.cc new file mode 100644 index 000000000..0b0a1f04f --- /dev/null +++ b/ens/src/model/StartLoadBalancerListenerResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +StartLoadBalancerListenerResult::StartLoadBalancerListenerResult() : + ServiceResult() +{} + +StartLoadBalancerListenerResult::StartLoadBalancerListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartLoadBalancerListenerResult::~StartLoadBalancerListenerResult() +{} + +void StartLoadBalancerListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/StopEpnInstanceRequest.cc b/ens/src/model/StopEpnInstanceRequest.cc new file mode 100644 index 000000000..ce9ed6bdf --- /dev/null +++ b/ens/src/model/StopEpnInstanceRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::StopEpnInstanceRequest; + +StopEpnInstanceRequest::StopEpnInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "StopEpnInstance") { + setMethod(HttpRequest::Method::Post); +} + +StopEpnInstanceRequest::~StopEpnInstanceRequest() {} + +std::string StopEpnInstanceRequest::getEPNInstanceId() const { + return ePNInstanceId_; +} + +void StopEpnInstanceRequest::setEPNInstanceId(const std::string &ePNInstanceId) { + ePNInstanceId_ = ePNInstanceId; + setParameter(std::string("EPNInstanceId"), ePNInstanceId); +} + diff --git a/ens/src/model/StopEpnInstanceResult.cc b/ens/src/model/StopEpnInstanceResult.cc new file mode 100644 index 000000000..de07dd83e --- /dev/null +++ b/ens/src/model/StopEpnInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +StopEpnInstanceResult::StopEpnInstanceResult() : + ServiceResult() +{} + +StopEpnInstanceResult::StopEpnInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopEpnInstanceResult::~StopEpnInstanceResult() +{} + +void StopEpnInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/StopInstanceRequest.cc b/ens/src/model/StopInstanceRequest.cc new file mode 100644 index 000000000..a84f40650 --- /dev/null +++ b/ens/src/model/StopInstanceRequest.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 + +using AlibabaCloud::Ens::Model::StopInstanceRequest; + +StopInstanceRequest::StopInstanceRequest() + : RpcServiceRequest("ens", "2017-11-10", "StopInstance") { + setMethod(HttpRequest::Method::Post); +} + +StopInstanceRequest::~StopInstanceRequest() {} + +std::string StopInstanceRequest::getForceStop() const { + return forceStop_; +} + +void StopInstanceRequest::setForceStop(const std::string &forceStop) { + forceStop_ = forceStop; + setParameter(std::string("ForceStop"), forceStop); +} + +std::string StopInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void StopInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ens/src/model/StopInstanceResult.cc b/ens/src/model/StopInstanceResult.cc new file mode 100644 index 000000000..7415da8dd --- /dev/null +++ b/ens/src/model/StopInstanceResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + +} + +int StopInstanceResult::getCode()const +{ + return code_; +} + diff --git a/ens/src/model/StopLoadBalancerListenerRequest.cc b/ens/src/model/StopLoadBalancerListenerRequest.cc new file mode 100644 index 000000000..e5f884794 --- /dev/null +++ b/ens/src/model/StopLoadBalancerListenerRequest.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 + +using AlibabaCloud::Ens::Model::StopLoadBalancerListenerRequest; + +StopLoadBalancerListenerRequest::StopLoadBalancerListenerRequest() + : RpcServiceRequest("ens", "2017-11-10", "StopLoadBalancerListener") { + setMethod(HttpRequest::Method::Post); +} + +StopLoadBalancerListenerRequest::~StopLoadBalancerListenerRequest() {} + +int StopLoadBalancerListenerRequest::getListenerPort() const { + return listenerPort_; +} + +void StopLoadBalancerListenerRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string StopLoadBalancerListenerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void StopLoadBalancerListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/ens/src/model/StopLoadBalancerListenerResult.cc b/ens/src/model/StopLoadBalancerListenerResult.cc new file mode 100644 index 000000000..8b51a9080 --- /dev/null +++ b/ens/src/model/StopLoadBalancerListenerResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +StopLoadBalancerListenerResult::StopLoadBalancerListenerResult() : + ServiceResult() +{} + +StopLoadBalancerListenerResult::StopLoadBalancerListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopLoadBalancerListenerResult::~StopLoadBalancerListenerResult() +{} + +void StopLoadBalancerListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/UnAssociateEnsEipAddressRequest.cc b/ens/src/model/UnAssociateEnsEipAddressRequest.cc new file mode 100644 index 000000000..d2056101b --- /dev/null +++ b/ens/src/model/UnAssociateEnsEipAddressRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Ens::Model::UnAssociateEnsEipAddressRequest; + +UnAssociateEnsEipAddressRequest::UnAssociateEnsEipAddressRequest() + : RpcServiceRequest("ens", "2017-11-10", "UnAssociateEnsEipAddress") { + setMethod(HttpRequest::Method::Post); +} + +UnAssociateEnsEipAddressRequest::~UnAssociateEnsEipAddressRequest() {} + +std::string UnAssociateEnsEipAddressRequest::getAllocationId() const { + return allocationId_; +} + +void UnAssociateEnsEipAddressRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); +} + diff --git a/ens/src/model/UnAssociateEnsEipAddressResult.cc b/ens/src/model/UnAssociateEnsEipAddressResult.cc new file mode 100644 index 000000000..00503fcac --- /dev/null +++ b/ens/src/model/UnAssociateEnsEipAddressResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +UnAssociateEnsEipAddressResult::UnAssociateEnsEipAddressResult() : + ServiceResult() +{} + +UnAssociateEnsEipAddressResult::UnAssociateEnsEipAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnAssociateEnsEipAddressResult::~UnAssociateEnsEipAddressResult() +{} + +void UnAssociateEnsEipAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ens/src/model/UnassociateEipAddressRequest.cc b/ens/src/model/UnassociateEipAddressRequest.cc new file mode 100644 index 000000000..ceccce739 --- /dev/null +++ b/ens/src/model/UnassociateEipAddressRequest.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 + +using AlibabaCloud::Ens::Model::UnassociateEipAddressRequest; + +UnassociateEipAddressRequest::UnassociateEipAddressRequest() + : RpcServiceRequest("ens", "2017-11-10", "UnassociateEipAddress") { + setMethod(HttpRequest::Method::Post); +} + +UnassociateEipAddressRequest::~UnassociateEipAddressRequest() {} + +std::string UnassociateEipAddressRequest::getEip() const { + return eip_; +} + +void UnassociateEipAddressRequest::setEip(const std::string &eip) { + eip_ = eip; + setParameter(std::string("Eip"), eip); +} + +std::string UnassociateEipAddressRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void UnassociateEipAddressRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + +std::string UnassociateEipAddressRequest::getInstanceIdInternetIp() const { + return instanceIdInternetIp_; +} + +void UnassociateEipAddressRequest::setInstanceIdInternetIp(const std::string &instanceIdInternetIp) { + instanceIdInternetIp_ = instanceIdInternetIp; + setParameter(std::string("InstanceIdInternetIp"), instanceIdInternetIp); +} + diff --git a/ens/src/model/UnassociateEipAddressResult.cc b/ens/src/model/UnassociateEipAddressResult.cc new file mode 100644 index 000000000..ff7ff4e1a --- /dev/null +++ b/ens/src/model/UnassociateEipAddressResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::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/ens/src/model/UpgradeApplicationRequest.cc b/ens/src/model/UpgradeApplicationRequest.cc new file mode 100644 index 000000000..ea6b2a6f1 --- /dev/null +++ b/ens/src/model/UpgradeApplicationRequest.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 + +using AlibabaCloud::Ens::Model::UpgradeApplicationRequest; + +UpgradeApplicationRequest::UpgradeApplicationRequest() + : RpcServiceRequest("ens", "2017-11-10", "UpgradeApplication") { + setMethod(HttpRequest::Method::Post); +} + +UpgradeApplicationRequest::~UpgradeApplicationRequest() {} + +std::string UpgradeApplicationRequest::get_Template() const { + return _template_; +} + +void UpgradeApplicationRequest::set_Template(const std::string &_template) { + _template_ = _template; + setParameter(std::string("Template"), _template); +} + +int UpgradeApplicationRequest::getTimeout() const { + return timeout_; +} + +void UpgradeApplicationRequest::setTimeout(int timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); +} + +std::string UpgradeApplicationRequest::getAppId() const { + return appId_; +} + +void UpgradeApplicationRequest::setAppId(const std::string &appId) { + appId_ = appId; + setParameter(std::string("AppId"), appId); +} + diff --git a/ens/src/model/UpgradeApplicationResult.cc b/ens/src/model/UpgradeApplicationResult.cc new file mode 100644 index 000000000..86999c44c --- /dev/null +++ b/ens/src/model/UpgradeApplicationResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Ens; +using namespace AlibabaCloud::Ens::Model; + +UpgradeApplicationResult::UpgradeApplicationResult() : + ServiceResult() +{} + +UpgradeApplicationResult::UpgradeApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeApplicationResult::~UpgradeApplicationResult() +{} + +void UpgradeApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +