From d75a986e9f6733181f1cb8338306a2e0fe20c00c Mon Sep 17 00:00:00 2001 From: sdk-team Date: Sun, 8 Oct 2023 02:44:35 +0000 Subject: [PATCH] Generated 2022-04-30 for Nlb. --- VERSION | 2 +- nlb/CMakeLists.txt | 270 +++ nlb/include/alibabacloud/nlb/NlbClient.h | 422 ++++ nlb/include/alibabacloud/nlb/NlbExport.h | 32 + .../model/AddServersToServerGroupRequest.h | 62 + .../nlb/model/AddServersToServerGroupResult.h | 65 + ...dditionalCertificatesWithListenerRequest.h | 54 + ...AdditionalCertificatesWithListenerResult.h | 63 + ...monBandwidthPackageToLoadBalancerRequest.h | 54 + ...mmonBandwidthPackageToLoadBalancerResult.h | 63 + .../CancelShiftLoadBalancerZonesRequest.h | 58 + .../CancelShiftLoadBalancerZonesResult.h | 61 + .../nlb/model/CreateListenerRequest.h | 109 + .../nlb/model/CreateListenerResult.h | 65 + .../nlb/model/CreateLoadBalancerRequest.h | 111 ++ .../nlb/model/CreateLoadBalancerResult.h | 67 + .../nlb/model/CreateSecurityPolicyRequest.h | 67 + .../nlb/model/CreateSecurityPolicyResult.h | 65 + .../nlb/model/CreateServerGroupRequest.h | 114 ++ .../nlb/model/CreateServerGroupResult.h | 65 + .../nlb/model/DeleteListenerRequest.h | 51 + .../nlb/model/DeleteListenerResult.h | 63 + .../nlb/model/DeleteLoadBalancerRequest.h | 51 + .../nlb/model/DeleteLoadBalancerResult.h | 63 + .../nlb/model/DeleteSecurityPolicyRequest.h | 51 + .../nlb/model/DeleteSecurityPolicyResult.h | 63 + .../nlb/model/DeleteServerGroupRequest.h | 51 + .../nlb/model/DeleteServerGroupResult.h | 65 + .../nlb/model/DescribeRegionsRequest.h | 48 + .../nlb/model/DescribeRegionsResult.h | 69 + .../nlb/model/DescribeZonesRequest.h | 51 + .../nlb/model/DescribeZonesResult.h | 68 + ...nBandwidthPackageFromLoadBalancerRequest.h | 54 + ...onBandwidthPackageFromLoadBalancerResult.h | 63 + .../DisableLoadBalancerIpv6InternetRequest.h | 51 + .../DisableLoadBalancerIpv6InternetResult.h | 61 + ...dditionalCertificatesWithListenerRequest.h | 54 + ...AdditionalCertificatesWithListenerResult.h | 63 + .../EnableLoadBalancerIpv6InternetRequest.h | 51 + .../EnableLoadBalancerIpv6InternetResult.h | 61 + .../nlb/model/GetJobStatusRequest.h | 45 + .../nlb/model/GetJobStatusResult.h | 63 + .../nlb/model/GetListenerAttributeRequest.h | 51 + .../nlb/model/GetListenerAttributeResult.h | 110 ++ .../model/GetListenerHealthStatusRequest.h | 51 + .../nlb/model/GetListenerHealthStatusResult.h | 94 + .../model/GetLoadBalancerAttributeRequest.h | 51 + .../model/GetLoadBalancerAttributeResult.h | 159 ++ .../model/ListListenerCertificatesRequest.h | 54 + .../model/ListListenerCertificatesResult.h | 78 + .../nlb/model/ListListenersRequest.h | 64 + .../nlb/model/ListListenersResult.h | 99 + .../nlb/model/ListLoadBalancersRequest.h | 94 + .../nlb/model/ListLoadBalancersResult.h | 144 ++ .../nlb/model/ListSecurityPolicyRequest.h | 64 + .../nlb/model/ListSecurityPolicyResult.h | 93 + .../nlb/model/ListServerGroupServersRequest.h | 57 + .../nlb/model/ListServerGroupServersResult.h | 81 + .../nlb/model/ListServerGroupsRequest.h | 70 + .../nlb/model/ListServerGroupsResult.h | 113 ++ .../model/ListSystemSecurityPolicyRequest.h | 42 + .../model/ListSystemSecurityPolicyResult.h | 70 + .../nlb/model/ListTagResourcesRequest.h | 67 + .../nlb/model/ListTagResourcesResult.h | 68 + .../LoadBalancerJoinSecurityGroupRequest.h | 54 + .../LoadBalancerJoinSecurityGroupResult.h | 63 + .../LoadBalancerLeaveSecurityGroupRequest.h | 54 + .../LoadBalancerLeaveSecurityGroupResult.h | 63 + .../nlb/model/MoveResourceGroupRequest.h | 87 + .../nlb/model/MoveResourceGroupResult.h | 60 + .../RemoveServersFromServerGroupRequest.h | 60 + .../RemoveServersFromServerGroupResult.h | 65 + .../nlb/model/StartListenerRequest.h | 51 + .../nlb/model/StartListenerResult.h | 63 + .../StartShiftLoadBalancerZonesRequest.h | 58 + .../model/StartShiftLoadBalancerZonesResult.h | 61 + .../nlb/model/StopListenerRequest.h | 51 + .../nlb/model/StopListenerResult.h | 63 + .../nlb/model/TagResourcesRequest.h | 61 + .../nlb/model/TagResourcesResult.h | 63 + .../nlb/model/UntagResourcesRequest.h | 60 + .../nlb/model/UntagResourcesResult.h | 63 + .../model/UpdateListenerAttributeRequest.h | 96 + .../nlb/model/UpdateListenerAttributeResult.h | 63 + ...dateLoadBalancerAddressTypeConfigRequest.h | 63 + ...pdateLoadBalancerAddressTypeConfigResult.h | 63 + .../UpdateLoadBalancerAttributeRequest.h | 66 + .../model/UpdateLoadBalancerAttributeResult.h | 63 + .../UpdateLoadBalancerProtectionRequest.h | 63 + .../UpdateLoadBalancerProtectionResult.h | 49 + .../model/UpdateLoadBalancerZonesRequest.h | 61 + .../nlb/model/UpdateLoadBalancerZonesResult.h | 63 + .../UpdateSecurityPolicyAttributeRequest.h | 60 + .../UpdateSecurityPolicyAttributeResult.h | 65 + .../model/UpdateServerGroupAttributeRequest.h | 92 + .../model/UpdateServerGroupAttributeResult.h | 65 + ...UpdateServerGroupServersAttributeRequest.h | 62 + .../UpdateServerGroupServersAttributeResult.h | 65 + nlb/src/NlbClient.cc | 1745 +++++++++++++++++ .../model/AddServersToServerGroupRequest.cc | 79 + .../model/AddServersToServerGroupResult.cc | 100 + ...ditionalCertificatesWithListenerRequest.cc | 71 + ...dditionalCertificatesWithListenerResult.cc | 93 + ...onBandwidthPackageToLoadBalancerRequest.cc | 72 + ...monBandwidthPackageToLoadBalancerResult.cc | 93 + .../CancelShiftLoadBalancerZonesRequest.cc | 77 + .../CancelShiftLoadBalancerZonesResult.cc | 86 + nlb/src/model/CreateListenerRequest.cc | 228 +++ nlb/src/model/CreateListenerResult.cc | 100 + nlb/src/model/CreateLoadBalancerRequest.cc | 191 ++ nlb/src/model/CreateLoadBalancerResult.cc | 107 + nlb/src/model/CreateSecurityPolicyRequest.cc | 102 + nlb/src/model/CreateSecurityPolicyResult.cc | 100 + nlb/src/model/CreateServerGroupRequest.cc | 215 ++ nlb/src/model/CreateServerGroupResult.cc | 100 + nlb/src/model/DeleteListenerRequest.cc | 63 + nlb/src/model/DeleteListenerResult.cc | 93 + nlb/src/model/DeleteLoadBalancerRequest.cc | 63 + nlb/src/model/DeleteLoadBalancerResult.cc | 93 + nlb/src/model/DeleteSecurityPolicyRequest.cc | 63 + nlb/src/model/DeleteSecurityPolicyResult.cc | 93 + nlb/src/model/DeleteServerGroupRequest.cc | 63 + nlb/src/model/DeleteServerGroupResult.cc | 100 + nlb/src/model/DescribeRegionsRequest.cc | 54 + nlb/src/model/DescribeRegionsResult.cc | 103 + nlb/src/model/DescribeZonesRequest.cc | 63 + nlb/src/model/DescribeZonesResult.cc | 101 + ...BandwidthPackageFromLoadBalancerRequest.cc | 72 + ...nBandwidthPackageFromLoadBalancerResult.cc | 93 + .../DisableLoadBalancerIpv6InternetRequest.cc | 63 + .../DisableLoadBalancerIpv6InternetResult.cc | 86 + ...ditionalCertificatesWithListenerRequest.cc | 71 + ...dditionalCertificatesWithListenerResult.cc | 93 + .../EnableLoadBalancerIpv6InternetRequest.cc | 63 + .../EnableLoadBalancerIpv6InternetResult.cc | 86 + nlb/src/model/GetJobStatusRequest.cc | 45 + nlb/src/model/GetJobStatusResult.cc | 93 + nlb/src/model/GetListenerAttributeRequest.cc | 63 + nlb/src/model/GetListenerAttributeResult.cc | 250 +++ .../model/GetListenerHealthStatusRequest.cc | 63 + .../model/GetListenerHealthStatusResult.cc | 151 ++ .../model/GetLoadBalancerAttributeRequest.cc | 63 + .../model/GetLoadBalancerAttributeResult.cc | 332 ++++ .../model/ListListenerCertificatesRequest.cc | 72 + .../model/ListListenerCertificatesResult.cc | 134 ++ nlb/src/model/ListListenersRequest.cc | 91 + nlb/src/model/ListListenersResult.cc | 172 ++ nlb/src/model/ListLoadBalancersRequest.cc | 180 ++ nlb/src/model/ListLoadBalancersResult.cc | 234 +++ nlb/src/model/ListSecurityPolicyRequest.cc | 91 + nlb/src/model/ListSecurityPolicyResult.cc | 156 ++ .../model/ListServerGroupServersRequest.cc | 79 + nlb/src/model/ListServerGroupServersResult.cc | 136 ++ nlb/src/model/ListServerGroupsRequest.cc | 109 + nlb/src/model/ListServerGroupsResult.cc | 193 ++ .../model/ListSystemSecurityPolicyRequest.cc | 36 + .../model/ListSystemSecurityPolicyResult.cc | 105 + nlb/src/model/ListTagResourcesRequest.cc | 104 + nlb/src/model/ListTagResourcesResult.cc | 92 + .../LoadBalancerJoinSecurityGroupRequest.cc | 71 + .../LoadBalancerJoinSecurityGroupResult.cc | 93 + .../LoadBalancerLeaveSecurityGroupRequest.cc | 71 + .../LoadBalancerLeaveSecurityGroupResult.cc | 93 + nlb/src/model/MoveResourceGroupRequest.cc | 171 ++ nlb/src/model/MoveResourceGroupResult.cc | 68 + .../RemoveServersFromServerGroupRequest.cc | 79 + .../RemoveServersFromServerGroupResult.cc | 100 + nlb/src/model/StartListenerRequest.cc | 63 + nlb/src/model/StartListenerResult.cc | 93 + .../StartShiftLoadBalancerZonesRequest.cc | 77 + .../StartShiftLoadBalancerZonesResult.cc | 86 + nlb/src/model/StopListenerRequest.cc | 63 + nlb/src/model/StopListenerResult.cc | 93 + nlb/src/model/TagResourcesRequest.cc | 86 + nlb/src/model/TagResourcesResult.cc | 93 + nlb/src/model/UntagResourcesRequest.cc | 94 + nlb/src/model/UntagResourcesResult.cc | 93 + .../model/UpdateListenerAttributeRequest.cc | 196 ++ .../model/UpdateListenerAttributeResult.cc | 93 + ...ateLoadBalancerAddressTypeConfigRequest.cc | 88 + ...dateLoadBalancerAddressTypeConfigResult.cc | 93 + .../UpdateLoadBalancerAttributeRequest.cc | 107 + .../UpdateLoadBalancerAttributeResult.cc | 93 + .../UpdateLoadBalancerProtectionRequest.cc | 99 + .../UpdateLoadBalancerProtectionResult.cc | 44 + .../model/UpdateLoadBalancerZonesRequest.cc | 80 + .../model/UpdateLoadBalancerZonesResult.cc | 93 + .../UpdateSecurityPolicyAttributeRequest.cc | 88 + .../UpdateSecurityPolicyAttributeResult.cc | 100 + .../UpdateServerGroupAttributeRequest.cc | 156 ++ .../model/UpdateServerGroupAttributeResult.cc | 100 + ...pdateServerGroupServersAttributeRequest.cc | 81 + ...UpdateServerGroupServersAttributeResult.cc | 100 + 193 files changed, 18441 insertions(+), 1 deletion(-) create mode 100644 nlb/CMakeLists.txt create mode 100644 nlb/include/alibabacloud/nlb/NlbClient.h create mode 100644 nlb/include/alibabacloud/nlb/NlbExport.h create mode 100644 nlb/include/alibabacloud/nlb/model/AddServersToServerGroupRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/AddServersToServerGroupResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/AssociateAdditionalCertificatesWithListenerRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/AssociateAdditionalCertificatesWithListenerResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/AttachCommonBandwidthPackageToLoadBalancerRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/AttachCommonBandwidthPackageToLoadBalancerResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/CancelShiftLoadBalancerZonesRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/CancelShiftLoadBalancerZonesResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/CreateListenerRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/CreateListenerResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/CreateLoadBalancerRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/CreateLoadBalancerResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/CreateSecurityPolicyRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/CreateSecurityPolicyResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/CreateServerGroupRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/CreateServerGroupResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/DeleteListenerRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/DeleteListenerResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/DeleteLoadBalancerRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/DeleteLoadBalancerResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/DeleteSecurityPolicyRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/DeleteSecurityPolicyResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/DeleteServerGroupRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/DeleteServerGroupResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/DescribeRegionsRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/DescribeRegionsResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/DescribeZonesRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/DescribeZonesResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/DetachCommonBandwidthPackageFromLoadBalancerRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/DetachCommonBandwidthPackageFromLoadBalancerResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/DisableLoadBalancerIpv6InternetRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/DisableLoadBalancerIpv6InternetResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/DisassociateAdditionalCertificatesWithListenerRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/DisassociateAdditionalCertificatesWithListenerResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/EnableLoadBalancerIpv6InternetRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/EnableLoadBalancerIpv6InternetResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/GetJobStatusRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/GetJobStatusResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/GetListenerAttributeRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/GetListenerAttributeResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/GetListenerHealthStatusRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/GetListenerHealthStatusResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/GetLoadBalancerAttributeRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/GetLoadBalancerAttributeResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/ListListenerCertificatesRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/ListListenerCertificatesResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/ListListenersRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/ListListenersResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/ListLoadBalancersRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/ListLoadBalancersResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/ListSecurityPolicyRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/ListSecurityPolicyResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/ListServerGroupServersRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/ListServerGroupServersResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/ListServerGroupsRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/ListServerGroupsResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/ListSystemSecurityPolicyRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/ListSystemSecurityPolicyResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/ListTagResourcesRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/ListTagResourcesResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/LoadBalancerJoinSecurityGroupRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/LoadBalancerJoinSecurityGroupResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/LoadBalancerLeaveSecurityGroupRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/LoadBalancerLeaveSecurityGroupResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/MoveResourceGroupRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/MoveResourceGroupResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/RemoveServersFromServerGroupRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/RemoveServersFromServerGroupResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/StartListenerRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/StartListenerResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/StartShiftLoadBalancerZonesRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/StartShiftLoadBalancerZonesResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/StopListenerRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/StopListenerResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/TagResourcesRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/TagResourcesResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/UntagResourcesRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/UntagResourcesResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/UpdateListenerAttributeRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/UpdateListenerAttributeResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerAddressTypeConfigRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerAddressTypeConfigResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerAttributeRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerAttributeResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerProtectionRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerProtectionResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerZonesRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerZonesResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/UpdateSecurityPolicyAttributeRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/UpdateSecurityPolicyAttributeResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/UpdateServerGroupAttributeRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/UpdateServerGroupAttributeResult.h create mode 100644 nlb/include/alibabacloud/nlb/model/UpdateServerGroupServersAttributeRequest.h create mode 100644 nlb/include/alibabacloud/nlb/model/UpdateServerGroupServersAttributeResult.h create mode 100644 nlb/src/NlbClient.cc create mode 100644 nlb/src/model/AddServersToServerGroupRequest.cc create mode 100644 nlb/src/model/AddServersToServerGroupResult.cc create mode 100644 nlb/src/model/AssociateAdditionalCertificatesWithListenerRequest.cc create mode 100644 nlb/src/model/AssociateAdditionalCertificatesWithListenerResult.cc create mode 100644 nlb/src/model/AttachCommonBandwidthPackageToLoadBalancerRequest.cc create mode 100644 nlb/src/model/AttachCommonBandwidthPackageToLoadBalancerResult.cc create mode 100644 nlb/src/model/CancelShiftLoadBalancerZonesRequest.cc create mode 100644 nlb/src/model/CancelShiftLoadBalancerZonesResult.cc create mode 100644 nlb/src/model/CreateListenerRequest.cc create mode 100644 nlb/src/model/CreateListenerResult.cc create mode 100644 nlb/src/model/CreateLoadBalancerRequest.cc create mode 100644 nlb/src/model/CreateLoadBalancerResult.cc create mode 100644 nlb/src/model/CreateSecurityPolicyRequest.cc create mode 100644 nlb/src/model/CreateSecurityPolicyResult.cc create mode 100644 nlb/src/model/CreateServerGroupRequest.cc create mode 100644 nlb/src/model/CreateServerGroupResult.cc create mode 100644 nlb/src/model/DeleteListenerRequest.cc create mode 100644 nlb/src/model/DeleteListenerResult.cc create mode 100644 nlb/src/model/DeleteLoadBalancerRequest.cc create mode 100644 nlb/src/model/DeleteLoadBalancerResult.cc create mode 100644 nlb/src/model/DeleteSecurityPolicyRequest.cc create mode 100644 nlb/src/model/DeleteSecurityPolicyResult.cc create mode 100644 nlb/src/model/DeleteServerGroupRequest.cc create mode 100644 nlb/src/model/DeleteServerGroupResult.cc create mode 100644 nlb/src/model/DescribeRegionsRequest.cc create mode 100644 nlb/src/model/DescribeRegionsResult.cc create mode 100644 nlb/src/model/DescribeZonesRequest.cc create mode 100644 nlb/src/model/DescribeZonesResult.cc create mode 100644 nlb/src/model/DetachCommonBandwidthPackageFromLoadBalancerRequest.cc create mode 100644 nlb/src/model/DetachCommonBandwidthPackageFromLoadBalancerResult.cc create mode 100644 nlb/src/model/DisableLoadBalancerIpv6InternetRequest.cc create mode 100644 nlb/src/model/DisableLoadBalancerIpv6InternetResult.cc create mode 100644 nlb/src/model/DisassociateAdditionalCertificatesWithListenerRequest.cc create mode 100644 nlb/src/model/DisassociateAdditionalCertificatesWithListenerResult.cc create mode 100644 nlb/src/model/EnableLoadBalancerIpv6InternetRequest.cc create mode 100644 nlb/src/model/EnableLoadBalancerIpv6InternetResult.cc create mode 100644 nlb/src/model/GetJobStatusRequest.cc create mode 100644 nlb/src/model/GetJobStatusResult.cc create mode 100644 nlb/src/model/GetListenerAttributeRequest.cc create mode 100644 nlb/src/model/GetListenerAttributeResult.cc create mode 100644 nlb/src/model/GetListenerHealthStatusRequest.cc create mode 100644 nlb/src/model/GetListenerHealthStatusResult.cc create mode 100644 nlb/src/model/GetLoadBalancerAttributeRequest.cc create mode 100644 nlb/src/model/GetLoadBalancerAttributeResult.cc create mode 100644 nlb/src/model/ListListenerCertificatesRequest.cc create mode 100644 nlb/src/model/ListListenerCertificatesResult.cc create mode 100644 nlb/src/model/ListListenersRequest.cc create mode 100644 nlb/src/model/ListListenersResult.cc create mode 100644 nlb/src/model/ListLoadBalancersRequest.cc create mode 100644 nlb/src/model/ListLoadBalancersResult.cc create mode 100644 nlb/src/model/ListSecurityPolicyRequest.cc create mode 100644 nlb/src/model/ListSecurityPolicyResult.cc create mode 100644 nlb/src/model/ListServerGroupServersRequest.cc create mode 100644 nlb/src/model/ListServerGroupServersResult.cc create mode 100644 nlb/src/model/ListServerGroupsRequest.cc create mode 100644 nlb/src/model/ListServerGroupsResult.cc create mode 100644 nlb/src/model/ListSystemSecurityPolicyRequest.cc create mode 100644 nlb/src/model/ListSystemSecurityPolicyResult.cc create mode 100644 nlb/src/model/ListTagResourcesRequest.cc create mode 100644 nlb/src/model/ListTagResourcesResult.cc create mode 100644 nlb/src/model/LoadBalancerJoinSecurityGroupRequest.cc create mode 100644 nlb/src/model/LoadBalancerJoinSecurityGroupResult.cc create mode 100644 nlb/src/model/LoadBalancerLeaveSecurityGroupRequest.cc create mode 100644 nlb/src/model/LoadBalancerLeaveSecurityGroupResult.cc create mode 100644 nlb/src/model/MoveResourceGroupRequest.cc create mode 100644 nlb/src/model/MoveResourceGroupResult.cc create mode 100644 nlb/src/model/RemoveServersFromServerGroupRequest.cc create mode 100644 nlb/src/model/RemoveServersFromServerGroupResult.cc create mode 100644 nlb/src/model/StartListenerRequest.cc create mode 100644 nlb/src/model/StartListenerResult.cc create mode 100644 nlb/src/model/StartShiftLoadBalancerZonesRequest.cc create mode 100644 nlb/src/model/StartShiftLoadBalancerZonesResult.cc create mode 100644 nlb/src/model/StopListenerRequest.cc create mode 100644 nlb/src/model/StopListenerResult.cc create mode 100644 nlb/src/model/TagResourcesRequest.cc create mode 100644 nlb/src/model/TagResourcesResult.cc create mode 100644 nlb/src/model/UntagResourcesRequest.cc create mode 100644 nlb/src/model/UntagResourcesResult.cc create mode 100644 nlb/src/model/UpdateListenerAttributeRequest.cc create mode 100644 nlb/src/model/UpdateListenerAttributeResult.cc create mode 100644 nlb/src/model/UpdateLoadBalancerAddressTypeConfigRequest.cc create mode 100644 nlb/src/model/UpdateLoadBalancerAddressTypeConfigResult.cc create mode 100644 nlb/src/model/UpdateLoadBalancerAttributeRequest.cc create mode 100644 nlb/src/model/UpdateLoadBalancerAttributeResult.cc create mode 100644 nlb/src/model/UpdateLoadBalancerProtectionRequest.cc create mode 100644 nlb/src/model/UpdateLoadBalancerProtectionResult.cc create mode 100644 nlb/src/model/UpdateLoadBalancerZonesRequest.cc create mode 100644 nlb/src/model/UpdateLoadBalancerZonesResult.cc create mode 100644 nlb/src/model/UpdateSecurityPolicyAttributeRequest.cc create mode 100644 nlb/src/model/UpdateSecurityPolicyAttributeResult.cc create mode 100644 nlb/src/model/UpdateServerGroupAttributeRequest.cc create mode 100644 nlb/src/model/UpdateServerGroupAttributeResult.cc create mode 100644 nlb/src/model/UpdateServerGroupServersAttributeRequest.cc create mode 100644 nlb/src/model/UpdateServerGroupServersAttributeResult.cc diff --git a/VERSION b/VERSION index c9f93dcf5..a363463e6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1771 \ No newline at end of file +1.36.1772 \ No newline at end of file diff --git a/nlb/CMakeLists.txt b/nlb/CMakeLists.txt new file mode 100644 index 000000000..3963f42c3 --- /dev/null +++ b/nlb/CMakeLists.txt @@ -0,0 +1,270 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(nlb_public_header + include/alibabacloud/nlb/NlbClient.h + include/alibabacloud/nlb/NlbExport.h ) + +set(nlb_public_header_model + include/alibabacloud/nlb/model/AddServersToServerGroupRequest.h + include/alibabacloud/nlb/model/AddServersToServerGroupResult.h + include/alibabacloud/nlb/model/AssociateAdditionalCertificatesWithListenerRequest.h + include/alibabacloud/nlb/model/AssociateAdditionalCertificatesWithListenerResult.h + include/alibabacloud/nlb/model/AttachCommonBandwidthPackageToLoadBalancerRequest.h + include/alibabacloud/nlb/model/AttachCommonBandwidthPackageToLoadBalancerResult.h + include/alibabacloud/nlb/model/CancelShiftLoadBalancerZonesRequest.h + include/alibabacloud/nlb/model/CancelShiftLoadBalancerZonesResult.h + include/alibabacloud/nlb/model/CreateListenerRequest.h + include/alibabacloud/nlb/model/CreateListenerResult.h + include/alibabacloud/nlb/model/CreateLoadBalancerRequest.h + include/alibabacloud/nlb/model/CreateLoadBalancerResult.h + include/alibabacloud/nlb/model/CreateSecurityPolicyRequest.h + include/alibabacloud/nlb/model/CreateSecurityPolicyResult.h + include/alibabacloud/nlb/model/CreateServerGroupRequest.h + include/alibabacloud/nlb/model/CreateServerGroupResult.h + include/alibabacloud/nlb/model/DeleteListenerRequest.h + include/alibabacloud/nlb/model/DeleteListenerResult.h + include/alibabacloud/nlb/model/DeleteLoadBalancerRequest.h + include/alibabacloud/nlb/model/DeleteLoadBalancerResult.h + include/alibabacloud/nlb/model/DeleteSecurityPolicyRequest.h + include/alibabacloud/nlb/model/DeleteSecurityPolicyResult.h + include/alibabacloud/nlb/model/DeleteServerGroupRequest.h + include/alibabacloud/nlb/model/DeleteServerGroupResult.h + include/alibabacloud/nlb/model/DescribeRegionsRequest.h + include/alibabacloud/nlb/model/DescribeRegionsResult.h + include/alibabacloud/nlb/model/DescribeZonesRequest.h + include/alibabacloud/nlb/model/DescribeZonesResult.h + include/alibabacloud/nlb/model/DetachCommonBandwidthPackageFromLoadBalancerRequest.h + include/alibabacloud/nlb/model/DetachCommonBandwidthPackageFromLoadBalancerResult.h + include/alibabacloud/nlb/model/DisableLoadBalancerIpv6InternetRequest.h + include/alibabacloud/nlb/model/DisableLoadBalancerIpv6InternetResult.h + include/alibabacloud/nlb/model/DisassociateAdditionalCertificatesWithListenerRequest.h + include/alibabacloud/nlb/model/DisassociateAdditionalCertificatesWithListenerResult.h + include/alibabacloud/nlb/model/EnableLoadBalancerIpv6InternetRequest.h + include/alibabacloud/nlb/model/EnableLoadBalancerIpv6InternetResult.h + include/alibabacloud/nlb/model/GetJobStatusRequest.h + include/alibabacloud/nlb/model/GetJobStatusResult.h + include/alibabacloud/nlb/model/GetListenerAttributeRequest.h + include/alibabacloud/nlb/model/GetListenerAttributeResult.h + include/alibabacloud/nlb/model/GetListenerHealthStatusRequest.h + include/alibabacloud/nlb/model/GetListenerHealthStatusResult.h + include/alibabacloud/nlb/model/GetLoadBalancerAttributeRequest.h + include/alibabacloud/nlb/model/GetLoadBalancerAttributeResult.h + include/alibabacloud/nlb/model/ListListenerCertificatesRequest.h + include/alibabacloud/nlb/model/ListListenerCertificatesResult.h + include/alibabacloud/nlb/model/ListListenersRequest.h + include/alibabacloud/nlb/model/ListListenersResult.h + include/alibabacloud/nlb/model/ListLoadBalancersRequest.h + include/alibabacloud/nlb/model/ListLoadBalancersResult.h + include/alibabacloud/nlb/model/ListSecurityPolicyRequest.h + include/alibabacloud/nlb/model/ListSecurityPolicyResult.h + include/alibabacloud/nlb/model/ListServerGroupServersRequest.h + include/alibabacloud/nlb/model/ListServerGroupServersResult.h + include/alibabacloud/nlb/model/ListServerGroupsRequest.h + include/alibabacloud/nlb/model/ListServerGroupsResult.h + include/alibabacloud/nlb/model/ListSystemSecurityPolicyRequest.h + include/alibabacloud/nlb/model/ListSystemSecurityPolicyResult.h + include/alibabacloud/nlb/model/ListTagResourcesRequest.h + include/alibabacloud/nlb/model/ListTagResourcesResult.h + include/alibabacloud/nlb/model/LoadBalancerJoinSecurityGroupRequest.h + include/alibabacloud/nlb/model/LoadBalancerJoinSecurityGroupResult.h + include/alibabacloud/nlb/model/LoadBalancerLeaveSecurityGroupRequest.h + include/alibabacloud/nlb/model/LoadBalancerLeaveSecurityGroupResult.h + include/alibabacloud/nlb/model/MoveResourceGroupRequest.h + include/alibabacloud/nlb/model/MoveResourceGroupResult.h + include/alibabacloud/nlb/model/RemoveServersFromServerGroupRequest.h + include/alibabacloud/nlb/model/RemoveServersFromServerGroupResult.h + include/alibabacloud/nlb/model/StartListenerRequest.h + include/alibabacloud/nlb/model/StartListenerResult.h + include/alibabacloud/nlb/model/StartShiftLoadBalancerZonesRequest.h + include/alibabacloud/nlb/model/StartShiftLoadBalancerZonesResult.h + include/alibabacloud/nlb/model/StopListenerRequest.h + include/alibabacloud/nlb/model/StopListenerResult.h + include/alibabacloud/nlb/model/TagResourcesRequest.h + include/alibabacloud/nlb/model/TagResourcesResult.h + include/alibabacloud/nlb/model/UntagResourcesRequest.h + include/alibabacloud/nlb/model/UntagResourcesResult.h + include/alibabacloud/nlb/model/UpdateListenerAttributeRequest.h + include/alibabacloud/nlb/model/UpdateListenerAttributeResult.h + include/alibabacloud/nlb/model/UpdateLoadBalancerAddressTypeConfigRequest.h + include/alibabacloud/nlb/model/UpdateLoadBalancerAddressTypeConfigResult.h + include/alibabacloud/nlb/model/UpdateLoadBalancerAttributeRequest.h + include/alibabacloud/nlb/model/UpdateLoadBalancerAttributeResult.h + include/alibabacloud/nlb/model/UpdateLoadBalancerProtectionRequest.h + include/alibabacloud/nlb/model/UpdateLoadBalancerProtectionResult.h + include/alibabacloud/nlb/model/UpdateLoadBalancerZonesRequest.h + include/alibabacloud/nlb/model/UpdateLoadBalancerZonesResult.h + include/alibabacloud/nlb/model/UpdateSecurityPolicyAttributeRequest.h + include/alibabacloud/nlb/model/UpdateSecurityPolicyAttributeResult.h + include/alibabacloud/nlb/model/UpdateServerGroupAttributeRequest.h + include/alibabacloud/nlb/model/UpdateServerGroupAttributeResult.h + include/alibabacloud/nlb/model/UpdateServerGroupServersAttributeRequest.h + include/alibabacloud/nlb/model/UpdateServerGroupServersAttributeResult.h ) + +set(nlb_src + src/NlbClient.cc + src/model/AddServersToServerGroupRequest.cc + src/model/AddServersToServerGroupResult.cc + src/model/AssociateAdditionalCertificatesWithListenerRequest.cc + src/model/AssociateAdditionalCertificatesWithListenerResult.cc + src/model/AttachCommonBandwidthPackageToLoadBalancerRequest.cc + src/model/AttachCommonBandwidthPackageToLoadBalancerResult.cc + src/model/CancelShiftLoadBalancerZonesRequest.cc + src/model/CancelShiftLoadBalancerZonesResult.cc + src/model/CreateListenerRequest.cc + src/model/CreateListenerResult.cc + src/model/CreateLoadBalancerRequest.cc + src/model/CreateLoadBalancerResult.cc + src/model/CreateSecurityPolicyRequest.cc + src/model/CreateSecurityPolicyResult.cc + src/model/CreateServerGroupRequest.cc + src/model/CreateServerGroupResult.cc + src/model/DeleteListenerRequest.cc + src/model/DeleteListenerResult.cc + src/model/DeleteLoadBalancerRequest.cc + src/model/DeleteLoadBalancerResult.cc + src/model/DeleteSecurityPolicyRequest.cc + src/model/DeleteSecurityPolicyResult.cc + src/model/DeleteServerGroupRequest.cc + src/model/DeleteServerGroupResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/DescribeZonesRequest.cc + src/model/DescribeZonesResult.cc + src/model/DetachCommonBandwidthPackageFromLoadBalancerRequest.cc + src/model/DetachCommonBandwidthPackageFromLoadBalancerResult.cc + src/model/DisableLoadBalancerIpv6InternetRequest.cc + src/model/DisableLoadBalancerIpv6InternetResult.cc + src/model/DisassociateAdditionalCertificatesWithListenerRequest.cc + src/model/DisassociateAdditionalCertificatesWithListenerResult.cc + src/model/EnableLoadBalancerIpv6InternetRequest.cc + src/model/EnableLoadBalancerIpv6InternetResult.cc + src/model/GetJobStatusRequest.cc + src/model/GetJobStatusResult.cc + src/model/GetListenerAttributeRequest.cc + src/model/GetListenerAttributeResult.cc + src/model/GetListenerHealthStatusRequest.cc + src/model/GetListenerHealthStatusResult.cc + src/model/GetLoadBalancerAttributeRequest.cc + src/model/GetLoadBalancerAttributeResult.cc + src/model/ListListenerCertificatesRequest.cc + src/model/ListListenerCertificatesResult.cc + src/model/ListListenersRequest.cc + src/model/ListListenersResult.cc + src/model/ListLoadBalancersRequest.cc + src/model/ListLoadBalancersResult.cc + src/model/ListSecurityPolicyRequest.cc + src/model/ListSecurityPolicyResult.cc + src/model/ListServerGroupServersRequest.cc + src/model/ListServerGroupServersResult.cc + src/model/ListServerGroupsRequest.cc + src/model/ListServerGroupsResult.cc + src/model/ListSystemSecurityPolicyRequest.cc + src/model/ListSystemSecurityPolicyResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc + src/model/LoadBalancerJoinSecurityGroupRequest.cc + src/model/LoadBalancerJoinSecurityGroupResult.cc + src/model/LoadBalancerLeaveSecurityGroupRequest.cc + src/model/LoadBalancerLeaveSecurityGroupResult.cc + src/model/MoveResourceGroupRequest.cc + src/model/MoveResourceGroupResult.cc + src/model/RemoveServersFromServerGroupRequest.cc + src/model/RemoveServersFromServerGroupResult.cc + src/model/StartListenerRequest.cc + src/model/StartListenerResult.cc + src/model/StartShiftLoadBalancerZonesRequest.cc + src/model/StartShiftLoadBalancerZonesResult.cc + src/model/StopListenerRequest.cc + src/model/StopListenerResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc + src/model/UpdateListenerAttributeRequest.cc + src/model/UpdateListenerAttributeResult.cc + src/model/UpdateLoadBalancerAddressTypeConfigRequest.cc + src/model/UpdateLoadBalancerAddressTypeConfigResult.cc + src/model/UpdateLoadBalancerAttributeRequest.cc + src/model/UpdateLoadBalancerAttributeResult.cc + src/model/UpdateLoadBalancerProtectionRequest.cc + src/model/UpdateLoadBalancerProtectionResult.cc + src/model/UpdateLoadBalancerZonesRequest.cc + src/model/UpdateLoadBalancerZonesResult.cc + src/model/UpdateSecurityPolicyAttributeRequest.cc + src/model/UpdateSecurityPolicyAttributeResult.cc + src/model/UpdateServerGroupAttributeRequest.cc + src/model/UpdateServerGroupAttributeResult.cc + src/model/UpdateServerGroupServersAttributeRequest.cc + src/model/UpdateServerGroupServersAttributeResult.cc ) + +add_library(nlb ${LIB_TYPE} + ${nlb_public_header} + ${nlb_public_header_model} + ${nlb_src}) + +set_target_properties(nlb + 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}nlb + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(nlb + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_NLB_LIBRARY) +endif() + +target_include_directories(nlb + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(nlb + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(nlb + jsoncpp) + target_include_directories(nlb + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(nlb + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(nlb + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(nlb + PRIVATE /usr/include/jsoncpp) + target_link_libraries(nlb + jsoncpp) +endif() + +install(FILES ${nlb_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/nlb) +install(FILES ${nlb_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/nlb/model) +install(TARGETS nlb + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/NlbClient.h b/nlb/include/alibabacloud/nlb/NlbClient.h new file mode 100644 index 000000000..5ed2f40af --- /dev/null +++ b/nlb/include/alibabacloud/nlb/NlbClient.h @@ -0,0 +1,422 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLB_NLBCLIENT_H_ +#define ALIBABACLOUD_NLB_NLBCLIENT_H_ + +#include +#include +#include +#include +#include "NlbExport.h" +#include "model/AddServersToServerGroupRequest.h" +#include "model/AddServersToServerGroupResult.h" +#include "model/AssociateAdditionalCertificatesWithListenerRequest.h" +#include "model/AssociateAdditionalCertificatesWithListenerResult.h" +#include "model/AttachCommonBandwidthPackageToLoadBalancerRequest.h" +#include "model/AttachCommonBandwidthPackageToLoadBalancerResult.h" +#include "model/CancelShiftLoadBalancerZonesRequest.h" +#include "model/CancelShiftLoadBalancerZonesResult.h" +#include "model/CreateListenerRequest.h" +#include "model/CreateListenerResult.h" +#include "model/CreateLoadBalancerRequest.h" +#include "model/CreateLoadBalancerResult.h" +#include "model/CreateSecurityPolicyRequest.h" +#include "model/CreateSecurityPolicyResult.h" +#include "model/CreateServerGroupRequest.h" +#include "model/CreateServerGroupResult.h" +#include "model/DeleteListenerRequest.h" +#include "model/DeleteListenerResult.h" +#include "model/DeleteLoadBalancerRequest.h" +#include "model/DeleteLoadBalancerResult.h" +#include "model/DeleteSecurityPolicyRequest.h" +#include "model/DeleteSecurityPolicyResult.h" +#include "model/DeleteServerGroupRequest.h" +#include "model/DeleteServerGroupResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/DescribeZonesRequest.h" +#include "model/DescribeZonesResult.h" +#include "model/DetachCommonBandwidthPackageFromLoadBalancerRequest.h" +#include "model/DetachCommonBandwidthPackageFromLoadBalancerResult.h" +#include "model/DisableLoadBalancerIpv6InternetRequest.h" +#include "model/DisableLoadBalancerIpv6InternetResult.h" +#include "model/DisassociateAdditionalCertificatesWithListenerRequest.h" +#include "model/DisassociateAdditionalCertificatesWithListenerResult.h" +#include "model/EnableLoadBalancerIpv6InternetRequest.h" +#include "model/EnableLoadBalancerIpv6InternetResult.h" +#include "model/GetJobStatusRequest.h" +#include "model/GetJobStatusResult.h" +#include "model/GetListenerAttributeRequest.h" +#include "model/GetListenerAttributeResult.h" +#include "model/GetListenerHealthStatusRequest.h" +#include "model/GetListenerHealthStatusResult.h" +#include "model/GetLoadBalancerAttributeRequest.h" +#include "model/GetLoadBalancerAttributeResult.h" +#include "model/ListListenerCertificatesRequest.h" +#include "model/ListListenerCertificatesResult.h" +#include "model/ListListenersRequest.h" +#include "model/ListListenersResult.h" +#include "model/ListLoadBalancersRequest.h" +#include "model/ListLoadBalancersResult.h" +#include "model/ListSecurityPolicyRequest.h" +#include "model/ListSecurityPolicyResult.h" +#include "model/ListServerGroupServersRequest.h" +#include "model/ListServerGroupServersResult.h" +#include "model/ListServerGroupsRequest.h" +#include "model/ListServerGroupsResult.h" +#include "model/ListSystemSecurityPolicyRequest.h" +#include "model/ListSystemSecurityPolicyResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" +#include "model/LoadBalancerJoinSecurityGroupRequest.h" +#include "model/LoadBalancerJoinSecurityGroupResult.h" +#include "model/LoadBalancerLeaveSecurityGroupRequest.h" +#include "model/LoadBalancerLeaveSecurityGroupResult.h" +#include "model/MoveResourceGroupRequest.h" +#include "model/MoveResourceGroupResult.h" +#include "model/RemoveServersFromServerGroupRequest.h" +#include "model/RemoveServersFromServerGroupResult.h" +#include "model/StartListenerRequest.h" +#include "model/StartListenerResult.h" +#include "model/StartShiftLoadBalancerZonesRequest.h" +#include "model/StartShiftLoadBalancerZonesResult.h" +#include "model/StopListenerRequest.h" +#include "model/StopListenerResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" +#include "model/UpdateListenerAttributeRequest.h" +#include "model/UpdateListenerAttributeResult.h" +#include "model/UpdateLoadBalancerAddressTypeConfigRequest.h" +#include "model/UpdateLoadBalancerAddressTypeConfigResult.h" +#include "model/UpdateLoadBalancerAttributeRequest.h" +#include "model/UpdateLoadBalancerAttributeResult.h" +#include "model/UpdateLoadBalancerProtectionRequest.h" +#include "model/UpdateLoadBalancerProtectionResult.h" +#include "model/UpdateLoadBalancerZonesRequest.h" +#include "model/UpdateLoadBalancerZonesResult.h" +#include "model/UpdateSecurityPolicyAttributeRequest.h" +#include "model/UpdateSecurityPolicyAttributeResult.h" +#include "model/UpdateServerGroupAttributeRequest.h" +#include "model/UpdateServerGroupAttributeResult.h" +#include "model/UpdateServerGroupServersAttributeRequest.h" +#include "model/UpdateServerGroupServersAttributeResult.h" + + +namespace AlibabaCloud +{ + namespace Nlb + { + class ALIBABACLOUD_NLB_EXPORT NlbClient : public RpcServiceClient + { + public: + typedef Outcome AddServersToServerGroupOutcome; + typedef std::future AddServersToServerGroupOutcomeCallable; + typedef std::function&)> AddServersToServerGroupAsyncHandler; + typedef Outcome AssociateAdditionalCertificatesWithListenerOutcome; + typedef std::future AssociateAdditionalCertificatesWithListenerOutcomeCallable; + typedef std::function&)> AssociateAdditionalCertificatesWithListenerAsyncHandler; + typedef Outcome AttachCommonBandwidthPackageToLoadBalancerOutcome; + typedef std::future AttachCommonBandwidthPackageToLoadBalancerOutcomeCallable; + typedef std::function&)> AttachCommonBandwidthPackageToLoadBalancerAsyncHandler; + typedef Outcome CancelShiftLoadBalancerZonesOutcome; + typedef std::future CancelShiftLoadBalancerZonesOutcomeCallable; + typedef std::function&)> CancelShiftLoadBalancerZonesAsyncHandler; + typedef Outcome CreateListenerOutcome; + typedef std::future CreateListenerOutcomeCallable; + typedef std::function&)> CreateListenerAsyncHandler; + typedef Outcome CreateLoadBalancerOutcome; + typedef std::future CreateLoadBalancerOutcomeCallable; + typedef std::function&)> CreateLoadBalancerAsyncHandler; + typedef Outcome CreateSecurityPolicyOutcome; + typedef std::future CreateSecurityPolicyOutcomeCallable; + typedef std::function&)> CreateSecurityPolicyAsyncHandler; + typedef Outcome CreateServerGroupOutcome; + typedef std::future CreateServerGroupOutcomeCallable; + typedef std::function&)> CreateServerGroupAsyncHandler; + typedef Outcome DeleteListenerOutcome; + typedef std::future DeleteListenerOutcomeCallable; + typedef std::function&)> DeleteListenerAsyncHandler; + typedef Outcome DeleteLoadBalancerOutcome; + typedef std::future DeleteLoadBalancerOutcomeCallable; + typedef std::function&)> DeleteLoadBalancerAsyncHandler; + typedef Outcome DeleteSecurityPolicyOutcome; + typedef std::future DeleteSecurityPolicyOutcomeCallable; + typedef std::function&)> DeleteSecurityPolicyAsyncHandler; + typedef Outcome DeleteServerGroupOutcome; + typedef std::future DeleteServerGroupOutcomeCallable; + typedef std::function&)> DeleteServerGroupAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DescribeZonesOutcome; + typedef std::future DescribeZonesOutcomeCallable; + typedef std::function&)> DescribeZonesAsyncHandler; + typedef Outcome DetachCommonBandwidthPackageFromLoadBalancerOutcome; + typedef std::future DetachCommonBandwidthPackageFromLoadBalancerOutcomeCallable; + typedef std::function&)> DetachCommonBandwidthPackageFromLoadBalancerAsyncHandler; + typedef Outcome DisableLoadBalancerIpv6InternetOutcome; + typedef std::future DisableLoadBalancerIpv6InternetOutcomeCallable; + typedef std::function&)> DisableLoadBalancerIpv6InternetAsyncHandler; + typedef Outcome DisassociateAdditionalCertificatesWithListenerOutcome; + typedef std::future DisassociateAdditionalCertificatesWithListenerOutcomeCallable; + typedef std::function&)> DisassociateAdditionalCertificatesWithListenerAsyncHandler; + typedef Outcome EnableLoadBalancerIpv6InternetOutcome; + typedef std::future EnableLoadBalancerIpv6InternetOutcomeCallable; + typedef std::function&)> EnableLoadBalancerIpv6InternetAsyncHandler; + typedef Outcome GetJobStatusOutcome; + typedef std::future GetJobStatusOutcomeCallable; + typedef std::function&)> GetJobStatusAsyncHandler; + typedef Outcome GetListenerAttributeOutcome; + typedef std::future GetListenerAttributeOutcomeCallable; + typedef std::function&)> GetListenerAttributeAsyncHandler; + typedef Outcome GetListenerHealthStatusOutcome; + typedef std::future GetListenerHealthStatusOutcomeCallable; + typedef std::function&)> GetListenerHealthStatusAsyncHandler; + typedef Outcome GetLoadBalancerAttributeOutcome; + typedef std::future GetLoadBalancerAttributeOutcomeCallable; + typedef std::function&)> GetLoadBalancerAttributeAsyncHandler; + typedef Outcome ListListenerCertificatesOutcome; + typedef std::future ListListenerCertificatesOutcomeCallable; + typedef std::function&)> ListListenerCertificatesAsyncHandler; + typedef Outcome ListListenersOutcome; + typedef std::future ListListenersOutcomeCallable; + typedef std::function&)> ListListenersAsyncHandler; + typedef Outcome ListLoadBalancersOutcome; + typedef std::future ListLoadBalancersOutcomeCallable; + typedef std::function&)> ListLoadBalancersAsyncHandler; + typedef Outcome ListSecurityPolicyOutcome; + typedef std::future ListSecurityPolicyOutcomeCallable; + typedef std::function&)> ListSecurityPolicyAsyncHandler; + typedef Outcome ListServerGroupServersOutcome; + typedef std::future ListServerGroupServersOutcomeCallable; + typedef std::function&)> ListServerGroupServersAsyncHandler; + typedef Outcome ListServerGroupsOutcome; + typedef std::future ListServerGroupsOutcomeCallable; + typedef std::function&)> ListServerGroupsAsyncHandler; + typedef Outcome ListSystemSecurityPolicyOutcome; + typedef std::future ListSystemSecurityPolicyOutcomeCallable; + typedef std::function&)> ListSystemSecurityPolicyAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome LoadBalancerJoinSecurityGroupOutcome; + typedef std::future LoadBalancerJoinSecurityGroupOutcomeCallable; + typedef std::function&)> LoadBalancerJoinSecurityGroupAsyncHandler; + typedef Outcome LoadBalancerLeaveSecurityGroupOutcome; + typedef std::future LoadBalancerLeaveSecurityGroupOutcomeCallable; + typedef std::function&)> LoadBalancerLeaveSecurityGroupAsyncHandler; + typedef Outcome MoveResourceGroupOutcome; + typedef std::future MoveResourceGroupOutcomeCallable; + typedef std::function&)> MoveResourceGroupAsyncHandler; + typedef Outcome RemoveServersFromServerGroupOutcome; + typedef std::future RemoveServersFromServerGroupOutcomeCallable; + typedef std::function&)> RemoveServersFromServerGroupAsyncHandler; + typedef Outcome StartListenerOutcome; + typedef std::future StartListenerOutcomeCallable; + typedef std::function&)> StartListenerAsyncHandler; + typedef Outcome StartShiftLoadBalancerZonesOutcome; + typedef std::future StartShiftLoadBalancerZonesOutcomeCallable; + typedef std::function&)> StartShiftLoadBalancerZonesAsyncHandler; + typedef Outcome StopListenerOutcome; + typedef std::future StopListenerOutcomeCallable; + typedef std::function&)> StopListenerAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome UpdateListenerAttributeOutcome; + typedef std::future UpdateListenerAttributeOutcomeCallable; + typedef std::function&)> UpdateListenerAttributeAsyncHandler; + typedef Outcome UpdateLoadBalancerAddressTypeConfigOutcome; + typedef std::future UpdateLoadBalancerAddressTypeConfigOutcomeCallable; + typedef std::function&)> UpdateLoadBalancerAddressTypeConfigAsyncHandler; + typedef Outcome UpdateLoadBalancerAttributeOutcome; + typedef std::future UpdateLoadBalancerAttributeOutcomeCallable; + typedef std::function&)> UpdateLoadBalancerAttributeAsyncHandler; + typedef Outcome UpdateLoadBalancerProtectionOutcome; + typedef std::future UpdateLoadBalancerProtectionOutcomeCallable; + typedef std::function&)> UpdateLoadBalancerProtectionAsyncHandler; + typedef Outcome UpdateLoadBalancerZonesOutcome; + typedef std::future UpdateLoadBalancerZonesOutcomeCallable; + typedef std::function&)> UpdateLoadBalancerZonesAsyncHandler; + typedef Outcome UpdateSecurityPolicyAttributeOutcome; + typedef std::future UpdateSecurityPolicyAttributeOutcomeCallable; + typedef std::function&)> UpdateSecurityPolicyAttributeAsyncHandler; + typedef Outcome UpdateServerGroupAttributeOutcome; + typedef std::future UpdateServerGroupAttributeOutcomeCallable; + typedef std::function&)> UpdateServerGroupAttributeAsyncHandler; + typedef Outcome UpdateServerGroupServersAttributeOutcome; + typedef std::future UpdateServerGroupServersAttributeOutcomeCallable; + typedef std::function&)> UpdateServerGroupServersAttributeAsyncHandler; + + NlbClient(const Credentials &credentials, const ClientConfiguration &configuration); + NlbClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + NlbClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~NlbClient(); + AddServersToServerGroupOutcome addServersToServerGroup(const Model::AddServersToServerGroupRequest &request)const; + void addServersToServerGroupAsync(const Model::AddServersToServerGroupRequest& request, const AddServersToServerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddServersToServerGroupOutcomeCallable addServersToServerGroupCallable(const Model::AddServersToServerGroupRequest& request) const; + AssociateAdditionalCertificatesWithListenerOutcome associateAdditionalCertificatesWithListener(const Model::AssociateAdditionalCertificatesWithListenerRequest &request)const; + void associateAdditionalCertificatesWithListenerAsync(const Model::AssociateAdditionalCertificatesWithListenerRequest& request, const AssociateAdditionalCertificatesWithListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AssociateAdditionalCertificatesWithListenerOutcomeCallable associateAdditionalCertificatesWithListenerCallable(const Model::AssociateAdditionalCertificatesWithListenerRequest& request) const; + AttachCommonBandwidthPackageToLoadBalancerOutcome attachCommonBandwidthPackageToLoadBalancer(const Model::AttachCommonBandwidthPackageToLoadBalancerRequest &request)const; + void attachCommonBandwidthPackageToLoadBalancerAsync(const Model::AttachCommonBandwidthPackageToLoadBalancerRequest& request, const AttachCommonBandwidthPackageToLoadBalancerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachCommonBandwidthPackageToLoadBalancerOutcomeCallable attachCommonBandwidthPackageToLoadBalancerCallable(const Model::AttachCommonBandwidthPackageToLoadBalancerRequest& request) const; + CancelShiftLoadBalancerZonesOutcome cancelShiftLoadBalancerZones(const Model::CancelShiftLoadBalancerZonesRequest &request)const; + void cancelShiftLoadBalancerZonesAsync(const Model::CancelShiftLoadBalancerZonesRequest& request, const CancelShiftLoadBalancerZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelShiftLoadBalancerZonesOutcomeCallable cancelShiftLoadBalancerZonesCallable(const Model::CancelShiftLoadBalancerZonesRequest& request) const; + CreateListenerOutcome createListener(const Model::CreateListenerRequest &request)const; + void createListenerAsync(const Model::CreateListenerRequest& request, const CreateListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateListenerOutcomeCallable createListenerCallable(const Model::CreateListenerRequest& 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; + CreateSecurityPolicyOutcome createSecurityPolicy(const Model::CreateSecurityPolicyRequest &request)const; + void createSecurityPolicyAsync(const Model::CreateSecurityPolicyRequest& request, const CreateSecurityPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSecurityPolicyOutcomeCallable createSecurityPolicyCallable(const Model::CreateSecurityPolicyRequest& request) const; + CreateServerGroupOutcome createServerGroup(const Model::CreateServerGroupRequest &request)const; + void createServerGroupAsync(const Model::CreateServerGroupRequest& request, const CreateServerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateServerGroupOutcomeCallable createServerGroupCallable(const Model::CreateServerGroupRequest& request) const; + DeleteListenerOutcome deleteListener(const Model::DeleteListenerRequest &request)const; + void deleteListenerAsync(const Model::DeleteListenerRequest& request, const DeleteListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteListenerOutcomeCallable deleteListenerCallable(const Model::DeleteListenerRequest& request) const; + DeleteLoadBalancerOutcome deleteLoadBalancer(const Model::DeleteLoadBalancerRequest &request)const; + void deleteLoadBalancerAsync(const Model::DeleteLoadBalancerRequest& request, const DeleteLoadBalancerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLoadBalancerOutcomeCallable deleteLoadBalancerCallable(const Model::DeleteLoadBalancerRequest& request) const; + DeleteSecurityPolicyOutcome deleteSecurityPolicy(const Model::DeleteSecurityPolicyRequest &request)const; + void deleteSecurityPolicyAsync(const Model::DeleteSecurityPolicyRequest& request, const DeleteSecurityPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSecurityPolicyOutcomeCallable deleteSecurityPolicyCallable(const Model::DeleteSecurityPolicyRequest& request) const; + DeleteServerGroupOutcome deleteServerGroup(const Model::DeleteServerGroupRequest &request)const; + void deleteServerGroupAsync(const Model::DeleteServerGroupRequest& request, const DeleteServerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteServerGroupOutcomeCallable deleteServerGroupCallable(const Model::DeleteServerGroupRequest& request) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + DescribeZonesOutcome describeZones(const Model::DescribeZonesRequest &request)const; + void describeZonesAsync(const Model::DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const; + DetachCommonBandwidthPackageFromLoadBalancerOutcome detachCommonBandwidthPackageFromLoadBalancer(const Model::DetachCommonBandwidthPackageFromLoadBalancerRequest &request)const; + void detachCommonBandwidthPackageFromLoadBalancerAsync(const Model::DetachCommonBandwidthPackageFromLoadBalancerRequest& request, const DetachCommonBandwidthPackageFromLoadBalancerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachCommonBandwidthPackageFromLoadBalancerOutcomeCallable detachCommonBandwidthPackageFromLoadBalancerCallable(const Model::DetachCommonBandwidthPackageFromLoadBalancerRequest& request) const; + DisableLoadBalancerIpv6InternetOutcome disableLoadBalancerIpv6Internet(const Model::DisableLoadBalancerIpv6InternetRequest &request)const; + void disableLoadBalancerIpv6InternetAsync(const Model::DisableLoadBalancerIpv6InternetRequest& request, const DisableLoadBalancerIpv6InternetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableLoadBalancerIpv6InternetOutcomeCallable disableLoadBalancerIpv6InternetCallable(const Model::DisableLoadBalancerIpv6InternetRequest& request) const; + DisassociateAdditionalCertificatesWithListenerOutcome disassociateAdditionalCertificatesWithListener(const Model::DisassociateAdditionalCertificatesWithListenerRequest &request)const; + void disassociateAdditionalCertificatesWithListenerAsync(const Model::DisassociateAdditionalCertificatesWithListenerRequest& request, const DisassociateAdditionalCertificatesWithListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisassociateAdditionalCertificatesWithListenerOutcomeCallable disassociateAdditionalCertificatesWithListenerCallable(const Model::DisassociateAdditionalCertificatesWithListenerRequest& request) const; + EnableLoadBalancerIpv6InternetOutcome enableLoadBalancerIpv6Internet(const Model::EnableLoadBalancerIpv6InternetRequest &request)const; + void enableLoadBalancerIpv6InternetAsync(const Model::EnableLoadBalancerIpv6InternetRequest& request, const EnableLoadBalancerIpv6InternetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableLoadBalancerIpv6InternetOutcomeCallable enableLoadBalancerIpv6InternetCallable(const Model::EnableLoadBalancerIpv6InternetRequest& request) const; + GetJobStatusOutcome getJobStatus(const Model::GetJobStatusRequest &request)const; + void getJobStatusAsync(const Model::GetJobStatusRequest& request, const GetJobStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetJobStatusOutcomeCallable getJobStatusCallable(const Model::GetJobStatusRequest& request) const; + GetListenerAttributeOutcome getListenerAttribute(const Model::GetListenerAttributeRequest &request)const; + void getListenerAttributeAsync(const Model::GetListenerAttributeRequest& request, const GetListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetListenerAttributeOutcomeCallable getListenerAttributeCallable(const Model::GetListenerAttributeRequest& request) const; + GetListenerHealthStatusOutcome getListenerHealthStatus(const Model::GetListenerHealthStatusRequest &request)const; + void getListenerHealthStatusAsync(const Model::GetListenerHealthStatusRequest& request, const GetListenerHealthStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetListenerHealthStatusOutcomeCallable getListenerHealthStatusCallable(const Model::GetListenerHealthStatusRequest& request) const; + GetLoadBalancerAttributeOutcome getLoadBalancerAttribute(const Model::GetLoadBalancerAttributeRequest &request)const; + void getLoadBalancerAttributeAsync(const Model::GetLoadBalancerAttributeRequest& request, const GetLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetLoadBalancerAttributeOutcomeCallable getLoadBalancerAttributeCallable(const Model::GetLoadBalancerAttributeRequest& request) const; + ListListenerCertificatesOutcome listListenerCertificates(const Model::ListListenerCertificatesRequest &request)const; + void listListenerCertificatesAsync(const Model::ListListenerCertificatesRequest& request, const ListListenerCertificatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListListenerCertificatesOutcomeCallable listListenerCertificatesCallable(const Model::ListListenerCertificatesRequest& request) const; + ListListenersOutcome listListeners(const Model::ListListenersRequest &request)const; + void listListenersAsync(const Model::ListListenersRequest& request, const ListListenersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListListenersOutcomeCallable listListenersCallable(const Model::ListListenersRequest& request) const; + ListLoadBalancersOutcome listLoadBalancers(const Model::ListLoadBalancersRequest &request)const; + void listLoadBalancersAsync(const Model::ListLoadBalancersRequest& request, const ListLoadBalancersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLoadBalancersOutcomeCallable listLoadBalancersCallable(const Model::ListLoadBalancersRequest& request) const; + ListSecurityPolicyOutcome listSecurityPolicy(const Model::ListSecurityPolicyRequest &request)const; + void listSecurityPolicyAsync(const Model::ListSecurityPolicyRequest& request, const ListSecurityPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSecurityPolicyOutcomeCallable listSecurityPolicyCallable(const Model::ListSecurityPolicyRequest& request) const; + ListServerGroupServersOutcome listServerGroupServers(const Model::ListServerGroupServersRequest &request)const; + void listServerGroupServersAsync(const Model::ListServerGroupServersRequest& request, const ListServerGroupServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListServerGroupServersOutcomeCallable listServerGroupServersCallable(const Model::ListServerGroupServersRequest& request) const; + ListServerGroupsOutcome listServerGroups(const Model::ListServerGroupsRequest &request)const; + void listServerGroupsAsync(const Model::ListServerGroupsRequest& request, const ListServerGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListServerGroupsOutcomeCallable listServerGroupsCallable(const Model::ListServerGroupsRequest& request) const; + ListSystemSecurityPolicyOutcome listSystemSecurityPolicy(const Model::ListSystemSecurityPolicyRequest &request)const; + void listSystemSecurityPolicyAsync(const Model::ListSystemSecurityPolicyRequest& request, const ListSystemSecurityPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSystemSecurityPolicyOutcomeCallable listSystemSecurityPolicyCallable(const Model::ListSystemSecurityPolicyRequest& request) const; + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; + LoadBalancerJoinSecurityGroupOutcome loadBalancerJoinSecurityGroup(const Model::LoadBalancerJoinSecurityGroupRequest &request)const; + void loadBalancerJoinSecurityGroupAsync(const Model::LoadBalancerJoinSecurityGroupRequest& request, const LoadBalancerJoinSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LoadBalancerJoinSecurityGroupOutcomeCallable loadBalancerJoinSecurityGroupCallable(const Model::LoadBalancerJoinSecurityGroupRequest& request) const; + LoadBalancerLeaveSecurityGroupOutcome loadBalancerLeaveSecurityGroup(const Model::LoadBalancerLeaveSecurityGroupRequest &request)const; + void loadBalancerLeaveSecurityGroupAsync(const Model::LoadBalancerLeaveSecurityGroupRequest& request, const LoadBalancerLeaveSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LoadBalancerLeaveSecurityGroupOutcomeCallable loadBalancerLeaveSecurityGroupCallable(const Model::LoadBalancerLeaveSecurityGroupRequest& request) const; + MoveResourceGroupOutcome moveResourceGroup(const Model::MoveResourceGroupRequest &request)const; + void moveResourceGroupAsync(const Model::MoveResourceGroupRequest& request, const MoveResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MoveResourceGroupOutcomeCallable moveResourceGroupCallable(const Model::MoveResourceGroupRequest& request) const; + RemoveServersFromServerGroupOutcome removeServersFromServerGroup(const Model::RemoveServersFromServerGroupRequest &request)const; + void removeServersFromServerGroupAsync(const Model::RemoveServersFromServerGroupRequest& request, const RemoveServersFromServerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveServersFromServerGroupOutcomeCallable removeServersFromServerGroupCallable(const Model::RemoveServersFromServerGroupRequest& request) const; + StartListenerOutcome startListener(const Model::StartListenerRequest &request)const; + void startListenerAsync(const Model::StartListenerRequest& request, const StartListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartListenerOutcomeCallable startListenerCallable(const Model::StartListenerRequest& request) const; + StartShiftLoadBalancerZonesOutcome startShiftLoadBalancerZones(const Model::StartShiftLoadBalancerZonesRequest &request)const; + void startShiftLoadBalancerZonesAsync(const Model::StartShiftLoadBalancerZonesRequest& request, const StartShiftLoadBalancerZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartShiftLoadBalancerZonesOutcomeCallable startShiftLoadBalancerZonesCallable(const Model::StartShiftLoadBalancerZonesRequest& request) const; + StopListenerOutcome stopListener(const Model::StopListenerRequest &request)const; + void stopListenerAsync(const Model::StopListenerRequest& request, const StopListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopListenerOutcomeCallable stopListenerCallable(const Model::StopListenerRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; + UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; + void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; + UpdateListenerAttributeOutcome updateListenerAttribute(const Model::UpdateListenerAttributeRequest &request)const; + void updateListenerAttributeAsync(const Model::UpdateListenerAttributeRequest& request, const UpdateListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateListenerAttributeOutcomeCallable updateListenerAttributeCallable(const Model::UpdateListenerAttributeRequest& request) const; + UpdateLoadBalancerAddressTypeConfigOutcome updateLoadBalancerAddressTypeConfig(const Model::UpdateLoadBalancerAddressTypeConfigRequest &request)const; + void updateLoadBalancerAddressTypeConfigAsync(const Model::UpdateLoadBalancerAddressTypeConfigRequest& request, const UpdateLoadBalancerAddressTypeConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateLoadBalancerAddressTypeConfigOutcomeCallable updateLoadBalancerAddressTypeConfigCallable(const Model::UpdateLoadBalancerAddressTypeConfigRequest& request) const; + UpdateLoadBalancerAttributeOutcome updateLoadBalancerAttribute(const Model::UpdateLoadBalancerAttributeRequest &request)const; + void updateLoadBalancerAttributeAsync(const Model::UpdateLoadBalancerAttributeRequest& request, const UpdateLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateLoadBalancerAttributeOutcomeCallable updateLoadBalancerAttributeCallable(const Model::UpdateLoadBalancerAttributeRequest& request) const; + UpdateLoadBalancerProtectionOutcome updateLoadBalancerProtection(const Model::UpdateLoadBalancerProtectionRequest &request)const; + void updateLoadBalancerProtectionAsync(const Model::UpdateLoadBalancerProtectionRequest& request, const UpdateLoadBalancerProtectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateLoadBalancerProtectionOutcomeCallable updateLoadBalancerProtectionCallable(const Model::UpdateLoadBalancerProtectionRequest& request) const; + UpdateLoadBalancerZonesOutcome updateLoadBalancerZones(const Model::UpdateLoadBalancerZonesRequest &request)const; + void updateLoadBalancerZonesAsync(const Model::UpdateLoadBalancerZonesRequest& request, const UpdateLoadBalancerZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateLoadBalancerZonesOutcomeCallable updateLoadBalancerZonesCallable(const Model::UpdateLoadBalancerZonesRequest& request) const; + UpdateSecurityPolicyAttributeOutcome updateSecurityPolicyAttribute(const Model::UpdateSecurityPolicyAttributeRequest &request)const; + void updateSecurityPolicyAttributeAsync(const Model::UpdateSecurityPolicyAttributeRequest& request, const UpdateSecurityPolicyAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSecurityPolicyAttributeOutcomeCallable updateSecurityPolicyAttributeCallable(const Model::UpdateSecurityPolicyAttributeRequest& request) const; + UpdateServerGroupAttributeOutcome updateServerGroupAttribute(const Model::UpdateServerGroupAttributeRequest &request)const; + void updateServerGroupAttributeAsync(const Model::UpdateServerGroupAttributeRequest& request, const UpdateServerGroupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateServerGroupAttributeOutcomeCallable updateServerGroupAttributeCallable(const Model::UpdateServerGroupAttributeRequest& request) const; + UpdateServerGroupServersAttributeOutcome updateServerGroupServersAttribute(const Model::UpdateServerGroupServersAttributeRequest &request)const; + void updateServerGroupServersAttributeAsync(const Model::UpdateServerGroupServersAttributeRequest& request, const UpdateServerGroupServersAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateServerGroupServersAttributeOutcomeCallable updateServerGroupServersAttributeCallable(const Model::UpdateServerGroupServersAttributeRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_NLB_NLBCLIENT_H_ diff --git a/nlb/include/alibabacloud/nlb/NlbExport.h b/nlb/include/alibabacloud/nlb/NlbExport.h new file mode 100644 index 000000000..314c980b8 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/NlbExport.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_NLB_NLBEXPORT_H_ +#define ALIBABACLOUD_NLB_NLBEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_NLB_LIBRARY) +# define ALIBABACLOUD_NLB_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_NLB_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_NLB_EXPORT +#endif + +#endif // !ALIBABACLOUD_NLB_NLBEXPORT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/AddServersToServerGroupRequest.h b/nlb/include/alibabacloud/nlb/model/AddServersToServerGroupRequest.h new file mode 100644 index 000000000..a65979e2e --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/AddServersToServerGroupRequest.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_NLB_MODEL_ADDSERVERSTOSERVERGROUPREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_ADDSERVERSTOSERVERGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT AddServersToServerGroupRequest : public RpcServiceRequest { +public: + struct Servers { + std::string serverId; + std::string serverType; + std::string serverIp; + int port; + int weight; + std::string description; + }; + AddServersToServerGroupRequest(); + ~AddServersToServerGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getServerGroupId() const; + void setServerGroupId(const std::string &serverGroupId); + std::vector getServers() const; + void setServers(const std::vector &servers); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string serverGroupId_; + std::vector servers_; + std::string regionId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_ADDSERVERSTOSERVERGROUPREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/AddServersToServerGroupResult.h b/nlb/include/alibabacloud/nlb/model/AddServersToServerGroupResult.h new file mode 100644 index 000000000..0fccfbfa6 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/AddServersToServerGroupResult.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_NLB_MODEL_ADDSERVERSTOSERVERGROUPRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_ADDSERVERSTOSERVERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT AddServersToServerGroupResult : public ServiceResult + { + public: + + + AddServersToServerGroupResult(); + explicit AddServersToServerGroupResult(const std::string &payload); + ~AddServersToServerGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getServerGroupId()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string serverGroupId_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_ADDSERVERSTOSERVERGROUPRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/AssociateAdditionalCertificatesWithListenerRequest.h b/nlb/include/alibabacloud/nlb/model/AssociateAdditionalCertificatesWithListenerRequest.h new file mode 100644 index 000000000..6c0bca63a --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/AssociateAdditionalCertificatesWithListenerRequest.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_NLB_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT AssociateAdditionalCertificatesWithListenerRequest : public RpcServiceRequest { +public: + AssociateAdditionalCertificatesWithListenerRequest(); + ~AssociateAdditionalCertificatesWithListenerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getAdditionalCertificateIds() const; + void setAdditionalCertificateIds(const std::vector &additionalCertificateIds); + +private: + std::string clientToken_; + std::string listenerId_; + std::string regionId_; + bool dryRun_; + std::vector additionalCertificateIds_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/AssociateAdditionalCertificatesWithListenerResult.h b/nlb/include/alibabacloud/nlb/model/AssociateAdditionalCertificatesWithListenerResult.h new file mode 100644 index 000000000..c95f84047 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/AssociateAdditionalCertificatesWithListenerResult.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_NLB_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT AssociateAdditionalCertificatesWithListenerResult : public ServiceResult + { + public: + + + AssociateAdditionalCertificatesWithListenerResult(); + explicit AssociateAdditionalCertificatesWithListenerResult(const std::string &payload); + ~AssociateAdditionalCertificatesWithListenerResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_ASSOCIATEADDITIONALCERTIFICATESWITHLISTENERRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/AttachCommonBandwidthPackageToLoadBalancerRequest.h b/nlb/include/alibabacloud/nlb/model/AttachCommonBandwidthPackageToLoadBalancerRequest.h new file mode 100644 index 000000000..ca0587284 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/AttachCommonBandwidthPackageToLoadBalancerRequest.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_NLB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT AttachCommonBandwidthPackageToLoadBalancerRequest : public RpcServiceRequest { +public: + AttachCommonBandwidthPackageToLoadBalancerRequest(); + ~AttachCommonBandwidthPackageToLoadBalancerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string clientToken_; + std::string regionId_; + std::string bandwidthPackageId_; + bool dryRun_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/AttachCommonBandwidthPackageToLoadBalancerResult.h b/nlb/include/alibabacloud/nlb/model/AttachCommonBandwidthPackageToLoadBalancerResult.h new file mode 100644 index 000000000..688d1e011 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/AttachCommonBandwidthPackageToLoadBalancerResult.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_NLB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT AttachCommonBandwidthPackageToLoadBalancerResult : public ServiceResult + { + public: + + + AttachCommonBandwidthPackageToLoadBalancerResult(); + explicit AttachCommonBandwidthPackageToLoadBalancerResult(const std::string &payload); + ~AttachCommonBandwidthPackageToLoadBalancerResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_ATTACHCOMMONBANDWIDTHPACKAGETOLOADBALANCERRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/CancelShiftLoadBalancerZonesRequest.h b/nlb/include/alibabacloud/nlb/model/CancelShiftLoadBalancerZonesRequest.h new file mode 100644 index 000000000..74eb2e180 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/CancelShiftLoadBalancerZonesRequest.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_NLB_MODEL_CANCELSHIFTLOADBALANCERZONESREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_CANCELSHIFTLOADBALANCERZONESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT CancelShiftLoadBalancerZonesRequest : public RpcServiceRequest { +public: + struct ZoneMappings { + std::string vSwitchId; + std::string zoneId; + }; + CancelShiftLoadBalancerZonesRequest(); + ~CancelShiftLoadBalancerZonesRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getZoneMappings() const; + void setZoneMappings(const std::vector &zoneMappings); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::vector zoneMappings_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_CANCELSHIFTLOADBALANCERZONESREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/CancelShiftLoadBalancerZonesResult.h b/nlb/include/alibabacloud/nlb/model/CancelShiftLoadBalancerZonesResult.h new file mode 100644 index 000000000..fa95be3a4 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/CancelShiftLoadBalancerZonesResult.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_NLB_MODEL_CANCELSHIFTLOADBALANCERZONESRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_CANCELSHIFTLOADBALANCERZONESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT CancelShiftLoadBalancerZonesResult : public ServiceResult + { + public: + + + CancelShiftLoadBalancerZonesResult(); + explicit CancelShiftLoadBalancerZonesResult(const std::string &payload); + ~CancelShiftLoadBalancerZonesResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_CANCELSHIFTLOADBALANCERZONESRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/CreateListenerRequest.h b/nlb/include/alibabacloud/nlb/model/CreateListenerRequest.h new file mode 100644 index 000000000..c6781b635 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/CreateListenerRequest.h @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLB_MODEL_CREATELISTENERREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_CREATELISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT CreateListenerRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + CreateListenerRequest(); + ~CreateListenerRequest(); + std::vector getCaCertificateIds() const; + void setCaCertificateIds(const std::vector &caCertificateIds); + int getStartPort() const; + void setStartPort(int startPort); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getSecSensorEnabled() const; + void setSecSensorEnabled(bool secSensorEnabled); + std::string getAlpnPolicy() const; + void setAlpnPolicy(const std::string &alpnPolicy); + int getMss() const; + void setMss(int mss); + std::string getServerGroupId() const; + void setServerGroupId(const std::string &serverGroupId); + std::vector getCertificateIds() const; + void setCertificateIds(const std::vector &certificateIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + bool getAlpnEnabled() const; + void setAlpnEnabled(bool alpnEnabled); + int getEndPort() const; + void setEndPort(int endPort); + int getListenerPort() const; + void setListenerPort(int listenerPort); + bool getDryRun() const; + void setDryRun(bool dryRun); + bool getProxyProtocolEnabled() const; + void setProxyProtocolEnabled(bool proxyProtocolEnabled); + int getCps() const; + void setCps(int cps); + std::string getListenerProtocol() const; + void setListenerProtocol(const std::string &listenerProtocol); + std::string getSecurityPolicyId() const; + void setSecurityPolicyId(const std::string &securityPolicyId); + int getIdleTimeout() const; + void setIdleTimeout(int idleTimeout); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + std::string getListenerDescription() const; + void setListenerDescription(const std::string &listenerDescription); + bool getCaEnabled() const; + void setCaEnabled(bool caEnabled); + +private: + std::vector caCertificateIds_; + int startPort_; + std::string clientToken_; + bool secSensorEnabled_; + std::string alpnPolicy_; + int mss_; + std::string serverGroupId_; + std::vector certificateIds_; + std::string regionId_; + std::vector tag_; + bool alpnEnabled_; + int endPort_; + int listenerPort_; + bool dryRun_; + bool proxyProtocolEnabled_; + int cps_; + std::string listenerProtocol_; + std::string securityPolicyId_; + int idleTimeout_; + std::string loadBalancerId_; + std::string listenerDescription_; + bool caEnabled_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_CREATELISTENERREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/CreateListenerResult.h b/nlb/include/alibabacloud/nlb/model/CreateListenerResult.h new file mode 100644 index 000000000..172c2a2d3 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/CreateListenerResult.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_NLB_MODEL_CREATELISTENERRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_CREATELISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT CreateListenerResult : public ServiceResult + { + public: + + + CreateListenerResult(); + explicit CreateListenerResult(const std::string &payload); + ~CreateListenerResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + std::string getListenerId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + std::string listenerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_CREATELISTENERRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/CreateLoadBalancerRequest.h b/nlb/include/alibabacloud/nlb/model/CreateLoadBalancerRequest.h new file mode 100644 index 000000000..c909855c6 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/CreateLoadBalancerRequest.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_NLB_MODEL_CREATELOADBALANCERREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_CREATELOADBALANCERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT CreateLoadBalancerRequest : public RpcServiceRequest { +public: + struct ModificationProtectionConfig { + std::string status; + std::string reason; + }; + struct LoadBalancerBillingConfig { + std::string payType; + }; + struct DeletionProtectionConfig { + bool enabled; + std::string reason; + }; + struct Tag { + std::string key; + std::string value; + }; + struct ZoneMappings { + std::string vSwitchId; + std::string zoneId; + std::string privateIPv4Address; + std::string allocationId; + }; + CreateLoadBalancerRequest(); + ~CreateLoadBalancerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + ModificationProtectionConfig getModificationProtectionConfig() const; + void setModificationProtectionConfig(const ModificationProtectionConfig &modificationProtectionConfig); + LoadBalancerBillingConfig getLoadBalancerBillingConfig() const; + void setLoadBalancerBillingConfig(const LoadBalancerBillingConfig &loadBalancerBillingConfig); + std::string getBizFlag() const; + void setBizFlag(const std::string &bizFlag); + DeletionProtectionConfig getDeletionProtectionConfig() const; + void setDeletionProtectionConfig(const DeletionProtectionConfig &deletionProtectionConfig); + std::string getAddressIpVersion() const; + void setAddressIpVersion(const std::string &addressIpVersion); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getLoadBalancerName() const; + void setLoadBalancerName(const std::string &loadBalancerName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAddressType() const; + void setAddressType(const std::string &addressType); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getZoneMappings() const; + void setZoneMappings(const std::vector &zoneMappings); + std::vector getSecurityGroupIds() const; + void setSecurityGroupIds(const std::vector &securityGroupIds); + std::string getLoadBalancerType() const; + void setLoadBalancerType(const std::string &loadBalancerType); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + std::string clientToken_; + ModificationProtectionConfig modificationProtectionConfig_; + LoadBalancerBillingConfig loadBalancerBillingConfig_; + std::string bizFlag_; + DeletionProtectionConfig deletionProtectionConfig_; + std::string addressIpVersion_; + std::string resourceGroupId_; + std::string loadBalancerName_; + std::string regionId_; + std::string addressType_; + std::vector tag_; + std::string bandwidthPackageId_; + bool dryRun_; + std::vector zoneMappings_; + std::vector securityGroupIds_; + std::string loadBalancerType_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_CREATELOADBALANCERREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/CreateLoadBalancerResult.h b/nlb/include/alibabacloud/nlb/model/CreateLoadBalancerResult.h new file mode 100644 index 000000000..32898067f --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/CreateLoadBalancerResult.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_NLB_MODEL_CREATELOADBALANCERRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_CREATELOADBALANCERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT CreateLoadBalancerResult : public ServiceResult + { + public: + + + CreateLoadBalancerResult(); + explicit CreateLoadBalancerResult(const std::string &payload); + ~CreateLoadBalancerResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getLoadbalancerId()const; + long getOrderId()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string loadbalancerId_; + long orderId_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_CREATELOADBALANCERRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/CreateSecurityPolicyRequest.h b/nlb/include/alibabacloud/nlb/model/CreateSecurityPolicyRequest.h new file mode 100644 index 000000000..546c6d29a --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/CreateSecurityPolicyRequest.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_NLB_MODEL_CREATESECURITYPOLICYREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_CREATESECURITYPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT CreateSecurityPolicyRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + CreateSecurityPolicyRequest(); + ~CreateSecurityPolicyRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getCiphers() const; + void setCiphers(const std::vector &ciphers); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getTlsVersions() const; + void setTlsVersions(const std::vector &tlsVersions); + std::string getSecurityPolicyName() const; + void setSecurityPolicyName(const std::string &securityPolicyName); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string resourceGroupId_; + std::string regionId_; + std::vector ciphers_; + std::vector tag_; + std::vector tlsVersions_; + std::string securityPolicyName_; + bool dryRun_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_CREATESECURITYPOLICYREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/CreateSecurityPolicyResult.h b/nlb/include/alibabacloud/nlb/model/CreateSecurityPolicyResult.h new file mode 100644 index 000000000..e05ee7e7b --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/CreateSecurityPolicyResult.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_NLB_MODEL_CREATESECURITYPOLICYRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_CREATESECURITYPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT CreateSecurityPolicyResult : public ServiceResult + { + public: + + + CreateSecurityPolicyResult(); + explicit CreateSecurityPolicyResult(const std::string &payload); + ~CreateSecurityPolicyResult(); + std::string getSecurityPolicyId()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string securityPolicyId_; + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_CREATESECURITYPOLICYRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/CreateServerGroupRequest.h b/nlb/include/alibabacloud/nlb/model/CreateServerGroupRequest.h new file mode 100644 index 000000000..d616d187a --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/CreateServerGroupRequest.h @@ -0,0 +1,114 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLB_MODEL_CREATESERVERGROUPREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_CREATESERVERGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT CreateServerGroupRequest : public RpcServiceRequest { +public: + struct HealthCheckConfig { + bool healthCheckEnabled; + std::string healthCheckType; + int healthCheckConnectPort; + int healthyThreshold; + int unhealthyThreshold; + int healthCheckConnectTimeout; + int healthCheckInterval; + std::string healthCheckDomain; + std::string healthCheckUrl; + std::string string; + std::vector healthCheckHttpCode; + std::string httpCheckMethod; + }; + struct Tag { + std::string key; + std::string value; + }; + CreateServerGroupRequest(); + ~CreateServerGroupRequest(); + std::string getQuicVersion() const; + void setQuicVersion(const std::string &quicVersion); + std::string getServerGroupName() const; + void setServerGroupName(const std::string &serverGroupName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getPreserveClientIpEnabled() const; + void setPreserveClientIpEnabled(bool preserveClientIpEnabled); + HealthCheckConfig getHealthCheckConfig() const; + void setHealthCheckConfig(const HealthCheckConfig &healthCheckConfig); + std::string getAddressIPVersion() const; + void setAddressIPVersion(const std::string &addressIPVersion); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getProtocol() const; + void setProtocol(const std::string &protocol); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getPersistenceEnabled() const; + void setPersistenceEnabled(bool persistenceEnabled); + int getPersistenceTimeout() const; + void setPersistenceTimeout(int persistenceTimeout); + std::vector getTag() const; + void setTag(const std::vector &tag); + bool getDryRun() const; + void setDryRun(bool dryRun); + bool getConnectionDrainEnabled() const; + void setConnectionDrainEnabled(bool connectionDrainEnabled); + int getConnectionDrainTimeout() const; + void setConnectionDrainTimeout(int connectionDrainTimeout); + bool getAnyPortEnabled() const; + void setAnyPortEnabled(bool anyPortEnabled); + std::string getServerGroupType() const; + void setServerGroupType(const std::string &serverGroupType); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + std::string quicVersion_; + std::string serverGroupName_; + std::string clientToken_; + bool preserveClientIpEnabled_; + HealthCheckConfig healthCheckConfig_; + std::string addressIPVersion_; + std::string scheduler_; + std::string resourceGroupId_; + std::string protocol_; + std::string regionId_; + bool persistenceEnabled_; + int persistenceTimeout_; + std::vector tag_; + bool dryRun_; + bool connectionDrainEnabled_; + int connectionDrainTimeout_; + bool anyPortEnabled_; + std::string serverGroupType_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_CREATESERVERGROUPREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/CreateServerGroupResult.h b/nlb/include/alibabacloud/nlb/model/CreateServerGroupResult.h new file mode 100644 index 000000000..3d1c60c43 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/CreateServerGroupResult.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_NLB_MODEL_CREATESERVERGROUPRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_CREATESERVERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT CreateServerGroupResult : public ServiceResult + { + public: + + + CreateServerGroupResult(); + explicit CreateServerGroupResult(const std::string &payload); + ~CreateServerGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getServerGroupId()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string serverGroupId_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_CREATESERVERGROUPRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/DeleteListenerRequest.h b/nlb/include/alibabacloud/nlb/model/DeleteListenerRequest.h new file mode 100644 index 000000000..2e2a62939 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DeleteListenerRequest.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_NLB_MODEL_DELETELISTENERREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_DELETELISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT DeleteListenerRequest : public RpcServiceRequest { +public: + DeleteListenerRequest(); + ~DeleteListenerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string listenerId_; + std::string regionId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_DELETELISTENERREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/DeleteListenerResult.h b/nlb/include/alibabacloud/nlb/model/DeleteListenerResult.h new file mode 100644 index 000000000..930ad6b55 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DeleteListenerResult.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_NLB_MODEL_DELETELISTENERRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_DELETELISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT DeleteListenerResult : public ServiceResult + { + public: + + + DeleteListenerResult(); + explicit DeleteListenerResult(const std::string &payload); + ~DeleteListenerResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_DELETELISTENERRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/DeleteLoadBalancerRequest.h b/nlb/include/alibabacloud/nlb/model/DeleteLoadBalancerRequest.h new file mode 100644 index 000000000..990bf6bf8 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DeleteLoadBalancerRequest.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_NLB_MODEL_DELETELOADBALANCERREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_DELETELOADBALANCERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT DeleteLoadBalancerRequest : public RpcServiceRequest { +public: + DeleteLoadBalancerRequest(); + ~DeleteLoadBalancerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_DELETELOADBALANCERREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/DeleteLoadBalancerResult.h b/nlb/include/alibabacloud/nlb/model/DeleteLoadBalancerResult.h new file mode 100644 index 000000000..0edb787a5 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DeleteLoadBalancerResult.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_NLB_MODEL_DELETELOADBALANCERRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_DELETELOADBALANCERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT DeleteLoadBalancerResult : public ServiceResult + { + public: + + + DeleteLoadBalancerResult(); + explicit DeleteLoadBalancerResult(const std::string &payload); + ~DeleteLoadBalancerResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_DELETELOADBALANCERRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/DeleteSecurityPolicyRequest.h b/nlb/include/alibabacloud/nlb/model/DeleteSecurityPolicyRequest.h new file mode 100644 index 000000000..cb0bffceb --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DeleteSecurityPolicyRequest.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_NLB_MODEL_DELETESECURITYPOLICYREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_DELETESECURITYPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT DeleteSecurityPolicyRequest : public RpcServiceRequest { +public: + DeleteSecurityPolicyRequest(); + ~DeleteSecurityPolicyRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getSecurityPolicyId() const; + void setSecurityPolicyId(const std::string &securityPolicyId); + +private: + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string securityPolicyId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_DELETESECURITYPOLICYREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/DeleteSecurityPolicyResult.h b/nlb/include/alibabacloud/nlb/model/DeleteSecurityPolicyResult.h new file mode 100644 index 000000000..dcebb32ca --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DeleteSecurityPolicyResult.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_NLB_MODEL_DELETESECURITYPOLICYRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_DELETESECURITYPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT DeleteSecurityPolicyResult : public ServiceResult + { + public: + + + DeleteSecurityPolicyResult(); + explicit DeleteSecurityPolicyResult(const std::string &payload); + ~DeleteSecurityPolicyResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_DELETESECURITYPOLICYRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/DeleteServerGroupRequest.h b/nlb/include/alibabacloud/nlb/model/DeleteServerGroupRequest.h new file mode 100644 index 000000000..80eb83917 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DeleteServerGroupRequest.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_NLB_MODEL_DELETESERVERGROUPREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_DELETESERVERGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT DeleteServerGroupRequest : public RpcServiceRequest { +public: + DeleteServerGroupRequest(); + ~DeleteServerGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getServerGroupId() const; + void setServerGroupId(const std::string &serverGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string serverGroupId_; + std::string regionId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_DELETESERVERGROUPREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/DeleteServerGroupResult.h b/nlb/include/alibabacloud/nlb/model/DeleteServerGroupResult.h new file mode 100644 index 000000000..3097c9210 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DeleteServerGroupResult.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_NLB_MODEL_DELETESERVERGROUPRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_DELETESERVERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT DeleteServerGroupResult : public ServiceResult + { + public: + + + DeleteServerGroupResult(); + explicit DeleteServerGroupResult(const std::string &payload); + ~DeleteServerGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getServerGroupId()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string serverGroupId_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_DELETESERVERGROUPRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/DescribeRegionsRequest.h b/nlb/include/alibabacloud/nlb/model/DescribeRegionsRequest.h new file mode 100644 index 000000000..b100eee18 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DescribeRegionsRequest.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_NLB_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT DescribeRegionsRequest : public RpcServiceRequest { +public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getServiceCode() const; + void setServiceCode(const std::string &serviceCode); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string clientToken_; + std::string serviceCode_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_DESCRIBEREGIONSREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/DescribeRegionsResult.h b/nlb/include/alibabacloud/nlb/model/DescribeRegionsResult.h new file mode 100644 index 000000000..55ec5dbad --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DescribeRegionsResult.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_NLB_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT DescribeRegionsResult : public ServiceResult + { + public: + struct Region + { + std::string regionId; + std::string regionEndpoint; + std::string localName; + }; + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getRegions()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector regions_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/DescribeZonesRequest.h b/nlb/include/alibabacloud/nlb/model/DescribeZonesRequest.h new file mode 100644 index 000000000..34c95d65d --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DescribeZonesRequest.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_NLB_MODEL_DESCRIBEZONESREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_DESCRIBEZONESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT DescribeZonesRequest : public RpcServiceRequest { +public: + DescribeZonesRequest(); + ~DescribeZonesRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getServiceCode() const; + void setServiceCode(const std::string &serviceCode); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::string clientToken_; + std::string regionId_; + std::string serviceCode_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_DESCRIBEZONESREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/DescribeZonesResult.h b/nlb/include/alibabacloud/nlb/model/DescribeZonesResult.h new file mode 100644 index 000000000..ed15d9558 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DescribeZonesResult.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_NLB_MODEL_DESCRIBEZONESRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_DESCRIBEZONESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT DescribeZonesResult : public ServiceResult + { + public: + struct Zone + { + std::string zoneId; + std::string localName; + }; + + + DescribeZonesResult(); + explicit DescribeZonesResult(const std::string &payload); + ~DescribeZonesResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::vector getZones()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::vector zones_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_DESCRIBEZONESRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/DetachCommonBandwidthPackageFromLoadBalancerRequest.h b/nlb/include/alibabacloud/nlb/model/DetachCommonBandwidthPackageFromLoadBalancerRequest.h new file mode 100644 index 000000000..8c21dd105 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DetachCommonBandwidthPackageFromLoadBalancerRequest.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_NLB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT DetachCommonBandwidthPackageFromLoadBalancerRequest : public RpcServiceRequest { +public: + DetachCommonBandwidthPackageFromLoadBalancerRequest(); + ~DetachCommonBandwidthPackageFromLoadBalancerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string clientToken_; + std::string regionId_; + std::string bandwidthPackageId_; + bool dryRun_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/DetachCommonBandwidthPackageFromLoadBalancerResult.h b/nlb/include/alibabacloud/nlb/model/DetachCommonBandwidthPackageFromLoadBalancerResult.h new file mode 100644 index 000000000..8c54a1f3e --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DetachCommonBandwidthPackageFromLoadBalancerResult.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_NLB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT DetachCommonBandwidthPackageFromLoadBalancerResult : public ServiceResult + { + public: + + + DetachCommonBandwidthPackageFromLoadBalancerResult(); + explicit DetachCommonBandwidthPackageFromLoadBalancerResult(const std::string &payload); + ~DetachCommonBandwidthPackageFromLoadBalancerResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_DETACHCOMMONBANDWIDTHPACKAGEFROMLOADBALANCERRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/DisableLoadBalancerIpv6InternetRequest.h b/nlb/include/alibabacloud/nlb/model/DisableLoadBalancerIpv6InternetRequest.h new file mode 100644 index 000000000..dfb698129 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DisableLoadBalancerIpv6InternetRequest.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_NLB_MODEL_DISABLELOADBALANCERIPV6INTERNETREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_DISABLELOADBALANCERIPV6INTERNETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT DisableLoadBalancerIpv6InternetRequest : public RpcServiceRequest { +public: + DisableLoadBalancerIpv6InternetRequest(); + ~DisableLoadBalancerIpv6InternetRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_DISABLELOADBALANCERIPV6INTERNETREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/DisableLoadBalancerIpv6InternetResult.h b/nlb/include/alibabacloud/nlb/model/DisableLoadBalancerIpv6InternetResult.h new file mode 100644 index 000000000..f60b23542 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DisableLoadBalancerIpv6InternetResult.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_NLB_MODEL_DISABLELOADBALANCERIPV6INTERNETRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_DISABLELOADBALANCERIPV6INTERNETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT DisableLoadBalancerIpv6InternetResult : public ServiceResult + { + public: + + + DisableLoadBalancerIpv6InternetResult(); + explicit DisableLoadBalancerIpv6InternetResult(const std::string &payload); + ~DisableLoadBalancerIpv6InternetResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_DISABLELOADBALANCERIPV6INTERNETRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/DisassociateAdditionalCertificatesWithListenerRequest.h b/nlb/include/alibabacloud/nlb/model/DisassociateAdditionalCertificatesWithListenerRequest.h new file mode 100644 index 000000000..bfde58713 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DisassociateAdditionalCertificatesWithListenerRequest.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_NLB_MODEL_DISASSOCIATEADDITIONALCERTIFICATESWITHLISTENERREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_DISASSOCIATEADDITIONALCERTIFICATESWITHLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT DisassociateAdditionalCertificatesWithListenerRequest : public RpcServiceRequest { +public: + DisassociateAdditionalCertificatesWithListenerRequest(); + ~DisassociateAdditionalCertificatesWithListenerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getAdditionalCertificateIds() const; + void setAdditionalCertificateIds(const std::vector &additionalCertificateIds); + +private: + std::string clientToken_; + std::string listenerId_; + std::string regionId_; + bool dryRun_; + std::vector additionalCertificateIds_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_DISASSOCIATEADDITIONALCERTIFICATESWITHLISTENERREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/DisassociateAdditionalCertificatesWithListenerResult.h b/nlb/include/alibabacloud/nlb/model/DisassociateAdditionalCertificatesWithListenerResult.h new file mode 100644 index 000000000..69219cf2d --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/DisassociateAdditionalCertificatesWithListenerResult.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_NLB_MODEL_DISASSOCIATEADDITIONALCERTIFICATESWITHLISTENERRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_DISASSOCIATEADDITIONALCERTIFICATESWITHLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT DisassociateAdditionalCertificatesWithListenerResult : public ServiceResult + { + public: + + + DisassociateAdditionalCertificatesWithListenerResult(); + explicit DisassociateAdditionalCertificatesWithListenerResult(const std::string &payload); + ~DisassociateAdditionalCertificatesWithListenerResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_DISASSOCIATEADDITIONALCERTIFICATESWITHLISTENERRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/EnableLoadBalancerIpv6InternetRequest.h b/nlb/include/alibabacloud/nlb/model/EnableLoadBalancerIpv6InternetRequest.h new file mode 100644 index 000000000..e938240be --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/EnableLoadBalancerIpv6InternetRequest.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_NLB_MODEL_ENABLELOADBALANCERIPV6INTERNETREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_ENABLELOADBALANCERIPV6INTERNETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT EnableLoadBalancerIpv6InternetRequest : public RpcServiceRequest { +public: + EnableLoadBalancerIpv6InternetRequest(); + ~EnableLoadBalancerIpv6InternetRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_ENABLELOADBALANCERIPV6INTERNETREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/EnableLoadBalancerIpv6InternetResult.h b/nlb/include/alibabacloud/nlb/model/EnableLoadBalancerIpv6InternetResult.h new file mode 100644 index 000000000..3cc9774c2 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/EnableLoadBalancerIpv6InternetResult.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_NLB_MODEL_ENABLELOADBALANCERIPV6INTERNETRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_ENABLELOADBALANCERIPV6INTERNETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT EnableLoadBalancerIpv6InternetResult : public ServiceResult + { + public: + + + EnableLoadBalancerIpv6InternetResult(); + explicit EnableLoadBalancerIpv6InternetResult(const std::string &payload); + ~EnableLoadBalancerIpv6InternetResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_ENABLELOADBALANCERIPV6INTERNETRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/GetJobStatusRequest.h b/nlb/include/alibabacloud/nlb/model/GetJobStatusRequest.h new file mode 100644 index 000000000..16a3d9c76 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/GetJobStatusRequest.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_NLB_MODEL_GETJOBSTATUSREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_GETJOBSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT GetJobStatusRequest : public RpcServiceRequest { +public: + GetJobStatusRequest(); + ~GetJobStatusRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getJobId() const; + void setJobId(const std::string &jobId); + +private: + std::string clientToken_; + std::string jobId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_GETJOBSTATUSREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/GetJobStatusResult.h b/nlb/include/alibabacloud/nlb/model/GetJobStatusResult.h new file mode 100644 index 000000000..04c22e985 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/GetJobStatusResult.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_NLB_MODEL_GETJOBSTATUSRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_GETJOBSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT GetJobStatusResult : public ServiceResult + { + public: + + + GetJobStatusResult(); + explicit GetJobStatusResult(const std::string &payload); + ~GetJobStatusResult(); + std::string getStatus()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_GETJOBSTATUSRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/GetListenerAttributeRequest.h b/nlb/include/alibabacloud/nlb/model/GetListenerAttributeRequest.h new file mode 100644 index 000000000..b47daad9b --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/GetListenerAttributeRequest.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_NLB_MODEL_GETLISTENERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_GETLISTENERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT GetListenerAttributeRequest : public RpcServiceRequest { +public: + GetListenerAttributeRequest(); + ~GetListenerAttributeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string listenerId_; + std::string regionId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_GETLISTENERATTRIBUTEREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/GetListenerAttributeResult.h b/nlb/include/alibabacloud/nlb/model/GetListenerAttributeResult.h new file mode 100644 index 000000000..5fbbf49e8 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/GetListenerAttributeResult.h @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLB_MODEL_GETLISTENERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_GETLISTENERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT GetListenerAttributeResult : public ServiceResult + { + public: + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + + + GetListenerAttributeResult(); + explicit GetListenerAttributeResult(const std::string &payload); + ~GetListenerAttributeResult(); + std::string getMessage()const; + int getCps()const; + int getIdleTimeout()const; + std::string getLoadBalancerId()const; + std::string getDynamicMessage()const; + std::string getListenerProtocol()const; + bool getSuccess()const; + std::string getSecurityPolicyId()const; + std::string getListenerStatus()const; + std::string getListenerDescription()const; + std::string getAlpnPolicy()const; + std::vector getCaCertificateIds()const; + std::vector getCertificateIds()const; + int getHttpStatusCode()const; + bool getSecSensorEnabled()const; + std::string getDynamicCode()const; + std::vector getTags()const; + bool getCaEnabled()const; + int getListenerPort()const; + std::string getStartPort()const; + std::string getServerGroupId()const; + int getMss()const; + std::string getCode()const; + std::string getEndPort()const; + bool getProxyProtocolEnabled()const; + std::string getRegionId()const; + std::string getListenerId()const; + bool getAlpnEnabled()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int cps_; + int idleTimeout_; + std::string loadBalancerId_; + std::string dynamicMessage_; + std::string listenerProtocol_; + bool success_; + std::string securityPolicyId_; + std::string listenerStatus_; + std::string listenerDescription_; + std::string alpnPolicy_; + std::vector caCertificateIds_; + std::vector certificateIds_; + int httpStatusCode_; + bool secSensorEnabled_; + std::string dynamicCode_; + std::vector tags_; + bool caEnabled_; + int listenerPort_; + std::string startPort_; + std::string serverGroupId_; + int mss_; + std::string code_; + std::string endPort_; + bool proxyProtocolEnabled_; + std::string regionId_; + std::string listenerId_; + bool alpnEnabled_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_GETLISTENERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/GetListenerHealthStatusRequest.h b/nlb/include/alibabacloud/nlb/model/GetListenerHealthStatusRequest.h new file mode 100644 index 000000000..49dc2c3f0 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/GetListenerHealthStatusRequest.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_NLB_MODEL_GETLISTENERHEALTHSTATUSREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_GETLISTENERHEALTHSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT GetListenerHealthStatusRequest : public RpcServiceRequest { +public: + GetListenerHealthStatusRequest(); + ~GetListenerHealthStatusRequest(); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string listenerId_; + std::string nextToken_; + std::string regionId_; + int maxResults_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_GETLISTENERHEALTHSTATUSREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/GetListenerHealthStatusResult.h b/nlb/include/alibabacloud/nlb/model/GetListenerHealthStatusResult.h new file mode 100644 index 000000000..5de95d02d --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/GetListenerHealthStatusResult.h @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLB_MODEL_GETLISTENERHEALTHSTATUSRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_GETLISTENERHEALTHSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT GetListenerHealthStatusResult : public ServiceResult + { + public: + struct ListenerHealthStatusItem + { + struct ServerGroupInfo + { + struct AbnormalServer + { + struct Reason + { + std::string reasonCode; + }; + std::string status; + std::string serverId; + int port; + std::string serverIp; + Reason reason; + }; + std::vector nonNormalServers; + std::string serverGroupId; + bool heathCheckEnabled; + }; + int listenerPort; + std::vector serverGroupInfos; + std::string listenerProtocol; + std::string listenerId; + }; + + + GetListenerHealthStatusResult(); + explicit GetListenerHealthStatusResult(const std::string &payload); + ~GetListenerHealthStatusResult(); + std::vector getListenerHealthStatus()const; + int getTotalCount()const; + std::string getMessage()const; + std::string getNextToken()const; + int getMaxResults()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector listenerHealthStatus_; + int totalCount_; + std::string message_; + std::string nextToken_; + int maxResults_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_GETLISTENERHEALTHSTATUSRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/GetLoadBalancerAttributeRequest.h b/nlb/include/alibabacloud/nlb/model/GetLoadBalancerAttributeRequest.h new file mode 100644 index 000000000..4ecae26f7 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/GetLoadBalancerAttributeRequest.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_NLB_MODEL_GETLOADBALANCERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_GETLOADBALANCERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT GetLoadBalancerAttributeRequest : public RpcServiceRequest { +public: + GetLoadBalancerAttributeRequest(); + ~GetLoadBalancerAttributeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_GETLOADBALANCERATTRIBUTEREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/GetLoadBalancerAttributeResult.h b/nlb/include/alibabacloud/nlb/model/GetLoadBalancerAttributeResult.h new file mode 100644 index 000000000..3859b2e10 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/GetLoadBalancerAttributeResult.h @@ -0,0 +1,159 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLB_MODEL_GETLOADBALANCERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_GETLOADBALANCERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT GetLoadBalancerAttributeResult : public ServiceResult + { + public: + struct LoadBalancerBillingConfig + { + int internetBandwidth; + std::string payType; + std::string internetChargeType; + }; + struct DeletionProtectionConfig + { + bool enabled; + std::string enabledTime; + std::string reason; + }; + struct ModificationProtectionConfig + { + std::string status; + std::string enabledTime; + std::string reason; + }; + struct OperationLock + { + std::string lockReason; + std::string lockType; + }; + struct ZoneMapping + { + struct LoadBalancerAddress + { + std::string eniId; + std::string publicIPv4Address; + std::string allocationId; + std::string privateIPv4HcStatus; + std::string privateIPv6HcStatus; + std::string ipv6Address; + std::string privateIPv4Address; + }; + std::string status; + std::string zoneId; + std::string vSwitchId; + std::string eipType; + std::vector loadBalancerAddresses; + }; + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + + + GetLoadBalancerAttributeResult(); + explicit GetLoadBalancerAttributeResult(const std::string &payload); + ~GetLoadBalancerAttributeResult(); + std::string getAddressIpVersion()const; + std::string getMessage()const; + std::string getResourceGroupId()const; + int getCps()const; + std::string getLoadBalancerId()const; + std::string getDynamicMessage()const; + std::vector getZoneMappings()const; + std::string getDNSName()const; + bool getSuccess()const; + std::string getIpv6AddressType()const; + bool getCrossZoneEnabled()const; + std::string getLoadBalancerType()const; + long getCapacityUnitCount()const; + DeletionProtectionConfig getDeletionProtectionConfig()const; + std::string getSysSecurityGroupId()const; + int getHttpStatusCode()const; + std::string getBandwidthPackageId()const; + std::string getDynamicCode()const; + std::vector getTags()const; + LoadBalancerBillingConfig getLoadBalancerBillingConfig()const; + std::string getCreateTime()const; + ModificationProtectionConfig getModificationProtectionConfig()const; + std::vector getSecurityGroupIds()const; + std::string getCode()const; + std::vector getOperationLocks()const; + std::string getLoadBalancerName()const; + std::string getVpcId()const; + bool getTrafficAffinityEnabled()const; + std::string getRegionId()const; + std::string getAddressType()const; + std::string getLoadBalancerStatus()const; + std::string getLoadBalancerBusinessStatus()const; + + protected: + void parse(const std::string &payload); + private: + std::string addressIpVersion_; + std::string message_; + std::string resourceGroupId_; + int cps_; + std::string loadBalancerId_; + std::string dynamicMessage_; + std::vector zoneMappings_; + std::string dNSName_; + bool success_; + std::string ipv6AddressType_; + bool crossZoneEnabled_; + std::string loadBalancerType_; + long capacityUnitCount_; + DeletionProtectionConfig deletionProtectionConfig_; + std::string sysSecurityGroupId_; + int httpStatusCode_; + std::string bandwidthPackageId_; + std::string dynamicCode_; + std::vector tags_; + LoadBalancerBillingConfig loadBalancerBillingConfig_; + std::string createTime_; + ModificationProtectionConfig modificationProtectionConfig_; + std::vector securityGroupIds_; + std::string code_; + std::vector operationLocks_; + std::string loadBalancerName_; + std::string vpcId_; + bool trafficAffinityEnabled_; + std::string regionId_; + std::string addressType_; + std::string loadBalancerStatus_; + std::string loadBalancerBusinessStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_GETLOADBALANCERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/ListListenerCertificatesRequest.h b/nlb/include/alibabacloud/nlb/model/ListListenerCertificatesRequest.h new file mode 100644 index 000000000..0f33b971f --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/ListListenerCertificatesRequest.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_NLB_MODEL_LISTLISTENERCERTIFICATESREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_LISTLISTENERCERTIFICATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT ListListenerCertificatesRequest : public RpcServiceRequest { +public: + ListListenerCertificatesRequest(); + ~ListListenerCertificatesRequest(); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getCertType() const; + void setCertType(const std::string &certType); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string listenerId_; + std::string certType_; + std::string nextToken_; + std::string regionId_; + int maxResults_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_LISTLISTENERCERTIFICATESREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/ListListenerCertificatesResult.h b/nlb/include/alibabacloud/nlb/model/ListListenerCertificatesResult.h new file mode 100644 index 000000000..9725ac334 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/ListListenerCertificatesResult.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_NLB_MODEL_LISTLISTENERCERTIFICATESRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_LISTLISTENERCERTIFICATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT ListListenerCertificatesResult : public ServiceResult + { + public: + struct Certificate + { + bool isDefault; + std::string status; + std::string certificateType; + std::string certificateId; + }; + + + ListListenerCertificatesResult(); + explicit ListListenerCertificatesResult(const std::string &payload); + ~ListListenerCertificatesResult(); + int getTotalCount()const; + std::string getMessage()const; + std::string getNextToken()const; + int getMaxResults()const; + std::vector getCertificates()const; + std::vector getCertificateIds()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + std::string nextToken_; + int maxResults_; + std::vector certificates_; + std::vector certificateIds_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_LISTLISTENERCERTIFICATESRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/ListListenersRequest.h b/nlb/include/alibabacloud/nlb/model/ListListenersRequest.h new file mode 100644 index 000000000..803bbb65d --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/ListListenersRequest.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLB_MODEL_LISTLISTENERSREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_LISTLISTENERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT ListListenersRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + ListListenersRequest(); + ~ListListenersRequest(); + std::vector getLoadBalancerIds() const; + void setLoadBalancerIds(const std::vector &loadBalancerIds); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getListenerProtocol() const; + void setListenerProtocol(const std::string &listenerProtocol); + std::vector getListenerIds() const; + void setListenerIds(const std::vector &listenerIds); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::vector loadBalancerIds_; + std::string nextToken_; + std::string regionId_; + std::vector tag_; + std::string listenerProtocol_; + std::vector listenerIds_; + int maxResults_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_LISTLISTENERSREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/ListListenersResult.h b/nlb/include/alibabacloud/nlb/model/ListListenersResult.h new file mode 100644 index 000000000..267a4ef91 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/ListListenersResult.h @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLB_MODEL_LISTLISTENERSRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_LISTLISTENERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT ListListenersResult : public ServiceResult + { + public: + struct ListenerInfo + { + struct TagModels + { + std::string value; + std::string key; + }; + bool caEnabled; + int listenerPort; + std::string startPort; + int cps; + std::string serverGroupId; + int idleTimeout; + std::string loadBalancerId; + std::string listenerProtocol; + int mss; + std::string securityPolicyId; + std::string listenerStatus; + std::string listenerDescription; + std::string alpnPolicy; + std::vector caCertificateIds; + std::string endPort; + bool proxyProtocolEnabled; + std::vector certificateIds; + bool secSensorEnabled; + std::string regionId; + std::vector tags; + std::string listenerId; + bool alpnEnabled; + }; + + + ListListenersResult(); + explicit ListListenersResult(const std::string &payload); + ~ListListenersResult(); + std::vector getListeners()const; + int getTotalCount()const; + std::string getMessage()const; + std::string getNextToken()const; + int getMaxResults()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector listeners_; + int totalCount_; + std::string message_; + std::string nextToken_; + int maxResults_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_LISTLISTENERSRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/ListLoadBalancersRequest.h b/nlb/include/alibabacloud/nlb/model/ListLoadBalancersRequest.h new file mode 100644 index 000000000..c2d4e104c --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/ListLoadBalancersRequest.h @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLB_MODEL_LISTLOADBALANCERSREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_LISTLOADBALANCERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT ListLoadBalancersRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + ListLoadBalancersRequest(); + ~ListLoadBalancersRequest(); + std::vector getLoadBalancerNames() const; + void setLoadBalancerNames(const std::vector &loadBalancerNames); + std::vector getLoadBalancerIds() const; + void setLoadBalancerIds(const std::vector &loadBalancerIds); + std::string getAddressIpVersion() const; + void setAddressIpVersion(const std::string &addressIpVersion); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDNSName() const; + void setDNSName(const std::string &dNSName); + std::string getAddressType() const; + void setAddressType(const std::string &addressType); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getVpcIds() const; + void setVpcIds(const std::vector &vpcIds); + std::string getAddress() const; + void setAddress(const std::string &address); + std::string getLoadBalancerBusinessStatus() const; + void setLoadBalancerBusinessStatus(const std::string &loadBalancerBusinessStatus); + std::string getLoadBalancerStatus() const; + void setLoadBalancerStatus(const std::string &loadBalancerStatus); + std::string getLoadBalancerType() const; + void setLoadBalancerType(const std::string &loadBalancerType); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getIpv6AddressType() const; + void setIpv6AddressType(const std::string &ipv6AddressType); + +private: + std::vector loadBalancerNames_; + std::vector loadBalancerIds_; + std::string addressIpVersion_; + std::string resourceGroupId_; + std::string nextToken_; + std::string regionId_; + std::string dNSName_; + std::string addressType_; + std::vector tag_; + std::vector vpcIds_; + std::string address_; + std::string loadBalancerBusinessStatus_; + std::string loadBalancerStatus_; + std::string loadBalancerType_; + std::string zoneId_; + int maxResults_; + std::string ipv6AddressType_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_LISTLOADBALANCERSREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/ListLoadBalancersResult.h b/nlb/include/alibabacloud/nlb/model/ListLoadBalancersResult.h new file mode 100644 index 000000000..94bf6ae8c --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/ListLoadBalancersResult.h @@ -0,0 +1,144 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLB_MODEL_LISTLOADBALANCERSRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_LISTLOADBALANCERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT ListLoadBalancersResult : public ServiceResult + { + public: + struct LoadbalancerInfo + { + struct LoadBalancerBillingConfig + { + int internetBandwidth; + std::string payType; + std::string internetChargeType; + }; + struct DeletionProtectionConfig + { + bool enabled; + std::string enabledTime; + std::string reason; + }; + struct ModificationProtectionConfig + { + std::string status; + std::string enabledTime; + std::string reason; + }; + struct OperationLock + { + std::string lockReason; + std::string lockType; + }; + struct ZoneMapping + { + struct LoadBalancerAddress + { + std::string eniId; + std::string publicIPv4Address; + std::string allocationId; + std::string privateIPv4HcStatus; + std::string privateIPv6HcStatus; + std::string ipv6Address; + std::string privateIPv4Address; + }; + std::string status; + std::string zoneId; + std::string vSwitchId; + std::string eipType; + std::vector loadBalancerAddresses; + }; + struct TagModels + { + std::string value; + std::string key; + }; + std::string addressIpVersion; + std::string resourceGroupId; + std::string loadBalancerId; + std::vector zoneMappings; + std::string dNSName; + std::string ipv6AddressType; + bool crossZoneEnabled; + std::string loadBalancerType; + long capacityUnitCount; + DeletionProtectionConfig deletionProtectionConfig; + std::string sysSecurityGroupId; + std::string bandwidthPackageId; + std::vector tags; + LoadBalancerBillingConfig loadBalancerBillingConfig; + std::string createTime; + ModificationProtectionConfig modificationProtectionConfig; + std::vector securityGroupIds; + std::vector operationLocks; + std::string loadBalancerName; + std::string vpcId; + bool trafficAffinityEnabled; + std::string regionId; + std::string addressType; + std::string loadBalancerStatus; + std::string loadBalancerBusinessStatus; + long aliUid; + }; + + + ListLoadBalancersResult(); + explicit ListLoadBalancersResult(const std::string &payload); + ~ListLoadBalancersResult(); + int getTotalCount()const; + std::string getMessage()const; + std::string getNextToken()const; + int getMaxResults()const; + int getHttpStatusCode()const; + std::vector getLoadBalancers()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + std::string nextToken_; + int maxResults_; + int httpStatusCode_; + std::vector loadBalancers_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_LISTLOADBALANCERSRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/ListSecurityPolicyRequest.h b/nlb/include/alibabacloud/nlb/model/ListSecurityPolicyRequest.h new file mode 100644 index 000000000..ff99c0724 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/ListSecurityPolicyRequest.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLB_MODEL_LISTSECURITYPOLICYREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_LISTSECURITYPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT ListSecurityPolicyRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + ListSecurityPolicyRequest(); + ~ListSecurityPolicyRequest(); + std::vector getSecurityPolicyNames() const; + void setSecurityPolicyNames(const std::vector &securityPolicyNames); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getSecurityPolicyIds() const; + void setSecurityPolicyIds(const std::vector &securityPolicyIds); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::vector securityPolicyNames_; + std::string resourceGroupId_; + std::string nextToken_; + std::string regionId_; + std::vector tag_; + std::vector securityPolicyIds_; + int maxResults_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_LISTSECURITYPOLICYREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/ListSecurityPolicyResult.h b/nlb/include/alibabacloud/nlb/model/ListSecurityPolicyResult.h new file mode 100644 index 000000000..e45267848 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/ListSecurityPolicyResult.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_NLB_MODEL_LISTSECURITYPOLICYRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_LISTSECURITYPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT ListSecurityPolicyResult : public ServiceResult + { + public: + struct SecurityPolicie + { + struct Tag + { + std::string value; + std::string key; + }; + struct RelatedListener + { + long listenerPort; + std::string loadBalancerId; + std::string listenerProtocol; + std::string listenerId; + }; + std::string tlsVersion; + std::string ciphers; + std::string securityPolicyId; + std::string resourceGroupId; + std::string securityPolicyStatus; + std::string securityPolicyName; + std::string regionId; + std::vector relatedListeners; + std::vector tags; + }; + + + ListSecurityPolicyResult(); + explicit ListSecurityPolicyResult(const std::string &payload); + ~ListSecurityPolicyResult(); + int getTotalCount()const; + std::string getMessage()const; + std::string getNextToken()const; + int getMaxResults()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + std::vector getSecurityPolicies()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + std::string nextToken_; + int maxResults_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + std::vector securityPolicies_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_LISTSECURITYPOLICYRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/ListServerGroupServersRequest.h b/nlb/include/alibabacloud/nlb/model/ListServerGroupServersRequest.h new file mode 100644 index 000000000..6a14fdd60 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/ListServerGroupServersRequest.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_NLB_MODEL_LISTSERVERGROUPSERVERSREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_LISTSERVERGROUPSERVERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT ListServerGroupServersRequest : public RpcServiceRequest { +public: + ListServerGroupServersRequest(); + ~ListServerGroupServersRequest(); + std::string getServerGroupId() const; + void setServerGroupId(const std::string &serverGroupId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getServerIds() const; + void setServerIds(const std::vector &serverIds); + std::vector getServerIps() const; + void setServerIps(const std::vector &serverIps); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string serverGroupId_; + std::string nextToken_; + std::string regionId_; + std::vector serverIds_; + std::vector serverIps_; + int maxResults_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_LISTSERVERGROUPSERVERSREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/ListServerGroupServersResult.h b/nlb/include/alibabacloud/nlb/model/ListServerGroupServersResult.h new file mode 100644 index 000000000..637f2c35e --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/ListServerGroupServersResult.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_NLB_MODEL_LISTSERVERGROUPSERVERSRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_LISTSERVERGROUPSERVERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT ListServerGroupServersResult : public ServiceResult + { + public: + struct Server + { + std::string status; + std::string serverType; + std::string serverId; + std::string description; + std::string zoneId; + std::string serverIp; + int port; + std::string serverGroupId; + int weight; + }; + + + ListServerGroupServersResult(); + explicit ListServerGroupServersResult(const std::string &payload); + ~ListServerGroupServersResult(); + int getTotalCount()const; + std::string getMessage()const; + std::string getNextToken()const; + int getMaxResults()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::vector getServers()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + std::string nextToken_; + int maxResults_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::vector servers_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_LISTSERVERGROUPSERVERSRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/ListServerGroupsRequest.h b/nlb/include/alibabacloud/nlb/model/ListServerGroupsRequest.h new file mode 100644 index 000000000..0b1aab87e --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/ListServerGroupsRequest.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_NLB_MODEL_LISTSERVERGROUPSREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_LISTSERVERGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT ListServerGroupsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + ListServerGroupsRequest(); + ~ListServerGroupsRequest(); + std::vector getServerGroupNames() const; + void setServerGroupNames(const std::vector &serverGroupNames); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getServerGroupIds() const; + void setServerGroupIds(const std::vector &serverGroupIds); + std::string getServerGroupType() const; + void setServerGroupType(const std::string &serverGroupType); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::vector serverGroupNames_; + std::string resourceGroupId_; + std::string nextToken_; + std::string regionId_; + std::vector tag_; + std::vector serverGroupIds_; + std::string serverGroupType_; + std::string vpcId_; + int maxResults_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_LISTSERVERGROUPSREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/ListServerGroupsResult.h b/nlb/include/alibabacloud/nlb/model/ListServerGroupsResult.h new file mode 100644 index 000000000..398c7c0ae --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/ListServerGroupsResult.h @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLB_MODEL_LISTSERVERGROUPSRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_LISTSERVERGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT ListServerGroupsResult : public ServiceResult + { + public: + struct ServerGroup + { + struct HealthCheck + { + int healthCheckInterval; + int healthCheckConnectPort; + std::string healthCheckUrl; + int unhealthyThreshold; + int healthyThreshold; + std::string httpCheckMethod; + int healthCheckConnectTimeout; + std::string healthCheckDomain; + bool healthCheckEnabled; + std::vector healthCheckHttpCode; + std::string healthCheckType; + }; + struct Tag + { + std::string value; + std::string key; + }; + std::vector relatedLoadBalancerIds; + std::string resourceGroupId; + std::string scheduler; + std::string addressIPVersion; + HealthCheck healthCheck; + std::string serverGroupId; + int serverCount; + std::string serverGroupType; + bool preserveClientIpEnabled; + std::string serverGroupStatus; + bool persistenceEnabled; + bool connectionDrainEnabled; + int connectionDrainTimeout; + int persistenceTimeout; + std::string vpcId; + bool anyPortEnabled; + std::string quicVersion; + std::string regionId; + std::string protocol; + std::vector tags; + std::string serverGroupName; + long aliUid; + }; + + + ListServerGroupsResult(); + explicit ListServerGroupsResult(const std::string &payload); + ~ListServerGroupsResult(); + int getTotalCount()const; + std::string getMessage()const; + std::string getNextToken()const; + std::vector getServerGroups()const; + int getMaxResults()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + std::string nextToken_; + std::vector serverGroups_; + int maxResults_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_LISTSERVERGROUPSRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/ListSystemSecurityPolicyRequest.h b/nlb/include/alibabacloud/nlb/model/ListSystemSecurityPolicyRequest.h new file mode 100644 index 000000000..9e3f941bb --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/ListSystemSecurityPolicyRequest.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_NLB_MODEL_LISTSYSTEMSECURITYPOLICYREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_LISTSYSTEMSECURITYPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT ListSystemSecurityPolicyRequest : public RpcServiceRequest { +public: + ListSystemSecurityPolicyRequest(); + ~ListSystemSecurityPolicyRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_LISTSYSTEMSECURITYPOLICYREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/ListSystemSecurityPolicyResult.h b/nlb/include/alibabacloud/nlb/model/ListSystemSecurityPolicyResult.h new file mode 100644 index 000000000..0adb13867 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/ListSystemSecurityPolicyResult.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_NLB_MODEL_LISTSYSTEMSECURITYPOLICYRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_LISTSYSTEMSECURITYPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT ListSystemSecurityPolicyResult : public ServiceResult + { + public: + struct SecurityPolicie + { + std::string tlsVersion; + std::string ciphers; + std::string securityPolicyId; + std::string securityPolicyName; + }; + + + ListSystemSecurityPolicyResult(); + explicit ListSystemSecurityPolicyResult(const std::string &payload); + ~ListSystemSecurityPolicyResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + std::vector getSecurityPolicies()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + std::vector securityPolicies_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_LISTSYSTEMSECURITYPOLICYRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/ListTagResourcesRequest.h b/nlb/include/alibabacloud/nlb/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..7eb9a2a4b --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/ListTagResourcesRequest.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_NLB_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT ListTagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + int getMaxResults() const; + void setMaxResults(int maxResults); + int getPage() const; + void setPage(int page); + +private: + std::string nextToken_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::vector resourceId_; + std::string resourceType_; + int maxResults_; + int page_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/ListTagResourcesResult.h b/nlb/include/alibabacloud/nlb/model/ListTagResourcesResult.h new file mode 100644 index 000000000..692b747cd --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/ListTagResourcesResult.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_NLB_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct TagResultModelList + { + std::string regionNo; + std::string category; + std::string scope; + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + long aliUid; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + int getTotalCount()const; + std::string getNextToken()const; + std::vector getTagResources()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + std::vector tagResources_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/LoadBalancerJoinSecurityGroupRequest.h b/nlb/include/alibabacloud/nlb/model/LoadBalancerJoinSecurityGroupRequest.h new file mode 100644 index 000000000..f24a06663 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/LoadBalancerJoinSecurityGroupRequest.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_NLB_MODEL_LOADBALANCERJOINSECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_LOADBALANCERJOINSECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT LoadBalancerJoinSecurityGroupRequest : public RpcServiceRequest { +public: + LoadBalancerJoinSecurityGroupRequest(); + ~LoadBalancerJoinSecurityGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getSecurityGroupIds() const; + void setSecurityGroupIds(const std::vector &securityGroupIds); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::vector securityGroupIds_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_LOADBALANCERJOINSECURITYGROUPREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/LoadBalancerJoinSecurityGroupResult.h b/nlb/include/alibabacloud/nlb/model/LoadBalancerJoinSecurityGroupResult.h new file mode 100644 index 000000000..8ee409d8d --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/LoadBalancerJoinSecurityGroupResult.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_NLB_MODEL_LOADBALANCERJOINSECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_LOADBALANCERJOINSECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT LoadBalancerJoinSecurityGroupResult : public ServiceResult + { + public: + + + LoadBalancerJoinSecurityGroupResult(); + explicit LoadBalancerJoinSecurityGroupResult(const std::string &payload); + ~LoadBalancerJoinSecurityGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_LOADBALANCERJOINSECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/LoadBalancerLeaveSecurityGroupRequest.h b/nlb/include/alibabacloud/nlb/model/LoadBalancerLeaveSecurityGroupRequest.h new file mode 100644 index 000000000..f9e9637de --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/LoadBalancerLeaveSecurityGroupRequest.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_NLB_MODEL_LOADBALANCERLEAVESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_LOADBALANCERLEAVESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT LoadBalancerLeaveSecurityGroupRequest : public RpcServiceRequest { +public: + LoadBalancerLeaveSecurityGroupRequest(); + ~LoadBalancerLeaveSecurityGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getSecurityGroupIds() const; + void setSecurityGroupIds(const std::vector &securityGroupIds); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::vector securityGroupIds_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_LOADBALANCERLEAVESECURITYGROUPREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/LoadBalancerLeaveSecurityGroupResult.h b/nlb/include/alibabacloud/nlb/model/LoadBalancerLeaveSecurityGroupResult.h new file mode 100644 index 000000000..fce25b4f6 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/LoadBalancerLeaveSecurityGroupResult.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_NLB_MODEL_LOADBALANCERLEAVESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_LOADBALANCERLEAVESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT LoadBalancerLeaveSecurityGroupResult : public ServiceResult + { + public: + + + LoadBalancerLeaveSecurityGroupResult(); + explicit LoadBalancerLeaveSecurityGroupResult(const std::string &payload); + ~LoadBalancerLeaveSecurityGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_LOADBALANCERLEAVESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/MoveResourceGroupRequest.h b/nlb/include/alibabacloud/nlb/model/MoveResourceGroupRequest.h new file mode 100644 index 000000000..fd38235d4 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/MoveResourceGroupRequest.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_NLB_MODEL_MOVERESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_MOVERESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT MoveResourceGroupRequest : public RpcServiceRequest { +public: + MoveResourceGroupRequest(); + ~MoveResourceGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getChannel() const; + void setChannel(const std::string &channel); + std::string getOwnerIdLoginEmail() const; + void setOwnerIdLoginEmail(const std::string &ownerIdLoginEmail); + std::string getResourceDescription() const; + void setResourceDescription(const std::string &resourceDescription); + std::string getCallerBidLoginEmail() const; + void setCallerBidLoginEmail(const std::string &callerBidLoginEmail); + std::string getCallerUidLoginEmail() const; + void setCallerUidLoginEmail(const std::string &callerUidLoginEmail); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRequestContent() const; + void setRequestContent(const std::string &requestContent); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getNewResourceGroupId() const; + void setNewResourceGroupId(const std::string &newResourceGroupId); + std::string getServiceCode() const; + void setServiceCode(const std::string &serviceCode); + std::string getResourceName() const; + void setResourceName(const std::string &resourceName); + +private: + std::string clientToken_; + std::string channel_; + std::string ownerIdLoginEmail_; + std::string resourceDescription_; + std::string callerBidLoginEmail_; + std::string callerUidLoginEmail_; + std::string regionId_; + std::string requestContent_; + std::string resourceId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string resourceType_; + std::string newResourceGroupId_; + std::string serviceCode_; + std::string resourceName_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_MOVERESOURCEGROUPREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/MoveResourceGroupResult.h b/nlb/include/alibabacloud/nlb/model/MoveResourceGroupResult.h new file mode 100644 index 000000000..7aadeb66c --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/MoveResourceGroupResult.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_NLB_MODEL_MOVERESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_MOVERESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT MoveResourceGroupResult : public ServiceResult + { + public: + struct Data + { + std::string resourceId; + std::string jobId; + }; + + + MoveResourceGroupResult(); + explicit MoveResourceGroupResult(const std::string &payload); + ~MoveResourceGroupResult(); + int getHttpStatusCode()const; + Data getData()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int httpStatusCode_; + Data data_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_MOVERESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/RemoveServersFromServerGroupRequest.h b/nlb/include/alibabacloud/nlb/model/RemoveServersFromServerGroupRequest.h new file mode 100644 index 000000000..29b0eba7a --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/RemoveServersFromServerGroupRequest.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_NLB_MODEL_REMOVESERVERSFROMSERVERGROUPREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_REMOVESERVERSFROMSERVERGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT RemoveServersFromServerGroupRequest : public RpcServiceRequest { +public: + struct Servers { + std::string serverId; + std::string serverType; + std::string serverIp; + int port; + }; + RemoveServersFromServerGroupRequest(); + ~RemoveServersFromServerGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getServerGroupId() const; + void setServerGroupId(const std::string &serverGroupId); + std::vector getServers() const; + void setServers(const std::vector &servers); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string serverGroupId_; + std::vector servers_; + std::string regionId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_REMOVESERVERSFROMSERVERGROUPREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/RemoveServersFromServerGroupResult.h b/nlb/include/alibabacloud/nlb/model/RemoveServersFromServerGroupResult.h new file mode 100644 index 000000000..10d472d1a --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/RemoveServersFromServerGroupResult.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_NLB_MODEL_REMOVESERVERSFROMSERVERGROUPRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_REMOVESERVERSFROMSERVERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT RemoveServersFromServerGroupResult : public ServiceResult + { + public: + + + RemoveServersFromServerGroupResult(); + explicit RemoveServersFromServerGroupResult(const std::string &payload); + ~RemoveServersFromServerGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getServerGroupId()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string serverGroupId_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_REMOVESERVERSFROMSERVERGROUPRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/StartListenerRequest.h b/nlb/include/alibabacloud/nlb/model/StartListenerRequest.h new file mode 100644 index 000000000..022956739 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/StartListenerRequest.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_NLB_MODEL_STARTLISTENERREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_STARTLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT StartListenerRequest : public RpcServiceRequest { +public: + StartListenerRequest(); + ~StartListenerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string listenerId_; + std::string regionId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_STARTLISTENERREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/StartListenerResult.h b/nlb/include/alibabacloud/nlb/model/StartListenerResult.h new file mode 100644 index 000000000..857470e71 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/StartListenerResult.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_NLB_MODEL_STARTLISTENERRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_STARTLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT StartListenerResult : public ServiceResult + { + public: + + + StartListenerResult(); + explicit StartListenerResult(const std::string &payload); + ~StartListenerResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_STARTLISTENERRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/StartShiftLoadBalancerZonesRequest.h b/nlb/include/alibabacloud/nlb/model/StartShiftLoadBalancerZonesRequest.h new file mode 100644 index 000000000..d42b1b80e --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/StartShiftLoadBalancerZonesRequest.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_NLB_MODEL_STARTSHIFTLOADBALANCERZONESREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_STARTSHIFTLOADBALANCERZONESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT StartShiftLoadBalancerZonesRequest : public RpcServiceRequest { +public: + struct ZoneMappings { + std::string vSwitchId; + std::string zoneId; + }; + StartShiftLoadBalancerZonesRequest(); + ~StartShiftLoadBalancerZonesRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getZoneMappings() const; + void setZoneMappings(const std::vector &zoneMappings); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::vector zoneMappings_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_STARTSHIFTLOADBALANCERZONESREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/StartShiftLoadBalancerZonesResult.h b/nlb/include/alibabacloud/nlb/model/StartShiftLoadBalancerZonesResult.h new file mode 100644 index 000000000..71ef14b0e --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/StartShiftLoadBalancerZonesResult.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_NLB_MODEL_STARTSHIFTLOADBALANCERZONESRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_STARTSHIFTLOADBALANCERZONESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT StartShiftLoadBalancerZonesResult : public ServiceResult + { + public: + + + StartShiftLoadBalancerZonesResult(); + explicit StartShiftLoadBalancerZonesResult(const std::string &payload); + ~StartShiftLoadBalancerZonesResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_STARTSHIFTLOADBALANCERZONESRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/StopListenerRequest.h b/nlb/include/alibabacloud/nlb/model/StopListenerRequest.h new file mode 100644 index 000000000..92b7629dd --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/StopListenerRequest.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_NLB_MODEL_STOPLISTENERREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_STOPLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT StopListenerRequest : public RpcServiceRequest { +public: + StopListenerRequest(); + ~StopListenerRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string listenerId_; + std::string regionId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_STOPLISTENERREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/StopListenerResult.h b/nlb/include/alibabacloud/nlb/model/StopListenerResult.h new file mode 100644 index 000000000..4f22a60cd --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/StopListenerResult.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_NLB_MODEL_STOPLISTENERRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_STOPLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT StopListenerResult : public ServiceResult + { + public: + + + StopListenerResult(); + explicit StopListenerResult(const std::string &payload); + ~StopListenerResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_STOPLISTENERRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/TagResourcesRequest.h b/nlb/include/alibabacloud/nlb/model/TagResourcesRequest.h new file mode 100644 index 000000000..6cca8d1cb --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/TagResourcesRequest.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_NLB_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT TagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + TagResourcesRequest(); + ~TagResourcesRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::string clientToken_; + std::string regionId_; + std::vector tag_; + std::vector resourceId_; + bool dryRun_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/TagResourcesResult.h b/nlb/include/alibabacloud/nlb/model/TagResourcesResult.h new file mode 100644 index 000000000..a050dda8b --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/TagResourcesResult.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_NLB_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/UntagResourcesRequest.h b/nlb/include/alibabacloud/nlb/model/UntagResourcesRequest.h new file mode 100644 index 000000000..af7fe16f3 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UntagResourcesRequest.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_NLB_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT UntagResourcesRequest : public RpcServiceRequest { +public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getAll() const; + void setAll(bool all); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::vector getTagKey() const; + void setTagKey(const std::vector &tagKey); + +private: + std::string clientToken_; + std::string regionId_; + bool all_; + std::vector resourceId_; + bool dryRun_; + std::string resourceType_; + std::vector tagKey_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/UntagResourcesResult.h b/nlb/include/alibabacloud/nlb/model/UntagResourcesResult.h new file mode 100644 index 000000000..8824624aa --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UntagResourcesResult.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_NLB_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/UpdateListenerAttributeRequest.h b/nlb/include/alibabacloud/nlb/model/UpdateListenerAttributeRequest.h new file mode 100644 index 000000000..d652a1dd7 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UpdateListenerAttributeRequest.h @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLB_MODEL_UPDATELISTENERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_UPDATELISTENERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT UpdateListenerAttributeRequest : public RpcServiceRequest { +public: + UpdateListenerAttributeRequest(); + ~UpdateListenerAttributeRequest(); + std::vector getCaCertificateIds() const; + void setCaCertificateIds(const std::vector &caCertificateIds); + int getStartPort() const; + void setStartPort(int startPort); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getSecSensorEnabled() const; + void setSecSensorEnabled(bool secSensorEnabled); + std::string getAlpnPolicy() const; + void setAlpnPolicy(const std::string &alpnPolicy); + int getMss() const; + void setMss(int mss); + std::string getServerGroupId() const; + void setServerGroupId(const std::string &serverGroupId); + std::string getListenerId() const; + void setListenerId(const std::string &listenerId); + std::vector getCertificateIds() const; + void setCertificateIds(const std::vector &certificateIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getAlpnEnabled() const; + void setAlpnEnabled(bool alpnEnabled); + int getEndPort() const; + void setEndPort(int endPort); + bool getDryRun() const; + void setDryRun(bool dryRun); + bool getProxyProtocolEnabled() const; + void setProxyProtocolEnabled(bool proxyProtocolEnabled); + int getCps() const; + void setCps(int cps); + std::string getSecurityPolicyId() const; + void setSecurityPolicyId(const std::string &securityPolicyId); + int getIdleTimeout() const; + void setIdleTimeout(int idleTimeout); + std::string getListenerDescription() const; + void setListenerDescription(const std::string &listenerDescription); + bool getCaEnabled() const; + void setCaEnabled(bool caEnabled); + +private: + std::vector caCertificateIds_; + int startPort_; + std::string clientToken_; + bool secSensorEnabled_; + std::string alpnPolicy_; + int mss_; + std::string serverGroupId_; + std::string listenerId_; + std::vector certificateIds_; + std::string regionId_; + bool alpnEnabled_; + int endPort_; + bool dryRun_; + bool proxyProtocolEnabled_; + int cps_; + std::string securityPolicyId_; + int idleTimeout_; + std::string listenerDescription_; + bool caEnabled_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_UPDATELISTENERATTRIBUTEREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/UpdateListenerAttributeResult.h b/nlb/include/alibabacloud/nlb/model/UpdateListenerAttributeResult.h new file mode 100644 index 000000000..f968c8f41 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UpdateListenerAttributeResult.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_NLB_MODEL_UPDATELISTENERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_UPDATELISTENERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT UpdateListenerAttributeResult : public ServiceResult + { + public: + + + UpdateListenerAttributeResult(); + explicit UpdateListenerAttributeResult(const std::string &payload); + ~UpdateListenerAttributeResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_UPDATELISTENERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerAddressTypeConfigRequest.h b/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerAddressTypeConfigRequest.h new file mode 100644 index 000000000..438d277b8 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerAddressTypeConfigRequest.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_NLB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT UpdateLoadBalancerAddressTypeConfigRequest : public RpcServiceRequest { +public: + struct ZoneMappings { + std::string vSwitchId; + std::string zoneId; + std::string allocationId; + std::string eipType; + }; + UpdateLoadBalancerAddressTypeConfigRequest(); + ~UpdateLoadBalancerAddressTypeConfigRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAddressType() const; + void setAddressType(const std::string &addressType); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getZoneMappings() const; + void setZoneMappings(const std::vector &zoneMappings); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string clientToken_; + std::string regionId_; + std::string addressType_; + bool dryRun_; + std::vector zoneMappings_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerAddressTypeConfigResult.h b/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerAddressTypeConfigResult.h new file mode 100644 index 000000000..7df0256d8 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerAddressTypeConfigResult.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_NLB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT UpdateLoadBalancerAddressTypeConfigResult : public ServiceResult + { + public: + + + UpdateLoadBalancerAddressTypeConfigResult(); + explicit UpdateLoadBalancerAddressTypeConfigResult(const std::string &payload); + ~UpdateLoadBalancerAddressTypeConfigResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_UPDATELOADBALANCERADDRESSTYPECONFIGRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerAttributeRequest.h b/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerAttributeRequest.h new file mode 100644 index 000000000..f5ad833a4 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerAttributeRequest.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_NLB_MODEL_UPDATELOADBALANCERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_UPDATELOADBALANCERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT UpdateLoadBalancerAttributeRequest : public RpcServiceRequest { +public: + UpdateLoadBalancerAttributeRequest(); + ~UpdateLoadBalancerAttributeRequest(); + bool getCrossZoneEnabled() const; + void setCrossZoneEnabled(bool crossZoneEnabled); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getLoadBalancerName() const; + void setLoadBalancerName(const std::string &loadBalancerName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + int getCps() const; + void setCps(int cps); + bool getTrafficAffinityEnabled() const; + void setTrafficAffinityEnabled(bool trafficAffinityEnabled); + std::vector getSecurityGroupIds() const; + void setSecurityGroupIds(const std::vector &securityGroupIds); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + bool crossZoneEnabled_; + std::string clientToken_; + std::string loadBalancerName_; + std::string regionId_; + bool dryRun_; + int cps_; + bool trafficAffinityEnabled_; + std::vector securityGroupIds_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_UPDATELOADBALANCERATTRIBUTEREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerAttributeResult.h b/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerAttributeResult.h new file mode 100644 index 000000000..daae74966 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerAttributeResult.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_NLB_MODEL_UPDATELOADBALANCERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_UPDATELOADBALANCERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT UpdateLoadBalancerAttributeResult : public ServiceResult + { + public: + + + UpdateLoadBalancerAttributeResult(); + explicit UpdateLoadBalancerAttributeResult(const std::string &payload); + ~UpdateLoadBalancerAttributeResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_UPDATELOADBALANCERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerProtectionRequest.h b/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerProtectionRequest.h new file mode 100644 index 000000000..c4de2b821 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerProtectionRequest.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_NLB_MODEL_UPDATELOADBALANCERPROTECTIONREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_UPDATELOADBALANCERPROTECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT UpdateLoadBalancerProtectionRequest : public RpcServiceRequest { +public: + UpdateLoadBalancerProtectionRequest(); + ~UpdateLoadBalancerProtectionRequest(); + std::string getDeletionProtectionReason() const; + void setDeletionProtectionReason(const std::string &deletionProtectionReason); + std::string getModificationProtectionReason() const; + void setModificationProtectionReason(const std::string &modificationProtectionReason); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getDeletionProtectionEnabled() const; + void setDeletionProtectionEnabled(bool deletionProtectionEnabled); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getModificationProtectionStatus() const; + void setModificationProtectionStatus(const std::string &modificationProtectionStatus); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string deletionProtectionReason_; + std::string modificationProtectionReason_; + std::string clientToken_; + bool deletionProtectionEnabled_; + std::string regionId_; + bool dryRun_; + std::string modificationProtectionStatus_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_UPDATELOADBALANCERPROTECTIONREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerProtectionResult.h b/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerProtectionResult.h new file mode 100644 index 000000000..c779fd4f8 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerProtectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLB_MODEL_UPDATELOADBALANCERPROTECTIONRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_UPDATELOADBALANCERPROTECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT UpdateLoadBalancerProtectionResult : public ServiceResult + { + public: + + + UpdateLoadBalancerProtectionResult(); + explicit UpdateLoadBalancerProtectionResult(const std::string &payload); + ~UpdateLoadBalancerProtectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_UPDATELOADBALANCERPROTECTIONRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerZonesRequest.h b/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerZonesRequest.h new file mode 100644 index 000000000..fbf0bb9a2 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerZonesRequest.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_NLB_MODEL_UPDATELOADBALANCERZONESREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_UPDATELOADBALANCERZONESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT UpdateLoadBalancerZonesRequest : public RpcServiceRequest { +public: + struct ZoneMappings { + std::string vSwitchId; + std::string zoneId; + std::string privateIPv4Address; + std::string allocationId; + std::string eipType; + }; + UpdateLoadBalancerZonesRequest(); + ~UpdateLoadBalancerZonesRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::vector getZoneMappings() const; + void setZoneMappings(const std::vector &zoneMappings); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string clientToken_; + std::string regionId_; + bool dryRun_; + std::vector zoneMappings_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_UPDATELOADBALANCERZONESREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerZonesResult.h b/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerZonesResult.h new file mode 100644 index 000000000..fcf31dfa8 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UpdateLoadBalancerZonesResult.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_NLB_MODEL_UPDATELOADBALANCERZONESRESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_UPDATELOADBALANCERZONESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT UpdateLoadBalancerZonesResult : public ServiceResult + { + public: + + + UpdateLoadBalancerZonesResult(); + explicit UpdateLoadBalancerZonesResult(const std::string &payload); + ~UpdateLoadBalancerZonesResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_UPDATELOADBALANCERZONESRESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/UpdateSecurityPolicyAttributeRequest.h b/nlb/include/alibabacloud/nlb/model/UpdateSecurityPolicyAttributeRequest.h new file mode 100644 index 000000000..2050afe38 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UpdateSecurityPolicyAttributeRequest.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_NLB_MODEL_UPDATESECURITYPOLICYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_UPDATESECURITYPOLICYATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT UpdateSecurityPolicyAttributeRequest : public RpcServiceRequest { +public: + UpdateSecurityPolicyAttributeRequest(); + ~UpdateSecurityPolicyAttributeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getCiphers() const; + void setCiphers(const std::vector &ciphers); + std::vector getTlsVersions() const; + void setTlsVersions(const std::vector &tlsVersions); + std::string getSecurityPolicyName() const; + void setSecurityPolicyName(const std::string &securityPolicyName); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getSecurityPolicyId() const; + void setSecurityPolicyId(const std::string &securityPolicyId); + +private: + std::string clientToken_; + std::string regionId_; + std::vector ciphers_; + std::vector tlsVersions_; + std::string securityPolicyName_; + bool dryRun_; + std::string securityPolicyId_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_UPDATESECURITYPOLICYATTRIBUTEREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/UpdateSecurityPolicyAttributeResult.h b/nlb/include/alibabacloud/nlb/model/UpdateSecurityPolicyAttributeResult.h new file mode 100644 index 000000000..1a72776fe --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UpdateSecurityPolicyAttributeResult.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_NLB_MODEL_UPDATESECURITYPOLICYATTRIBUTERESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_UPDATESECURITYPOLICYATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT UpdateSecurityPolicyAttributeResult : public ServiceResult + { + public: + + + UpdateSecurityPolicyAttributeResult(); + explicit UpdateSecurityPolicyAttributeResult(const std::string &payload); + ~UpdateSecurityPolicyAttributeResult(); + std::string getSecurityPolicyId()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string securityPolicyId_; + std::string message_; + int httpStatusCode_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_UPDATESECURITYPOLICYATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/UpdateServerGroupAttributeRequest.h b/nlb/include/alibabacloud/nlb/model/UpdateServerGroupAttributeRequest.h new file mode 100644 index 000000000..608d11247 --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UpdateServerGroupAttributeRequest.h @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_NLB_MODEL_UPDATESERVERGROUPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_UPDATESERVERGROUPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT UpdateServerGroupAttributeRequest : public RpcServiceRequest { +public: + struct HealthCheckConfig { + bool healthCheckEnabled; + std::string healthCheckType; + int healthCheckConnectPort; + int healthyThreshold; + int unhealthyThreshold; + int healthCheckConnectTimeout; + int healthCheckInterval; + std::string healthCheckDomain; + std::string healthCheckUrl; + std::string string; + std::vector healthCheckHttpCode; + std::string httpCheckMethod; + }; + UpdateServerGroupAttributeRequest(); + ~UpdateServerGroupAttributeRequest(); + std::string getQuicVersion() const; + void setQuicVersion(const std::string &quicVersion); + std::string getServerGroupName() const; + void setServerGroupName(const std::string &serverGroupName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getPreserveClientIpEnabled() const; + void setPreserveClientIpEnabled(bool preserveClientIpEnabled); + HealthCheckConfig getHealthCheckConfig() const; + void setHealthCheckConfig(const HealthCheckConfig &healthCheckConfig); + std::string getServerGroupId() const; + void setServerGroupId(const std::string &serverGroupId); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getPersistenceEnabled() const; + void setPersistenceEnabled(bool persistenceEnabled); + int getPersistenceTimeout() const; + void setPersistenceTimeout(int persistenceTimeout); + bool getDryRun() const; + void setDryRun(bool dryRun); + bool getConnectionDrainEnabled() const; + void setConnectionDrainEnabled(bool connectionDrainEnabled); + int getConnectionDrainTimeout() const; + void setConnectionDrainTimeout(int connectionDrainTimeout); + +private: + std::string quicVersion_; + std::string serverGroupName_; + std::string clientToken_; + bool preserveClientIpEnabled_; + HealthCheckConfig healthCheckConfig_; + std::string serverGroupId_; + std::string scheduler_; + std::string regionId_; + bool persistenceEnabled_; + int persistenceTimeout_; + bool dryRun_; + bool connectionDrainEnabled_; + int connectionDrainTimeout_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_UPDATESERVERGROUPATTRIBUTEREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/UpdateServerGroupAttributeResult.h b/nlb/include/alibabacloud/nlb/model/UpdateServerGroupAttributeResult.h new file mode 100644 index 000000000..a7006262f --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UpdateServerGroupAttributeResult.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_NLB_MODEL_UPDATESERVERGROUPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_UPDATESERVERGROUPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT UpdateServerGroupAttributeResult : public ServiceResult + { + public: + + + UpdateServerGroupAttributeResult(); + explicit UpdateServerGroupAttributeResult(const std::string &payload); + ~UpdateServerGroupAttributeResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getServerGroupId()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string serverGroupId_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_UPDATESERVERGROUPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/nlb/include/alibabacloud/nlb/model/UpdateServerGroupServersAttributeRequest.h b/nlb/include/alibabacloud/nlb/model/UpdateServerGroupServersAttributeRequest.h new file mode 100644 index 000000000..730daad6b --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UpdateServerGroupServersAttributeRequest.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_NLB_MODEL_UPDATESERVERGROUPSERVERSATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_NLB_MODEL_UPDATESERVERGROUPSERVERSATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Nlb { +namespace Model { +class ALIBABACLOUD_NLB_EXPORT UpdateServerGroupServersAttributeRequest : public RpcServiceRequest { +public: + struct Servers { + std::string serverId; + std::string serverType; + std::string serverIp; + int port; + int weight; + std::string description; + }; + UpdateServerGroupServersAttributeRequest(); + ~UpdateServerGroupServersAttributeRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getServerGroupId() const; + void setServerGroupId(const std::string &serverGroupId); + std::vector getServers() const; + void setServers(const std::vector &servers); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getDryRun() const; + void setDryRun(bool dryRun); + +private: + std::string clientToken_; + std::string serverGroupId_; + std::vector servers_; + std::string regionId_; + bool dryRun_; +}; +} // namespace Model +} // namespace Nlb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_NLB_MODEL_UPDATESERVERGROUPSERVERSATTRIBUTEREQUEST_H_ diff --git a/nlb/include/alibabacloud/nlb/model/UpdateServerGroupServersAttributeResult.h b/nlb/include/alibabacloud/nlb/model/UpdateServerGroupServersAttributeResult.h new file mode 100644 index 000000000..4cc889a0b --- /dev/null +++ b/nlb/include/alibabacloud/nlb/model/UpdateServerGroupServersAttributeResult.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_NLB_MODEL_UPDATESERVERGROUPSERVERSATTRIBUTERESULT_H_ +#define ALIBABACLOUD_NLB_MODEL_UPDATESERVERGROUPSERVERSATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Nlb + { + namespace Model + { + class ALIBABACLOUD_NLB_EXPORT UpdateServerGroupServersAttributeResult : public ServiceResult + { + public: + + + UpdateServerGroupServersAttributeResult(); + explicit UpdateServerGroupServersAttributeResult(const std::string &payload); + ~UpdateServerGroupServersAttributeResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getServerGroupId()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getCode()const; + bool getSuccess()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string serverGroupId_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string code_; + bool success_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_NLB_MODEL_UPDATESERVERGROUPSERVERSATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/nlb/src/NlbClient.cc b/nlb/src/NlbClient.cc new file mode 100644 index 000000000..cce1cdca5 --- /dev/null +++ b/nlb/src/NlbClient.cc @@ -0,0 +1,1745 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY 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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +namespace +{ + const std::string SERVICE_NAME = "Nlb"; +} + +NlbClient::NlbClient(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, "nlb"); +} + +NlbClient::NlbClient(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, "nlb"); +} + +NlbClient::NlbClient(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, "nlb"); +} + +NlbClient::~NlbClient() +{} + +NlbClient::AddServersToServerGroupOutcome NlbClient::addServersToServerGroup(const AddServersToServerGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddServersToServerGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddServersToServerGroupOutcome(AddServersToServerGroupResult(outcome.result())); + else + return AddServersToServerGroupOutcome(outcome.error()); +} + +void NlbClient::addServersToServerGroupAsync(const AddServersToServerGroupRequest& request, const AddServersToServerGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addServersToServerGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::AddServersToServerGroupOutcomeCallable NlbClient::addServersToServerGroupCallable(const AddServersToServerGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addServersToServerGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::AssociateAdditionalCertificatesWithListenerOutcome NlbClient::associateAdditionalCertificatesWithListener(const AssociateAdditionalCertificatesWithListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AssociateAdditionalCertificatesWithListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AssociateAdditionalCertificatesWithListenerOutcome(AssociateAdditionalCertificatesWithListenerResult(outcome.result())); + else + return AssociateAdditionalCertificatesWithListenerOutcome(outcome.error()); +} + +void NlbClient::associateAdditionalCertificatesWithListenerAsync(const AssociateAdditionalCertificatesWithListenerRequest& request, const AssociateAdditionalCertificatesWithListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, associateAdditionalCertificatesWithListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::AssociateAdditionalCertificatesWithListenerOutcomeCallable NlbClient::associateAdditionalCertificatesWithListenerCallable(const AssociateAdditionalCertificatesWithListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->associateAdditionalCertificatesWithListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::AttachCommonBandwidthPackageToLoadBalancerOutcome NlbClient::attachCommonBandwidthPackageToLoadBalancer(const AttachCommonBandwidthPackageToLoadBalancerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachCommonBandwidthPackageToLoadBalancerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachCommonBandwidthPackageToLoadBalancerOutcome(AttachCommonBandwidthPackageToLoadBalancerResult(outcome.result())); + else + return AttachCommonBandwidthPackageToLoadBalancerOutcome(outcome.error()); +} + +void NlbClient::attachCommonBandwidthPackageToLoadBalancerAsync(const AttachCommonBandwidthPackageToLoadBalancerRequest& request, const AttachCommonBandwidthPackageToLoadBalancerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachCommonBandwidthPackageToLoadBalancer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::AttachCommonBandwidthPackageToLoadBalancerOutcomeCallable NlbClient::attachCommonBandwidthPackageToLoadBalancerCallable(const AttachCommonBandwidthPackageToLoadBalancerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachCommonBandwidthPackageToLoadBalancer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::CancelShiftLoadBalancerZonesOutcome NlbClient::cancelShiftLoadBalancerZones(const CancelShiftLoadBalancerZonesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelShiftLoadBalancerZonesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelShiftLoadBalancerZonesOutcome(CancelShiftLoadBalancerZonesResult(outcome.result())); + else + return CancelShiftLoadBalancerZonesOutcome(outcome.error()); +} + +void NlbClient::cancelShiftLoadBalancerZonesAsync(const CancelShiftLoadBalancerZonesRequest& request, const CancelShiftLoadBalancerZonesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelShiftLoadBalancerZones(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::CancelShiftLoadBalancerZonesOutcomeCallable NlbClient::cancelShiftLoadBalancerZonesCallable(const CancelShiftLoadBalancerZonesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelShiftLoadBalancerZones(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::CreateListenerOutcome NlbClient::createListener(const CreateListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateListenerOutcome(CreateListenerResult(outcome.result())); + else + return CreateListenerOutcome(outcome.error()); +} + +void NlbClient::createListenerAsync(const CreateListenerRequest& request, const CreateListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::CreateListenerOutcomeCallable NlbClient::createListenerCallable(const CreateListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::CreateLoadBalancerOutcome NlbClient::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 NlbClient::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)); +} + +NlbClient::CreateLoadBalancerOutcomeCallable NlbClient::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(); +} + +NlbClient::CreateSecurityPolicyOutcome NlbClient::createSecurityPolicy(const CreateSecurityPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSecurityPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSecurityPolicyOutcome(CreateSecurityPolicyResult(outcome.result())); + else + return CreateSecurityPolicyOutcome(outcome.error()); +} + +void NlbClient::createSecurityPolicyAsync(const CreateSecurityPolicyRequest& request, const CreateSecurityPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSecurityPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::CreateSecurityPolicyOutcomeCallable NlbClient::createSecurityPolicyCallable(const CreateSecurityPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSecurityPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::CreateServerGroupOutcome NlbClient::createServerGroup(const CreateServerGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateServerGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateServerGroupOutcome(CreateServerGroupResult(outcome.result())); + else + return CreateServerGroupOutcome(outcome.error()); +} + +void NlbClient::createServerGroupAsync(const CreateServerGroupRequest& request, const CreateServerGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createServerGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::CreateServerGroupOutcomeCallable NlbClient::createServerGroupCallable(const CreateServerGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createServerGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::DeleteListenerOutcome NlbClient::deleteListener(const DeleteListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteListenerOutcome(DeleteListenerResult(outcome.result())); + else + return DeleteListenerOutcome(outcome.error()); +} + +void NlbClient::deleteListenerAsync(const DeleteListenerRequest& request, const DeleteListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::DeleteListenerOutcomeCallable NlbClient::deleteListenerCallable(const DeleteListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::DeleteLoadBalancerOutcome NlbClient::deleteLoadBalancer(const DeleteLoadBalancerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteLoadBalancerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteLoadBalancerOutcome(DeleteLoadBalancerResult(outcome.result())); + else + return DeleteLoadBalancerOutcome(outcome.error()); +} + +void NlbClient::deleteLoadBalancerAsync(const DeleteLoadBalancerRequest& request, const DeleteLoadBalancerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteLoadBalancer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::DeleteLoadBalancerOutcomeCallable NlbClient::deleteLoadBalancerCallable(const DeleteLoadBalancerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteLoadBalancer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::DeleteSecurityPolicyOutcome NlbClient::deleteSecurityPolicy(const DeleteSecurityPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSecurityPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSecurityPolicyOutcome(DeleteSecurityPolicyResult(outcome.result())); + else + return DeleteSecurityPolicyOutcome(outcome.error()); +} + +void NlbClient::deleteSecurityPolicyAsync(const DeleteSecurityPolicyRequest& request, const DeleteSecurityPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSecurityPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::DeleteSecurityPolicyOutcomeCallable NlbClient::deleteSecurityPolicyCallable(const DeleteSecurityPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSecurityPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::DeleteServerGroupOutcome NlbClient::deleteServerGroup(const DeleteServerGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteServerGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteServerGroupOutcome(DeleteServerGroupResult(outcome.result())); + else + return DeleteServerGroupOutcome(outcome.error()); +} + +void NlbClient::deleteServerGroupAsync(const DeleteServerGroupRequest& request, const DeleteServerGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteServerGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::DeleteServerGroupOutcomeCallable NlbClient::deleteServerGroupCallable(const DeleteServerGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteServerGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::DescribeRegionsOutcome NlbClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void NlbClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::DescribeRegionsOutcomeCallable NlbClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::DescribeZonesOutcome NlbClient::describeZones(const DescribeZonesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeZonesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeZonesOutcome(DescribeZonesResult(outcome.result())); + else + return DescribeZonesOutcome(outcome.error()); +} + +void NlbClient::describeZonesAsync(const DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeZones(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::DescribeZonesOutcomeCallable NlbClient::describeZonesCallable(const DescribeZonesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeZones(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::DetachCommonBandwidthPackageFromLoadBalancerOutcome NlbClient::detachCommonBandwidthPackageFromLoadBalancer(const DetachCommonBandwidthPackageFromLoadBalancerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetachCommonBandwidthPackageFromLoadBalancerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachCommonBandwidthPackageFromLoadBalancerOutcome(DetachCommonBandwidthPackageFromLoadBalancerResult(outcome.result())); + else + return DetachCommonBandwidthPackageFromLoadBalancerOutcome(outcome.error()); +} + +void NlbClient::detachCommonBandwidthPackageFromLoadBalancerAsync(const DetachCommonBandwidthPackageFromLoadBalancerRequest& request, const DetachCommonBandwidthPackageFromLoadBalancerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachCommonBandwidthPackageFromLoadBalancer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::DetachCommonBandwidthPackageFromLoadBalancerOutcomeCallable NlbClient::detachCommonBandwidthPackageFromLoadBalancerCallable(const DetachCommonBandwidthPackageFromLoadBalancerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachCommonBandwidthPackageFromLoadBalancer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::DisableLoadBalancerIpv6InternetOutcome NlbClient::disableLoadBalancerIpv6Internet(const DisableLoadBalancerIpv6InternetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableLoadBalancerIpv6InternetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableLoadBalancerIpv6InternetOutcome(DisableLoadBalancerIpv6InternetResult(outcome.result())); + else + return DisableLoadBalancerIpv6InternetOutcome(outcome.error()); +} + +void NlbClient::disableLoadBalancerIpv6InternetAsync(const DisableLoadBalancerIpv6InternetRequest& request, const DisableLoadBalancerIpv6InternetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableLoadBalancerIpv6Internet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::DisableLoadBalancerIpv6InternetOutcomeCallable NlbClient::disableLoadBalancerIpv6InternetCallable(const DisableLoadBalancerIpv6InternetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableLoadBalancerIpv6Internet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::DisassociateAdditionalCertificatesWithListenerOutcome NlbClient::disassociateAdditionalCertificatesWithListener(const DisassociateAdditionalCertificatesWithListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisassociateAdditionalCertificatesWithListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisassociateAdditionalCertificatesWithListenerOutcome(DisassociateAdditionalCertificatesWithListenerResult(outcome.result())); + else + return DisassociateAdditionalCertificatesWithListenerOutcome(outcome.error()); +} + +void NlbClient::disassociateAdditionalCertificatesWithListenerAsync(const DisassociateAdditionalCertificatesWithListenerRequest& request, const DisassociateAdditionalCertificatesWithListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disassociateAdditionalCertificatesWithListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::DisassociateAdditionalCertificatesWithListenerOutcomeCallable NlbClient::disassociateAdditionalCertificatesWithListenerCallable(const DisassociateAdditionalCertificatesWithListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disassociateAdditionalCertificatesWithListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::EnableLoadBalancerIpv6InternetOutcome NlbClient::enableLoadBalancerIpv6Internet(const EnableLoadBalancerIpv6InternetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableLoadBalancerIpv6InternetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableLoadBalancerIpv6InternetOutcome(EnableLoadBalancerIpv6InternetResult(outcome.result())); + else + return EnableLoadBalancerIpv6InternetOutcome(outcome.error()); +} + +void NlbClient::enableLoadBalancerIpv6InternetAsync(const EnableLoadBalancerIpv6InternetRequest& request, const EnableLoadBalancerIpv6InternetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableLoadBalancerIpv6Internet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::EnableLoadBalancerIpv6InternetOutcomeCallable NlbClient::enableLoadBalancerIpv6InternetCallable(const EnableLoadBalancerIpv6InternetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableLoadBalancerIpv6Internet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::GetJobStatusOutcome NlbClient::getJobStatus(const GetJobStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetJobStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetJobStatusOutcome(GetJobStatusResult(outcome.result())); + else + return GetJobStatusOutcome(outcome.error()); +} + +void NlbClient::getJobStatusAsync(const GetJobStatusRequest& request, const GetJobStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getJobStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::GetJobStatusOutcomeCallable NlbClient::getJobStatusCallable(const GetJobStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getJobStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::GetListenerAttributeOutcome NlbClient::getListenerAttribute(const GetListenerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetListenerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetListenerAttributeOutcome(GetListenerAttributeResult(outcome.result())); + else + return GetListenerAttributeOutcome(outcome.error()); +} + +void NlbClient::getListenerAttributeAsync(const GetListenerAttributeRequest& request, const GetListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getListenerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::GetListenerAttributeOutcomeCallable NlbClient::getListenerAttributeCallable(const GetListenerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getListenerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::GetListenerHealthStatusOutcome NlbClient::getListenerHealthStatus(const GetListenerHealthStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetListenerHealthStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetListenerHealthStatusOutcome(GetListenerHealthStatusResult(outcome.result())); + else + return GetListenerHealthStatusOutcome(outcome.error()); +} + +void NlbClient::getListenerHealthStatusAsync(const GetListenerHealthStatusRequest& request, const GetListenerHealthStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getListenerHealthStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::GetListenerHealthStatusOutcomeCallable NlbClient::getListenerHealthStatusCallable(const GetListenerHealthStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getListenerHealthStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::GetLoadBalancerAttributeOutcome NlbClient::getLoadBalancerAttribute(const GetLoadBalancerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetLoadBalancerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetLoadBalancerAttributeOutcome(GetLoadBalancerAttributeResult(outcome.result())); + else + return GetLoadBalancerAttributeOutcome(outcome.error()); +} + +void NlbClient::getLoadBalancerAttributeAsync(const GetLoadBalancerAttributeRequest& request, const GetLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getLoadBalancerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::GetLoadBalancerAttributeOutcomeCallable NlbClient::getLoadBalancerAttributeCallable(const GetLoadBalancerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getLoadBalancerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::ListListenerCertificatesOutcome NlbClient::listListenerCertificates(const ListListenerCertificatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListListenerCertificatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListListenerCertificatesOutcome(ListListenerCertificatesResult(outcome.result())); + else + return ListListenerCertificatesOutcome(outcome.error()); +} + +void NlbClient::listListenerCertificatesAsync(const ListListenerCertificatesRequest& request, const ListListenerCertificatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listListenerCertificates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::ListListenerCertificatesOutcomeCallable NlbClient::listListenerCertificatesCallable(const ListListenerCertificatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listListenerCertificates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::ListListenersOutcome NlbClient::listListeners(const ListListenersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListListenersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListListenersOutcome(ListListenersResult(outcome.result())); + else + return ListListenersOutcome(outcome.error()); +} + +void NlbClient::listListenersAsync(const ListListenersRequest& request, const ListListenersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listListeners(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::ListListenersOutcomeCallable NlbClient::listListenersCallable(const ListListenersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listListeners(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::ListLoadBalancersOutcome NlbClient::listLoadBalancers(const ListLoadBalancersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLoadBalancersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLoadBalancersOutcome(ListLoadBalancersResult(outcome.result())); + else + return ListLoadBalancersOutcome(outcome.error()); +} + +void NlbClient::listLoadBalancersAsync(const ListLoadBalancersRequest& request, const ListLoadBalancersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLoadBalancers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::ListLoadBalancersOutcomeCallable NlbClient::listLoadBalancersCallable(const ListLoadBalancersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLoadBalancers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::ListSecurityPolicyOutcome NlbClient::listSecurityPolicy(const ListSecurityPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSecurityPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSecurityPolicyOutcome(ListSecurityPolicyResult(outcome.result())); + else + return ListSecurityPolicyOutcome(outcome.error()); +} + +void NlbClient::listSecurityPolicyAsync(const ListSecurityPolicyRequest& request, const ListSecurityPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSecurityPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::ListSecurityPolicyOutcomeCallable NlbClient::listSecurityPolicyCallable(const ListSecurityPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSecurityPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::ListServerGroupServersOutcome NlbClient::listServerGroupServers(const ListServerGroupServersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListServerGroupServersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListServerGroupServersOutcome(ListServerGroupServersResult(outcome.result())); + else + return ListServerGroupServersOutcome(outcome.error()); +} + +void NlbClient::listServerGroupServersAsync(const ListServerGroupServersRequest& request, const ListServerGroupServersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listServerGroupServers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::ListServerGroupServersOutcomeCallable NlbClient::listServerGroupServersCallable(const ListServerGroupServersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listServerGroupServers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::ListServerGroupsOutcome NlbClient::listServerGroups(const ListServerGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListServerGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListServerGroupsOutcome(ListServerGroupsResult(outcome.result())); + else + return ListServerGroupsOutcome(outcome.error()); +} + +void NlbClient::listServerGroupsAsync(const ListServerGroupsRequest& request, const ListServerGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listServerGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::ListServerGroupsOutcomeCallable NlbClient::listServerGroupsCallable(const ListServerGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listServerGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::ListSystemSecurityPolicyOutcome NlbClient::listSystemSecurityPolicy(const ListSystemSecurityPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSystemSecurityPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSystemSecurityPolicyOutcome(ListSystemSecurityPolicyResult(outcome.result())); + else + return ListSystemSecurityPolicyOutcome(outcome.error()); +} + +void NlbClient::listSystemSecurityPolicyAsync(const ListSystemSecurityPolicyRequest& request, const ListSystemSecurityPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSystemSecurityPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::ListSystemSecurityPolicyOutcomeCallable NlbClient::listSystemSecurityPolicyCallable(const ListSystemSecurityPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSystemSecurityPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::ListTagResourcesOutcome NlbClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void NlbClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::ListTagResourcesOutcomeCallable NlbClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::LoadBalancerJoinSecurityGroupOutcome NlbClient::loadBalancerJoinSecurityGroup(const LoadBalancerJoinSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return LoadBalancerJoinSecurityGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return LoadBalancerJoinSecurityGroupOutcome(LoadBalancerJoinSecurityGroupResult(outcome.result())); + else + return LoadBalancerJoinSecurityGroupOutcome(outcome.error()); +} + +void NlbClient::loadBalancerJoinSecurityGroupAsync(const LoadBalancerJoinSecurityGroupRequest& request, const LoadBalancerJoinSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, loadBalancerJoinSecurityGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::LoadBalancerJoinSecurityGroupOutcomeCallable NlbClient::loadBalancerJoinSecurityGroupCallable(const LoadBalancerJoinSecurityGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->loadBalancerJoinSecurityGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::LoadBalancerLeaveSecurityGroupOutcome NlbClient::loadBalancerLeaveSecurityGroup(const LoadBalancerLeaveSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return LoadBalancerLeaveSecurityGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return LoadBalancerLeaveSecurityGroupOutcome(LoadBalancerLeaveSecurityGroupResult(outcome.result())); + else + return LoadBalancerLeaveSecurityGroupOutcome(outcome.error()); +} + +void NlbClient::loadBalancerLeaveSecurityGroupAsync(const LoadBalancerLeaveSecurityGroupRequest& request, const LoadBalancerLeaveSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, loadBalancerLeaveSecurityGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::LoadBalancerLeaveSecurityGroupOutcomeCallable NlbClient::loadBalancerLeaveSecurityGroupCallable(const LoadBalancerLeaveSecurityGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->loadBalancerLeaveSecurityGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::MoveResourceGroupOutcome NlbClient::moveResourceGroup(const MoveResourceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MoveResourceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MoveResourceGroupOutcome(MoveResourceGroupResult(outcome.result())); + else + return MoveResourceGroupOutcome(outcome.error()); +} + +void NlbClient::moveResourceGroupAsync(const MoveResourceGroupRequest& request, const MoveResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, moveResourceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::MoveResourceGroupOutcomeCallable NlbClient::moveResourceGroupCallable(const MoveResourceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->moveResourceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::RemoveServersFromServerGroupOutcome NlbClient::removeServersFromServerGroup(const RemoveServersFromServerGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveServersFromServerGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveServersFromServerGroupOutcome(RemoveServersFromServerGroupResult(outcome.result())); + else + return RemoveServersFromServerGroupOutcome(outcome.error()); +} + +void NlbClient::removeServersFromServerGroupAsync(const RemoveServersFromServerGroupRequest& request, const RemoveServersFromServerGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeServersFromServerGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::RemoveServersFromServerGroupOutcomeCallable NlbClient::removeServersFromServerGroupCallable(const RemoveServersFromServerGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeServersFromServerGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::StartListenerOutcome NlbClient::startListener(const StartListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartListenerOutcome(StartListenerResult(outcome.result())); + else + return StartListenerOutcome(outcome.error()); +} + +void NlbClient::startListenerAsync(const StartListenerRequest& request, const StartListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::StartListenerOutcomeCallable NlbClient::startListenerCallable(const StartListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::StartShiftLoadBalancerZonesOutcome NlbClient::startShiftLoadBalancerZones(const StartShiftLoadBalancerZonesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartShiftLoadBalancerZonesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartShiftLoadBalancerZonesOutcome(StartShiftLoadBalancerZonesResult(outcome.result())); + else + return StartShiftLoadBalancerZonesOutcome(outcome.error()); +} + +void NlbClient::startShiftLoadBalancerZonesAsync(const StartShiftLoadBalancerZonesRequest& request, const StartShiftLoadBalancerZonesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startShiftLoadBalancerZones(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::StartShiftLoadBalancerZonesOutcomeCallable NlbClient::startShiftLoadBalancerZonesCallable(const StartShiftLoadBalancerZonesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startShiftLoadBalancerZones(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::StopListenerOutcome NlbClient::stopListener(const StopListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopListenerOutcome(StopListenerResult(outcome.result())); + else + return StopListenerOutcome(outcome.error()); +} + +void NlbClient::stopListenerAsync(const StopListenerRequest& request, const StopListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::StopListenerOutcomeCallable NlbClient::stopListenerCallable(const StopListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::TagResourcesOutcome NlbClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void NlbClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::TagResourcesOutcomeCallable NlbClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::UntagResourcesOutcome NlbClient::untagResources(const UntagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + else + return UntagResourcesOutcome(outcome.error()); +} + +void NlbClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::UntagResourcesOutcomeCallable NlbClient::untagResourcesCallable(const UntagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::UpdateListenerAttributeOutcome NlbClient::updateListenerAttribute(const UpdateListenerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateListenerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateListenerAttributeOutcome(UpdateListenerAttributeResult(outcome.result())); + else + return UpdateListenerAttributeOutcome(outcome.error()); +} + +void NlbClient::updateListenerAttributeAsync(const UpdateListenerAttributeRequest& request, const UpdateListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateListenerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::UpdateListenerAttributeOutcomeCallable NlbClient::updateListenerAttributeCallable(const UpdateListenerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateListenerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::UpdateLoadBalancerAddressTypeConfigOutcome NlbClient::updateLoadBalancerAddressTypeConfig(const UpdateLoadBalancerAddressTypeConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateLoadBalancerAddressTypeConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateLoadBalancerAddressTypeConfigOutcome(UpdateLoadBalancerAddressTypeConfigResult(outcome.result())); + else + return UpdateLoadBalancerAddressTypeConfigOutcome(outcome.error()); +} + +void NlbClient::updateLoadBalancerAddressTypeConfigAsync(const UpdateLoadBalancerAddressTypeConfigRequest& request, const UpdateLoadBalancerAddressTypeConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateLoadBalancerAddressTypeConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::UpdateLoadBalancerAddressTypeConfigOutcomeCallable NlbClient::updateLoadBalancerAddressTypeConfigCallable(const UpdateLoadBalancerAddressTypeConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateLoadBalancerAddressTypeConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::UpdateLoadBalancerAttributeOutcome NlbClient::updateLoadBalancerAttribute(const UpdateLoadBalancerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateLoadBalancerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateLoadBalancerAttributeOutcome(UpdateLoadBalancerAttributeResult(outcome.result())); + else + return UpdateLoadBalancerAttributeOutcome(outcome.error()); +} + +void NlbClient::updateLoadBalancerAttributeAsync(const UpdateLoadBalancerAttributeRequest& request, const UpdateLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateLoadBalancerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::UpdateLoadBalancerAttributeOutcomeCallable NlbClient::updateLoadBalancerAttributeCallable(const UpdateLoadBalancerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateLoadBalancerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::UpdateLoadBalancerProtectionOutcome NlbClient::updateLoadBalancerProtection(const UpdateLoadBalancerProtectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateLoadBalancerProtectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateLoadBalancerProtectionOutcome(UpdateLoadBalancerProtectionResult(outcome.result())); + else + return UpdateLoadBalancerProtectionOutcome(outcome.error()); +} + +void NlbClient::updateLoadBalancerProtectionAsync(const UpdateLoadBalancerProtectionRequest& request, const UpdateLoadBalancerProtectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateLoadBalancerProtection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::UpdateLoadBalancerProtectionOutcomeCallable NlbClient::updateLoadBalancerProtectionCallable(const UpdateLoadBalancerProtectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateLoadBalancerProtection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::UpdateLoadBalancerZonesOutcome NlbClient::updateLoadBalancerZones(const UpdateLoadBalancerZonesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateLoadBalancerZonesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateLoadBalancerZonesOutcome(UpdateLoadBalancerZonesResult(outcome.result())); + else + return UpdateLoadBalancerZonesOutcome(outcome.error()); +} + +void NlbClient::updateLoadBalancerZonesAsync(const UpdateLoadBalancerZonesRequest& request, const UpdateLoadBalancerZonesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateLoadBalancerZones(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::UpdateLoadBalancerZonesOutcomeCallable NlbClient::updateLoadBalancerZonesCallable(const UpdateLoadBalancerZonesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateLoadBalancerZones(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::UpdateSecurityPolicyAttributeOutcome NlbClient::updateSecurityPolicyAttribute(const UpdateSecurityPolicyAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSecurityPolicyAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSecurityPolicyAttributeOutcome(UpdateSecurityPolicyAttributeResult(outcome.result())); + else + return UpdateSecurityPolicyAttributeOutcome(outcome.error()); +} + +void NlbClient::updateSecurityPolicyAttributeAsync(const UpdateSecurityPolicyAttributeRequest& request, const UpdateSecurityPolicyAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSecurityPolicyAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::UpdateSecurityPolicyAttributeOutcomeCallable NlbClient::updateSecurityPolicyAttributeCallable(const UpdateSecurityPolicyAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSecurityPolicyAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::UpdateServerGroupAttributeOutcome NlbClient::updateServerGroupAttribute(const UpdateServerGroupAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateServerGroupAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateServerGroupAttributeOutcome(UpdateServerGroupAttributeResult(outcome.result())); + else + return UpdateServerGroupAttributeOutcome(outcome.error()); +} + +void NlbClient::updateServerGroupAttributeAsync(const UpdateServerGroupAttributeRequest& request, const UpdateServerGroupAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateServerGroupAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::UpdateServerGroupAttributeOutcomeCallable NlbClient::updateServerGroupAttributeCallable(const UpdateServerGroupAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateServerGroupAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +NlbClient::UpdateServerGroupServersAttributeOutcome NlbClient::updateServerGroupServersAttribute(const UpdateServerGroupServersAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateServerGroupServersAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateServerGroupServersAttributeOutcome(UpdateServerGroupServersAttributeResult(outcome.result())); + else + return UpdateServerGroupServersAttributeOutcome(outcome.error()); +} + +void NlbClient::updateServerGroupServersAttributeAsync(const UpdateServerGroupServersAttributeRequest& request, const UpdateServerGroupServersAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateServerGroupServersAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +NlbClient::UpdateServerGroupServersAttributeOutcomeCallable NlbClient::updateServerGroupServersAttributeCallable(const UpdateServerGroupServersAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateServerGroupServersAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/nlb/src/model/AddServersToServerGroupRequest.cc b/nlb/src/model/AddServersToServerGroupRequest.cc new file mode 100644 index 000000000..7a0edee82 --- /dev/null +++ b/nlb/src/model/AddServersToServerGroupRequest.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 + +using AlibabaCloud::Nlb::Model::AddServersToServerGroupRequest; + +AddServersToServerGroupRequest::AddServersToServerGroupRequest() + : RpcServiceRequest("nlb", "2022-04-30", "AddServersToServerGroup") { + setMethod(HttpRequest::Method::Post); +} + +AddServersToServerGroupRequest::~AddServersToServerGroupRequest() {} + +std::string AddServersToServerGroupRequest::getClientToken() const { + return clientToken_; +} + +void AddServersToServerGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string AddServersToServerGroupRequest::getServerGroupId() const { + return serverGroupId_; +} + +void AddServersToServerGroupRequest::setServerGroupId(const std::string &serverGroupId) { + serverGroupId_ = serverGroupId; + setBodyParameter(std::string("ServerGroupId"), serverGroupId); +} + +std::vector AddServersToServerGroupRequest::getServers() const { + return servers_; +} + +void AddServersToServerGroupRequest::setServers(const std::vector &servers) { + servers_ = servers; + for(int dep1 = 0; dep1 != servers.size(); dep1++) { + setBodyParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".ServerId", servers[dep1].serverId); + setBodyParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".ServerType", servers[dep1].serverType); + setBodyParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".ServerIp", servers[dep1].serverIp); + setBodyParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".Port", std::to_string(servers[dep1].port)); + setBodyParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".Weight", std::to_string(servers[dep1].weight)); + setBodyParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".Description", servers[dep1].description); + } +} + +std::string AddServersToServerGroupRequest::getRegionId() const { + return regionId_; +} + +void AddServersToServerGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool AddServersToServerGroupRequest::getDryRun() const { + return dryRun_; +} + +void AddServersToServerGroupRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/nlb/src/model/AddServersToServerGroupResult.cc b/nlb/src/model/AddServersToServerGroupResult.cc new file mode 100644 index 000000000..6c3c05f82 --- /dev/null +++ b/nlb/src/model/AddServersToServerGroupResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +AddServersToServerGroupResult::AddServersToServerGroupResult() : + ServiceResult() +{} + +AddServersToServerGroupResult::AddServersToServerGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddServersToServerGroupResult::~AddServersToServerGroupResult() +{} + +void AddServersToServerGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["ServerGroupId"].isNull()) + serverGroupId_ = value["ServerGroupId"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string AddServersToServerGroupResult::getMessage()const +{ + return message_; +} + +int AddServersToServerGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string AddServersToServerGroupResult::getServerGroupId()const +{ + return serverGroupId_; +} + +std::string AddServersToServerGroupResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string AddServersToServerGroupResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string AddServersToServerGroupResult::getCode()const +{ + return code_; +} + +bool AddServersToServerGroupResult::getSuccess()const +{ + return success_; +} + +std::string AddServersToServerGroupResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/AssociateAdditionalCertificatesWithListenerRequest.cc b/nlb/src/model/AssociateAdditionalCertificatesWithListenerRequest.cc new file mode 100644 index 000000000..f6fee2053 --- /dev/null +++ b/nlb/src/model/AssociateAdditionalCertificatesWithListenerRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlb::Model::AssociateAdditionalCertificatesWithListenerRequest; + +AssociateAdditionalCertificatesWithListenerRequest::AssociateAdditionalCertificatesWithListenerRequest() + : RpcServiceRequest("nlb", "2022-04-30", "AssociateAdditionalCertificatesWithListener") { + setMethod(HttpRequest::Method::Post); +} + +AssociateAdditionalCertificatesWithListenerRequest::~AssociateAdditionalCertificatesWithListenerRequest() {} + +std::string AssociateAdditionalCertificatesWithListenerRequest::getClientToken() const { + return clientToken_; +} + +void AssociateAdditionalCertificatesWithListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string AssociateAdditionalCertificatesWithListenerRequest::getListenerId() const { + return listenerId_; +} + +void AssociateAdditionalCertificatesWithListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setBodyParameter(std::string("ListenerId"), listenerId); +} + +std::string AssociateAdditionalCertificatesWithListenerRequest::getRegionId() const { + return regionId_; +} + +void AssociateAdditionalCertificatesWithListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool AssociateAdditionalCertificatesWithListenerRequest::getDryRun() const { + return dryRun_; +} + +void AssociateAdditionalCertificatesWithListenerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector AssociateAdditionalCertificatesWithListenerRequest::getAdditionalCertificateIds() const { + return additionalCertificateIds_; +} + +void AssociateAdditionalCertificatesWithListenerRequest::setAdditionalCertificateIds(const std::vector &additionalCertificateIds) { + additionalCertificateIds_ = additionalCertificateIds; +} + diff --git a/nlb/src/model/AssociateAdditionalCertificatesWithListenerResult.cc b/nlb/src/model/AssociateAdditionalCertificatesWithListenerResult.cc new file mode 100644 index 000000000..044def313 --- /dev/null +++ b/nlb/src/model/AssociateAdditionalCertificatesWithListenerResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +AssociateAdditionalCertificatesWithListenerResult::AssociateAdditionalCertificatesWithListenerResult() : + ServiceResult() +{} + +AssociateAdditionalCertificatesWithListenerResult::AssociateAdditionalCertificatesWithListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AssociateAdditionalCertificatesWithListenerResult::~AssociateAdditionalCertificatesWithListenerResult() +{} + +void AssociateAdditionalCertificatesWithListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string AssociateAdditionalCertificatesWithListenerResult::getMessage()const +{ + return message_; +} + +int AssociateAdditionalCertificatesWithListenerResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string AssociateAdditionalCertificatesWithListenerResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string AssociateAdditionalCertificatesWithListenerResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string AssociateAdditionalCertificatesWithListenerResult::getCode()const +{ + return code_; +} + +bool AssociateAdditionalCertificatesWithListenerResult::getSuccess()const +{ + return success_; +} + +std::string AssociateAdditionalCertificatesWithListenerResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/AttachCommonBandwidthPackageToLoadBalancerRequest.cc b/nlb/src/model/AttachCommonBandwidthPackageToLoadBalancerRequest.cc new file mode 100644 index 000000000..81bdf4d53 --- /dev/null +++ b/nlb/src/model/AttachCommonBandwidthPackageToLoadBalancerRequest.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::Nlb::Model::AttachCommonBandwidthPackageToLoadBalancerRequest; + +AttachCommonBandwidthPackageToLoadBalancerRequest::AttachCommonBandwidthPackageToLoadBalancerRequest() + : RpcServiceRequest("nlb", "2022-04-30", "AttachCommonBandwidthPackageToLoadBalancer") { + setMethod(HttpRequest::Method::Post); +} + +AttachCommonBandwidthPackageToLoadBalancerRequest::~AttachCommonBandwidthPackageToLoadBalancerRequest() {} + +std::string AttachCommonBandwidthPackageToLoadBalancerRequest::getClientToken() const { + return clientToken_; +} + +void AttachCommonBandwidthPackageToLoadBalancerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string AttachCommonBandwidthPackageToLoadBalancerRequest::getRegionId() const { + return regionId_; +} + +void AttachCommonBandwidthPackageToLoadBalancerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string AttachCommonBandwidthPackageToLoadBalancerRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; +} + +void AttachCommonBandwidthPackageToLoadBalancerRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setBodyParameter(std::string("BandwidthPackageId"), bandwidthPackageId); +} + +bool AttachCommonBandwidthPackageToLoadBalancerRequest::getDryRun() const { + return dryRun_; +} + +void AttachCommonBandwidthPackageToLoadBalancerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string AttachCommonBandwidthPackageToLoadBalancerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void AttachCommonBandwidthPackageToLoadBalancerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setBodyParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/nlb/src/model/AttachCommonBandwidthPackageToLoadBalancerResult.cc b/nlb/src/model/AttachCommonBandwidthPackageToLoadBalancerResult.cc new file mode 100644 index 000000000..2bb5c234c --- /dev/null +++ b/nlb/src/model/AttachCommonBandwidthPackageToLoadBalancerResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +AttachCommonBandwidthPackageToLoadBalancerResult::AttachCommonBandwidthPackageToLoadBalancerResult() : + ServiceResult() +{} + +AttachCommonBandwidthPackageToLoadBalancerResult::AttachCommonBandwidthPackageToLoadBalancerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachCommonBandwidthPackageToLoadBalancerResult::~AttachCommonBandwidthPackageToLoadBalancerResult() +{} + +void AttachCommonBandwidthPackageToLoadBalancerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string AttachCommonBandwidthPackageToLoadBalancerResult::getMessage()const +{ + return message_; +} + +int AttachCommonBandwidthPackageToLoadBalancerResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string AttachCommonBandwidthPackageToLoadBalancerResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string AttachCommonBandwidthPackageToLoadBalancerResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string AttachCommonBandwidthPackageToLoadBalancerResult::getCode()const +{ + return code_; +} + +bool AttachCommonBandwidthPackageToLoadBalancerResult::getSuccess()const +{ + return success_; +} + +std::string AttachCommonBandwidthPackageToLoadBalancerResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/CancelShiftLoadBalancerZonesRequest.cc b/nlb/src/model/CancelShiftLoadBalancerZonesRequest.cc new file mode 100644 index 000000000..345577ecc --- /dev/null +++ b/nlb/src/model/CancelShiftLoadBalancerZonesRequest.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 + +using AlibabaCloud::Nlb::Model::CancelShiftLoadBalancerZonesRequest; + +CancelShiftLoadBalancerZonesRequest::CancelShiftLoadBalancerZonesRequest() + : RpcServiceRequest("nlb", "2022-04-30", "CancelShiftLoadBalancerZones") { + setMethod(HttpRequest::Method::Post); +} + +CancelShiftLoadBalancerZonesRequest::~CancelShiftLoadBalancerZonesRequest() {} + +std::string CancelShiftLoadBalancerZonesRequest::getClientToken() const { + return clientToken_; +} + +void CancelShiftLoadBalancerZonesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string CancelShiftLoadBalancerZonesRequest::getRegionId() const { + return regionId_; +} + +void CancelShiftLoadBalancerZonesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool CancelShiftLoadBalancerZonesRequest::getDryRun() const { + return dryRun_; +} + +void CancelShiftLoadBalancerZonesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector CancelShiftLoadBalancerZonesRequest::getZoneMappings() const { + return zoneMappings_; +} + +void CancelShiftLoadBalancerZonesRequest::setZoneMappings(const std::vector &zoneMappings) { + zoneMappings_ = zoneMappings; + for(int dep1 = 0; dep1 != zoneMappings.size(); dep1++) { + auto zoneMappingsObj = zoneMappings.at(dep1); + std::string zoneMappingsObjStr = std::string("ZoneMappings") + "." + std::to_string(dep1 + 1); + setBodyParameter(zoneMappingsObjStr + ".VSwitchId", zoneMappingsObj.vSwitchId); + setBodyParameter(zoneMappingsObjStr + ".ZoneId", zoneMappingsObj.zoneId); + } +} + +std::string CancelShiftLoadBalancerZonesRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void CancelShiftLoadBalancerZonesRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setBodyParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/nlb/src/model/CancelShiftLoadBalancerZonesResult.cc b/nlb/src/model/CancelShiftLoadBalancerZonesResult.cc new file mode 100644 index 000000000..22ec3c25d --- /dev/null +++ b/nlb/src/model/CancelShiftLoadBalancerZonesResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +CancelShiftLoadBalancerZonesResult::CancelShiftLoadBalancerZonesResult() : + ServiceResult() +{} + +CancelShiftLoadBalancerZonesResult::CancelShiftLoadBalancerZonesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelShiftLoadBalancerZonesResult::~CancelShiftLoadBalancerZonesResult() +{} + +void CancelShiftLoadBalancerZonesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string CancelShiftLoadBalancerZonesResult::getMessage()const +{ + return message_; +} + +int CancelShiftLoadBalancerZonesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CancelShiftLoadBalancerZonesResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string CancelShiftLoadBalancerZonesResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string CancelShiftLoadBalancerZonesResult::getCode()const +{ + return code_; +} + +bool CancelShiftLoadBalancerZonesResult::getSuccess()const +{ + return success_; +} + diff --git a/nlb/src/model/CreateListenerRequest.cc b/nlb/src/model/CreateListenerRequest.cc new file mode 100644 index 000000000..a73d4bf94 --- /dev/null +++ b/nlb/src/model/CreateListenerRequest.cc @@ -0,0 +1,228 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlb::Model::CreateListenerRequest; + +CreateListenerRequest::CreateListenerRequest() + : RpcServiceRequest("nlb", "2022-04-30", "CreateListener") { + setMethod(HttpRequest::Method::Post); +} + +CreateListenerRequest::~CreateListenerRequest() {} + +std::vector CreateListenerRequest::getCaCertificateIds() const { + return caCertificateIds_; +} + +void CreateListenerRequest::setCaCertificateIds(const std::vector &caCertificateIds) { + caCertificateIds_ = caCertificateIds; +} + +int CreateListenerRequest::getStartPort() const { + return startPort_; +} + +void CreateListenerRequest::setStartPort(int startPort) { + startPort_ = startPort; + setBodyParameter(std::string("StartPort"), std::to_string(startPort)); +} + +std::string CreateListenerRequest::getClientToken() const { + return clientToken_; +} + +void CreateListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +bool CreateListenerRequest::getSecSensorEnabled() const { + return secSensorEnabled_; +} + +void CreateListenerRequest::setSecSensorEnabled(bool secSensorEnabled) { + secSensorEnabled_ = secSensorEnabled; + setBodyParameter(std::string("SecSensorEnabled"), secSensorEnabled ? "true" : "false"); +} + +std::string CreateListenerRequest::getAlpnPolicy() const { + return alpnPolicy_; +} + +void CreateListenerRequest::setAlpnPolicy(const std::string &alpnPolicy) { + alpnPolicy_ = alpnPolicy; + setBodyParameter(std::string("AlpnPolicy"), alpnPolicy); +} + +int CreateListenerRequest::getMss() const { + return mss_; +} + +void CreateListenerRequest::setMss(int mss) { + mss_ = mss; + setBodyParameter(std::string("Mss"), std::to_string(mss)); +} + +std::string CreateListenerRequest::getServerGroupId() const { + return serverGroupId_; +} + +void CreateListenerRequest::setServerGroupId(const std::string &serverGroupId) { + serverGroupId_ = serverGroupId; + setBodyParameter(std::string("ServerGroupId"), serverGroupId); +} + +std::vector CreateListenerRequest::getCertificateIds() const { + return certificateIds_; +} + +void CreateListenerRequest::setCertificateIds(const std::vector &certificateIds) { + certificateIds_ = certificateIds; +} + +std::string CreateListenerRequest::getRegionId() const { + return regionId_; +} + +void CreateListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::vector CreateListenerRequest::getTag() const { + return tag_; +} + +void CreateListenerRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setBodyParameter(tagObjStr + ".Key", tagObj.key); + setBodyParameter(tagObjStr + ".Value", tagObj.value); + } +} + +bool CreateListenerRequest::getAlpnEnabled() const { + return alpnEnabled_; +} + +void CreateListenerRequest::setAlpnEnabled(bool alpnEnabled) { + alpnEnabled_ = alpnEnabled; + setBodyParameter(std::string("AlpnEnabled"), alpnEnabled ? "true" : "false"); +} + +int CreateListenerRequest::getEndPort() const { + return endPort_; +} + +void CreateListenerRequest::setEndPort(int endPort) { + endPort_ = endPort; + setBodyParameter(std::string("EndPort"), std::to_string(endPort)); +} + +int CreateListenerRequest::getListenerPort() const { + return listenerPort_; +} + +void CreateListenerRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setBodyParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +bool CreateListenerRequest::getDryRun() const { + return dryRun_; +} + +void CreateListenerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +bool CreateListenerRequest::getProxyProtocolEnabled() const { + return proxyProtocolEnabled_; +} + +void CreateListenerRequest::setProxyProtocolEnabled(bool proxyProtocolEnabled) { + proxyProtocolEnabled_ = proxyProtocolEnabled; + setBodyParameter(std::string("ProxyProtocolEnabled"), proxyProtocolEnabled ? "true" : "false"); +} + +int CreateListenerRequest::getCps() const { + return cps_; +} + +void CreateListenerRequest::setCps(int cps) { + cps_ = cps; + setBodyParameter(std::string("Cps"), std::to_string(cps)); +} + +std::string CreateListenerRequest::getListenerProtocol() const { + return listenerProtocol_; +} + +void CreateListenerRequest::setListenerProtocol(const std::string &listenerProtocol) { + listenerProtocol_ = listenerProtocol; + setBodyParameter(std::string("ListenerProtocol"), listenerProtocol); +} + +std::string CreateListenerRequest::getSecurityPolicyId() const { + return securityPolicyId_; +} + +void CreateListenerRequest::setSecurityPolicyId(const std::string &securityPolicyId) { + securityPolicyId_ = securityPolicyId; + setBodyParameter(std::string("SecurityPolicyId"), securityPolicyId); +} + +int CreateListenerRequest::getIdleTimeout() const { + return idleTimeout_; +} + +void CreateListenerRequest::setIdleTimeout(int idleTimeout) { + idleTimeout_ = idleTimeout; + setBodyParameter(std::string("IdleTimeout"), std::to_string(idleTimeout)); +} + +std::string CreateListenerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void CreateListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setBodyParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +std::string CreateListenerRequest::getListenerDescription() const { + return listenerDescription_; +} + +void CreateListenerRequest::setListenerDescription(const std::string &listenerDescription) { + listenerDescription_ = listenerDescription; + setBodyParameter(std::string("ListenerDescription"), listenerDescription); +} + +bool CreateListenerRequest::getCaEnabled() const { + return caEnabled_; +} + +void CreateListenerRequest::setCaEnabled(bool caEnabled) { + caEnabled_ = caEnabled; + setBodyParameter(std::string("CaEnabled"), caEnabled ? "true" : "false"); +} + diff --git a/nlb/src/model/CreateListenerResult.cc b/nlb/src/model/CreateListenerResult.cc new file mode 100644 index 000000000..311f8ecba --- /dev/null +++ b/nlb/src/model/CreateListenerResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +CreateListenerResult::CreateListenerResult() : + ServiceResult() +{} + +CreateListenerResult::CreateListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateListenerResult::~CreateListenerResult() +{} + +void CreateListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["ListenerId"].isNull()) + listenerId_ = value["ListenerId"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string CreateListenerResult::getMessage()const +{ + return message_; +} + +int CreateListenerResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateListenerResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string CreateListenerResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string CreateListenerResult::getCode()const +{ + return code_; +} + +bool CreateListenerResult::getSuccess()const +{ + return success_; +} + +std::string CreateListenerResult::getJobId()const +{ + return jobId_; +} + +std::string CreateListenerResult::getListenerId()const +{ + return listenerId_; +} + diff --git a/nlb/src/model/CreateLoadBalancerRequest.cc b/nlb/src/model/CreateLoadBalancerRequest.cc new file mode 100644 index 000000000..d964afb7b --- /dev/null +++ b/nlb/src/model/CreateLoadBalancerRequest.cc @@ -0,0 +1,191 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlb::Model::CreateLoadBalancerRequest; + +CreateLoadBalancerRequest::CreateLoadBalancerRequest() + : RpcServiceRequest("nlb", "2022-04-30", "CreateLoadBalancer") { + setMethod(HttpRequest::Method::Post); +} + +CreateLoadBalancerRequest::~CreateLoadBalancerRequest() {} + +std::string CreateLoadBalancerRequest::getClientToken() const { + return clientToken_; +} + +void CreateLoadBalancerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +CreateLoadBalancerRequest::ModificationProtectionConfig CreateLoadBalancerRequest::getModificationProtectionConfig() const { + return modificationProtectionConfig_; +} + +void CreateLoadBalancerRequest::setModificationProtectionConfig(const CreateLoadBalancerRequest::ModificationProtectionConfig &modificationProtectionConfig) { + modificationProtectionConfig_ = modificationProtectionConfig; + setBodyParameter(std::string("ModificationProtectionConfig") + ".Status", modificationProtectionConfig.status); + setBodyParameter(std::string("ModificationProtectionConfig") + ".Reason", modificationProtectionConfig.reason); +} + +CreateLoadBalancerRequest::LoadBalancerBillingConfig CreateLoadBalancerRequest::getLoadBalancerBillingConfig() const { + return loadBalancerBillingConfig_; +} + +void CreateLoadBalancerRequest::setLoadBalancerBillingConfig(const CreateLoadBalancerRequest::LoadBalancerBillingConfig &loadBalancerBillingConfig) { + loadBalancerBillingConfig_ = loadBalancerBillingConfig; + setBodyParameter(std::string("LoadBalancerBillingConfig") + ".PayType", loadBalancerBillingConfig.payType); +} + +std::string CreateLoadBalancerRequest::getBizFlag() const { + return bizFlag_; +} + +void CreateLoadBalancerRequest::setBizFlag(const std::string &bizFlag) { + bizFlag_ = bizFlag; + setBodyParameter(std::string("BizFlag"), bizFlag); +} + +CreateLoadBalancerRequest::DeletionProtectionConfig CreateLoadBalancerRequest::getDeletionProtectionConfig() const { + return deletionProtectionConfig_; +} + +void CreateLoadBalancerRequest::setDeletionProtectionConfig(const CreateLoadBalancerRequest::DeletionProtectionConfig &deletionProtectionConfig) { + deletionProtectionConfig_ = deletionProtectionConfig; + setBodyParameter(std::string("DeletionProtectionConfig") + ".Enabled", deletionProtectionConfig.enabled ? "true" : "false"); + setBodyParameter(std::string("DeletionProtectionConfig") + ".Reason", deletionProtectionConfig.reason); +} + +std::string CreateLoadBalancerRequest::getAddressIpVersion() const { + return addressIpVersion_; +} + +void CreateLoadBalancerRequest::setAddressIpVersion(const std::string &addressIpVersion) { + addressIpVersion_ = addressIpVersion; + setBodyParameter(std::string("AddressIpVersion"), addressIpVersion); +} + +std::string CreateLoadBalancerRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateLoadBalancerRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setBodyParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateLoadBalancerRequest::getLoadBalancerName() const { + return loadBalancerName_; +} + +void CreateLoadBalancerRequest::setLoadBalancerName(const std::string &loadBalancerName) { + loadBalancerName_ = loadBalancerName; + setBodyParameter(std::string("LoadBalancerName"), loadBalancerName); +} + +std::string CreateLoadBalancerRequest::getRegionId() const { + return regionId_; +} + +void CreateLoadBalancerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string CreateLoadBalancerRequest::getAddressType() const { + return addressType_; +} + +void CreateLoadBalancerRequest::setAddressType(const std::string &addressType) { + addressType_ = addressType; + setBodyParameter(std::string("AddressType"), addressType); +} + +std::vector CreateLoadBalancerRequest::getTag() const { + return tag_; +} + +void CreateLoadBalancerRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setBodyParameter(tagObjStr + ".Key", tagObj.key); + setBodyParameter(tagObjStr + ".Value", tagObj.value); + } +} + +std::string CreateLoadBalancerRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; +} + +void CreateLoadBalancerRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setBodyParameter(std::string("BandwidthPackageId"), bandwidthPackageId); +} + +bool CreateLoadBalancerRequest::getDryRun() const { + return dryRun_; +} + +void CreateLoadBalancerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector CreateLoadBalancerRequest::getZoneMappings() const { + return zoneMappings_; +} + +void CreateLoadBalancerRequest::setZoneMappings(const std::vector &zoneMappings) { + zoneMappings_ = zoneMappings; + for(int dep1 = 0; dep1 != zoneMappings.size(); dep1++) { + setBodyParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".VSwitchId", zoneMappings[dep1].vSwitchId); + setBodyParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".ZoneId", zoneMappings[dep1].zoneId); + setBodyParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".PrivateIPv4Address", zoneMappings[dep1].privateIPv4Address); + setBodyParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".AllocationId", zoneMappings[dep1].allocationId); + } +} + +std::vector CreateLoadBalancerRequest::getSecurityGroupIds() const { + return securityGroupIds_; +} + +void CreateLoadBalancerRequest::setSecurityGroupIds(const std::vector &securityGroupIds) { + securityGroupIds_ = securityGroupIds; +} + +std::string CreateLoadBalancerRequest::getLoadBalancerType() const { + return loadBalancerType_; +} + +void CreateLoadBalancerRequest::setLoadBalancerType(const std::string &loadBalancerType) { + loadBalancerType_ = loadBalancerType; + setBodyParameter(std::string("LoadBalancerType"), loadBalancerType); +} + +std::string CreateLoadBalancerRequest::getVpcId() const { + return vpcId_; +} + +void CreateLoadBalancerRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setBodyParameter(std::string("VpcId"), vpcId); +} + diff --git a/nlb/src/model/CreateLoadBalancerResult.cc b/nlb/src/model/CreateLoadBalancerResult.cc new file mode 100644 index 000000000..41c3cafb3 --- /dev/null +++ b/nlb/src/model/CreateLoadBalancerResult.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::Nlb; +using namespace AlibabaCloud::Nlb::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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["LoadbalancerId"].isNull()) + loadbalancerId_ = value["LoadbalancerId"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); + +} + +std::string CreateLoadBalancerResult::getMessage()const +{ + return message_; +} + +int CreateLoadBalancerResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateLoadBalancerResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string CreateLoadBalancerResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string CreateLoadBalancerResult::getLoadbalancerId()const +{ + return loadbalancerId_; +} + +long CreateLoadBalancerResult::getOrderId()const +{ + return orderId_; +} + +std::string CreateLoadBalancerResult::getCode()const +{ + return code_; +} + +bool CreateLoadBalancerResult::getSuccess()const +{ + return success_; +} + +std::string CreateLoadBalancerResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/CreateSecurityPolicyRequest.cc b/nlb/src/model/CreateSecurityPolicyRequest.cc new file mode 100644 index 000000000..a16e6208e --- /dev/null +++ b/nlb/src/model/CreateSecurityPolicyRequest.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 + +using AlibabaCloud::Nlb::Model::CreateSecurityPolicyRequest; + +CreateSecurityPolicyRequest::CreateSecurityPolicyRequest() + : RpcServiceRequest("nlb", "2022-04-30", "CreateSecurityPolicy") { + setMethod(HttpRequest::Method::Post); +} + +CreateSecurityPolicyRequest::~CreateSecurityPolicyRequest() {} + +std::string CreateSecurityPolicyRequest::getClientToken() const { + return clientToken_; +} + +void CreateSecurityPolicyRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateSecurityPolicyRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateSecurityPolicyRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setBodyParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateSecurityPolicyRequest::getRegionId() const { + return regionId_; +} + +void CreateSecurityPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::vector CreateSecurityPolicyRequest::getCiphers() const { + return ciphers_; +} + +void CreateSecurityPolicyRequest::setCiphers(const std::vector &ciphers) { + ciphers_ = ciphers; +} + +std::vector CreateSecurityPolicyRequest::getTag() const { + return tag_; +} + +void CreateSecurityPolicyRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setBodyParameter(tagObjStr + ".Key", tagObj.key); + setBodyParameter(tagObjStr + ".Value", tagObj.value); + } +} + +std::vector CreateSecurityPolicyRequest::getTlsVersions() const { + return tlsVersions_; +} + +void CreateSecurityPolicyRequest::setTlsVersions(const std::vector &tlsVersions) { + tlsVersions_ = tlsVersions; +} + +std::string CreateSecurityPolicyRequest::getSecurityPolicyName() const { + return securityPolicyName_; +} + +void CreateSecurityPolicyRequest::setSecurityPolicyName(const std::string &securityPolicyName) { + securityPolicyName_ = securityPolicyName; + setBodyParameter(std::string("SecurityPolicyName"), securityPolicyName); +} + +bool CreateSecurityPolicyRequest::getDryRun() const { + return dryRun_; +} + +void CreateSecurityPolicyRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/nlb/src/model/CreateSecurityPolicyResult.cc b/nlb/src/model/CreateSecurityPolicyResult.cc new file mode 100644 index 000000000..a35fb73db --- /dev/null +++ b/nlb/src/model/CreateSecurityPolicyResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +CreateSecurityPolicyResult::CreateSecurityPolicyResult() : + ServiceResult() +{} + +CreateSecurityPolicyResult::CreateSecurityPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSecurityPolicyResult::~CreateSecurityPolicyResult() +{} + +void CreateSecurityPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["SecurityPolicyId"].isNull()) + securityPolicyId_ = value["SecurityPolicyId"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string CreateSecurityPolicyResult::getSecurityPolicyId()const +{ + return securityPolicyId_; +} + +std::string CreateSecurityPolicyResult::getMessage()const +{ + return message_; +} + +int CreateSecurityPolicyResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateSecurityPolicyResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string CreateSecurityPolicyResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string CreateSecurityPolicyResult::getCode()const +{ + return code_; +} + +bool CreateSecurityPolicyResult::getSuccess()const +{ + return success_; +} + +std::string CreateSecurityPolicyResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/CreateServerGroupRequest.cc b/nlb/src/model/CreateServerGroupRequest.cc new file mode 100644 index 000000000..5fb82a2b7 --- /dev/null +++ b/nlb/src/model/CreateServerGroupRequest.cc @@ -0,0 +1,215 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlb::Model::CreateServerGroupRequest; + +CreateServerGroupRequest::CreateServerGroupRequest() + : RpcServiceRequest("nlb", "2022-04-30", "CreateServerGroup") { + setMethod(HttpRequest::Method::Post); +} + +CreateServerGroupRequest::~CreateServerGroupRequest() {} + +std::string CreateServerGroupRequest::getQuicVersion() const { + return quicVersion_; +} + +void CreateServerGroupRequest::setQuicVersion(const std::string &quicVersion) { + quicVersion_ = quicVersion; + setBodyParameter(std::string("QuicVersion"), quicVersion); +} + +std::string CreateServerGroupRequest::getServerGroupName() const { + return serverGroupName_; +} + +void CreateServerGroupRequest::setServerGroupName(const std::string &serverGroupName) { + serverGroupName_ = serverGroupName; + setBodyParameter(std::string("ServerGroupName"), serverGroupName); +} + +std::string CreateServerGroupRequest::getClientToken() const { + return clientToken_; +} + +void CreateServerGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +bool CreateServerGroupRequest::getPreserveClientIpEnabled() const { + return preserveClientIpEnabled_; +} + +void CreateServerGroupRequest::setPreserveClientIpEnabled(bool preserveClientIpEnabled) { + preserveClientIpEnabled_ = preserveClientIpEnabled; + setBodyParameter(std::string("PreserveClientIpEnabled"), preserveClientIpEnabled ? "true" : "false"); +} + +CreateServerGroupRequest::HealthCheckConfig CreateServerGroupRequest::getHealthCheckConfig() const { + return healthCheckConfig_; +} + +void CreateServerGroupRequest::setHealthCheckConfig(const CreateServerGroupRequest::HealthCheckConfig &healthCheckConfig) { + healthCheckConfig_ = healthCheckConfig; + setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckEnabled", healthCheckConfig.healthCheckEnabled ? "true" : "false"); + setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckType", healthCheckConfig.healthCheckType); + setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckConnectPort", std::to_string(healthCheckConfig.healthCheckConnectPort)); + setBodyParameter(std::string("HealthCheckConfig") + ".HealthyThreshold", std::to_string(healthCheckConfig.healthyThreshold)); + setBodyParameter(std::string("HealthCheckConfig") + ".UnhealthyThreshold", std::to_string(healthCheckConfig.unhealthyThreshold)); + setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckConnectTimeout", std::to_string(healthCheckConfig.healthCheckConnectTimeout)); + setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckInterval", std::to_string(healthCheckConfig.healthCheckInterval)); + setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckDomain", healthCheckConfig.healthCheckDomain); + setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckUrl", healthCheckConfig.healthCheckUrl); + for(int dep1 = 0; dep1 != healthCheckConfig.healthCheckHttpCode.size(); dep1++) { + setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckHttpCode." + std::to_string(dep1 + 1), healthCheckConfig.healthCheckHttpCode[dep1]); + } + setBodyParameter(std::string("HealthCheckConfig") + ".HttpCheckMethod", healthCheckConfig.httpCheckMethod); +} + +std::string CreateServerGroupRequest::getAddressIPVersion() const { + return addressIPVersion_; +} + +void CreateServerGroupRequest::setAddressIPVersion(const std::string &addressIPVersion) { + addressIPVersion_ = addressIPVersion; + setBodyParameter(std::string("AddressIPVersion"), addressIPVersion); +} + +std::string CreateServerGroupRequest::getScheduler() const { + return scheduler_; +} + +void CreateServerGroupRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setBodyParameter(std::string("Scheduler"), scheduler); +} + +std::string CreateServerGroupRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateServerGroupRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setBodyParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateServerGroupRequest::getProtocol() const { + return protocol_; +} + +void CreateServerGroupRequest::setProtocol(const std::string &protocol) { + protocol_ = protocol; + setBodyParameter(std::string("Protocol"), protocol); +} + +std::string CreateServerGroupRequest::getRegionId() const { + return regionId_; +} + +void CreateServerGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool CreateServerGroupRequest::getPersistenceEnabled() const { + return persistenceEnabled_; +} + +void CreateServerGroupRequest::setPersistenceEnabled(bool persistenceEnabled) { + persistenceEnabled_ = persistenceEnabled; + setBodyParameter(std::string("PersistenceEnabled"), persistenceEnabled ? "true" : "false"); +} + +int CreateServerGroupRequest::getPersistenceTimeout() const { + return persistenceTimeout_; +} + +void CreateServerGroupRequest::setPersistenceTimeout(int persistenceTimeout) { + persistenceTimeout_ = persistenceTimeout; + setBodyParameter(std::string("PersistenceTimeout"), std::to_string(persistenceTimeout)); +} + +std::vector CreateServerGroupRequest::getTag() const { + return tag_; +} + +void CreateServerGroupRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setBodyParameter(tagObjStr + ".Key", tagObj.key); + setBodyParameter(tagObjStr + ".Value", tagObj.value); + } +} + +bool CreateServerGroupRequest::getDryRun() const { + return dryRun_; +} + +void CreateServerGroupRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +bool CreateServerGroupRequest::getConnectionDrainEnabled() const { + return connectionDrainEnabled_; +} + +void CreateServerGroupRequest::setConnectionDrainEnabled(bool connectionDrainEnabled) { + connectionDrainEnabled_ = connectionDrainEnabled; + setBodyParameter(std::string("ConnectionDrainEnabled"), connectionDrainEnabled ? "true" : "false"); +} + +int CreateServerGroupRequest::getConnectionDrainTimeout() const { + return connectionDrainTimeout_; +} + +void CreateServerGroupRequest::setConnectionDrainTimeout(int connectionDrainTimeout) { + connectionDrainTimeout_ = connectionDrainTimeout; + setBodyParameter(std::string("ConnectionDrainTimeout"), std::to_string(connectionDrainTimeout)); +} + +bool CreateServerGroupRequest::getAnyPortEnabled() const { + return anyPortEnabled_; +} + +void CreateServerGroupRequest::setAnyPortEnabled(bool anyPortEnabled) { + anyPortEnabled_ = anyPortEnabled; + setBodyParameter(std::string("AnyPortEnabled"), anyPortEnabled ? "true" : "false"); +} + +std::string CreateServerGroupRequest::getServerGroupType() const { + return serverGroupType_; +} + +void CreateServerGroupRequest::setServerGroupType(const std::string &serverGroupType) { + serverGroupType_ = serverGroupType; + setBodyParameter(std::string("ServerGroupType"), serverGroupType); +} + +std::string CreateServerGroupRequest::getVpcId() const { + return vpcId_; +} + +void CreateServerGroupRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setBodyParameter(std::string("VpcId"), vpcId); +} + diff --git a/nlb/src/model/CreateServerGroupResult.cc b/nlb/src/model/CreateServerGroupResult.cc new file mode 100644 index 000000000..1e54c0d1d --- /dev/null +++ b/nlb/src/model/CreateServerGroupResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +CreateServerGroupResult::CreateServerGroupResult() : + ServiceResult() +{} + +CreateServerGroupResult::CreateServerGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateServerGroupResult::~CreateServerGroupResult() +{} + +void CreateServerGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["ServerGroupId"].isNull()) + serverGroupId_ = value["ServerGroupId"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string CreateServerGroupResult::getMessage()const +{ + return message_; +} + +int CreateServerGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateServerGroupResult::getServerGroupId()const +{ + return serverGroupId_; +} + +std::string CreateServerGroupResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string CreateServerGroupResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string CreateServerGroupResult::getCode()const +{ + return code_; +} + +bool CreateServerGroupResult::getSuccess()const +{ + return success_; +} + +std::string CreateServerGroupResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/DeleteListenerRequest.cc b/nlb/src/model/DeleteListenerRequest.cc new file mode 100644 index 000000000..cd7f9977f --- /dev/null +++ b/nlb/src/model/DeleteListenerRequest.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::Nlb::Model::DeleteListenerRequest; + +DeleteListenerRequest::DeleteListenerRequest() + : RpcServiceRequest("nlb", "2022-04-30", "DeleteListener") { + setMethod(HttpRequest::Method::Post); +} + +DeleteListenerRequest::~DeleteListenerRequest() {} + +std::string DeleteListenerRequest::getClientToken() const { + return clientToken_; +} + +void DeleteListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteListenerRequest::getListenerId() const { + return listenerId_; +} + +void DeleteListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setBodyParameter(std::string("ListenerId"), listenerId); +} + +std::string DeleteListenerRequest::getRegionId() const { + return regionId_; +} + +void DeleteListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool DeleteListenerRequest::getDryRun() const { + return dryRun_; +} + +void DeleteListenerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/nlb/src/model/DeleteListenerResult.cc b/nlb/src/model/DeleteListenerResult.cc new file mode 100644 index 000000000..285b01bce --- /dev/null +++ b/nlb/src/model/DeleteListenerResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +DeleteListenerResult::DeleteListenerResult() : + ServiceResult() +{} + +DeleteListenerResult::DeleteListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteListenerResult::~DeleteListenerResult() +{} + +void DeleteListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string DeleteListenerResult::getMessage()const +{ + return message_; +} + +int DeleteListenerResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteListenerResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DeleteListenerResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DeleteListenerResult::getCode()const +{ + return code_; +} + +bool DeleteListenerResult::getSuccess()const +{ + return success_; +} + +std::string DeleteListenerResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/DeleteLoadBalancerRequest.cc b/nlb/src/model/DeleteLoadBalancerRequest.cc new file mode 100644 index 000000000..375898116 --- /dev/null +++ b/nlb/src/model/DeleteLoadBalancerRequest.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::Nlb::Model::DeleteLoadBalancerRequest; + +DeleteLoadBalancerRequest::DeleteLoadBalancerRequest() + : RpcServiceRequest("nlb", "2022-04-30", "DeleteLoadBalancer") { + setMethod(HttpRequest::Method::Post); +} + +DeleteLoadBalancerRequest::~DeleteLoadBalancerRequest() {} + +std::string DeleteLoadBalancerRequest::getClientToken() const { + return clientToken_; +} + +void DeleteLoadBalancerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteLoadBalancerRequest::getRegionId() const { + return regionId_; +} + +void DeleteLoadBalancerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool DeleteLoadBalancerRequest::getDryRun() const { + return dryRun_; +} + +void DeleteLoadBalancerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeleteLoadBalancerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DeleteLoadBalancerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setBodyParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/nlb/src/model/DeleteLoadBalancerResult.cc b/nlb/src/model/DeleteLoadBalancerResult.cc new file mode 100644 index 000000000..92c92ce2d --- /dev/null +++ b/nlb/src/model/DeleteLoadBalancerResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +DeleteLoadBalancerResult::DeleteLoadBalancerResult() : + ServiceResult() +{} + +DeleteLoadBalancerResult::DeleteLoadBalancerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteLoadBalancerResult::~DeleteLoadBalancerResult() +{} + +void DeleteLoadBalancerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string DeleteLoadBalancerResult::getMessage()const +{ + return message_; +} + +int DeleteLoadBalancerResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteLoadBalancerResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DeleteLoadBalancerResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DeleteLoadBalancerResult::getCode()const +{ + return code_; +} + +bool DeleteLoadBalancerResult::getSuccess()const +{ + return success_; +} + +std::string DeleteLoadBalancerResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/DeleteSecurityPolicyRequest.cc b/nlb/src/model/DeleteSecurityPolicyRequest.cc new file mode 100644 index 000000000..1c31dc4d7 --- /dev/null +++ b/nlb/src/model/DeleteSecurityPolicyRequest.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::Nlb::Model::DeleteSecurityPolicyRequest; + +DeleteSecurityPolicyRequest::DeleteSecurityPolicyRequest() + : RpcServiceRequest("nlb", "2022-04-30", "DeleteSecurityPolicy") { + setMethod(HttpRequest::Method::Post); +} + +DeleteSecurityPolicyRequest::~DeleteSecurityPolicyRequest() {} + +std::string DeleteSecurityPolicyRequest::getClientToken() const { + return clientToken_; +} + +void DeleteSecurityPolicyRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteSecurityPolicyRequest::getRegionId() const { + return regionId_; +} + +void DeleteSecurityPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool DeleteSecurityPolicyRequest::getDryRun() const { + return dryRun_; +} + +void DeleteSecurityPolicyRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DeleteSecurityPolicyRequest::getSecurityPolicyId() const { + return securityPolicyId_; +} + +void DeleteSecurityPolicyRequest::setSecurityPolicyId(const std::string &securityPolicyId) { + securityPolicyId_ = securityPolicyId; + setBodyParameter(std::string("SecurityPolicyId"), securityPolicyId); +} + diff --git a/nlb/src/model/DeleteSecurityPolicyResult.cc b/nlb/src/model/DeleteSecurityPolicyResult.cc new file mode 100644 index 000000000..e7ba5543d --- /dev/null +++ b/nlb/src/model/DeleteSecurityPolicyResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +DeleteSecurityPolicyResult::DeleteSecurityPolicyResult() : + ServiceResult() +{} + +DeleteSecurityPolicyResult::DeleteSecurityPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSecurityPolicyResult::~DeleteSecurityPolicyResult() +{} + +void DeleteSecurityPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string DeleteSecurityPolicyResult::getMessage()const +{ + return message_; +} + +int DeleteSecurityPolicyResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteSecurityPolicyResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DeleteSecurityPolicyResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DeleteSecurityPolicyResult::getCode()const +{ + return code_; +} + +bool DeleteSecurityPolicyResult::getSuccess()const +{ + return success_; +} + +std::string DeleteSecurityPolicyResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/DeleteServerGroupRequest.cc b/nlb/src/model/DeleteServerGroupRequest.cc new file mode 100644 index 000000000..a6018759e --- /dev/null +++ b/nlb/src/model/DeleteServerGroupRequest.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::Nlb::Model::DeleteServerGroupRequest; + +DeleteServerGroupRequest::DeleteServerGroupRequest() + : RpcServiceRequest("nlb", "2022-04-30", "DeleteServerGroup") { + setMethod(HttpRequest::Method::Post); +} + +DeleteServerGroupRequest::~DeleteServerGroupRequest() {} + +std::string DeleteServerGroupRequest::getClientToken() const { + return clientToken_; +} + +void DeleteServerGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteServerGroupRequest::getServerGroupId() const { + return serverGroupId_; +} + +void DeleteServerGroupRequest::setServerGroupId(const std::string &serverGroupId) { + serverGroupId_ = serverGroupId; + setBodyParameter(std::string("ServerGroupId"), serverGroupId); +} + +std::string DeleteServerGroupRequest::getRegionId() const { + return regionId_; +} + +void DeleteServerGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool DeleteServerGroupRequest::getDryRun() const { + return dryRun_; +} + +void DeleteServerGroupRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/nlb/src/model/DeleteServerGroupResult.cc b/nlb/src/model/DeleteServerGroupResult.cc new file mode 100644 index 000000000..867c8cb09 --- /dev/null +++ b/nlb/src/model/DeleteServerGroupResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +DeleteServerGroupResult::DeleteServerGroupResult() : + ServiceResult() +{} + +DeleteServerGroupResult::DeleteServerGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteServerGroupResult::~DeleteServerGroupResult() +{} + +void DeleteServerGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["ServerGroupId"].isNull()) + serverGroupId_ = value["ServerGroupId"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string DeleteServerGroupResult::getMessage()const +{ + return message_; +} + +int DeleteServerGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DeleteServerGroupResult::getServerGroupId()const +{ + return serverGroupId_; +} + +std::string DeleteServerGroupResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DeleteServerGroupResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DeleteServerGroupResult::getCode()const +{ + return code_; +} + +bool DeleteServerGroupResult::getSuccess()const +{ + return success_; +} + +std::string DeleteServerGroupResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/DescribeRegionsRequest.cc b/nlb/src/model/DescribeRegionsRequest.cc new file mode 100644 index 000000000..a5fd55c6e --- /dev/null +++ b/nlb/src/model/DescribeRegionsRequest.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::Nlb::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() + : RpcServiceRequest("nlb", "2022-04-30", "DescribeRegions") { + setMethod(HttpRequest::Method::Post); +} + +DescribeRegionsRequest::~DescribeRegionsRequest() {} + +std::string DescribeRegionsRequest::getClientToken() const { + return clientToken_; +} + +void DescribeRegionsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string DescribeRegionsRequest::getServiceCode() const { + return serviceCode_; +} + +void DescribeRegionsRequest::setServiceCode(const std::string &serviceCode) { + serviceCode_ = serviceCode; + setParameter(std::string("ServiceCode"), serviceCode); +} + +std::string DescribeRegionsRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DescribeRegionsRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/nlb/src/model/DescribeRegionsResult.cc b/nlb/src/model/DescribeRegionsResult.cc new file mode 100644 index 000000000..6f6478ddc --- /dev/null +++ b/nlb/src/model/DescribeRegionsResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRegionsNode = value["Regions"]["Region"]; + for (auto valueRegionsRegion : allRegionsNode) + { + Region regionsObject; + if(!valueRegionsRegion["LocalName"].isNull()) + regionsObject.localName = valueRegionsRegion["LocalName"].asString(); + if(!valueRegionsRegion["RegionEndpoint"].isNull()) + regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString(); + if(!valueRegionsRegion["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegion["RegionId"].asString(); + regions_.push_back(regionsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string DescribeRegionsResult::getMessage()const +{ + return message_; +} + +int DescribeRegionsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector DescribeRegionsResult::getRegions()const +{ + return regions_; +} + +std::string DescribeRegionsResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DescribeRegionsResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DescribeRegionsResult::getCode()const +{ + return code_; +} + +bool DescribeRegionsResult::getSuccess()const +{ + return success_; +} + diff --git a/nlb/src/model/DescribeZonesRequest.cc b/nlb/src/model/DescribeZonesRequest.cc new file mode 100644 index 000000000..d6017497e --- /dev/null +++ b/nlb/src/model/DescribeZonesRequest.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::Nlb::Model::DescribeZonesRequest; + +DescribeZonesRequest::DescribeZonesRequest() + : RpcServiceRequest("nlb", "2022-04-30", "DescribeZones") { + setMethod(HttpRequest::Method::Post); +} + +DescribeZonesRequest::~DescribeZonesRequest() {} + +std::string DescribeZonesRequest::getClientToken() const { + return clientToken_; +} + +void DescribeZonesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DescribeZonesRequest::getRegionId() const { + return regionId_; +} + +void DescribeZonesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeZonesRequest::getServiceCode() const { + return serviceCode_; +} + +void DescribeZonesRequest::setServiceCode(const std::string &serviceCode) { + serviceCode_ = serviceCode; + setParameter(std::string("ServiceCode"), serviceCode); +} + +std::string DescribeZonesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DescribeZonesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/nlb/src/model/DescribeZonesResult.cc b/nlb/src/model/DescribeZonesResult.cc new file mode 100644 index 000000000..03e8c617a --- /dev/null +++ b/nlb/src/model/DescribeZonesResult.cc @@ -0,0 +1,101 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +DescribeZonesResult::DescribeZonesResult() : + ServiceResult() +{} + +DescribeZonesResult::DescribeZonesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeZonesResult::~DescribeZonesResult() +{} + +void DescribeZonesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allZonesNode = value["Zones"]["Zone"]; + for (auto valueZonesZone : allZonesNode) + { + Zone zonesObject; + if(!valueZonesZone["LocalName"].isNull()) + zonesObject.localName = valueZonesZone["LocalName"].asString(); + if(!valueZonesZone["ZoneId"].isNull()) + zonesObject.zoneId = valueZonesZone["ZoneId"].asString(); + zones_.push_back(zonesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string DescribeZonesResult::getMessage()const +{ + return message_; +} + +int DescribeZonesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DescribeZonesResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DescribeZonesResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DescribeZonesResult::getCode()const +{ + return code_; +} + +bool DescribeZonesResult::getSuccess()const +{ + return success_; +} + +std::vector DescribeZonesResult::getZones()const +{ + return zones_; +} + diff --git a/nlb/src/model/DetachCommonBandwidthPackageFromLoadBalancerRequest.cc b/nlb/src/model/DetachCommonBandwidthPackageFromLoadBalancerRequest.cc new file mode 100644 index 000000000..8a448b541 --- /dev/null +++ b/nlb/src/model/DetachCommonBandwidthPackageFromLoadBalancerRequest.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::Nlb::Model::DetachCommonBandwidthPackageFromLoadBalancerRequest; + +DetachCommonBandwidthPackageFromLoadBalancerRequest::DetachCommonBandwidthPackageFromLoadBalancerRequest() + : RpcServiceRequest("nlb", "2022-04-30", "DetachCommonBandwidthPackageFromLoadBalancer") { + setMethod(HttpRequest::Method::Post); +} + +DetachCommonBandwidthPackageFromLoadBalancerRequest::~DetachCommonBandwidthPackageFromLoadBalancerRequest() {} + +std::string DetachCommonBandwidthPackageFromLoadBalancerRequest::getClientToken() const { + return clientToken_; +} + +void DetachCommonBandwidthPackageFromLoadBalancerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string DetachCommonBandwidthPackageFromLoadBalancerRequest::getRegionId() const { + return regionId_; +} + +void DetachCommonBandwidthPackageFromLoadBalancerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string DetachCommonBandwidthPackageFromLoadBalancerRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; +} + +void DetachCommonBandwidthPackageFromLoadBalancerRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setBodyParameter(std::string("BandwidthPackageId"), bandwidthPackageId); +} + +bool DetachCommonBandwidthPackageFromLoadBalancerRequest::getDryRun() const { + return dryRun_; +} + +void DetachCommonBandwidthPackageFromLoadBalancerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DetachCommonBandwidthPackageFromLoadBalancerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DetachCommonBandwidthPackageFromLoadBalancerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setBodyParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/nlb/src/model/DetachCommonBandwidthPackageFromLoadBalancerResult.cc b/nlb/src/model/DetachCommonBandwidthPackageFromLoadBalancerResult.cc new file mode 100644 index 000000000..3396aadda --- /dev/null +++ b/nlb/src/model/DetachCommonBandwidthPackageFromLoadBalancerResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +DetachCommonBandwidthPackageFromLoadBalancerResult::DetachCommonBandwidthPackageFromLoadBalancerResult() : + ServiceResult() +{} + +DetachCommonBandwidthPackageFromLoadBalancerResult::DetachCommonBandwidthPackageFromLoadBalancerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachCommonBandwidthPackageFromLoadBalancerResult::~DetachCommonBandwidthPackageFromLoadBalancerResult() +{} + +void DetachCommonBandwidthPackageFromLoadBalancerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string DetachCommonBandwidthPackageFromLoadBalancerResult::getMessage()const +{ + return message_; +} + +int DetachCommonBandwidthPackageFromLoadBalancerResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DetachCommonBandwidthPackageFromLoadBalancerResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DetachCommonBandwidthPackageFromLoadBalancerResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DetachCommonBandwidthPackageFromLoadBalancerResult::getCode()const +{ + return code_; +} + +bool DetachCommonBandwidthPackageFromLoadBalancerResult::getSuccess()const +{ + return success_; +} + +std::string DetachCommonBandwidthPackageFromLoadBalancerResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/DisableLoadBalancerIpv6InternetRequest.cc b/nlb/src/model/DisableLoadBalancerIpv6InternetRequest.cc new file mode 100644 index 000000000..11c6a7bc5 --- /dev/null +++ b/nlb/src/model/DisableLoadBalancerIpv6InternetRequest.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::Nlb::Model::DisableLoadBalancerIpv6InternetRequest; + +DisableLoadBalancerIpv6InternetRequest::DisableLoadBalancerIpv6InternetRequest() + : RpcServiceRequest("nlb", "2022-04-30", "DisableLoadBalancerIpv6Internet") { + setMethod(HttpRequest::Method::Post); +} + +DisableLoadBalancerIpv6InternetRequest::~DisableLoadBalancerIpv6InternetRequest() {} + +std::string DisableLoadBalancerIpv6InternetRequest::getClientToken() const { + return clientToken_; +} + +void DisableLoadBalancerIpv6InternetRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string DisableLoadBalancerIpv6InternetRequest::getRegionId() const { + return regionId_; +} + +void DisableLoadBalancerIpv6InternetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool DisableLoadBalancerIpv6InternetRequest::getDryRun() const { + return dryRun_; +} + +void DisableLoadBalancerIpv6InternetRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string DisableLoadBalancerIpv6InternetRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DisableLoadBalancerIpv6InternetRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setBodyParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/nlb/src/model/DisableLoadBalancerIpv6InternetResult.cc b/nlb/src/model/DisableLoadBalancerIpv6InternetResult.cc new file mode 100644 index 000000000..bf44ad1fa --- /dev/null +++ b/nlb/src/model/DisableLoadBalancerIpv6InternetResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +DisableLoadBalancerIpv6InternetResult::DisableLoadBalancerIpv6InternetResult() : + ServiceResult() +{} + +DisableLoadBalancerIpv6InternetResult::DisableLoadBalancerIpv6InternetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableLoadBalancerIpv6InternetResult::~DisableLoadBalancerIpv6InternetResult() +{} + +void DisableLoadBalancerIpv6InternetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string DisableLoadBalancerIpv6InternetResult::getMessage()const +{ + return message_; +} + +int DisableLoadBalancerIpv6InternetResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DisableLoadBalancerIpv6InternetResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DisableLoadBalancerIpv6InternetResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DisableLoadBalancerIpv6InternetResult::getCode()const +{ + return code_; +} + +bool DisableLoadBalancerIpv6InternetResult::getSuccess()const +{ + return success_; +} + diff --git a/nlb/src/model/DisassociateAdditionalCertificatesWithListenerRequest.cc b/nlb/src/model/DisassociateAdditionalCertificatesWithListenerRequest.cc new file mode 100644 index 000000000..b76a25ddb --- /dev/null +++ b/nlb/src/model/DisassociateAdditionalCertificatesWithListenerRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlb::Model::DisassociateAdditionalCertificatesWithListenerRequest; + +DisassociateAdditionalCertificatesWithListenerRequest::DisassociateAdditionalCertificatesWithListenerRequest() + : RpcServiceRequest("nlb", "2022-04-30", "DisassociateAdditionalCertificatesWithListener") { + setMethod(HttpRequest::Method::Post); +} + +DisassociateAdditionalCertificatesWithListenerRequest::~DisassociateAdditionalCertificatesWithListenerRequest() {} + +std::string DisassociateAdditionalCertificatesWithListenerRequest::getClientToken() const { + return clientToken_; +} + +void DisassociateAdditionalCertificatesWithListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string DisassociateAdditionalCertificatesWithListenerRequest::getListenerId() const { + return listenerId_; +} + +void DisassociateAdditionalCertificatesWithListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setBodyParameter(std::string("ListenerId"), listenerId); +} + +std::string DisassociateAdditionalCertificatesWithListenerRequest::getRegionId() const { + return regionId_; +} + +void DisassociateAdditionalCertificatesWithListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool DisassociateAdditionalCertificatesWithListenerRequest::getDryRun() const { + return dryRun_; +} + +void DisassociateAdditionalCertificatesWithListenerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector DisassociateAdditionalCertificatesWithListenerRequest::getAdditionalCertificateIds() const { + return additionalCertificateIds_; +} + +void DisassociateAdditionalCertificatesWithListenerRequest::setAdditionalCertificateIds(const std::vector &additionalCertificateIds) { + additionalCertificateIds_ = additionalCertificateIds; +} + diff --git a/nlb/src/model/DisassociateAdditionalCertificatesWithListenerResult.cc b/nlb/src/model/DisassociateAdditionalCertificatesWithListenerResult.cc new file mode 100644 index 000000000..78d4afcb7 --- /dev/null +++ b/nlb/src/model/DisassociateAdditionalCertificatesWithListenerResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +DisassociateAdditionalCertificatesWithListenerResult::DisassociateAdditionalCertificatesWithListenerResult() : + ServiceResult() +{} + +DisassociateAdditionalCertificatesWithListenerResult::DisassociateAdditionalCertificatesWithListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisassociateAdditionalCertificatesWithListenerResult::~DisassociateAdditionalCertificatesWithListenerResult() +{} + +void DisassociateAdditionalCertificatesWithListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string DisassociateAdditionalCertificatesWithListenerResult::getMessage()const +{ + return message_; +} + +int DisassociateAdditionalCertificatesWithListenerResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DisassociateAdditionalCertificatesWithListenerResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string DisassociateAdditionalCertificatesWithListenerResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string DisassociateAdditionalCertificatesWithListenerResult::getCode()const +{ + return code_; +} + +bool DisassociateAdditionalCertificatesWithListenerResult::getSuccess()const +{ + return success_; +} + +std::string DisassociateAdditionalCertificatesWithListenerResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/EnableLoadBalancerIpv6InternetRequest.cc b/nlb/src/model/EnableLoadBalancerIpv6InternetRequest.cc new file mode 100644 index 000000000..ad876ec5d --- /dev/null +++ b/nlb/src/model/EnableLoadBalancerIpv6InternetRequest.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::Nlb::Model::EnableLoadBalancerIpv6InternetRequest; + +EnableLoadBalancerIpv6InternetRequest::EnableLoadBalancerIpv6InternetRequest() + : RpcServiceRequest("nlb", "2022-04-30", "EnableLoadBalancerIpv6Internet") { + setMethod(HttpRequest::Method::Post); +} + +EnableLoadBalancerIpv6InternetRequest::~EnableLoadBalancerIpv6InternetRequest() {} + +std::string EnableLoadBalancerIpv6InternetRequest::getClientToken() const { + return clientToken_; +} + +void EnableLoadBalancerIpv6InternetRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string EnableLoadBalancerIpv6InternetRequest::getRegionId() const { + return regionId_; +} + +void EnableLoadBalancerIpv6InternetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool EnableLoadBalancerIpv6InternetRequest::getDryRun() const { + return dryRun_; +} + +void EnableLoadBalancerIpv6InternetRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string EnableLoadBalancerIpv6InternetRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void EnableLoadBalancerIpv6InternetRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setBodyParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/nlb/src/model/EnableLoadBalancerIpv6InternetResult.cc b/nlb/src/model/EnableLoadBalancerIpv6InternetResult.cc new file mode 100644 index 000000000..30b8448be --- /dev/null +++ b/nlb/src/model/EnableLoadBalancerIpv6InternetResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +EnableLoadBalancerIpv6InternetResult::EnableLoadBalancerIpv6InternetResult() : + ServiceResult() +{} + +EnableLoadBalancerIpv6InternetResult::EnableLoadBalancerIpv6InternetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableLoadBalancerIpv6InternetResult::~EnableLoadBalancerIpv6InternetResult() +{} + +void EnableLoadBalancerIpv6InternetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string EnableLoadBalancerIpv6InternetResult::getMessage()const +{ + return message_; +} + +int EnableLoadBalancerIpv6InternetResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string EnableLoadBalancerIpv6InternetResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string EnableLoadBalancerIpv6InternetResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string EnableLoadBalancerIpv6InternetResult::getCode()const +{ + return code_; +} + +bool EnableLoadBalancerIpv6InternetResult::getSuccess()const +{ + return success_; +} + diff --git a/nlb/src/model/GetJobStatusRequest.cc b/nlb/src/model/GetJobStatusRequest.cc new file mode 100644 index 000000000..60d890a8c --- /dev/null +++ b/nlb/src/model/GetJobStatusRequest.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::Nlb::Model::GetJobStatusRequest; + +GetJobStatusRequest::GetJobStatusRequest() + : RpcServiceRequest("nlb", "2022-04-30", "GetJobStatus") { + setMethod(HttpRequest::Method::Post); +} + +GetJobStatusRequest::~GetJobStatusRequest() {} + +std::string GetJobStatusRequest::getClientToken() const { + return clientToken_; +} + +void GetJobStatusRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string GetJobStatusRequest::getJobId() const { + return jobId_; +} + +void GetJobStatusRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + diff --git a/nlb/src/model/GetJobStatusResult.cc b/nlb/src/model/GetJobStatusResult.cc new file mode 100644 index 000000000..ed7915265 --- /dev/null +++ b/nlb/src/model/GetJobStatusResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +GetJobStatusResult::GetJobStatusResult() : + ServiceResult() +{} + +GetJobStatusResult::GetJobStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetJobStatusResult::~GetJobStatusResult() +{} + +void GetJobStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string GetJobStatusResult::getStatus()const +{ + return status_; +} + +std::string GetJobStatusResult::getMessage()const +{ + return message_; +} + +int GetJobStatusResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetJobStatusResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string GetJobStatusResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string GetJobStatusResult::getCode()const +{ + return code_; +} + +bool GetJobStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/nlb/src/model/GetListenerAttributeRequest.cc b/nlb/src/model/GetListenerAttributeRequest.cc new file mode 100644 index 000000000..05f770208 --- /dev/null +++ b/nlb/src/model/GetListenerAttributeRequest.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::Nlb::Model::GetListenerAttributeRequest; + +GetListenerAttributeRequest::GetListenerAttributeRequest() + : RpcServiceRequest("nlb", "2022-04-30", "GetListenerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +GetListenerAttributeRequest::~GetListenerAttributeRequest() {} + +std::string GetListenerAttributeRequest::getClientToken() const { + return clientToken_; +} + +void GetListenerAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string GetListenerAttributeRequest::getListenerId() const { + return listenerId_; +} + +void GetListenerAttributeRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string GetListenerAttributeRequest::getRegionId() const { + return regionId_; +} + +void GetListenerAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool GetListenerAttributeRequest::getDryRun() const { + return dryRun_; +} + +void GetListenerAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/nlb/src/model/GetListenerAttributeResult.cc b/nlb/src/model/GetListenerAttributeResult.cc new file mode 100644 index 000000000..1584d4ba7 --- /dev/null +++ b/nlb/src/model/GetListenerAttributeResult.cc @@ -0,0 +1,250 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +GetListenerAttributeResult::GetListenerAttributeResult() : + ServiceResult() +{} + +GetListenerAttributeResult::GetListenerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetListenerAttributeResult::~GetListenerAttributeResult() +{} + +void GetListenerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagsNode = value["Tags"]["Tag"]; + for (auto valueTagsTag : allTagsNode) + { + Tag tagsObject; + if(!valueTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueTagsTag["TagKey"].asString(); + if(!valueTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueTagsTag["TagValue"].asString(); + tags_.push_back(tagsObject); + } + auto allCertificateIds = value["CertificateIds"]["CertificateId"]; + for (const auto &item : allCertificateIds) + certificateIds_.push_back(item.asString()); + auto allCaCertificateIds = value["CaCertificateIds"]["CaCertificateId"]; + for (const auto &item : allCaCertificateIds) + caCertificateIds_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); + if(!value["ListenerId"].isNull()) + listenerId_ = value["ListenerId"].asString(); + if(!value["ListenerProtocol"].isNull()) + listenerProtocol_ = value["ListenerProtocol"].asString(); + if(!value["ListenerPort"].isNull()) + listenerPort_ = std::stoi(value["ListenerPort"].asString()); + if(!value["StartPort"].isNull()) + startPort_ = value["StartPort"].asString(); + if(!value["EndPort"].isNull()) + endPort_ = value["EndPort"].asString(); + if(!value["ListenerDescription"].isNull()) + listenerDescription_ = value["ListenerDescription"].asString(); + if(!value["ServerGroupId"].isNull()) + serverGroupId_ = value["ServerGroupId"].asString(); + if(!value["IdleTimeout"].isNull()) + idleTimeout_ = std::stoi(value["IdleTimeout"].asString()); + if(!value["SecurityPolicyId"].isNull()) + securityPolicyId_ = value["SecurityPolicyId"].asString(); + if(!value["CaEnabled"].isNull()) + caEnabled_ = value["CaEnabled"].asString() == "true"; + if(!value["AlpnEnabled"].isNull()) + alpnEnabled_ = value["AlpnEnabled"].asString() == "true"; + if(!value["AlpnPolicy"].isNull()) + alpnPolicy_ = value["AlpnPolicy"].asString(); + if(!value["ProxyProtocolEnabled"].isNull()) + proxyProtocolEnabled_ = value["ProxyProtocolEnabled"].asString() == "true"; + if(!value["SecSensorEnabled"].isNull()) + secSensorEnabled_ = value["SecSensorEnabled"].asString() == "true"; + if(!value["ListenerStatus"].isNull()) + listenerStatus_ = value["ListenerStatus"].asString(); + if(!value["Cps"].isNull()) + cps_ = std::stoi(value["Cps"].asString()); + if(!value["Mss"].isNull()) + mss_ = std::stoi(value["Mss"].asString()); + +} + +std::string GetListenerAttributeResult::getMessage()const +{ + return message_; +} + +int GetListenerAttributeResult::getCps()const +{ + return cps_; +} + +int GetListenerAttributeResult::getIdleTimeout()const +{ + return idleTimeout_; +} + +std::string GetListenerAttributeResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +std::string GetListenerAttributeResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string GetListenerAttributeResult::getListenerProtocol()const +{ + return listenerProtocol_; +} + +bool GetListenerAttributeResult::getSuccess()const +{ + return success_; +} + +std::string GetListenerAttributeResult::getSecurityPolicyId()const +{ + return securityPolicyId_; +} + +std::string GetListenerAttributeResult::getListenerStatus()const +{ + return listenerStatus_; +} + +std::string GetListenerAttributeResult::getListenerDescription()const +{ + return listenerDescription_; +} + +std::string GetListenerAttributeResult::getAlpnPolicy()const +{ + return alpnPolicy_; +} + +std::vector GetListenerAttributeResult::getCaCertificateIds()const +{ + return caCertificateIds_; +} + +std::vector GetListenerAttributeResult::getCertificateIds()const +{ + return certificateIds_; +} + +int GetListenerAttributeResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +bool GetListenerAttributeResult::getSecSensorEnabled()const +{ + return secSensorEnabled_; +} + +std::string GetListenerAttributeResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::vector GetListenerAttributeResult::getTags()const +{ + return tags_; +} + +bool GetListenerAttributeResult::getCaEnabled()const +{ + return caEnabled_; +} + +int GetListenerAttributeResult::getListenerPort()const +{ + return listenerPort_; +} + +std::string GetListenerAttributeResult::getStartPort()const +{ + return startPort_; +} + +std::string GetListenerAttributeResult::getServerGroupId()const +{ + return serverGroupId_; +} + +int GetListenerAttributeResult::getMss()const +{ + return mss_; +} + +std::string GetListenerAttributeResult::getCode()const +{ + return code_; +} + +std::string GetListenerAttributeResult::getEndPort()const +{ + return endPort_; +} + +bool GetListenerAttributeResult::getProxyProtocolEnabled()const +{ + return proxyProtocolEnabled_; +} + +std::string GetListenerAttributeResult::getRegionId()const +{ + return regionId_; +} + +std::string GetListenerAttributeResult::getListenerId()const +{ + return listenerId_; +} + +bool GetListenerAttributeResult::getAlpnEnabled()const +{ + return alpnEnabled_; +} + diff --git a/nlb/src/model/GetListenerHealthStatusRequest.cc b/nlb/src/model/GetListenerHealthStatusRequest.cc new file mode 100644 index 000000000..f0cd30ade --- /dev/null +++ b/nlb/src/model/GetListenerHealthStatusRequest.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::Nlb::Model::GetListenerHealthStatusRequest; + +GetListenerHealthStatusRequest::GetListenerHealthStatusRequest() + : RpcServiceRequest("nlb", "2022-04-30", "GetListenerHealthStatus") { + setMethod(HttpRequest::Method::Post); +} + +GetListenerHealthStatusRequest::~GetListenerHealthStatusRequest() {} + +std::string GetListenerHealthStatusRequest::getListenerId() const { + return listenerId_; +} + +void GetListenerHealthStatusRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setParameter(std::string("ListenerId"), listenerId); +} + +std::string GetListenerHealthStatusRequest::getNextToken() const { + return nextToken_; +} + +void GetListenerHealthStatusRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string GetListenerHealthStatusRequest::getRegionId() const { + return regionId_; +} + +void GetListenerHealthStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int GetListenerHealthStatusRequest::getMaxResults() const { + return maxResults_; +} + +void GetListenerHealthStatusRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/nlb/src/model/GetListenerHealthStatusResult.cc b/nlb/src/model/GetListenerHealthStatusResult.cc new file mode 100644 index 000000000..16291dac3 --- /dev/null +++ b/nlb/src/model/GetListenerHealthStatusResult.cc @@ -0,0 +1,151 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +GetListenerHealthStatusResult::GetListenerHealthStatusResult() : + ServiceResult() +{} + +GetListenerHealthStatusResult::GetListenerHealthStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetListenerHealthStatusResult::~GetListenerHealthStatusResult() +{} + +void GetListenerHealthStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allListenerHealthStatusNode = value["ListenerHealthStatus"]["ListenerHealthStatusItem"]; + for (auto valueListenerHealthStatusListenerHealthStatusItem : allListenerHealthStatusNode) + { + ListenerHealthStatusItem listenerHealthStatusObject; + if(!valueListenerHealthStatusListenerHealthStatusItem["ListenerId"].isNull()) + listenerHealthStatusObject.listenerId = valueListenerHealthStatusListenerHealthStatusItem["ListenerId"].asString(); + if(!valueListenerHealthStatusListenerHealthStatusItem["ListenerPort"].isNull()) + listenerHealthStatusObject.listenerPort = std::stoi(valueListenerHealthStatusListenerHealthStatusItem["ListenerPort"].asString()); + if(!valueListenerHealthStatusListenerHealthStatusItem["ListenerProtocol"].isNull()) + listenerHealthStatusObject.listenerProtocol = valueListenerHealthStatusListenerHealthStatusItem["ListenerProtocol"].asString(); + auto allServerGroupInfosNode = valueListenerHealthStatusListenerHealthStatusItem["ServerGroupInfos"]["ServerGroupInfo"]; + for (auto valueListenerHealthStatusListenerHealthStatusItemServerGroupInfosServerGroupInfo : allServerGroupInfosNode) + { + ListenerHealthStatusItem::ServerGroupInfo serverGroupInfosObject; + if(!valueListenerHealthStatusListenerHealthStatusItemServerGroupInfosServerGroupInfo["HeathCheckEnabled"].isNull()) + serverGroupInfosObject.heathCheckEnabled = valueListenerHealthStatusListenerHealthStatusItemServerGroupInfosServerGroupInfo["HeathCheckEnabled"].asString() == "true"; + if(!valueListenerHealthStatusListenerHealthStatusItemServerGroupInfosServerGroupInfo["ServerGroupId"].isNull()) + serverGroupInfosObject.serverGroupId = valueListenerHealthStatusListenerHealthStatusItemServerGroupInfosServerGroupInfo["ServerGroupId"].asString(); + auto allNonNormalServersNode = valueListenerHealthStatusListenerHealthStatusItemServerGroupInfosServerGroupInfo["NonNormalServers"]["AbnormalServer"]; + for (auto valueListenerHealthStatusListenerHealthStatusItemServerGroupInfosServerGroupInfoNonNormalServersAbnormalServer : allNonNormalServersNode) + { + ListenerHealthStatusItem::ServerGroupInfo::AbnormalServer nonNormalServersObject; + if(!valueListenerHealthStatusListenerHealthStatusItemServerGroupInfosServerGroupInfoNonNormalServersAbnormalServer["Status"].isNull()) + nonNormalServersObject.status = valueListenerHealthStatusListenerHealthStatusItemServerGroupInfosServerGroupInfoNonNormalServersAbnormalServer["Status"].asString(); + if(!valueListenerHealthStatusListenerHealthStatusItemServerGroupInfosServerGroupInfoNonNormalServersAbnormalServer["Port"].isNull()) + nonNormalServersObject.port = std::stoi(valueListenerHealthStatusListenerHealthStatusItemServerGroupInfosServerGroupInfoNonNormalServersAbnormalServer["Port"].asString()); + if(!valueListenerHealthStatusListenerHealthStatusItemServerGroupInfosServerGroupInfoNonNormalServersAbnormalServer["ServerId"].isNull()) + nonNormalServersObject.serverId = valueListenerHealthStatusListenerHealthStatusItemServerGroupInfosServerGroupInfoNonNormalServersAbnormalServer["ServerId"].asString(); + if(!valueListenerHealthStatusListenerHealthStatusItemServerGroupInfosServerGroupInfoNonNormalServersAbnormalServer["ServerIp"].isNull()) + nonNormalServersObject.serverIp = valueListenerHealthStatusListenerHealthStatusItemServerGroupInfosServerGroupInfoNonNormalServersAbnormalServer["ServerIp"].asString(); + auto reasonNode = value["Reason"]; + if(!reasonNode["ReasonCode"].isNull()) + nonNormalServersObject.reason.reasonCode = reasonNode["ReasonCode"].asString(); + serverGroupInfosObject.nonNormalServers.push_back(nonNormalServersObject); + } + listenerHealthStatusObject.serverGroupInfos.push_back(serverGroupInfosObject); + } + listenerHealthStatus_.push_back(listenerHealthStatusObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +std::vector GetListenerHealthStatusResult::getListenerHealthStatus()const +{ + return listenerHealthStatus_; +} + +int GetListenerHealthStatusResult::getTotalCount()const +{ + return totalCount_; +} + +std::string GetListenerHealthStatusResult::getMessage()const +{ + return message_; +} + +std::string GetListenerHealthStatusResult::getNextToken()const +{ + return nextToken_; +} + +int GetListenerHealthStatusResult::getMaxResults()const +{ + return maxResults_; +} + +int GetListenerHealthStatusResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetListenerHealthStatusResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string GetListenerHealthStatusResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string GetListenerHealthStatusResult::getCode()const +{ + return code_; +} + +bool GetListenerHealthStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/nlb/src/model/GetLoadBalancerAttributeRequest.cc b/nlb/src/model/GetLoadBalancerAttributeRequest.cc new file mode 100644 index 000000000..c2d568769 --- /dev/null +++ b/nlb/src/model/GetLoadBalancerAttributeRequest.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::Nlb::Model::GetLoadBalancerAttributeRequest; + +GetLoadBalancerAttributeRequest::GetLoadBalancerAttributeRequest() + : RpcServiceRequest("nlb", "2022-04-30", "GetLoadBalancerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +GetLoadBalancerAttributeRequest::~GetLoadBalancerAttributeRequest() {} + +std::string GetLoadBalancerAttributeRequest::getClientToken() const { + return clientToken_; +} + +void GetLoadBalancerAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string GetLoadBalancerAttributeRequest::getRegionId() const { + return regionId_; +} + +void GetLoadBalancerAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool GetLoadBalancerAttributeRequest::getDryRun() const { + return dryRun_; +} + +void GetLoadBalancerAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string GetLoadBalancerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void GetLoadBalancerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/nlb/src/model/GetLoadBalancerAttributeResult.cc b/nlb/src/model/GetLoadBalancerAttributeResult.cc new file mode 100644 index 000000000..0dc8a7587 --- /dev/null +++ b/nlb/src/model/GetLoadBalancerAttributeResult.cc @@ -0,0 +1,332 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +GetLoadBalancerAttributeResult::GetLoadBalancerAttributeResult() : + ServiceResult() +{} + +GetLoadBalancerAttributeResult::GetLoadBalancerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetLoadBalancerAttributeResult::~GetLoadBalancerAttributeResult() +{} + +void GetLoadBalancerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allOperationLocksNode = value["OperationLocks"]["OperationLock"]; + for (auto valueOperationLocksOperationLock : allOperationLocksNode) + { + OperationLock operationLocksObject; + if(!valueOperationLocksOperationLock["LockType"].isNull()) + operationLocksObject.lockType = valueOperationLocksOperationLock["LockType"].asString(); + if(!valueOperationLocksOperationLock["LockReason"].isNull()) + operationLocksObject.lockReason = valueOperationLocksOperationLock["LockReason"].asString(); + operationLocks_.push_back(operationLocksObject); + } + auto allZoneMappingsNode = value["ZoneMappings"]["ZoneMapping"]; + for (auto valueZoneMappingsZoneMapping : allZoneMappingsNode) + { + ZoneMapping zoneMappingsObject; + if(!valueZoneMappingsZoneMapping["VSwitchId"].isNull()) + zoneMappingsObject.vSwitchId = valueZoneMappingsZoneMapping["VSwitchId"].asString(); + if(!valueZoneMappingsZoneMapping["ZoneId"].isNull()) + zoneMappingsObject.zoneId = valueZoneMappingsZoneMapping["ZoneId"].asString(); + if(!valueZoneMappingsZoneMapping["EipType"].isNull()) + zoneMappingsObject.eipType = valueZoneMappingsZoneMapping["EipType"].asString(); + if(!valueZoneMappingsZoneMapping["Status"].isNull()) + zoneMappingsObject.status = valueZoneMappingsZoneMapping["Status"].asString(); + auto allLoadBalancerAddressesNode = valueZoneMappingsZoneMapping["LoadBalancerAddresses"]["LoadBalancerAddress"]; + for (auto valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress : allLoadBalancerAddressesNode) + { + ZoneMapping::LoadBalancerAddress loadBalancerAddressesObject; + if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["EniId"].isNull()) + loadBalancerAddressesObject.eniId = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["EniId"].asString(); + if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["PrivateIPv4Address"].isNull()) + loadBalancerAddressesObject.privateIPv4Address = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["PrivateIPv4Address"].asString(); + if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["AllocationId"].isNull()) + loadBalancerAddressesObject.allocationId = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["AllocationId"].asString(); + if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["PublicIPv4Address"].isNull()) + loadBalancerAddressesObject.publicIPv4Address = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["PublicIPv4Address"].asString(); + if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Ipv6Address"].isNull()) + loadBalancerAddressesObject.ipv6Address = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Ipv6Address"].asString(); + if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["PrivateIPv4HcStatus"].isNull()) + loadBalancerAddressesObject.privateIPv4HcStatus = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["PrivateIPv4HcStatus"].asString(); + if(!valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["PrivateIPv6HcStatus"].isNull()) + loadBalancerAddressesObject.privateIPv6HcStatus = valueZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["PrivateIPv6HcStatus"].asString(); + zoneMappingsObject.loadBalancerAddresses.push_back(loadBalancerAddressesObject); + } + zoneMappings_.push_back(zoneMappingsObject); + } + auto allTagsNode = value["Tags"]["Tag"]; + for (auto valueTagsTag : allTagsNode) + { + Tag tagsObject; + if(!valueTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueTagsTag["TagKey"].asString(); + if(!valueTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueTagsTag["TagValue"].asString(); + tags_.push_back(tagsObject); + } + auto loadBalancerBillingConfigNode = value["LoadBalancerBillingConfig"]; + if(!loadBalancerBillingConfigNode["InternetBandwidth"].isNull()) + loadBalancerBillingConfig_.internetBandwidth = std::stoi(loadBalancerBillingConfigNode["InternetBandwidth"].asString()); + if(!loadBalancerBillingConfigNode["InternetChargeType"].isNull()) + loadBalancerBillingConfig_.internetChargeType = loadBalancerBillingConfigNode["InternetChargeType"].asString(); + if(!loadBalancerBillingConfigNode["PayType"].isNull()) + loadBalancerBillingConfig_.payType = loadBalancerBillingConfigNode["PayType"].asString(); + auto deletionProtectionConfigNode = value["DeletionProtectionConfig"]; + if(!deletionProtectionConfigNode["Enabled"].isNull()) + deletionProtectionConfig_.enabled = deletionProtectionConfigNode["Enabled"].asString() == "true"; + if(!deletionProtectionConfigNode["Reason"].isNull()) + deletionProtectionConfig_.reason = deletionProtectionConfigNode["Reason"].asString(); + if(!deletionProtectionConfigNode["EnabledTime"].isNull()) + deletionProtectionConfig_.enabledTime = deletionProtectionConfigNode["EnabledTime"].asString(); + auto modificationProtectionConfigNode = value["ModificationProtectionConfig"]; + if(!modificationProtectionConfigNode["Status"].isNull()) + modificationProtectionConfig_.status = modificationProtectionConfigNode["Status"].asString(); + if(!modificationProtectionConfigNode["Reason"].isNull()) + modificationProtectionConfig_.reason = modificationProtectionConfigNode["Reason"].asString(); + if(!modificationProtectionConfigNode["EnabledTime"].isNull()) + modificationProtectionConfig_.enabledTime = modificationProtectionConfigNode["EnabledTime"].asString(); + auto allSecurityGroupIds = value["SecurityGroupIds"]["SecurityGroupId"]; + for (const auto &item : allSecurityGroupIds) + securityGroupIds_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); + if(!value["LoadBalancerName"].isNull()) + loadBalancerName_ = value["LoadBalancerName"].asString(); + if(!value["LoadBalancerType"].isNull()) + loadBalancerType_ = value["LoadBalancerType"].asString(); + if(!value["AddressType"].isNull()) + addressType_ = value["AddressType"].asString(); + if(!value["AddressIpVersion"].isNull()) + addressIpVersion_ = value["AddressIpVersion"].asString(); + if(!value["Ipv6AddressType"].isNull()) + ipv6AddressType_ = value["Ipv6AddressType"].asString(); + if(!value["LoadBalancerStatus"].isNull()) + loadBalancerStatus_ = value["LoadBalancerStatus"].asString(); + if(!value["LoadBalancerBusinessStatus"].isNull()) + loadBalancerBusinessStatus_ = value["LoadBalancerBusinessStatus"].asString(); + if(!value["VpcId"].isNull()) + vpcId_ = value["VpcId"].asString(); + if(!value["CapacityUnitCount"].isNull()) + capacityUnitCount_ = std::stol(value["CapacityUnitCount"].asString()); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["DNSName"].isNull()) + dNSName_ = value["DNSName"].asString(); + if(!value["BandwidthPackageId"].isNull()) + bandwidthPackageId_ = value["BandwidthPackageId"].asString(); + if(!value["CrossZoneEnabled"].isNull()) + crossZoneEnabled_ = value["CrossZoneEnabled"].asString() == "true"; + if(!value["TrafficAffinityEnabled"].isNull()) + trafficAffinityEnabled_ = value["TrafficAffinityEnabled"].asString() == "true"; + if(!value["Cps"].isNull()) + cps_ = std::stoi(value["Cps"].asString()); + if(!value["SysSecurityGroupId"].isNull()) + sysSecurityGroupId_ = value["SysSecurityGroupId"].asString(); + +} + +std::string GetLoadBalancerAttributeResult::getAddressIpVersion()const +{ + return addressIpVersion_; +} + +std::string GetLoadBalancerAttributeResult::getMessage()const +{ + return message_; +} + +std::string GetLoadBalancerAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +int GetLoadBalancerAttributeResult::getCps()const +{ + return cps_; +} + +std::string GetLoadBalancerAttributeResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +std::string GetLoadBalancerAttributeResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::vector GetLoadBalancerAttributeResult::getZoneMappings()const +{ + return zoneMappings_; +} + +std::string GetLoadBalancerAttributeResult::getDNSName()const +{ + return dNSName_; +} + +bool GetLoadBalancerAttributeResult::getSuccess()const +{ + return success_; +} + +std::string GetLoadBalancerAttributeResult::getIpv6AddressType()const +{ + return ipv6AddressType_; +} + +bool GetLoadBalancerAttributeResult::getCrossZoneEnabled()const +{ + return crossZoneEnabled_; +} + +std::string GetLoadBalancerAttributeResult::getLoadBalancerType()const +{ + return loadBalancerType_; +} + +long GetLoadBalancerAttributeResult::getCapacityUnitCount()const +{ + return capacityUnitCount_; +} + +GetLoadBalancerAttributeResult::DeletionProtectionConfig GetLoadBalancerAttributeResult::getDeletionProtectionConfig()const +{ + return deletionProtectionConfig_; +} + +std::string GetLoadBalancerAttributeResult::getSysSecurityGroupId()const +{ + return sysSecurityGroupId_; +} + +int GetLoadBalancerAttributeResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetLoadBalancerAttributeResult::getBandwidthPackageId()const +{ + return bandwidthPackageId_; +} + +std::string GetLoadBalancerAttributeResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::vector GetLoadBalancerAttributeResult::getTags()const +{ + return tags_; +} + +GetLoadBalancerAttributeResult::LoadBalancerBillingConfig GetLoadBalancerAttributeResult::getLoadBalancerBillingConfig()const +{ + return loadBalancerBillingConfig_; +} + +std::string GetLoadBalancerAttributeResult::getCreateTime()const +{ + return createTime_; +} + +GetLoadBalancerAttributeResult::ModificationProtectionConfig GetLoadBalancerAttributeResult::getModificationProtectionConfig()const +{ + return modificationProtectionConfig_; +} + +std::vector GetLoadBalancerAttributeResult::getSecurityGroupIds()const +{ + return securityGroupIds_; +} + +std::string GetLoadBalancerAttributeResult::getCode()const +{ + return code_; +} + +std::vector GetLoadBalancerAttributeResult::getOperationLocks()const +{ + return operationLocks_; +} + +std::string GetLoadBalancerAttributeResult::getLoadBalancerName()const +{ + return loadBalancerName_; +} + +std::string GetLoadBalancerAttributeResult::getVpcId()const +{ + return vpcId_; +} + +bool GetLoadBalancerAttributeResult::getTrafficAffinityEnabled()const +{ + return trafficAffinityEnabled_; +} + +std::string GetLoadBalancerAttributeResult::getRegionId()const +{ + return regionId_; +} + +std::string GetLoadBalancerAttributeResult::getAddressType()const +{ + return addressType_; +} + +std::string GetLoadBalancerAttributeResult::getLoadBalancerStatus()const +{ + return loadBalancerStatus_; +} + +std::string GetLoadBalancerAttributeResult::getLoadBalancerBusinessStatus()const +{ + return loadBalancerBusinessStatus_; +} + diff --git a/nlb/src/model/ListListenerCertificatesRequest.cc b/nlb/src/model/ListListenerCertificatesRequest.cc new file mode 100644 index 000000000..c1726841a --- /dev/null +++ b/nlb/src/model/ListListenerCertificatesRequest.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::Nlb::Model::ListListenerCertificatesRequest; + +ListListenerCertificatesRequest::ListListenerCertificatesRequest() + : RpcServiceRequest("nlb", "2022-04-30", "ListListenerCertificates") { + setMethod(HttpRequest::Method::Post); +} + +ListListenerCertificatesRequest::~ListListenerCertificatesRequest() {} + +std::string ListListenerCertificatesRequest::getListenerId() const { + return listenerId_; +} + +void ListListenerCertificatesRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setBodyParameter(std::string("ListenerId"), listenerId); +} + +std::string ListListenerCertificatesRequest::getCertType() const { + return certType_; +} + +void ListListenerCertificatesRequest::setCertType(const std::string &certType) { + certType_ = certType; + setBodyParameter(std::string("CertType"), certType); +} + +std::string ListListenerCertificatesRequest::getNextToken() const { + return nextToken_; +} + +void ListListenerCertificatesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setBodyParameter(std::string("NextToken"), nextToken); +} + +std::string ListListenerCertificatesRequest::getRegionId() const { + return regionId_; +} + +void ListListenerCertificatesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +int ListListenerCertificatesRequest::getMaxResults() const { + return maxResults_; +} + +void ListListenerCertificatesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setBodyParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/nlb/src/model/ListListenerCertificatesResult.cc b/nlb/src/model/ListListenerCertificatesResult.cc new file mode 100644 index 000000000..9bd41f9ab --- /dev/null +++ b/nlb/src/model/ListListenerCertificatesResult.cc @@ -0,0 +1,134 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +ListListenerCertificatesResult::ListListenerCertificatesResult() : + ServiceResult() +{} + +ListListenerCertificatesResult::ListListenerCertificatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListListenerCertificatesResult::~ListListenerCertificatesResult() +{} + +void ListListenerCertificatesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCertificatesNode = value["Certificates"]["Certificate"]; + for (auto valueCertificatesCertificate : allCertificatesNode) + { + Certificate certificatesObject; + if(!valueCertificatesCertificate["CertificateId"].isNull()) + certificatesObject.certificateId = valueCertificatesCertificate["CertificateId"].asString(); + if(!valueCertificatesCertificate["IsDefault"].isNull()) + certificatesObject.isDefault = valueCertificatesCertificate["IsDefault"].asString() == "true"; + if(!valueCertificatesCertificate["Status"].isNull()) + certificatesObject.status = valueCertificatesCertificate["Status"].asString(); + if(!valueCertificatesCertificate["CertificateType"].isNull()) + certificatesObject.certificateType = valueCertificatesCertificate["CertificateType"].asString(); + certificates_.push_back(certificatesObject); + } + auto allCertificateIds = value["CertificateIds"]["CertificateId"]; + for (const auto &item : allCertificateIds) + certificateIds_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +int ListListenerCertificatesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListListenerCertificatesResult::getMessage()const +{ + return message_; +} + +std::string ListListenerCertificatesResult::getNextToken()const +{ + return nextToken_; +} + +int ListListenerCertificatesResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListListenerCertificatesResult::getCertificates()const +{ + return certificates_; +} + +std::vector ListListenerCertificatesResult::getCertificateIds()const +{ + return certificateIds_; +} + +int ListListenerCertificatesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListListenerCertificatesResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string ListListenerCertificatesResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string ListListenerCertificatesResult::getCode()const +{ + return code_; +} + +bool ListListenerCertificatesResult::getSuccess()const +{ + return success_; +} + diff --git a/nlb/src/model/ListListenersRequest.cc b/nlb/src/model/ListListenersRequest.cc new file mode 100644 index 000000000..e111d7452 --- /dev/null +++ b/nlb/src/model/ListListenersRequest.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlb::Model::ListListenersRequest; + +ListListenersRequest::ListListenersRequest() + : RpcServiceRequest("nlb", "2022-04-30", "ListListeners") { + setMethod(HttpRequest::Method::Post); +} + +ListListenersRequest::~ListListenersRequest() {} + +std::vector ListListenersRequest::getLoadBalancerIds() const { + return loadBalancerIds_; +} + +void ListListenersRequest::setLoadBalancerIds(const std::vector &loadBalancerIds) { + loadBalancerIds_ = loadBalancerIds; +} + +std::string ListListenersRequest::getNextToken() const { + return nextToken_; +} + +void ListListenersRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListListenersRequest::getRegionId() const { + return regionId_; +} + +void ListListenersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector ListListenersRequest::getTag() const { + return tag_; +} + +void ListListenersRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + } +} + +std::string ListListenersRequest::getListenerProtocol() const { + return listenerProtocol_; +} + +void ListListenersRequest::setListenerProtocol(const std::string &listenerProtocol) { + listenerProtocol_ = listenerProtocol; + setParameter(std::string("ListenerProtocol"), listenerProtocol); +} + +std::vector ListListenersRequest::getListenerIds() const { + return listenerIds_; +} + +void ListListenersRequest::setListenerIds(const std::vector &listenerIds) { + listenerIds_ = listenerIds; +} + +int ListListenersRequest::getMaxResults() const { + return maxResults_; +} + +void ListListenersRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/nlb/src/model/ListListenersResult.cc b/nlb/src/model/ListListenersResult.cc new file mode 100644 index 000000000..071072022 --- /dev/null +++ b/nlb/src/model/ListListenersResult.cc @@ -0,0 +1,172 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +ListListenersResult::ListListenersResult() : + ServiceResult() +{} + +ListListenersResult::ListListenersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListListenersResult::~ListListenersResult() +{} + +void ListListenersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allListenersNode = value["Listeners"]["ListenerInfo"]; + for (auto valueListenersListenerInfo : allListenersNode) + { + ListenerInfo listenersObject; + if(!valueListenersListenerInfo["LoadBalancerId"].isNull()) + listenersObject.loadBalancerId = valueListenersListenerInfo["LoadBalancerId"].asString(); + if(!valueListenersListenerInfo["ListenerId"].isNull()) + listenersObject.listenerId = valueListenersListenerInfo["ListenerId"].asString(); + if(!valueListenersListenerInfo["ListenerProtocol"].isNull()) + listenersObject.listenerProtocol = valueListenersListenerInfo["ListenerProtocol"].asString(); + if(!valueListenersListenerInfo["ListenerPort"].isNull()) + listenersObject.listenerPort = std::stoi(valueListenersListenerInfo["ListenerPort"].asString()); + if(!valueListenersListenerInfo["StartPort"].isNull()) + listenersObject.startPort = valueListenersListenerInfo["StartPort"].asString(); + if(!valueListenersListenerInfo["EndPort"].isNull()) + listenersObject.endPort = valueListenersListenerInfo["EndPort"].asString(); + if(!valueListenersListenerInfo["ListenerDescription"].isNull()) + listenersObject.listenerDescription = valueListenersListenerInfo["ListenerDescription"].asString(); + if(!valueListenersListenerInfo["ServerGroupId"].isNull()) + listenersObject.serverGroupId = valueListenersListenerInfo["ServerGroupId"].asString(); + if(!valueListenersListenerInfo["IdleTimeout"].isNull()) + listenersObject.idleTimeout = std::stoi(valueListenersListenerInfo["IdleTimeout"].asString()); + if(!valueListenersListenerInfo["SecurityPolicyId"].isNull()) + listenersObject.securityPolicyId = valueListenersListenerInfo["SecurityPolicyId"].asString(); + if(!valueListenersListenerInfo["CaEnabled"].isNull()) + listenersObject.caEnabled = valueListenersListenerInfo["CaEnabled"].asString() == "true"; + if(!valueListenersListenerInfo["ListenerStatus"].isNull()) + listenersObject.listenerStatus = valueListenersListenerInfo["ListenerStatus"].asString(); + if(!valueListenersListenerInfo["RegionId"].isNull()) + listenersObject.regionId = valueListenersListenerInfo["RegionId"].asString(); + if(!valueListenersListenerInfo["AlpnEnabled"].isNull()) + listenersObject.alpnEnabled = valueListenersListenerInfo["AlpnEnabled"].asString() == "true"; + if(!valueListenersListenerInfo["AlpnPolicy"].isNull()) + listenersObject.alpnPolicy = valueListenersListenerInfo["AlpnPolicy"].asString(); + if(!valueListenersListenerInfo["SecSensorEnabled"].isNull()) + listenersObject.secSensorEnabled = valueListenersListenerInfo["SecSensorEnabled"].asString() == "true"; + if(!valueListenersListenerInfo["ProxyProtocolEnabled"].isNull()) + listenersObject.proxyProtocolEnabled = valueListenersListenerInfo["ProxyProtocolEnabled"].asString() == "true"; + if(!valueListenersListenerInfo["Cps"].isNull()) + listenersObject.cps = std::stoi(valueListenersListenerInfo["Cps"].asString()); + if(!valueListenersListenerInfo["Mss"].isNull()) + listenersObject.mss = std::stoi(valueListenersListenerInfo["Mss"].asString()); + auto allTagsNode = valueListenersListenerInfo["Tags"]["tagModels"]; + for (auto valueListenersListenerInfoTagstagModels : allTagsNode) + { + ListenerInfo::TagModels tagsObject; + if(!valueListenersListenerInfoTagstagModels["Key"].isNull()) + tagsObject.key = valueListenersListenerInfoTagstagModels["Key"].asString(); + if(!valueListenersListenerInfoTagstagModels["Value"].isNull()) + tagsObject.value = valueListenersListenerInfoTagstagModels["Value"].asString(); + listenersObject.tags.push_back(tagsObject); + } + auto allCertificateIds = value["CertificateIds"]["CertificateId"]; + for (auto value : allCertificateIds) + listenersObject.certificateIds.push_back(value.asString()); + auto allCaCertificateIds = value["CaCertificateIds"]["CaCertificateId"]; + for (auto value : allCaCertificateIds) + listenersObject.caCertificateIds.push_back(value.asString()); + listeners_.push_back(listenersObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +std::vector ListListenersResult::getListeners()const +{ + return listeners_; +} + +int ListListenersResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListListenersResult::getMessage()const +{ + return message_; +} + +std::string ListListenersResult::getNextToken()const +{ + return nextToken_; +} + +int ListListenersResult::getMaxResults()const +{ + return maxResults_; +} + +int ListListenersResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListListenersResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string ListListenersResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string ListListenersResult::getCode()const +{ + return code_; +} + +bool ListListenersResult::getSuccess()const +{ + return success_; +} + diff --git a/nlb/src/model/ListLoadBalancersRequest.cc b/nlb/src/model/ListLoadBalancersRequest.cc new file mode 100644 index 000000000..4b9a8c961 --- /dev/null +++ b/nlb/src/model/ListLoadBalancersRequest.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::Nlb::Model::ListLoadBalancersRequest; + +ListLoadBalancersRequest::ListLoadBalancersRequest() + : RpcServiceRequest("nlb", "2022-04-30", "ListLoadBalancers") { + setMethod(HttpRequest::Method::Post); +} + +ListLoadBalancersRequest::~ListLoadBalancersRequest() {} + +std::vector ListLoadBalancersRequest::getLoadBalancerNames() const { + return loadBalancerNames_; +} + +void ListLoadBalancersRequest::setLoadBalancerNames(const std::vector &loadBalancerNames) { + loadBalancerNames_ = loadBalancerNames; +} + +std::vector ListLoadBalancersRequest::getLoadBalancerIds() const { + return loadBalancerIds_; +} + +void ListLoadBalancersRequest::setLoadBalancerIds(const std::vector &loadBalancerIds) { + loadBalancerIds_ = loadBalancerIds; +} + +std::string ListLoadBalancersRequest::getAddressIpVersion() const { + return addressIpVersion_; +} + +void ListLoadBalancersRequest::setAddressIpVersion(const std::string &addressIpVersion) { + addressIpVersion_ = addressIpVersion; + setParameter(std::string("AddressIpVersion"), addressIpVersion); +} + +std::string ListLoadBalancersRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListLoadBalancersRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ListLoadBalancersRequest::getNextToken() const { + return nextToken_; +} + +void ListLoadBalancersRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListLoadBalancersRequest::getRegionId() const { + return regionId_; +} + +void ListLoadBalancersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListLoadBalancersRequest::getDNSName() const { + return dNSName_; +} + +void ListLoadBalancersRequest::setDNSName(const std::string &dNSName) { + dNSName_ = dNSName; + setParameter(std::string("DNSName"), dNSName); +} + +std::string ListLoadBalancersRequest::getAddressType() const { + return addressType_; +} + +void ListLoadBalancersRequest::setAddressType(const std::string &addressType) { + addressType_ = addressType; + setParameter(std::string("AddressType"), addressType); +} + +std::vector ListLoadBalancersRequest::getTag() const { + return tag_; +} + +void ListLoadBalancersRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + } +} + +std::vector ListLoadBalancersRequest::getVpcIds() const { + return vpcIds_; +} + +void ListLoadBalancersRequest::setVpcIds(const std::vector &vpcIds) { + vpcIds_ = vpcIds; +} + +std::string ListLoadBalancersRequest::getAddress() const { + return address_; +} + +void ListLoadBalancersRequest::setAddress(const std::string &address) { + address_ = address; + setParameter(std::string("Address"), address); +} + +std::string ListLoadBalancersRequest::getLoadBalancerBusinessStatus() const { + return loadBalancerBusinessStatus_; +} + +void ListLoadBalancersRequest::setLoadBalancerBusinessStatus(const std::string &loadBalancerBusinessStatus) { + loadBalancerBusinessStatus_ = loadBalancerBusinessStatus; + setParameter(std::string("LoadBalancerBusinessStatus"), loadBalancerBusinessStatus); +} + +std::string ListLoadBalancersRequest::getLoadBalancerStatus() const { + return loadBalancerStatus_; +} + +void ListLoadBalancersRequest::setLoadBalancerStatus(const std::string &loadBalancerStatus) { + loadBalancerStatus_ = loadBalancerStatus; + setParameter(std::string("LoadBalancerStatus"), loadBalancerStatus); +} + +std::string ListLoadBalancersRequest::getLoadBalancerType() const { + return loadBalancerType_; +} + +void ListLoadBalancersRequest::setLoadBalancerType(const std::string &loadBalancerType) { + loadBalancerType_ = loadBalancerType; + setParameter(std::string("LoadBalancerType"), loadBalancerType); +} + +std::string ListLoadBalancersRequest::getZoneId() const { + return zoneId_; +} + +void ListLoadBalancersRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + +int ListLoadBalancersRequest::getMaxResults() const { + return maxResults_; +} + +void ListLoadBalancersRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListLoadBalancersRequest::getIpv6AddressType() const { + return ipv6AddressType_; +} + +void ListLoadBalancersRequest::setIpv6AddressType(const std::string &ipv6AddressType) { + ipv6AddressType_ = ipv6AddressType; + setParameter(std::string("Ipv6AddressType"), ipv6AddressType); +} + diff --git a/nlb/src/model/ListLoadBalancersResult.cc b/nlb/src/model/ListLoadBalancersResult.cc new file mode 100644 index 000000000..ceeff8e45 --- /dev/null +++ b/nlb/src/model/ListLoadBalancersResult.cc @@ -0,0 +1,234 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +ListLoadBalancersResult::ListLoadBalancersResult() : + ServiceResult() +{} + +ListLoadBalancersResult::ListLoadBalancersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLoadBalancersResult::~ListLoadBalancersResult() +{} + +void ListLoadBalancersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allLoadBalancersNode = value["LoadBalancers"]["LoadbalancerInfo"]; + for (auto valueLoadBalancersLoadbalancerInfo : allLoadBalancersNode) + { + LoadbalancerInfo loadBalancersObject; + if(!valueLoadBalancersLoadbalancerInfo["RegionId"].isNull()) + loadBalancersObject.regionId = valueLoadBalancersLoadbalancerInfo["RegionId"].asString(); + if(!valueLoadBalancersLoadbalancerInfo["LoadBalancerId"].isNull()) + loadBalancersObject.loadBalancerId = valueLoadBalancersLoadbalancerInfo["LoadBalancerId"].asString(); + if(!valueLoadBalancersLoadbalancerInfo["LoadBalancerName"].isNull()) + loadBalancersObject.loadBalancerName = valueLoadBalancersLoadbalancerInfo["LoadBalancerName"].asString(); + if(!valueLoadBalancersLoadbalancerInfo["LoadBalancerType"].isNull()) + loadBalancersObject.loadBalancerType = valueLoadBalancersLoadbalancerInfo["LoadBalancerType"].asString(); + if(!valueLoadBalancersLoadbalancerInfo["AddressType"].isNull()) + loadBalancersObject.addressType = valueLoadBalancersLoadbalancerInfo["AddressType"].asString(); + if(!valueLoadBalancersLoadbalancerInfo["AddressIpVersion"].isNull()) + loadBalancersObject.addressIpVersion = valueLoadBalancersLoadbalancerInfo["AddressIpVersion"].asString(); + if(!valueLoadBalancersLoadbalancerInfo["Ipv6AddressType"].isNull()) + loadBalancersObject.ipv6AddressType = valueLoadBalancersLoadbalancerInfo["Ipv6AddressType"].asString(); + if(!valueLoadBalancersLoadbalancerInfo["LoadBalancerStatus"].isNull()) + loadBalancersObject.loadBalancerStatus = valueLoadBalancersLoadbalancerInfo["LoadBalancerStatus"].asString(); + if(!valueLoadBalancersLoadbalancerInfo["LoadBalancerBusinessStatus"].isNull()) + loadBalancersObject.loadBalancerBusinessStatus = valueLoadBalancersLoadbalancerInfo["LoadBalancerBusinessStatus"].asString(); + if(!valueLoadBalancersLoadbalancerInfo["VpcId"].isNull()) + loadBalancersObject.vpcId = valueLoadBalancersLoadbalancerInfo["VpcId"].asString(); + if(!valueLoadBalancersLoadbalancerInfo["CapacityUnitCount"].isNull()) + loadBalancersObject.capacityUnitCount = std::stol(valueLoadBalancersLoadbalancerInfo["CapacityUnitCount"].asString()); + if(!valueLoadBalancersLoadbalancerInfo["CreateTime"].isNull()) + loadBalancersObject.createTime = valueLoadBalancersLoadbalancerInfo["CreateTime"].asString(); + if(!valueLoadBalancersLoadbalancerInfo["ResourceGroupId"].isNull()) + loadBalancersObject.resourceGroupId = valueLoadBalancersLoadbalancerInfo["ResourceGroupId"].asString(); + if(!valueLoadBalancersLoadbalancerInfo["DNSName"].isNull()) + loadBalancersObject.dNSName = valueLoadBalancersLoadbalancerInfo["DNSName"].asString(); + if(!valueLoadBalancersLoadbalancerInfo["BandwidthPackageId"].isNull()) + loadBalancersObject.bandwidthPackageId = valueLoadBalancersLoadbalancerInfo["BandwidthPackageId"].asString(); + if(!valueLoadBalancersLoadbalancerInfo["SysSecurityGroupId"].isNull()) + loadBalancersObject.sysSecurityGroupId = valueLoadBalancersLoadbalancerInfo["SysSecurityGroupId"].asString(); + if(!valueLoadBalancersLoadbalancerInfo["CrossZoneEnabled"].isNull()) + loadBalancersObject.crossZoneEnabled = valueLoadBalancersLoadbalancerInfo["CrossZoneEnabled"].asString() == "true"; + if(!valueLoadBalancersLoadbalancerInfo["TrafficAffinityEnabled"].isNull()) + loadBalancersObject.trafficAffinityEnabled = valueLoadBalancersLoadbalancerInfo["TrafficAffinityEnabled"].asString() == "true"; + if(!valueLoadBalancersLoadbalancerInfo["AliUid"].isNull()) + loadBalancersObject.aliUid = std::stol(valueLoadBalancersLoadbalancerInfo["AliUid"].asString()); + auto allOperationLocksNode = valueLoadBalancersLoadbalancerInfo["OperationLocks"]["OperationLock"]; + for (auto valueLoadBalancersLoadbalancerInfoOperationLocksOperationLock : allOperationLocksNode) + { + LoadbalancerInfo::OperationLock operationLocksObject; + if(!valueLoadBalancersLoadbalancerInfoOperationLocksOperationLock["LockType"].isNull()) + operationLocksObject.lockType = valueLoadBalancersLoadbalancerInfoOperationLocksOperationLock["LockType"].asString(); + if(!valueLoadBalancersLoadbalancerInfoOperationLocksOperationLock["LockReason"].isNull()) + operationLocksObject.lockReason = valueLoadBalancersLoadbalancerInfoOperationLocksOperationLock["LockReason"].asString(); + loadBalancersObject.operationLocks.push_back(operationLocksObject); + } + auto allZoneMappingsNode = valueLoadBalancersLoadbalancerInfo["ZoneMappings"]["ZoneMapping"]; + for (auto valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMapping : allZoneMappingsNode) + { + LoadbalancerInfo::ZoneMapping zoneMappingsObject; + if(!valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMapping["VSwitchId"].isNull()) + zoneMappingsObject.vSwitchId = valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMapping["VSwitchId"].asString(); + if(!valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMapping["ZoneId"].isNull()) + zoneMappingsObject.zoneId = valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMapping["ZoneId"].asString(); + if(!valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMapping["EipType"].isNull()) + zoneMappingsObject.eipType = valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMapping["EipType"].asString(); + if(!valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMapping["Status"].isNull()) + zoneMappingsObject.status = valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMapping["Status"].asString(); + auto allLoadBalancerAddressesNode = valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMapping["LoadBalancerAddresses"]["LoadBalancerAddress"]; + for (auto valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress : allLoadBalancerAddressesNode) + { + LoadbalancerInfo::ZoneMapping::LoadBalancerAddress loadBalancerAddressesObject; + if(!valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["EniId"].isNull()) + loadBalancerAddressesObject.eniId = valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["EniId"].asString(); + if(!valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["PrivateIPv4Address"].isNull()) + loadBalancerAddressesObject.privateIPv4Address = valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["PrivateIPv4Address"].asString(); + if(!valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["AllocationId"].isNull()) + loadBalancerAddressesObject.allocationId = valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["AllocationId"].asString(); + if(!valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["PublicIPv4Address"].isNull()) + loadBalancerAddressesObject.publicIPv4Address = valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["PublicIPv4Address"].asString(); + if(!valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Ipv6Address"].isNull()) + loadBalancerAddressesObject.ipv6Address = valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["Ipv6Address"].asString(); + if(!valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["PrivateIPv4HcStatus"].isNull()) + loadBalancerAddressesObject.privateIPv4HcStatus = valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["PrivateIPv4HcStatus"].asString(); + if(!valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["PrivateIPv6HcStatus"].isNull()) + loadBalancerAddressesObject.privateIPv6HcStatus = valueLoadBalancersLoadbalancerInfoZoneMappingsZoneMappingLoadBalancerAddressesLoadBalancerAddress["PrivateIPv6HcStatus"].asString(); + zoneMappingsObject.loadBalancerAddresses.push_back(loadBalancerAddressesObject); + } + loadBalancersObject.zoneMappings.push_back(zoneMappingsObject); + } + auto allTagsNode = valueLoadBalancersLoadbalancerInfo["Tags"]["tagModels"]; + for (auto valueLoadBalancersLoadbalancerInfoTagstagModels : allTagsNode) + { + LoadbalancerInfo::TagModels tagsObject; + if(!valueLoadBalancersLoadbalancerInfoTagstagModels["Key"].isNull()) + tagsObject.key = valueLoadBalancersLoadbalancerInfoTagstagModels["Key"].asString(); + if(!valueLoadBalancersLoadbalancerInfoTagstagModels["Value"].isNull()) + tagsObject.value = valueLoadBalancersLoadbalancerInfoTagstagModels["Value"].asString(); + loadBalancersObject.tags.push_back(tagsObject); + } + auto loadBalancerBillingConfigNode = value["LoadBalancerBillingConfig"]; + if(!loadBalancerBillingConfigNode["InternetBandwidth"].isNull()) + loadBalancersObject.loadBalancerBillingConfig.internetBandwidth = std::stoi(loadBalancerBillingConfigNode["InternetBandwidth"].asString()); + if(!loadBalancerBillingConfigNode["InternetChargeType"].isNull()) + loadBalancersObject.loadBalancerBillingConfig.internetChargeType = loadBalancerBillingConfigNode["InternetChargeType"].asString(); + if(!loadBalancerBillingConfigNode["PayType"].isNull()) + loadBalancersObject.loadBalancerBillingConfig.payType = loadBalancerBillingConfigNode["PayType"].asString(); + auto deletionProtectionConfigNode = value["DeletionProtectionConfig"]; + if(!deletionProtectionConfigNode["Enabled"].isNull()) + loadBalancersObject.deletionProtectionConfig.enabled = deletionProtectionConfigNode["Enabled"].asString() == "true"; + if(!deletionProtectionConfigNode["Reason"].isNull()) + loadBalancersObject.deletionProtectionConfig.reason = deletionProtectionConfigNode["Reason"].asString(); + if(!deletionProtectionConfigNode["EnabledTime"].isNull()) + loadBalancersObject.deletionProtectionConfig.enabledTime = deletionProtectionConfigNode["EnabledTime"].asString(); + auto modificationProtectionConfigNode = value["ModificationProtectionConfig"]; + if(!modificationProtectionConfigNode["Status"].isNull()) + loadBalancersObject.modificationProtectionConfig.status = modificationProtectionConfigNode["Status"].asString(); + if(!modificationProtectionConfigNode["Reason"].isNull()) + loadBalancersObject.modificationProtectionConfig.reason = modificationProtectionConfigNode["Reason"].asString(); + if(!modificationProtectionConfigNode["EnabledTime"].isNull()) + loadBalancersObject.modificationProtectionConfig.enabledTime = modificationProtectionConfigNode["EnabledTime"].asString(); + auto allSecurityGroupIds = value["SecurityGroupIds"]["SecurityGroupId"]; + for (auto value : allSecurityGroupIds) + loadBalancersObject.securityGroupIds.push_back(value.asString()); + loadBalancers_.push_back(loadBalancersObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +int ListLoadBalancersResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListLoadBalancersResult::getMessage()const +{ + return message_; +} + +std::string ListLoadBalancersResult::getNextToken()const +{ + return nextToken_; +} + +int ListLoadBalancersResult::getMaxResults()const +{ + return maxResults_; +} + +int ListLoadBalancersResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector ListLoadBalancersResult::getLoadBalancers()const +{ + return loadBalancers_; +} + +std::string ListLoadBalancersResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string ListLoadBalancersResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string ListLoadBalancersResult::getCode()const +{ + return code_; +} + +bool ListLoadBalancersResult::getSuccess()const +{ + return success_; +} + diff --git a/nlb/src/model/ListSecurityPolicyRequest.cc b/nlb/src/model/ListSecurityPolicyRequest.cc new file mode 100644 index 000000000..c297d7b78 --- /dev/null +++ b/nlb/src/model/ListSecurityPolicyRequest.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlb::Model::ListSecurityPolicyRequest; + +ListSecurityPolicyRequest::ListSecurityPolicyRequest() + : RpcServiceRequest("nlb", "2022-04-30", "ListSecurityPolicy") { + setMethod(HttpRequest::Method::Post); +} + +ListSecurityPolicyRequest::~ListSecurityPolicyRequest() {} + +std::vector ListSecurityPolicyRequest::getSecurityPolicyNames() const { + return securityPolicyNames_; +} + +void ListSecurityPolicyRequest::setSecurityPolicyNames(const std::vector &securityPolicyNames) { + securityPolicyNames_ = securityPolicyNames; +} + +std::string ListSecurityPolicyRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListSecurityPolicyRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setBodyParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ListSecurityPolicyRequest::getNextToken() const { + return nextToken_; +} + +void ListSecurityPolicyRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setBodyParameter(std::string("NextToken"), nextToken); +} + +std::string ListSecurityPolicyRequest::getRegionId() const { + return regionId_; +} + +void ListSecurityPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::vector ListSecurityPolicyRequest::getTag() const { + return tag_; +} + +void ListSecurityPolicyRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + } +} + +std::vector ListSecurityPolicyRequest::getSecurityPolicyIds() const { + return securityPolicyIds_; +} + +void ListSecurityPolicyRequest::setSecurityPolicyIds(const std::vector &securityPolicyIds) { + securityPolicyIds_ = securityPolicyIds; +} + +int ListSecurityPolicyRequest::getMaxResults() const { + return maxResults_; +} + +void ListSecurityPolicyRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setBodyParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/nlb/src/model/ListSecurityPolicyResult.cc b/nlb/src/model/ListSecurityPolicyResult.cc new file mode 100644 index 000000000..6d37344ae --- /dev/null +++ b/nlb/src/model/ListSecurityPolicyResult.cc @@ -0,0 +1,156 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +ListSecurityPolicyResult::ListSecurityPolicyResult() : + ServiceResult() +{} + +ListSecurityPolicyResult::ListSecurityPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSecurityPolicyResult::~ListSecurityPolicyResult() +{} + +void ListSecurityPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSecurityPoliciesNode = value["SecurityPolicies"]["SecurityPolicie"]; + for (auto valueSecurityPoliciesSecurityPolicie : allSecurityPoliciesNode) + { + SecurityPolicie securityPoliciesObject; + if(!valueSecurityPoliciesSecurityPolicie["SecurityPolicyId"].isNull()) + securityPoliciesObject.securityPolicyId = valueSecurityPoliciesSecurityPolicie["SecurityPolicyId"].asString(); + if(!valueSecurityPoliciesSecurityPolicie["SecurityPolicyName"].isNull()) + securityPoliciesObject.securityPolicyName = valueSecurityPoliciesSecurityPolicie["SecurityPolicyName"].asString(); + if(!valueSecurityPoliciesSecurityPolicie["TlsVersion"].isNull()) + securityPoliciesObject.tlsVersion = valueSecurityPoliciesSecurityPolicie["TlsVersion"].asString(); + if(!valueSecurityPoliciesSecurityPolicie["Ciphers"].isNull()) + securityPoliciesObject.ciphers = valueSecurityPoliciesSecurityPolicie["Ciphers"].asString(); + if(!valueSecurityPoliciesSecurityPolicie["RegionId"].isNull()) + securityPoliciesObject.regionId = valueSecurityPoliciesSecurityPolicie["RegionId"].asString(); + if(!valueSecurityPoliciesSecurityPolicie["ResourceGroupId"].isNull()) + securityPoliciesObject.resourceGroupId = valueSecurityPoliciesSecurityPolicie["ResourceGroupId"].asString(); + if(!valueSecurityPoliciesSecurityPolicie["SecurityPolicyStatus"].isNull()) + securityPoliciesObject.securityPolicyStatus = valueSecurityPoliciesSecurityPolicie["SecurityPolicyStatus"].asString(); + auto allTagsNode = valueSecurityPoliciesSecurityPolicie["Tags"]["Tag"]; + for (auto valueSecurityPoliciesSecurityPolicieTagsTag : allTagsNode) + { + SecurityPolicie::Tag tagsObject; + if(!valueSecurityPoliciesSecurityPolicieTagsTag["Key"].isNull()) + tagsObject.key = valueSecurityPoliciesSecurityPolicieTagsTag["Key"].asString(); + if(!valueSecurityPoliciesSecurityPolicieTagsTag["Value"].isNull()) + tagsObject.value = valueSecurityPoliciesSecurityPolicieTagsTag["Value"].asString(); + securityPoliciesObject.tags.push_back(tagsObject); + } + auto allRelatedListenersNode = valueSecurityPoliciesSecurityPolicie["RelatedListeners"]["RelatedListener"]; + for (auto valueSecurityPoliciesSecurityPolicieRelatedListenersRelatedListener : allRelatedListenersNode) + { + SecurityPolicie::RelatedListener relatedListenersObject; + if(!valueSecurityPoliciesSecurityPolicieRelatedListenersRelatedListener["ListenerId"].isNull()) + relatedListenersObject.listenerId = valueSecurityPoliciesSecurityPolicieRelatedListenersRelatedListener["ListenerId"].asString(); + if(!valueSecurityPoliciesSecurityPolicieRelatedListenersRelatedListener["ListenerPort"].isNull()) + relatedListenersObject.listenerPort = std::stol(valueSecurityPoliciesSecurityPolicieRelatedListenersRelatedListener["ListenerPort"].asString()); + if(!valueSecurityPoliciesSecurityPolicieRelatedListenersRelatedListener["ListenerProtocol"].isNull()) + relatedListenersObject.listenerProtocol = valueSecurityPoliciesSecurityPolicieRelatedListenersRelatedListener["ListenerProtocol"].asString(); + if(!valueSecurityPoliciesSecurityPolicieRelatedListenersRelatedListener["LoadBalancerId"].isNull()) + relatedListenersObject.loadBalancerId = valueSecurityPoliciesSecurityPolicieRelatedListenersRelatedListener["LoadBalancerId"].asString(); + securityPoliciesObject.relatedListeners.push_back(relatedListenersObject); + } + securityPolicies_.push_back(securityPoliciesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +int ListSecurityPolicyResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListSecurityPolicyResult::getMessage()const +{ + return message_; +} + +std::string ListSecurityPolicyResult::getNextToken()const +{ + return nextToken_; +} + +int ListSecurityPolicyResult::getMaxResults()const +{ + return maxResults_; +} + +int ListSecurityPolicyResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListSecurityPolicyResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string ListSecurityPolicyResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string ListSecurityPolicyResult::getCode()const +{ + return code_; +} + +std::vector ListSecurityPolicyResult::getSecurityPolicies()const +{ + return securityPolicies_; +} + +bool ListSecurityPolicyResult::getSuccess()const +{ + return success_; +} + diff --git a/nlb/src/model/ListServerGroupServersRequest.cc b/nlb/src/model/ListServerGroupServersRequest.cc new file mode 100644 index 000000000..4ce0bd889 --- /dev/null +++ b/nlb/src/model/ListServerGroupServersRequest.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 + +using AlibabaCloud::Nlb::Model::ListServerGroupServersRequest; + +ListServerGroupServersRequest::ListServerGroupServersRequest() + : RpcServiceRequest("nlb", "2022-04-30", "ListServerGroupServers") { + setMethod(HttpRequest::Method::Post); +} + +ListServerGroupServersRequest::~ListServerGroupServersRequest() {} + +std::string ListServerGroupServersRequest::getServerGroupId() const { + return serverGroupId_; +} + +void ListServerGroupServersRequest::setServerGroupId(const std::string &serverGroupId) { + serverGroupId_ = serverGroupId; + setBodyParameter(std::string("ServerGroupId"), serverGroupId); +} + +std::string ListServerGroupServersRequest::getNextToken() const { + return nextToken_; +} + +void ListServerGroupServersRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setBodyParameter(std::string("NextToken"), nextToken); +} + +std::string ListServerGroupServersRequest::getRegionId() const { + return regionId_; +} + +void ListServerGroupServersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::vector ListServerGroupServersRequest::getServerIds() const { + return serverIds_; +} + +void ListServerGroupServersRequest::setServerIds(const std::vector &serverIds) { + serverIds_ = serverIds; +} + +std::vector ListServerGroupServersRequest::getServerIps() const { + return serverIps_; +} + +void ListServerGroupServersRequest::setServerIps(const std::vector &serverIps) { + serverIps_ = serverIps; +} + +int ListServerGroupServersRequest::getMaxResults() const { + return maxResults_; +} + +void ListServerGroupServersRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setBodyParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/nlb/src/model/ListServerGroupServersResult.cc b/nlb/src/model/ListServerGroupServersResult.cc new file mode 100644 index 000000000..c84286d6f --- /dev/null +++ b/nlb/src/model/ListServerGroupServersResult.cc @@ -0,0 +1,136 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +ListServerGroupServersResult::ListServerGroupServersResult() : + ServiceResult() +{} + +ListServerGroupServersResult::ListServerGroupServersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListServerGroupServersResult::~ListServerGroupServersResult() +{} + +void ListServerGroupServersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allServersNode = value["Servers"]["Server"]; + for (auto valueServersServer : allServersNode) + { + Server serversObject; + if(!valueServersServer["ServerId"].isNull()) + serversObject.serverId = valueServersServer["ServerId"].asString(); + if(!valueServersServer["ServerType"].isNull()) + serversObject.serverType = valueServersServer["ServerType"].asString(); + if(!valueServersServer["ServerIp"].isNull()) + serversObject.serverIp = valueServersServer["ServerIp"].asString(); + if(!valueServersServer["Port"].isNull()) + serversObject.port = std::stoi(valueServersServer["Port"].asString()); + if(!valueServersServer["Weight"].isNull()) + serversObject.weight = std::stoi(valueServersServer["Weight"].asString()); + if(!valueServersServer["ServerGroupId"].isNull()) + serversObject.serverGroupId = valueServersServer["ServerGroupId"].asString(); + if(!valueServersServer["Description"].isNull()) + serversObject.description = valueServersServer["Description"].asString(); + if(!valueServersServer["ZoneId"].isNull()) + serversObject.zoneId = valueServersServer["ZoneId"].asString(); + if(!valueServersServer["Status"].isNull()) + serversObject.status = valueServersServer["Status"].asString(); + servers_.push_back(serversObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +int ListServerGroupServersResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListServerGroupServersResult::getMessage()const +{ + return message_; +} + +std::string ListServerGroupServersResult::getNextToken()const +{ + return nextToken_; +} + +int ListServerGroupServersResult::getMaxResults()const +{ + return maxResults_; +} + +int ListServerGroupServersResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListServerGroupServersResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string ListServerGroupServersResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::vector ListServerGroupServersResult::getServers()const +{ + return servers_; +} + +std::string ListServerGroupServersResult::getCode()const +{ + return code_; +} + +bool ListServerGroupServersResult::getSuccess()const +{ + return success_; +} + diff --git a/nlb/src/model/ListServerGroupsRequest.cc b/nlb/src/model/ListServerGroupsRequest.cc new file mode 100644 index 000000000..d7c316a70 --- /dev/null +++ b/nlb/src/model/ListServerGroupsRequest.cc @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlb::Model::ListServerGroupsRequest; + +ListServerGroupsRequest::ListServerGroupsRequest() + : RpcServiceRequest("nlb", "2022-04-30", "ListServerGroups") { + setMethod(HttpRequest::Method::Post); +} + +ListServerGroupsRequest::~ListServerGroupsRequest() {} + +std::vector ListServerGroupsRequest::getServerGroupNames() const { + return serverGroupNames_; +} + +void ListServerGroupsRequest::setServerGroupNames(const std::vector &serverGroupNames) { + serverGroupNames_ = serverGroupNames; +} + +std::string ListServerGroupsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListServerGroupsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setBodyParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ListServerGroupsRequest::getNextToken() const { + return nextToken_; +} + +void ListServerGroupsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setBodyParameter(std::string("NextToken"), nextToken); +} + +std::string ListServerGroupsRequest::getRegionId() const { + return regionId_; +} + +void ListServerGroupsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::vector ListServerGroupsRequest::getTag() const { + return tag_; +} + +void ListServerGroupsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + } +} + +std::vector ListServerGroupsRequest::getServerGroupIds() const { + return serverGroupIds_; +} + +void ListServerGroupsRequest::setServerGroupIds(const std::vector &serverGroupIds) { + serverGroupIds_ = serverGroupIds; +} + +std::string ListServerGroupsRequest::getServerGroupType() const { + return serverGroupType_; +} + +void ListServerGroupsRequest::setServerGroupType(const std::string &serverGroupType) { + serverGroupType_ = serverGroupType; + setBodyParameter(std::string("ServerGroupType"), serverGroupType); +} + +std::string ListServerGroupsRequest::getVpcId() const { + return vpcId_; +} + +void ListServerGroupsRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setBodyParameter(std::string("VpcId"), vpcId); +} + +int ListServerGroupsRequest::getMaxResults() const { + return maxResults_; +} + +void ListServerGroupsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setBodyParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/nlb/src/model/ListServerGroupsResult.cc b/nlb/src/model/ListServerGroupsResult.cc new file mode 100644 index 000000000..ed2a772eb --- /dev/null +++ b/nlb/src/model/ListServerGroupsResult.cc @@ -0,0 +1,193 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +ListServerGroupsResult::ListServerGroupsResult() : + ServiceResult() +{} + +ListServerGroupsResult::ListServerGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListServerGroupsResult::~ListServerGroupsResult() +{} + +void ListServerGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allServerGroupsNode = value["ServerGroups"]["ServerGroup"]; + for (auto valueServerGroupsServerGroup : allServerGroupsNode) + { + ServerGroup serverGroupsObject; + if(!valueServerGroupsServerGroup["RegionId"].isNull()) + serverGroupsObject.regionId = valueServerGroupsServerGroup["RegionId"].asString(); + if(!valueServerGroupsServerGroup["ServerGroupId"].isNull()) + serverGroupsObject.serverGroupId = valueServerGroupsServerGroup["ServerGroupId"].asString(); + if(!valueServerGroupsServerGroup["ServerGroupName"].isNull()) + serverGroupsObject.serverGroupName = valueServerGroupsServerGroup["ServerGroupName"].asString(); + if(!valueServerGroupsServerGroup["ServerGroupType"].isNull()) + serverGroupsObject.serverGroupType = valueServerGroupsServerGroup["ServerGroupType"].asString(); + if(!valueServerGroupsServerGroup["AddressIPVersion"].isNull()) + serverGroupsObject.addressIPVersion = valueServerGroupsServerGroup["AddressIPVersion"].asString(); + if(!valueServerGroupsServerGroup["VpcId"].isNull()) + serverGroupsObject.vpcId = valueServerGroupsServerGroup["VpcId"].asString(); + if(!valueServerGroupsServerGroup["Scheduler"].isNull()) + serverGroupsObject.scheduler = valueServerGroupsServerGroup["Scheduler"].asString(); + if(!valueServerGroupsServerGroup["Protocol"].isNull()) + serverGroupsObject.protocol = valueServerGroupsServerGroup["Protocol"].asString(); + if(!valueServerGroupsServerGroup["PersistenceEnabled"].isNull()) + serverGroupsObject.persistenceEnabled = valueServerGroupsServerGroup["PersistenceEnabled"].asString() == "true"; + if(!valueServerGroupsServerGroup["PersistenceTimeout"].isNull()) + serverGroupsObject.persistenceTimeout = std::stoi(valueServerGroupsServerGroup["PersistenceTimeout"].asString()); + if(!valueServerGroupsServerGroup["ConnectionDrainEnabled"].isNull()) + serverGroupsObject.connectionDrainEnabled = valueServerGroupsServerGroup["ConnectionDrainEnabled"].asString() == "true"; + if(!valueServerGroupsServerGroup["ConnectionDrainTimeout"].isNull()) + serverGroupsObject.connectionDrainTimeout = std::stoi(valueServerGroupsServerGroup["ConnectionDrainTimeout"].asString()); + if(!valueServerGroupsServerGroup["PreserveClientIpEnabled"].isNull()) + serverGroupsObject.preserveClientIpEnabled = valueServerGroupsServerGroup["PreserveClientIpEnabled"].asString() == "true"; + if(!valueServerGroupsServerGroup["AnyPortEnabled"].isNull()) + serverGroupsObject.anyPortEnabled = valueServerGroupsServerGroup["AnyPortEnabled"].asString() == "true"; + if(!valueServerGroupsServerGroup["ResourceGroupId"].isNull()) + serverGroupsObject.resourceGroupId = valueServerGroupsServerGroup["ResourceGroupId"].asString(); + if(!valueServerGroupsServerGroup["ServerGroupStatus"].isNull()) + serverGroupsObject.serverGroupStatus = valueServerGroupsServerGroup["ServerGroupStatus"].asString(); + if(!valueServerGroupsServerGroup["AliUid"].isNull()) + serverGroupsObject.aliUid = std::stol(valueServerGroupsServerGroup["AliUid"].asString()); + if(!valueServerGroupsServerGroup["ServerCount"].isNull()) + serverGroupsObject.serverCount = std::stoi(valueServerGroupsServerGroup["ServerCount"].asString()); + if(!valueServerGroupsServerGroup["QuicVersion"].isNull()) + serverGroupsObject.quicVersion = valueServerGroupsServerGroup["QuicVersion"].asString(); + auto allTagsNode = valueServerGroupsServerGroup["Tags"]["Tag"]; + for (auto valueServerGroupsServerGroupTagsTag : allTagsNode) + { + ServerGroup::Tag tagsObject; + if(!valueServerGroupsServerGroupTagsTag["Key"].isNull()) + tagsObject.key = valueServerGroupsServerGroupTagsTag["Key"].asString(); + if(!valueServerGroupsServerGroupTagsTag["Value"].isNull()) + tagsObject.value = valueServerGroupsServerGroupTagsTag["Value"].asString(); + serverGroupsObject.tags.push_back(tagsObject); + } + auto healthCheckNode = value["HealthCheck"]; + if(!healthCheckNode["HealthCheckEnabled"].isNull()) + serverGroupsObject.healthCheck.healthCheckEnabled = healthCheckNode["HealthCheckEnabled"].asString() == "true"; + if(!healthCheckNode["HealthCheckType"].isNull()) + serverGroupsObject.healthCheck.healthCheckType = healthCheckNode["HealthCheckType"].asString(); + if(!healthCheckNode["HealthCheckConnectPort"].isNull()) + serverGroupsObject.healthCheck.healthCheckConnectPort = std::stoi(healthCheckNode["HealthCheckConnectPort"].asString()); + if(!healthCheckNode["HealthyThreshold"].isNull()) + serverGroupsObject.healthCheck.healthyThreshold = std::stoi(healthCheckNode["HealthyThreshold"].asString()); + if(!healthCheckNode["UnhealthyThreshold"].isNull()) + serverGroupsObject.healthCheck.unhealthyThreshold = std::stoi(healthCheckNode["UnhealthyThreshold"].asString()); + if(!healthCheckNode["HealthCheckConnectTimeout"].isNull()) + serverGroupsObject.healthCheck.healthCheckConnectTimeout = std::stoi(healthCheckNode["HealthCheckConnectTimeout"].asString()); + if(!healthCheckNode["HealthCheckInterval"].isNull()) + serverGroupsObject.healthCheck.healthCheckInterval = std::stoi(healthCheckNode["HealthCheckInterval"].asString()); + if(!healthCheckNode["HealthCheckDomain"].isNull()) + serverGroupsObject.healthCheck.healthCheckDomain = healthCheckNode["HealthCheckDomain"].asString(); + if(!healthCheckNode["HealthCheckUrl"].isNull()) + serverGroupsObject.healthCheck.healthCheckUrl = healthCheckNode["HealthCheckUrl"].asString(); + if(!healthCheckNode["HttpCheckMethod"].isNull()) + serverGroupsObject.healthCheck.httpCheckMethod = healthCheckNode["HttpCheckMethod"].asString(); + auto allHealthCheckHttpCode = healthCheckNode["HealthCheckHttpCode"]["HealthCheckHttpCode"]; + for (auto value : allHealthCheckHttpCode) + serverGroupsObject.healthCheck.healthCheckHttpCode.push_back(value.asString()); + auto allRelatedLoadBalancerIds = value["RelatedLoadBalancerIds"]["LoadbalancerId"]; + for (auto value : allRelatedLoadBalancerIds) + serverGroupsObject.relatedLoadBalancerIds.push_back(value.asString()); + serverGroups_.push_back(serverGroupsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +int ListServerGroupsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListServerGroupsResult::getMessage()const +{ + return message_; +} + +std::string ListServerGroupsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListServerGroupsResult::getServerGroups()const +{ + return serverGroups_; +} + +int ListServerGroupsResult::getMaxResults()const +{ + return maxResults_; +} + +int ListServerGroupsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListServerGroupsResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string ListServerGroupsResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string ListServerGroupsResult::getCode()const +{ + return code_; +} + +bool ListServerGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/nlb/src/model/ListSystemSecurityPolicyRequest.cc b/nlb/src/model/ListSystemSecurityPolicyRequest.cc new file mode 100644 index 000000000..e58bedfac --- /dev/null +++ b/nlb/src/model/ListSystemSecurityPolicyRequest.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::Nlb::Model::ListSystemSecurityPolicyRequest; + +ListSystemSecurityPolicyRequest::ListSystemSecurityPolicyRequest() + : RpcServiceRequest("nlb", "2022-04-30", "ListSystemSecurityPolicy") { + setMethod(HttpRequest::Method::Post); +} + +ListSystemSecurityPolicyRequest::~ListSystemSecurityPolicyRequest() {} + +std::string ListSystemSecurityPolicyRequest::getRegionId() const { + return regionId_; +} + +void ListSystemSecurityPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + diff --git a/nlb/src/model/ListSystemSecurityPolicyResult.cc b/nlb/src/model/ListSystemSecurityPolicyResult.cc new file mode 100644 index 000000000..fdcdb352c --- /dev/null +++ b/nlb/src/model/ListSystemSecurityPolicyResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +ListSystemSecurityPolicyResult::ListSystemSecurityPolicyResult() : + ServiceResult() +{} + +ListSystemSecurityPolicyResult::ListSystemSecurityPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSystemSecurityPolicyResult::~ListSystemSecurityPolicyResult() +{} + +void ListSystemSecurityPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSecurityPoliciesNode = value["SecurityPolicies"]["SecurityPolicie"]; + for (auto valueSecurityPoliciesSecurityPolicie : allSecurityPoliciesNode) + { + SecurityPolicie securityPoliciesObject; + if(!valueSecurityPoliciesSecurityPolicie["SecurityPolicyId"].isNull()) + securityPoliciesObject.securityPolicyId = valueSecurityPoliciesSecurityPolicie["SecurityPolicyId"].asString(); + if(!valueSecurityPoliciesSecurityPolicie["SecurityPolicyName"].isNull()) + securityPoliciesObject.securityPolicyName = valueSecurityPoliciesSecurityPolicie["SecurityPolicyName"].asString(); + if(!valueSecurityPoliciesSecurityPolicie["TlsVersion"].isNull()) + securityPoliciesObject.tlsVersion = valueSecurityPoliciesSecurityPolicie["TlsVersion"].asString(); + if(!valueSecurityPoliciesSecurityPolicie["Ciphers"].isNull()) + securityPoliciesObject.ciphers = valueSecurityPoliciesSecurityPolicie["Ciphers"].asString(); + securityPolicies_.push_back(securityPoliciesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string ListSystemSecurityPolicyResult::getMessage()const +{ + return message_; +} + +int ListSystemSecurityPolicyResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListSystemSecurityPolicyResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string ListSystemSecurityPolicyResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string ListSystemSecurityPolicyResult::getCode()const +{ + return code_; +} + +std::vector ListSystemSecurityPolicyResult::getSecurityPolicies()const +{ + return securityPolicies_; +} + +bool ListSystemSecurityPolicyResult::getSuccess()const +{ + return success_; +} + diff --git a/nlb/src/model/ListTagResourcesRequest.cc b/nlb/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..b3c485c25 --- /dev/null +++ b/nlb/src/model/ListTagResourcesRequest.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 + +using AlibabaCloud::Nlb::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RpcServiceRequest("nlb", "2022-04-30", "ListTagResources") { + setMethod(HttpRequest::Method::Post); +} + +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +std::string ListTagResourcesRequest::getNextToken() const { + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setBodyParameter(std::string("NextToken"), nextToken); +} + +std::string ListTagResourcesRequest::getRegionId() const { + return regionId_; +} + +void ListTagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +int ListTagResourcesRequest::getPageSize() const { + return pageSize_; +} + +void ListTagResourcesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::vector ListTagResourcesRequest::getTag() const { + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setBodyParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + setBodyParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + } +} + +std::vector ListTagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; + for(int dep1 = 0; dep1 != resourceId.size(); dep1++) { + setBodyParameter(std::string("ResourceId") + "." + std::to_string(dep1 + 1), resourceId[dep1]); + } +} + +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setBodyParameter(std::string("ResourceType"), resourceType); +} + +int ListTagResourcesRequest::getMaxResults() const { + return maxResults_; +} + +void ListTagResourcesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setBodyParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +int ListTagResourcesRequest::getPage() const { + return page_; +} + +void ListTagResourcesRequest::setPage(int page) { + page_ = page; + setBodyParameter(std::string("Page"), std::to_string(page)); +} + diff --git a/nlb/src/model/ListTagResourcesResult.cc b/nlb/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..66d8be887 --- /dev/null +++ b/nlb/src/model/ListTagResourcesResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagResourcesNode = value["TagResources"]["TagResultModelList"]; + for (auto valueTagResourcesTagResultModelList : allTagResourcesNode) + { + TagResultModelList tagResourcesObject; + if(!valueTagResourcesTagResultModelList["ResourceId"].isNull()) + tagResourcesObject.resourceId = valueTagResourcesTagResultModelList["ResourceId"].asString(); + if(!valueTagResourcesTagResultModelList["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResultModelList["ResourceType"].asString(); + if(!valueTagResourcesTagResultModelList["RegionNo"].isNull()) + tagResourcesObject.regionNo = valueTagResourcesTagResultModelList["RegionNo"].asString(); + if(!valueTagResourcesTagResultModelList["AliUid"].isNull()) + tagResourcesObject.aliUid = std::stol(valueTagResourcesTagResultModelList["AliUid"].asString()); + if(!valueTagResourcesTagResultModelList["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResultModelList["TagKey"].asString(); + if(!valueTagResourcesTagResultModelList["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResultModelList["TagValue"].asString(); + if(!valueTagResourcesTagResultModelList["Scope"].isNull()) + tagResourcesObject.scope = valueTagResourcesTagResultModelList["Scope"].asString(); + if(!valueTagResourcesTagResultModelList["Category"].isNull()) + tagResourcesObject.category = valueTagResourcesTagResultModelList["Category"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +int ListTagResourcesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + +int ListTagResourcesResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/nlb/src/model/LoadBalancerJoinSecurityGroupRequest.cc b/nlb/src/model/LoadBalancerJoinSecurityGroupRequest.cc new file mode 100644 index 000000000..15f43494e --- /dev/null +++ b/nlb/src/model/LoadBalancerJoinSecurityGroupRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlb::Model::LoadBalancerJoinSecurityGroupRequest; + +LoadBalancerJoinSecurityGroupRequest::LoadBalancerJoinSecurityGroupRequest() + : RpcServiceRequest("nlb", "2022-04-30", "LoadBalancerJoinSecurityGroup") { + setMethod(HttpRequest::Method::Post); +} + +LoadBalancerJoinSecurityGroupRequest::~LoadBalancerJoinSecurityGroupRequest() {} + +std::string LoadBalancerJoinSecurityGroupRequest::getClientToken() const { + return clientToken_; +} + +void LoadBalancerJoinSecurityGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string LoadBalancerJoinSecurityGroupRequest::getRegionId() const { + return regionId_; +} + +void LoadBalancerJoinSecurityGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool LoadBalancerJoinSecurityGroupRequest::getDryRun() const { + return dryRun_; +} + +void LoadBalancerJoinSecurityGroupRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector LoadBalancerJoinSecurityGroupRequest::getSecurityGroupIds() const { + return securityGroupIds_; +} + +void LoadBalancerJoinSecurityGroupRequest::setSecurityGroupIds(const std::vector &securityGroupIds) { + securityGroupIds_ = securityGroupIds; +} + +std::string LoadBalancerJoinSecurityGroupRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void LoadBalancerJoinSecurityGroupRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setBodyParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/nlb/src/model/LoadBalancerJoinSecurityGroupResult.cc b/nlb/src/model/LoadBalancerJoinSecurityGroupResult.cc new file mode 100644 index 000000000..c24917f39 --- /dev/null +++ b/nlb/src/model/LoadBalancerJoinSecurityGroupResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +LoadBalancerJoinSecurityGroupResult::LoadBalancerJoinSecurityGroupResult() : + ServiceResult() +{} + +LoadBalancerJoinSecurityGroupResult::LoadBalancerJoinSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LoadBalancerJoinSecurityGroupResult::~LoadBalancerJoinSecurityGroupResult() +{} + +void LoadBalancerJoinSecurityGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string LoadBalancerJoinSecurityGroupResult::getMessage()const +{ + return message_; +} + +int LoadBalancerJoinSecurityGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string LoadBalancerJoinSecurityGroupResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string LoadBalancerJoinSecurityGroupResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string LoadBalancerJoinSecurityGroupResult::getCode()const +{ + return code_; +} + +bool LoadBalancerJoinSecurityGroupResult::getSuccess()const +{ + return success_; +} + +std::string LoadBalancerJoinSecurityGroupResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/LoadBalancerLeaveSecurityGroupRequest.cc b/nlb/src/model/LoadBalancerLeaveSecurityGroupRequest.cc new file mode 100644 index 000000000..464353c73 --- /dev/null +++ b/nlb/src/model/LoadBalancerLeaveSecurityGroupRequest.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlb::Model::LoadBalancerLeaveSecurityGroupRequest; + +LoadBalancerLeaveSecurityGroupRequest::LoadBalancerLeaveSecurityGroupRequest() + : RpcServiceRequest("nlb", "2022-04-30", "LoadBalancerLeaveSecurityGroup") { + setMethod(HttpRequest::Method::Post); +} + +LoadBalancerLeaveSecurityGroupRequest::~LoadBalancerLeaveSecurityGroupRequest() {} + +std::string LoadBalancerLeaveSecurityGroupRequest::getClientToken() const { + return clientToken_; +} + +void LoadBalancerLeaveSecurityGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string LoadBalancerLeaveSecurityGroupRequest::getRegionId() const { + return regionId_; +} + +void LoadBalancerLeaveSecurityGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool LoadBalancerLeaveSecurityGroupRequest::getDryRun() const { + return dryRun_; +} + +void LoadBalancerLeaveSecurityGroupRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector LoadBalancerLeaveSecurityGroupRequest::getSecurityGroupIds() const { + return securityGroupIds_; +} + +void LoadBalancerLeaveSecurityGroupRequest::setSecurityGroupIds(const std::vector &securityGroupIds) { + securityGroupIds_ = securityGroupIds; +} + +std::string LoadBalancerLeaveSecurityGroupRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void LoadBalancerLeaveSecurityGroupRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setBodyParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/nlb/src/model/LoadBalancerLeaveSecurityGroupResult.cc b/nlb/src/model/LoadBalancerLeaveSecurityGroupResult.cc new file mode 100644 index 000000000..8d9b56bb2 --- /dev/null +++ b/nlb/src/model/LoadBalancerLeaveSecurityGroupResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +LoadBalancerLeaveSecurityGroupResult::LoadBalancerLeaveSecurityGroupResult() : + ServiceResult() +{} + +LoadBalancerLeaveSecurityGroupResult::LoadBalancerLeaveSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LoadBalancerLeaveSecurityGroupResult::~LoadBalancerLeaveSecurityGroupResult() +{} + +void LoadBalancerLeaveSecurityGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string LoadBalancerLeaveSecurityGroupResult::getMessage()const +{ + return message_; +} + +int LoadBalancerLeaveSecurityGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string LoadBalancerLeaveSecurityGroupResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string LoadBalancerLeaveSecurityGroupResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string LoadBalancerLeaveSecurityGroupResult::getCode()const +{ + return code_; +} + +bool LoadBalancerLeaveSecurityGroupResult::getSuccess()const +{ + return success_; +} + +std::string LoadBalancerLeaveSecurityGroupResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/MoveResourceGroupRequest.cc b/nlb/src/model/MoveResourceGroupRequest.cc new file mode 100644 index 000000000..3783f5e59 --- /dev/null +++ b/nlb/src/model/MoveResourceGroupRequest.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::Nlb::Model::MoveResourceGroupRequest; + +MoveResourceGroupRequest::MoveResourceGroupRequest() + : RpcServiceRequest("nlb", "2022-04-30", "MoveResourceGroup") { + setMethod(HttpRequest::Method::Post); +} + +MoveResourceGroupRequest::~MoveResourceGroupRequest() {} + +std::string MoveResourceGroupRequest::getClientToken() const { + return clientToken_; +} + +void MoveResourceGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string MoveResourceGroupRequest::getChannel() const { + return channel_; +} + +void MoveResourceGroupRequest::setChannel(const std::string &channel) { + channel_ = channel; + setBodyParameter(std::string("Channel"), channel); +} + +std::string MoveResourceGroupRequest::getOwnerIdLoginEmail() const { + return ownerIdLoginEmail_; +} + +void MoveResourceGroupRequest::setOwnerIdLoginEmail(const std::string &ownerIdLoginEmail) { + ownerIdLoginEmail_ = ownerIdLoginEmail; + setBodyParameter(std::string("OwnerIdLoginEmail"), ownerIdLoginEmail); +} + +std::string MoveResourceGroupRequest::getResourceDescription() const { + return resourceDescription_; +} + +void MoveResourceGroupRequest::setResourceDescription(const std::string &resourceDescription) { + resourceDescription_ = resourceDescription; + setBodyParameter(std::string("ResourceDescription"), resourceDescription); +} + +std::string MoveResourceGroupRequest::getCallerBidLoginEmail() const { + return callerBidLoginEmail_; +} + +void MoveResourceGroupRequest::setCallerBidLoginEmail(const std::string &callerBidLoginEmail) { + callerBidLoginEmail_ = callerBidLoginEmail; + setBodyParameter(std::string("CallerBidLoginEmail"), callerBidLoginEmail); +} + +std::string MoveResourceGroupRequest::getCallerUidLoginEmail() const { + return callerUidLoginEmail_; +} + +void MoveResourceGroupRequest::setCallerUidLoginEmail(const std::string &callerUidLoginEmail) { + callerUidLoginEmail_ = callerUidLoginEmail; + setBodyParameter(std::string("CallerUidLoginEmail"), callerUidLoginEmail); +} + +std::string MoveResourceGroupRequest::getRegionId() const { + return regionId_; +} + +void MoveResourceGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string MoveResourceGroupRequest::getRequestContent() const { + return requestContent_; +} + +void MoveResourceGroupRequest::setRequestContent(const std::string &requestContent) { + requestContent_ = requestContent; + setBodyParameter(std::string("RequestContent"), requestContent); +} + +std::string MoveResourceGroupRequest::getResourceId() const { + return resourceId_; +} + +void MoveResourceGroupRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setBodyParameter(std::string("ResourceId"), resourceId); +} + +bool MoveResourceGroupRequest::getDryRun() const { + return dryRun_; +} + +void MoveResourceGroupRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string MoveResourceGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void MoveResourceGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setBodyParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string MoveResourceGroupRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void MoveResourceGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setBodyParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string MoveResourceGroupRequest::getResourceType() const { + return resourceType_; +} + +void MoveResourceGroupRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setBodyParameter(std::string("ResourceType"), resourceType); +} + +std::string MoveResourceGroupRequest::getNewResourceGroupId() const { + return newResourceGroupId_; +} + +void MoveResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) { + newResourceGroupId_ = newResourceGroupId; + setBodyParameter(std::string("NewResourceGroupId"), newResourceGroupId); +} + +std::string MoveResourceGroupRequest::getServiceCode() const { + return serviceCode_; +} + +void MoveResourceGroupRequest::setServiceCode(const std::string &serviceCode) { + serviceCode_ = serviceCode; + setBodyParameter(std::string("ServiceCode"), serviceCode); +} + +std::string MoveResourceGroupRequest::getResourceName() const { + return resourceName_; +} + +void MoveResourceGroupRequest::setResourceName(const std::string &resourceName) { + resourceName_ = resourceName; + setBodyParameter(std::string("ResourceName"), resourceName); +} + diff --git a/nlb/src/model/MoveResourceGroupResult.cc b/nlb/src/model/MoveResourceGroupResult.cc new file mode 100644 index 000000000..2c6e71d4f --- /dev/null +++ b/nlb/src/model/MoveResourceGroupResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +MoveResourceGroupResult::MoveResourceGroupResult() : + ServiceResult() +{} + +MoveResourceGroupResult::MoveResourceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MoveResourceGroupResult::~MoveResourceGroupResult() +{} + +void MoveResourceGroupResult::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["JobId"].isNull()) + data_.jobId = dataNode["JobId"].asString(); + if(!dataNode["ResourceId"].isNull()) + data_.resourceId = dataNode["ResourceId"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +int MoveResourceGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +MoveResourceGroupResult::Data MoveResourceGroupResult::getData()const +{ + return data_; +} + +bool MoveResourceGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/nlb/src/model/RemoveServersFromServerGroupRequest.cc b/nlb/src/model/RemoveServersFromServerGroupRequest.cc new file mode 100644 index 000000000..ecdb4de7b --- /dev/null +++ b/nlb/src/model/RemoveServersFromServerGroupRequest.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 + +using AlibabaCloud::Nlb::Model::RemoveServersFromServerGroupRequest; + +RemoveServersFromServerGroupRequest::RemoveServersFromServerGroupRequest() + : RpcServiceRequest("nlb", "2022-04-30", "RemoveServersFromServerGroup") { + setMethod(HttpRequest::Method::Post); +} + +RemoveServersFromServerGroupRequest::~RemoveServersFromServerGroupRequest() {} + +std::string RemoveServersFromServerGroupRequest::getClientToken() const { + return clientToken_; +} + +void RemoveServersFromServerGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string RemoveServersFromServerGroupRequest::getServerGroupId() const { + return serverGroupId_; +} + +void RemoveServersFromServerGroupRequest::setServerGroupId(const std::string &serverGroupId) { + serverGroupId_ = serverGroupId; + setBodyParameter(std::string("ServerGroupId"), serverGroupId); +} + +std::vector RemoveServersFromServerGroupRequest::getServers() const { + return servers_; +} + +void RemoveServersFromServerGroupRequest::setServers(const std::vector &servers) { + servers_ = servers; + for(int dep1 = 0; dep1 != servers.size(); dep1++) { + auto serversObj = servers.at(dep1); + std::string serversObjStr = std::string("Servers") + "." + std::to_string(dep1 + 1); + setBodyParameter(serversObjStr + ".ServerId", serversObj.serverId); + setBodyParameter(serversObjStr + ".ServerType", serversObj.serverType); + setBodyParameter(serversObjStr + ".ServerIp", serversObj.serverIp); + setBodyParameter(serversObjStr + ".Port", std::to_string(serversObj.port)); + } +} + +std::string RemoveServersFromServerGroupRequest::getRegionId() const { + return regionId_; +} + +void RemoveServersFromServerGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool RemoveServersFromServerGroupRequest::getDryRun() const { + return dryRun_; +} + +void RemoveServersFromServerGroupRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/nlb/src/model/RemoveServersFromServerGroupResult.cc b/nlb/src/model/RemoveServersFromServerGroupResult.cc new file mode 100644 index 000000000..998bd5751 --- /dev/null +++ b/nlb/src/model/RemoveServersFromServerGroupResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +RemoveServersFromServerGroupResult::RemoveServersFromServerGroupResult() : + ServiceResult() +{} + +RemoveServersFromServerGroupResult::RemoveServersFromServerGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveServersFromServerGroupResult::~RemoveServersFromServerGroupResult() +{} + +void RemoveServersFromServerGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["ServerGroupId"].isNull()) + serverGroupId_ = value["ServerGroupId"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string RemoveServersFromServerGroupResult::getMessage()const +{ + return message_; +} + +int RemoveServersFromServerGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string RemoveServersFromServerGroupResult::getServerGroupId()const +{ + return serverGroupId_; +} + +std::string RemoveServersFromServerGroupResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string RemoveServersFromServerGroupResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string RemoveServersFromServerGroupResult::getCode()const +{ + return code_; +} + +bool RemoveServersFromServerGroupResult::getSuccess()const +{ + return success_; +} + +std::string RemoveServersFromServerGroupResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/StartListenerRequest.cc b/nlb/src/model/StartListenerRequest.cc new file mode 100644 index 000000000..bf3e4d189 --- /dev/null +++ b/nlb/src/model/StartListenerRequest.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::Nlb::Model::StartListenerRequest; + +StartListenerRequest::StartListenerRequest() + : RpcServiceRequest("nlb", "2022-04-30", "StartListener") { + setMethod(HttpRequest::Method::Post); +} + +StartListenerRequest::~StartListenerRequest() {} + +std::string StartListenerRequest::getClientToken() const { + return clientToken_; +} + +void StartListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string StartListenerRequest::getListenerId() const { + return listenerId_; +} + +void StartListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setBodyParameter(std::string("ListenerId"), listenerId); +} + +std::string StartListenerRequest::getRegionId() const { + return regionId_; +} + +void StartListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool StartListenerRequest::getDryRun() const { + return dryRun_; +} + +void StartListenerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/nlb/src/model/StartListenerResult.cc b/nlb/src/model/StartListenerResult.cc new file mode 100644 index 000000000..5742d7d84 --- /dev/null +++ b/nlb/src/model/StartListenerResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +StartListenerResult::StartListenerResult() : + ServiceResult() +{} + +StartListenerResult::StartListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartListenerResult::~StartListenerResult() +{} + +void StartListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string StartListenerResult::getMessage()const +{ + return message_; +} + +int StartListenerResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string StartListenerResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string StartListenerResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string StartListenerResult::getCode()const +{ + return code_; +} + +bool StartListenerResult::getSuccess()const +{ + return success_; +} + +std::string StartListenerResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/StartShiftLoadBalancerZonesRequest.cc b/nlb/src/model/StartShiftLoadBalancerZonesRequest.cc new file mode 100644 index 000000000..9b7dc7997 --- /dev/null +++ b/nlb/src/model/StartShiftLoadBalancerZonesRequest.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 + +using AlibabaCloud::Nlb::Model::StartShiftLoadBalancerZonesRequest; + +StartShiftLoadBalancerZonesRequest::StartShiftLoadBalancerZonesRequest() + : RpcServiceRequest("nlb", "2022-04-30", "StartShiftLoadBalancerZones") { + setMethod(HttpRequest::Method::Post); +} + +StartShiftLoadBalancerZonesRequest::~StartShiftLoadBalancerZonesRequest() {} + +std::string StartShiftLoadBalancerZonesRequest::getClientToken() const { + return clientToken_; +} + +void StartShiftLoadBalancerZonesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string StartShiftLoadBalancerZonesRequest::getRegionId() const { + return regionId_; +} + +void StartShiftLoadBalancerZonesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool StartShiftLoadBalancerZonesRequest::getDryRun() const { + return dryRun_; +} + +void StartShiftLoadBalancerZonesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector StartShiftLoadBalancerZonesRequest::getZoneMappings() const { + return zoneMappings_; +} + +void StartShiftLoadBalancerZonesRequest::setZoneMappings(const std::vector &zoneMappings) { + zoneMappings_ = zoneMappings; + for(int dep1 = 0; dep1 != zoneMappings.size(); dep1++) { + auto zoneMappingsObj = zoneMappings.at(dep1); + std::string zoneMappingsObjStr = std::string("ZoneMappings") + "." + std::to_string(dep1 + 1); + setBodyParameter(zoneMappingsObjStr + ".VSwitchId", zoneMappingsObj.vSwitchId); + setBodyParameter(zoneMappingsObjStr + ".ZoneId", zoneMappingsObj.zoneId); + } +} + +std::string StartShiftLoadBalancerZonesRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void StartShiftLoadBalancerZonesRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setBodyParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/nlb/src/model/StartShiftLoadBalancerZonesResult.cc b/nlb/src/model/StartShiftLoadBalancerZonesResult.cc new file mode 100644 index 000000000..b35731ff3 --- /dev/null +++ b/nlb/src/model/StartShiftLoadBalancerZonesResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +StartShiftLoadBalancerZonesResult::StartShiftLoadBalancerZonesResult() : + ServiceResult() +{} + +StartShiftLoadBalancerZonesResult::StartShiftLoadBalancerZonesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartShiftLoadBalancerZonesResult::~StartShiftLoadBalancerZonesResult() +{} + +void StartShiftLoadBalancerZonesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + +} + +std::string StartShiftLoadBalancerZonesResult::getMessage()const +{ + return message_; +} + +int StartShiftLoadBalancerZonesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string StartShiftLoadBalancerZonesResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string StartShiftLoadBalancerZonesResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string StartShiftLoadBalancerZonesResult::getCode()const +{ + return code_; +} + +bool StartShiftLoadBalancerZonesResult::getSuccess()const +{ + return success_; +} + diff --git a/nlb/src/model/StopListenerRequest.cc b/nlb/src/model/StopListenerRequest.cc new file mode 100644 index 000000000..762d10042 --- /dev/null +++ b/nlb/src/model/StopListenerRequest.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::Nlb::Model::StopListenerRequest; + +StopListenerRequest::StopListenerRequest() + : RpcServiceRequest("nlb", "2022-04-30", "StopListener") { + setMethod(HttpRequest::Method::Post); +} + +StopListenerRequest::~StopListenerRequest() {} + +std::string StopListenerRequest::getClientToken() const { + return clientToken_; +} + +void StopListenerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string StopListenerRequest::getListenerId() const { + return listenerId_; +} + +void StopListenerRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setBodyParameter(std::string("ListenerId"), listenerId); +} + +std::string StopListenerRequest::getRegionId() const { + return regionId_; +} + +void StopListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool StopListenerRequest::getDryRun() const { + return dryRun_; +} + +void StopListenerRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/nlb/src/model/StopListenerResult.cc b/nlb/src/model/StopListenerResult.cc new file mode 100644 index 000000000..acd0e06b0 --- /dev/null +++ b/nlb/src/model/StopListenerResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +StopListenerResult::StopListenerResult() : + ServiceResult() +{} + +StopListenerResult::StopListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopListenerResult::~StopListenerResult() +{} + +void StopListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string StopListenerResult::getMessage()const +{ + return message_; +} + +int StopListenerResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string StopListenerResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string StopListenerResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string StopListenerResult::getCode()const +{ + return code_; +} + +bool StopListenerResult::getSuccess()const +{ + return success_; +} + +std::string StopListenerResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/TagResourcesRequest.cc b/nlb/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..d84584db4 --- /dev/null +++ b/nlb/src/model/TagResourcesRequest.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 + +using AlibabaCloud::Nlb::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("nlb", "2022-04-30", "TagResources") { + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() {} + +std::string TagResourcesRequest::getClientToken() const { + return clientToken_; +} + +void TagResourcesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string TagResourcesRequest::getRegionId() const { + return regionId_; +} + +void TagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::vector TagResourcesRequest::getTag() const { + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setBodyParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + setBodyParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + } +} + +std::vector TagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; + for(int dep1 = 0; dep1 != resourceId.size(); dep1++) { + setBodyParameter(std::string("ResourceId") + "." + std::to_string(dep1 + 1), resourceId[dep1]); + } +} + +bool TagResourcesRequest::getDryRun() const { + return dryRun_; +} + +void TagResourcesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setBodyParameter(std::string("ResourceType"), resourceType); +} + diff --git a/nlb/src/model/TagResourcesResult.cc b/nlb/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..68302b831 --- /dev/null +++ b/nlb/src/model/TagResourcesResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string TagResourcesResult::getMessage()const +{ + return message_; +} + +int TagResourcesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string TagResourcesResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string TagResourcesResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string TagResourcesResult::getCode()const +{ + return code_; +} + +bool TagResourcesResult::getSuccess()const +{ + return success_; +} + +std::string TagResourcesResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/UntagResourcesRequest.cc b/nlb/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..6f021291f --- /dev/null +++ b/nlb/src/model/UntagResourcesRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlb::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() + : RpcServiceRequest("nlb", "2022-04-30", "UntagResources") { + setMethod(HttpRequest::Method::Post); +} + +UntagResourcesRequest::~UntagResourcesRequest() {} + +std::string UntagResourcesRequest::getClientToken() const { + return clientToken_; +} + +void UntagResourcesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string UntagResourcesRequest::getRegionId() const { + return regionId_; +} + +void UntagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool UntagResourcesRequest::getAll() const { + return all_; +} + +void UntagResourcesRequest::setAll(bool all) { + all_ = all; + setBodyParameter(std::string("All"), all ? "true" : "false"); +} + +std::vector UntagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void UntagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; + for(int dep1 = 0; dep1 != resourceId.size(); dep1++) { + setBodyParameter(std::string("ResourceId") + "." + std::to_string(dep1 + 1), resourceId[dep1]); + } +} + +bool UntagResourcesRequest::getDryRun() const { + return dryRun_; +} + +void UntagResourcesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string UntagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setBodyParameter(std::string("ResourceType"), resourceType); +} + +std::vector UntagResourcesRequest::getTagKey() const { + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector &tagKey) { + tagKey_ = tagKey; + for(int dep1 = 0; dep1 != tagKey.size(); dep1++) { + setBodyParameter(std::string("TagKey") + "." + std::to_string(dep1 + 1), tagKey[dep1]); + } +} + diff --git a/nlb/src/model/UntagResourcesResult.cc b/nlb/src/model/UntagResourcesResult.cc new file mode 100644 index 000000000..fcfbf841e --- /dev/null +++ b/nlb/src/model/UntagResourcesResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string UntagResourcesResult::getMessage()const +{ + return message_; +} + +int UntagResourcesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UntagResourcesResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string UntagResourcesResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string UntagResourcesResult::getCode()const +{ + return code_; +} + +bool UntagResourcesResult::getSuccess()const +{ + return success_; +} + +std::string UntagResourcesResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/UpdateListenerAttributeRequest.cc b/nlb/src/model/UpdateListenerAttributeRequest.cc new file mode 100644 index 000000000..5eba99ebe --- /dev/null +++ b/nlb/src/model/UpdateListenerAttributeRequest.cc @@ -0,0 +1,196 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlb::Model::UpdateListenerAttributeRequest; + +UpdateListenerAttributeRequest::UpdateListenerAttributeRequest() + : RpcServiceRequest("nlb", "2022-04-30", "UpdateListenerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateListenerAttributeRequest::~UpdateListenerAttributeRequest() {} + +std::vector UpdateListenerAttributeRequest::getCaCertificateIds() const { + return caCertificateIds_; +} + +void UpdateListenerAttributeRequest::setCaCertificateIds(const std::vector &caCertificateIds) { + caCertificateIds_ = caCertificateIds; +} + +int UpdateListenerAttributeRequest::getStartPort() const { + return startPort_; +} + +void UpdateListenerAttributeRequest::setStartPort(int startPort) { + startPort_ = startPort; + setBodyParameter(std::string("StartPort"), std::to_string(startPort)); +} + +std::string UpdateListenerAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateListenerAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +bool UpdateListenerAttributeRequest::getSecSensorEnabled() const { + return secSensorEnabled_; +} + +void UpdateListenerAttributeRequest::setSecSensorEnabled(bool secSensorEnabled) { + secSensorEnabled_ = secSensorEnabled; + setBodyParameter(std::string("SecSensorEnabled"), secSensorEnabled ? "true" : "false"); +} + +std::string UpdateListenerAttributeRequest::getAlpnPolicy() const { + return alpnPolicy_; +} + +void UpdateListenerAttributeRequest::setAlpnPolicy(const std::string &alpnPolicy) { + alpnPolicy_ = alpnPolicy; + setBodyParameter(std::string("AlpnPolicy"), alpnPolicy); +} + +int UpdateListenerAttributeRequest::getMss() const { + return mss_; +} + +void UpdateListenerAttributeRequest::setMss(int mss) { + mss_ = mss; + setBodyParameter(std::string("Mss"), std::to_string(mss)); +} + +std::string UpdateListenerAttributeRequest::getServerGroupId() const { + return serverGroupId_; +} + +void UpdateListenerAttributeRequest::setServerGroupId(const std::string &serverGroupId) { + serverGroupId_ = serverGroupId; + setBodyParameter(std::string("ServerGroupId"), serverGroupId); +} + +std::string UpdateListenerAttributeRequest::getListenerId() const { + return listenerId_; +} + +void UpdateListenerAttributeRequest::setListenerId(const std::string &listenerId) { + listenerId_ = listenerId; + setBodyParameter(std::string("ListenerId"), listenerId); +} + +std::vector UpdateListenerAttributeRequest::getCertificateIds() const { + return certificateIds_; +} + +void UpdateListenerAttributeRequest::setCertificateIds(const std::vector &certificateIds) { + certificateIds_ = certificateIds; +} + +std::string UpdateListenerAttributeRequest::getRegionId() const { + return regionId_; +} + +void UpdateListenerAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool UpdateListenerAttributeRequest::getAlpnEnabled() const { + return alpnEnabled_; +} + +void UpdateListenerAttributeRequest::setAlpnEnabled(bool alpnEnabled) { + alpnEnabled_ = alpnEnabled; + setBodyParameter(std::string("AlpnEnabled"), alpnEnabled ? "true" : "false"); +} + +int UpdateListenerAttributeRequest::getEndPort() const { + return endPort_; +} + +void UpdateListenerAttributeRequest::setEndPort(int endPort) { + endPort_ = endPort; + setBodyParameter(std::string("EndPort"), std::to_string(endPort)); +} + +bool UpdateListenerAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateListenerAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +bool UpdateListenerAttributeRequest::getProxyProtocolEnabled() const { + return proxyProtocolEnabled_; +} + +void UpdateListenerAttributeRequest::setProxyProtocolEnabled(bool proxyProtocolEnabled) { + proxyProtocolEnabled_ = proxyProtocolEnabled; + setBodyParameter(std::string("ProxyProtocolEnabled"), proxyProtocolEnabled ? "true" : "false"); +} + +int UpdateListenerAttributeRequest::getCps() const { + return cps_; +} + +void UpdateListenerAttributeRequest::setCps(int cps) { + cps_ = cps; + setBodyParameter(std::string("Cps"), std::to_string(cps)); +} + +std::string UpdateListenerAttributeRequest::getSecurityPolicyId() const { + return securityPolicyId_; +} + +void UpdateListenerAttributeRequest::setSecurityPolicyId(const std::string &securityPolicyId) { + securityPolicyId_ = securityPolicyId; + setBodyParameter(std::string("SecurityPolicyId"), securityPolicyId); +} + +int UpdateListenerAttributeRequest::getIdleTimeout() const { + return idleTimeout_; +} + +void UpdateListenerAttributeRequest::setIdleTimeout(int idleTimeout) { + idleTimeout_ = idleTimeout; + setBodyParameter(std::string("IdleTimeout"), std::to_string(idleTimeout)); +} + +std::string UpdateListenerAttributeRequest::getListenerDescription() const { + return listenerDescription_; +} + +void UpdateListenerAttributeRequest::setListenerDescription(const std::string &listenerDescription) { + listenerDescription_ = listenerDescription; + setBodyParameter(std::string("ListenerDescription"), listenerDescription); +} + +bool UpdateListenerAttributeRequest::getCaEnabled() const { + return caEnabled_; +} + +void UpdateListenerAttributeRequest::setCaEnabled(bool caEnabled) { + caEnabled_ = caEnabled; + setBodyParameter(std::string("CaEnabled"), caEnabled ? "true" : "false"); +} + diff --git a/nlb/src/model/UpdateListenerAttributeResult.cc b/nlb/src/model/UpdateListenerAttributeResult.cc new file mode 100644 index 000000000..c09ec2a24 --- /dev/null +++ b/nlb/src/model/UpdateListenerAttributeResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +UpdateListenerAttributeResult::UpdateListenerAttributeResult() : + ServiceResult() +{} + +UpdateListenerAttributeResult::UpdateListenerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateListenerAttributeResult::~UpdateListenerAttributeResult() +{} + +void UpdateListenerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string UpdateListenerAttributeResult::getMessage()const +{ + return message_; +} + +int UpdateListenerAttributeResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateListenerAttributeResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string UpdateListenerAttributeResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string UpdateListenerAttributeResult::getCode()const +{ + return code_; +} + +bool UpdateListenerAttributeResult::getSuccess()const +{ + return success_; +} + +std::string UpdateListenerAttributeResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/UpdateLoadBalancerAddressTypeConfigRequest.cc b/nlb/src/model/UpdateLoadBalancerAddressTypeConfigRequest.cc new file mode 100644 index 000000000..6467b3e77 --- /dev/null +++ b/nlb/src/model/UpdateLoadBalancerAddressTypeConfigRequest.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlb::Model::UpdateLoadBalancerAddressTypeConfigRequest; + +UpdateLoadBalancerAddressTypeConfigRequest::UpdateLoadBalancerAddressTypeConfigRequest() + : RpcServiceRequest("nlb", "2022-04-30", "UpdateLoadBalancerAddressTypeConfig") { + setMethod(HttpRequest::Method::Post); +} + +UpdateLoadBalancerAddressTypeConfigRequest::~UpdateLoadBalancerAddressTypeConfigRequest() {} + +std::string UpdateLoadBalancerAddressTypeConfigRequest::getClientToken() const { + return clientToken_; +} + +void UpdateLoadBalancerAddressTypeConfigRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateLoadBalancerAddressTypeConfigRequest::getRegionId() const { + return regionId_; +} + +void UpdateLoadBalancerAddressTypeConfigRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::string UpdateLoadBalancerAddressTypeConfigRequest::getAddressType() const { + return addressType_; +} + +void UpdateLoadBalancerAddressTypeConfigRequest::setAddressType(const std::string &addressType) { + addressType_ = addressType; + setBodyParameter(std::string("AddressType"), addressType); +} + +bool UpdateLoadBalancerAddressTypeConfigRequest::getDryRun() const { + return dryRun_; +} + +void UpdateLoadBalancerAddressTypeConfigRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector UpdateLoadBalancerAddressTypeConfigRequest::getZoneMappings() const { + return zoneMappings_; +} + +void UpdateLoadBalancerAddressTypeConfigRequest::setZoneMappings(const std::vector &zoneMappings) { + zoneMappings_ = zoneMappings; + for(int dep1 = 0; dep1 != zoneMappings.size(); dep1++) { + auto zoneMappingsObj = zoneMappings.at(dep1); + std::string zoneMappingsObjStr = std::string("ZoneMappings") + "." + std::to_string(dep1 + 1); + setBodyParameter(zoneMappingsObjStr + ".VSwitchId", zoneMappingsObj.vSwitchId); + setBodyParameter(zoneMappingsObjStr + ".ZoneId", zoneMappingsObj.zoneId); + setBodyParameter(zoneMappingsObjStr + ".AllocationId", zoneMappingsObj.allocationId); + setBodyParameter(zoneMappingsObjStr + ".EipType", zoneMappingsObj.eipType); + } +} + +std::string UpdateLoadBalancerAddressTypeConfigRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void UpdateLoadBalancerAddressTypeConfigRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setBodyParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/nlb/src/model/UpdateLoadBalancerAddressTypeConfigResult.cc b/nlb/src/model/UpdateLoadBalancerAddressTypeConfigResult.cc new file mode 100644 index 000000000..488815cb4 --- /dev/null +++ b/nlb/src/model/UpdateLoadBalancerAddressTypeConfigResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +UpdateLoadBalancerAddressTypeConfigResult::UpdateLoadBalancerAddressTypeConfigResult() : + ServiceResult() +{} + +UpdateLoadBalancerAddressTypeConfigResult::UpdateLoadBalancerAddressTypeConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateLoadBalancerAddressTypeConfigResult::~UpdateLoadBalancerAddressTypeConfigResult() +{} + +void UpdateLoadBalancerAddressTypeConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string UpdateLoadBalancerAddressTypeConfigResult::getMessage()const +{ + return message_; +} + +int UpdateLoadBalancerAddressTypeConfigResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateLoadBalancerAddressTypeConfigResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string UpdateLoadBalancerAddressTypeConfigResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string UpdateLoadBalancerAddressTypeConfigResult::getCode()const +{ + return code_; +} + +bool UpdateLoadBalancerAddressTypeConfigResult::getSuccess()const +{ + return success_; +} + +std::string UpdateLoadBalancerAddressTypeConfigResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/UpdateLoadBalancerAttributeRequest.cc b/nlb/src/model/UpdateLoadBalancerAttributeRequest.cc new file mode 100644 index 000000000..ce0ded8ac --- /dev/null +++ b/nlb/src/model/UpdateLoadBalancerAttributeRequest.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlb::Model::UpdateLoadBalancerAttributeRequest; + +UpdateLoadBalancerAttributeRequest::UpdateLoadBalancerAttributeRequest() + : RpcServiceRequest("nlb", "2022-04-30", "UpdateLoadBalancerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateLoadBalancerAttributeRequest::~UpdateLoadBalancerAttributeRequest() {} + +bool UpdateLoadBalancerAttributeRequest::getCrossZoneEnabled() const { + return crossZoneEnabled_; +} + +void UpdateLoadBalancerAttributeRequest::setCrossZoneEnabled(bool crossZoneEnabled) { + crossZoneEnabled_ = crossZoneEnabled; + setBodyParameter(std::string("CrossZoneEnabled"), crossZoneEnabled ? "true" : "false"); +} + +std::string UpdateLoadBalancerAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateLoadBalancerAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateLoadBalancerAttributeRequest::getLoadBalancerName() const { + return loadBalancerName_; +} + +void UpdateLoadBalancerAttributeRequest::setLoadBalancerName(const std::string &loadBalancerName) { + loadBalancerName_ = loadBalancerName; + setBodyParameter(std::string("LoadBalancerName"), loadBalancerName); +} + +std::string UpdateLoadBalancerAttributeRequest::getRegionId() const { + return regionId_; +} + +void UpdateLoadBalancerAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool UpdateLoadBalancerAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateLoadBalancerAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +int UpdateLoadBalancerAttributeRequest::getCps() const { + return cps_; +} + +void UpdateLoadBalancerAttributeRequest::setCps(int cps) { + cps_ = cps; + setBodyParameter(std::string("Cps"), std::to_string(cps)); +} + +bool UpdateLoadBalancerAttributeRequest::getTrafficAffinityEnabled() const { + return trafficAffinityEnabled_; +} + +void UpdateLoadBalancerAttributeRequest::setTrafficAffinityEnabled(bool trafficAffinityEnabled) { + trafficAffinityEnabled_ = trafficAffinityEnabled; + setBodyParameter(std::string("TrafficAffinityEnabled"), trafficAffinityEnabled ? "true" : "false"); +} + +std::vector UpdateLoadBalancerAttributeRequest::getSecurityGroupIds() const { + return securityGroupIds_; +} + +void UpdateLoadBalancerAttributeRequest::setSecurityGroupIds(const std::vector &securityGroupIds) { + securityGroupIds_ = securityGroupIds; +} + +std::string UpdateLoadBalancerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void UpdateLoadBalancerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setBodyParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/nlb/src/model/UpdateLoadBalancerAttributeResult.cc b/nlb/src/model/UpdateLoadBalancerAttributeResult.cc new file mode 100644 index 000000000..e2a7e0a6a --- /dev/null +++ b/nlb/src/model/UpdateLoadBalancerAttributeResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +UpdateLoadBalancerAttributeResult::UpdateLoadBalancerAttributeResult() : + ServiceResult() +{} + +UpdateLoadBalancerAttributeResult::UpdateLoadBalancerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateLoadBalancerAttributeResult::~UpdateLoadBalancerAttributeResult() +{} + +void UpdateLoadBalancerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string UpdateLoadBalancerAttributeResult::getMessage()const +{ + return message_; +} + +int UpdateLoadBalancerAttributeResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateLoadBalancerAttributeResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string UpdateLoadBalancerAttributeResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string UpdateLoadBalancerAttributeResult::getCode()const +{ + return code_; +} + +bool UpdateLoadBalancerAttributeResult::getSuccess()const +{ + return success_; +} + +std::string UpdateLoadBalancerAttributeResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/UpdateLoadBalancerProtectionRequest.cc b/nlb/src/model/UpdateLoadBalancerProtectionRequest.cc new file mode 100644 index 000000000..c5478ea5b --- /dev/null +++ b/nlb/src/model/UpdateLoadBalancerProtectionRequest.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::Nlb::Model::UpdateLoadBalancerProtectionRequest; + +UpdateLoadBalancerProtectionRequest::UpdateLoadBalancerProtectionRequest() + : RpcServiceRequest("nlb", "2022-04-30", "UpdateLoadBalancerProtection") { + setMethod(HttpRequest::Method::Post); +} + +UpdateLoadBalancerProtectionRequest::~UpdateLoadBalancerProtectionRequest() {} + +std::string UpdateLoadBalancerProtectionRequest::getDeletionProtectionReason() const { + return deletionProtectionReason_; +} + +void UpdateLoadBalancerProtectionRequest::setDeletionProtectionReason(const std::string &deletionProtectionReason) { + deletionProtectionReason_ = deletionProtectionReason; + setBodyParameter(std::string("DeletionProtectionReason"), deletionProtectionReason); +} + +std::string UpdateLoadBalancerProtectionRequest::getModificationProtectionReason() const { + return modificationProtectionReason_; +} + +void UpdateLoadBalancerProtectionRequest::setModificationProtectionReason(const std::string &modificationProtectionReason) { + modificationProtectionReason_ = modificationProtectionReason; + setBodyParameter(std::string("ModificationProtectionReason"), modificationProtectionReason); +} + +std::string UpdateLoadBalancerProtectionRequest::getClientToken() const { + return clientToken_; +} + +void UpdateLoadBalancerProtectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +bool UpdateLoadBalancerProtectionRequest::getDeletionProtectionEnabled() const { + return deletionProtectionEnabled_; +} + +void UpdateLoadBalancerProtectionRequest::setDeletionProtectionEnabled(bool deletionProtectionEnabled) { + deletionProtectionEnabled_ = deletionProtectionEnabled; + setBodyParameter(std::string("DeletionProtectionEnabled"), deletionProtectionEnabled ? "true" : "false"); +} + +std::string UpdateLoadBalancerProtectionRequest::getRegionId() const { + return regionId_; +} + +void UpdateLoadBalancerProtectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool UpdateLoadBalancerProtectionRequest::getDryRun() const { + return dryRun_; +} + +void UpdateLoadBalancerProtectionRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string UpdateLoadBalancerProtectionRequest::getModificationProtectionStatus() const { + return modificationProtectionStatus_; +} + +void UpdateLoadBalancerProtectionRequest::setModificationProtectionStatus(const std::string &modificationProtectionStatus) { + modificationProtectionStatus_ = modificationProtectionStatus; + setBodyParameter(std::string("ModificationProtectionStatus"), modificationProtectionStatus); +} + +std::string UpdateLoadBalancerProtectionRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void UpdateLoadBalancerProtectionRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setBodyParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/nlb/src/model/UpdateLoadBalancerProtectionResult.cc b/nlb/src/model/UpdateLoadBalancerProtectionResult.cc new file mode 100644 index 000000000..88056b62a --- /dev/null +++ b/nlb/src/model/UpdateLoadBalancerProtectionResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +UpdateLoadBalancerProtectionResult::UpdateLoadBalancerProtectionResult() : + ServiceResult() +{} + +UpdateLoadBalancerProtectionResult::UpdateLoadBalancerProtectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateLoadBalancerProtectionResult::~UpdateLoadBalancerProtectionResult() +{} + +void UpdateLoadBalancerProtectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/nlb/src/model/UpdateLoadBalancerZonesRequest.cc b/nlb/src/model/UpdateLoadBalancerZonesRequest.cc new file mode 100644 index 000000000..c1ffac537 --- /dev/null +++ b/nlb/src/model/UpdateLoadBalancerZonesRequest.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 + +using AlibabaCloud::Nlb::Model::UpdateLoadBalancerZonesRequest; + +UpdateLoadBalancerZonesRequest::UpdateLoadBalancerZonesRequest() + : RpcServiceRequest("nlb", "2022-04-30", "UpdateLoadBalancerZones") { + setMethod(HttpRequest::Method::Post); +} + +UpdateLoadBalancerZonesRequest::~UpdateLoadBalancerZonesRequest() {} + +std::string UpdateLoadBalancerZonesRequest::getClientToken() const { + return clientToken_; +} + +void UpdateLoadBalancerZonesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateLoadBalancerZonesRequest::getRegionId() const { + return regionId_; +} + +void UpdateLoadBalancerZonesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool UpdateLoadBalancerZonesRequest::getDryRun() const { + return dryRun_; +} + +void UpdateLoadBalancerZonesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::vector UpdateLoadBalancerZonesRequest::getZoneMappings() const { + return zoneMappings_; +} + +void UpdateLoadBalancerZonesRequest::setZoneMappings(const std::vector &zoneMappings) { + zoneMappings_ = zoneMappings; + for(int dep1 = 0; dep1 != zoneMappings.size(); dep1++) { + auto zoneMappingsObj = zoneMappings.at(dep1); + std::string zoneMappingsObjStr = std::string("ZoneMappings") + "." + std::to_string(dep1 + 1); + setBodyParameter(zoneMappingsObjStr + ".VSwitchId", zoneMappingsObj.vSwitchId); + setBodyParameter(zoneMappingsObjStr + ".ZoneId", zoneMappingsObj.zoneId); + setBodyParameter(zoneMappingsObjStr + ".PrivateIPv4Address", zoneMappingsObj.privateIPv4Address); + setBodyParameter(zoneMappingsObjStr + ".AllocationId", zoneMappingsObj.allocationId); + setBodyParameter(zoneMappingsObjStr + ".EipType", zoneMappingsObj.eipType); + } +} + +std::string UpdateLoadBalancerZonesRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void UpdateLoadBalancerZonesRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setBodyParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/nlb/src/model/UpdateLoadBalancerZonesResult.cc b/nlb/src/model/UpdateLoadBalancerZonesResult.cc new file mode 100644 index 000000000..aa5abc4a9 --- /dev/null +++ b/nlb/src/model/UpdateLoadBalancerZonesResult.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::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +UpdateLoadBalancerZonesResult::UpdateLoadBalancerZonesResult() : + ServiceResult() +{} + +UpdateLoadBalancerZonesResult::UpdateLoadBalancerZonesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateLoadBalancerZonesResult::~UpdateLoadBalancerZonesResult() +{} + +void UpdateLoadBalancerZonesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string UpdateLoadBalancerZonesResult::getMessage()const +{ + return message_; +} + +int UpdateLoadBalancerZonesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateLoadBalancerZonesResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string UpdateLoadBalancerZonesResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string UpdateLoadBalancerZonesResult::getCode()const +{ + return code_; +} + +bool UpdateLoadBalancerZonesResult::getSuccess()const +{ + return success_; +} + +std::string UpdateLoadBalancerZonesResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/UpdateSecurityPolicyAttributeRequest.cc b/nlb/src/model/UpdateSecurityPolicyAttributeRequest.cc new file mode 100644 index 000000000..8eee33e1d --- /dev/null +++ b/nlb/src/model/UpdateSecurityPolicyAttributeRequest.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlb::Model::UpdateSecurityPolicyAttributeRequest; + +UpdateSecurityPolicyAttributeRequest::UpdateSecurityPolicyAttributeRequest() + : RpcServiceRequest("nlb", "2022-04-30", "UpdateSecurityPolicyAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateSecurityPolicyAttributeRequest::~UpdateSecurityPolicyAttributeRequest() {} + +std::string UpdateSecurityPolicyAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateSecurityPolicyAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateSecurityPolicyAttributeRequest::getRegionId() const { + return regionId_; +} + +void UpdateSecurityPolicyAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +std::vector UpdateSecurityPolicyAttributeRequest::getCiphers() const { + return ciphers_; +} + +void UpdateSecurityPolicyAttributeRequest::setCiphers(const std::vector &ciphers) { + ciphers_ = ciphers; +} + +std::vector UpdateSecurityPolicyAttributeRequest::getTlsVersions() const { + return tlsVersions_; +} + +void UpdateSecurityPolicyAttributeRequest::setTlsVersions(const std::vector &tlsVersions) { + tlsVersions_ = tlsVersions; +} + +std::string UpdateSecurityPolicyAttributeRequest::getSecurityPolicyName() const { + return securityPolicyName_; +} + +void UpdateSecurityPolicyAttributeRequest::setSecurityPolicyName(const std::string &securityPolicyName) { + securityPolicyName_ = securityPolicyName; + setBodyParameter(std::string("SecurityPolicyName"), securityPolicyName); +} + +bool UpdateSecurityPolicyAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateSecurityPolicyAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string UpdateSecurityPolicyAttributeRequest::getSecurityPolicyId() const { + return securityPolicyId_; +} + +void UpdateSecurityPolicyAttributeRequest::setSecurityPolicyId(const std::string &securityPolicyId) { + securityPolicyId_ = securityPolicyId; + setBodyParameter(std::string("SecurityPolicyId"), securityPolicyId); +} + diff --git a/nlb/src/model/UpdateSecurityPolicyAttributeResult.cc b/nlb/src/model/UpdateSecurityPolicyAttributeResult.cc new file mode 100644 index 000000000..1c91d6c66 --- /dev/null +++ b/nlb/src/model/UpdateSecurityPolicyAttributeResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +UpdateSecurityPolicyAttributeResult::UpdateSecurityPolicyAttributeResult() : + ServiceResult() +{} + +UpdateSecurityPolicyAttributeResult::UpdateSecurityPolicyAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSecurityPolicyAttributeResult::~UpdateSecurityPolicyAttributeResult() +{} + +void UpdateSecurityPolicyAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["SecurityPolicyId"].isNull()) + securityPolicyId_ = value["SecurityPolicyId"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string UpdateSecurityPolicyAttributeResult::getSecurityPolicyId()const +{ + return securityPolicyId_; +} + +std::string UpdateSecurityPolicyAttributeResult::getMessage()const +{ + return message_; +} + +int UpdateSecurityPolicyAttributeResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateSecurityPolicyAttributeResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string UpdateSecurityPolicyAttributeResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string UpdateSecurityPolicyAttributeResult::getCode()const +{ + return code_; +} + +bool UpdateSecurityPolicyAttributeResult::getSuccess()const +{ + return success_; +} + +std::string UpdateSecurityPolicyAttributeResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/UpdateServerGroupAttributeRequest.cc b/nlb/src/model/UpdateServerGroupAttributeRequest.cc new file mode 100644 index 000000000..8b09dc32f --- /dev/null +++ b/nlb/src/model/UpdateServerGroupAttributeRequest.cc @@ -0,0 +1,156 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Nlb::Model::UpdateServerGroupAttributeRequest; + +UpdateServerGroupAttributeRequest::UpdateServerGroupAttributeRequest() + : RpcServiceRequest("nlb", "2022-04-30", "UpdateServerGroupAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateServerGroupAttributeRequest::~UpdateServerGroupAttributeRequest() {} + +std::string UpdateServerGroupAttributeRequest::getQuicVersion() const { + return quicVersion_; +} + +void UpdateServerGroupAttributeRequest::setQuicVersion(const std::string &quicVersion) { + quicVersion_ = quicVersion; + setBodyParameter(std::string("QuicVersion"), quicVersion); +} + +std::string UpdateServerGroupAttributeRequest::getServerGroupName() const { + return serverGroupName_; +} + +void UpdateServerGroupAttributeRequest::setServerGroupName(const std::string &serverGroupName) { + serverGroupName_ = serverGroupName; + setBodyParameter(std::string("ServerGroupName"), serverGroupName); +} + +std::string UpdateServerGroupAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateServerGroupAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +bool UpdateServerGroupAttributeRequest::getPreserveClientIpEnabled() const { + return preserveClientIpEnabled_; +} + +void UpdateServerGroupAttributeRequest::setPreserveClientIpEnabled(bool preserveClientIpEnabled) { + preserveClientIpEnabled_ = preserveClientIpEnabled; + setBodyParameter(std::string("PreserveClientIpEnabled"), preserveClientIpEnabled ? "true" : "false"); +} + +UpdateServerGroupAttributeRequest::HealthCheckConfig UpdateServerGroupAttributeRequest::getHealthCheckConfig() const { + return healthCheckConfig_; +} + +void UpdateServerGroupAttributeRequest::setHealthCheckConfig(const UpdateServerGroupAttributeRequest::HealthCheckConfig &healthCheckConfig) { + healthCheckConfig_ = healthCheckConfig; + setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckEnabled", healthCheckConfig.healthCheckEnabled ? "true" : "false"); + setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckType", healthCheckConfig.healthCheckType); + setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckConnectPort", std::to_string(healthCheckConfig.healthCheckConnectPort)); + setBodyParameter(std::string("HealthCheckConfig") + ".HealthyThreshold", std::to_string(healthCheckConfig.healthyThreshold)); + setBodyParameter(std::string("HealthCheckConfig") + ".UnhealthyThreshold", std::to_string(healthCheckConfig.unhealthyThreshold)); + setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckConnectTimeout", std::to_string(healthCheckConfig.healthCheckConnectTimeout)); + setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckInterval", std::to_string(healthCheckConfig.healthCheckInterval)); + setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckDomain", healthCheckConfig.healthCheckDomain); + setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckUrl", healthCheckConfig.healthCheckUrl); + for(int dep1 = 0; dep1 != healthCheckConfig.healthCheckHttpCode.size(); dep1++) { + setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckHttpCode." + std::to_string(dep1 + 1), healthCheckConfig.healthCheckHttpCode[dep1]); + } + setBodyParameter(std::string("HealthCheckConfig") + ".HttpCheckMethod", healthCheckConfig.httpCheckMethod); +} + +std::string UpdateServerGroupAttributeRequest::getServerGroupId() const { + return serverGroupId_; +} + +void UpdateServerGroupAttributeRequest::setServerGroupId(const std::string &serverGroupId) { + serverGroupId_ = serverGroupId; + setBodyParameter(std::string("ServerGroupId"), serverGroupId); +} + +std::string UpdateServerGroupAttributeRequest::getScheduler() const { + return scheduler_; +} + +void UpdateServerGroupAttributeRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setBodyParameter(std::string("Scheduler"), scheduler); +} + +std::string UpdateServerGroupAttributeRequest::getRegionId() const { + return regionId_; +} + +void UpdateServerGroupAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool UpdateServerGroupAttributeRequest::getPersistenceEnabled() const { + return persistenceEnabled_; +} + +void UpdateServerGroupAttributeRequest::setPersistenceEnabled(bool persistenceEnabled) { + persistenceEnabled_ = persistenceEnabled; + setBodyParameter(std::string("PersistenceEnabled"), persistenceEnabled ? "true" : "false"); +} + +int UpdateServerGroupAttributeRequest::getPersistenceTimeout() const { + return persistenceTimeout_; +} + +void UpdateServerGroupAttributeRequest::setPersistenceTimeout(int persistenceTimeout) { + persistenceTimeout_ = persistenceTimeout; + setBodyParameter(std::string("PersistenceTimeout"), std::to_string(persistenceTimeout)); +} + +bool UpdateServerGroupAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateServerGroupAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +bool UpdateServerGroupAttributeRequest::getConnectionDrainEnabled() const { + return connectionDrainEnabled_; +} + +void UpdateServerGroupAttributeRequest::setConnectionDrainEnabled(bool connectionDrainEnabled) { + connectionDrainEnabled_ = connectionDrainEnabled; + setBodyParameter(std::string("ConnectionDrainEnabled"), connectionDrainEnabled ? "true" : "false"); +} + +int UpdateServerGroupAttributeRequest::getConnectionDrainTimeout() const { + return connectionDrainTimeout_; +} + +void UpdateServerGroupAttributeRequest::setConnectionDrainTimeout(int connectionDrainTimeout) { + connectionDrainTimeout_ = connectionDrainTimeout; + setBodyParameter(std::string("ConnectionDrainTimeout"), std::to_string(connectionDrainTimeout)); +} + diff --git a/nlb/src/model/UpdateServerGroupAttributeResult.cc b/nlb/src/model/UpdateServerGroupAttributeResult.cc new file mode 100644 index 000000000..d364e4f5c --- /dev/null +++ b/nlb/src/model/UpdateServerGroupAttributeResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +UpdateServerGroupAttributeResult::UpdateServerGroupAttributeResult() : + ServiceResult() +{} + +UpdateServerGroupAttributeResult::UpdateServerGroupAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateServerGroupAttributeResult::~UpdateServerGroupAttributeResult() +{} + +void UpdateServerGroupAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["ServerGroupId"].isNull()) + serverGroupId_ = value["ServerGroupId"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string UpdateServerGroupAttributeResult::getMessage()const +{ + return message_; +} + +int UpdateServerGroupAttributeResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateServerGroupAttributeResult::getServerGroupId()const +{ + return serverGroupId_; +} + +std::string UpdateServerGroupAttributeResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string UpdateServerGroupAttributeResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string UpdateServerGroupAttributeResult::getCode()const +{ + return code_; +} + +bool UpdateServerGroupAttributeResult::getSuccess()const +{ + return success_; +} + +std::string UpdateServerGroupAttributeResult::getJobId()const +{ + return jobId_; +} + diff --git a/nlb/src/model/UpdateServerGroupServersAttributeRequest.cc b/nlb/src/model/UpdateServerGroupServersAttributeRequest.cc new file mode 100644 index 000000000..52717dc7e --- /dev/null +++ b/nlb/src/model/UpdateServerGroupServersAttributeRequest.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::Nlb::Model::UpdateServerGroupServersAttributeRequest; + +UpdateServerGroupServersAttributeRequest::UpdateServerGroupServersAttributeRequest() + : RpcServiceRequest("nlb", "2022-04-30", "UpdateServerGroupServersAttribute") { + setMethod(HttpRequest::Method::Post); +} + +UpdateServerGroupServersAttributeRequest::~UpdateServerGroupServersAttributeRequest() {} + +std::string UpdateServerGroupServersAttributeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateServerGroupServersAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateServerGroupServersAttributeRequest::getServerGroupId() const { + return serverGroupId_; +} + +void UpdateServerGroupServersAttributeRequest::setServerGroupId(const std::string &serverGroupId) { + serverGroupId_ = serverGroupId; + setBodyParameter(std::string("ServerGroupId"), serverGroupId); +} + +std::vector UpdateServerGroupServersAttributeRequest::getServers() const { + return servers_; +} + +void UpdateServerGroupServersAttributeRequest::setServers(const std::vector &servers) { + servers_ = servers; + for(int dep1 = 0; dep1 != servers.size(); dep1++) { + auto serversObj = servers.at(dep1); + std::string serversObjStr = std::string("Servers") + "." + std::to_string(dep1 + 1); + setBodyParameter(serversObjStr + ".ServerId", serversObj.serverId); + setBodyParameter(serversObjStr + ".ServerType", serversObj.serverType); + setBodyParameter(serversObjStr + ".ServerIp", serversObj.serverIp); + setBodyParameter(serversObjStr + ".Port", std::to_string(serversObj.port)); + setBodyParameter(serversObjStr + ".Weight", std::to_string(serversObj.weight)); + setBodyParameter(serversObjStr + ".Description", serversObj.description); + } +} + +std::string UpdateServerGroupServersAttributeRequest::getRegionId() const { + return regionId_; +} + +void UpdateServerGroupServersAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setBodyParameter(std::string("RegionId"), regionId); +} + +bool UpdateServerGroupServersAttributeRequest::getDryRun() const { + return dryRun_; +} + +void UpdateServerGroupServersAttributeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + diff --git a/nlb/src/model/UpdateServerGroupServersAttributeResult.cc b/nlb/src/model/UpdateServerGroupServersAttributeResult.cc new file mode 100644 index 000000000..506836b65 --- /dev/null +++ b/nlb/src/model/UpdateServerGroupServersAttributeResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Nlb; +using namespace AlibabaCloud::Nlb::Model; + +UpdateServerGroupServersAttributeResult::UpdateServerGroupServersAttributeResult() : + ServiceResult() +{} + +UpdateServerGroupServersAttributeResult::UpdateServerGroupServersAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateServerGroupServersAttributeResult::~UpdateServerGroupServersAttributeResult() +{} + +void UpdateServerGroupServersAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DynamicCode"].isNull()) + dynamicCode_ = value["DynamicCode"].asString(); + if(!value["DynamicMessage"].isNull()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["ServerGroupId"].isNull()) + serverGroupId_ = value["ServerGroupId"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string UpdateServerGroupServersAttributeResult::getMessage()const +{ + return message_; +} + +int UpdateServerGroupServersAttributeResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UpdateServerGroupServersAttributeResult::getServerGroupId()const +{ + return serverGroupId_; +} + +std::string UpdateServerGroupServersAttributeResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string UpdateServerGroupServersAttributeResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string UpdateServerGroupServersAttributeResult::getCode()const +{ + return code_; +} + +bool UpdateServerGroupServersAttributeResult::getSuccess()const +{ + return success_; +} + +std::string UpdateServerGroupServersAttributeResult::getJobId()const +{ + return jobId_; +} +